alksf Posted January 18, 2017 Posted January 18, 2017 Hello there, Some time ago there was a note about "no sound in M2" and what about present time? Just tried 5.24 and still: root@bananapim2:~# lsmod Module Size Used by evdev 9348 0 ir_lirc_codec 4088 0 lirc_dev 6245 1 ir_lirc_codec sunxi_cir 3159 0 sun4i_ts 3350 0 sun4i_ss 13314 0 uio_pdrv_genirq 2780 0 uio 6272 1 uio_pdrv_genirq cpufreq_dt 2856 0 sun4i_codec 10232 0 snd_soc_core 97900 1 sun4i_codec snd_pcm_dmaengine 2770 1 snd_soc_core snd_pcm 57610 2 snd_pcm_dmaengine,snd_soc_core snd_timer 14718 1 snd_pcm snd 35719 3 snd_timer,snd_soc_core,snd_pcm soundcore 858 1 snd bonding 81296 0 brcmfmac 144130 0 brcmutil 4189 1 brcmfmac cfg80211 327843 1 brcmfmac rfkill 8383 1 cfg80211 fuse 61845 1 pwrseq_simple 2002 1 realtek 2583 0 root@bananapim2:~# root@bananapim2:~# root@bananapim2:~# cat /proc/asound/cards --- no soundcards --- root@bananapim2:~# alsamixer cannot open mixer: No such file or directory root@bananapim2:~# Is it forever?
zador.blood.stained Posted January 18, 2017 Posted January 18, 2017 Mainline kernel 4.10 with some extra patches or 4.11 will support the analog audio output on A31/A31s based devices = on Banana Pi M2): https://linux-sunxi.org/Linux_mainlining_effort#Status_Matrix Even tohough it's possible to make an image with the sound support right now, it would take too much work for a single feature on a single board, so it won't be included in the next Armbian release (5.25), but it may reach the release after that or experimental/nightly releases.
NewtoM Posted April 10, 2017 Posted April 10, 2017 I would like to mention that I am also waiting (see https://forum.armbian.com/index.php?/topic/564-alsa-sound-on-a31s-based-banana-pi-m2-bpi-m2/) for working audio with Armbian for Banana Pi M2.
zador.blood.stained Posted April 10, 2017 Posted April 10, 2017 14 hours ago, NewtoM said: I would like to mention that I am also waiting (see https://forum.armbian.com/index.php?/topic/564-alsa-sound-on-a31s-based-banana-pi-m2-bpi-m2/) for working audio with Armbian for Banana Pi M2. It should be possible to enable analog audio and SPDIF with a device tree patches similar to these: Analog audio - this or this, depending on audio routing, may require changing the audio routing property. SPDIF - this, may require the latest kernel that is not available in the stable Armbian release.
aao Posted May 28, 2017 Posted May 28, 2017 Hi, according to https://linux-sunxi.org/Linux_mainlining_effort#Status_Matrix audio codec for A31 enabled in 4.10. Made dev image with 4.12 kernel, but in audio devices is Dummy Output only. Is there any way to turn audio codec on? (like edit Bootenv or something..)
Igor Posted May 28, 2017 Posted May 28, 2017 Not exactly trivial, but you need to add something like this: https://github.com/armbian/build/blob/master/patch/kernel/sun8i-dev/enable-codec-opi-2.patch to board device tree which you can find in /boot/dtb ... decompile .dtb and back.
Recommended Posts