The A40I audio codec

96 views
Skip to first unread message

fuyao

unread,
Aug 12, 2022, 5:00:57 AM8/12/22
to linux...@googlegroups.com
Hi:
Is the anybody plan to support A40/R40 audio codec.
--
Technology is exciting

JuanEsf

unread,
Aug 12, 2022, 9:32:06 AM8/12/22
to linux-sunxi
Hello everyone, following the work of the audio codec in v3s and h3 I have created some patches for r40 in armbian. These are working although the bananapi m2 berry patch has added the microphone path which does not exist (you have to update). if the patch is correct whoever wants can continue and send it to mainline.

JuanEsf

unread,
Aug 12, 2022, 1:33:55 PM8/12/22
to linux-sunxi
bpi@bpim2u:~$ neofetch
                                 bpi@bpim2u
                                 ----------
      █ █ █ █ █ █ █ █ █ █ █      OS: Armbian (22.08.0-trunk) armv7l
     ███████████████████████     Host: Banana Pi BPI-M2-Ultra
   ▄▄██                   ██▄▄   Kernel: 5.15.55-sunxi
   ▄▄██    ███████████    ██▄▄   Uptime: 15 hours, 45 mins
   ▄▄██   ██         ██   ██▄▄   Packages: 1245 (dpkg)
   ▄▄██   ██         ██   ██▄▄   Shell: bash 5.1.4
   ▄▄██   ██         ██   ██▄▄   Resolution: 1024x768
   ▄▄██   █████████████   ██▄▄   Terminal: /dev/pts/1
   ▄▄██   ██         ██   ██▄▄   CPU: Allwinner sun8i Family (4)
   ▄▄██   ██         ██   ██▄▄   Memory: 473MiB / 2013MiB
   ▄▄██   ██         ██   ██▄▄
   ▄▄██                   ██▄▄
     ███████████████████████
      █ █ █ █ █ █ █ █ █ █ █

bpi@bpim2u:~$ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: Codec [R40 Audio Codec], device 0: CDC PCM Codec-0 [CDC PCM Codec-0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: sun9ihdmi [sun9i-hdmi], device 0: SUN9I-HDMI PCM i2s-hifi-0 [SUN9I-HDMI PCM i2s-hifi-0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
bpi@bpim2u:~$r40-audio.png

fuyao

unread,
Aug 14, 2022, 9:55:35 AM8/14/22
to Maxime Ripard, JuanEsf, linux-sunxi, huang...@cyg.com, maijia...@allwinnertech.com
On Fri, Aug 12, 2022 at 10:33:55AM -0700, JuanEsf wrote:

thanks, I have tested it , it can work nice output to HP, and it can work output to phoneout add some
route.
> > (github.com) <https://github.com/armbian/build/pull/4021/files>
Reply all
Reply to author
Forward
0 new messages