Jump to content

Banana Pi M2 audio support


alksf

Recommended Posts

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?

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines