Jump to content

No audio on 3.5 jack with BananaPI M1+ and Debian Jessie


matteobp

Recommended Posts

I installed Armbian 4.5 Debian Jessie 3.4.109 and added XFCE desktop, but there is no audio on 3.5 jack (I cannot test HDMI audio output). I built my own Debian Jessie 3.4.109 selecting Banana Pro and including XFCE desktop without any other change, and also in this case there is no audio on 3.5 jack.

Some useful information to solve the problem. These are equals on both installation.
 

root@bananapipro:~# cat /proc/asound/cards
 0 [sunxicodec     ]: sunxi-CODEC - sunxi-CODEC
                      sunxi-CODEC  Audio Codec
root@bananapipro:~# cat /proc/asound/devices
  2: [ 0- 0]: digital audio playback
  3: [ 0- 0]: digital audio capture
  4: [ 0]   : control
 33:        : timer
root@bananapipro:~# cat /proc/asound/pcm
00-00: M1 PCM : sunxi PCM : playback 1 : capture 1
root@bananapipro:~# cat /proc/asound/timers
G0: system timer : 10000.000us (10000000 ticks)
G3: HR timer : 0.001us (1000000000 ticks)
P0-0-0: PCM playback 0-0-0 : SLAVE
P0-0-1: PCM capture 0-0-1 : SLAVE
root@bananapipro:~# cat /proc/asound/version
Advanced Linux Sound Architecture Driver Version 1.0.25.
root@bananapipro:~# lsmod
Module                  Size  Used by
cpufreq_userspace       3524  0
spidev                  6366  0
a20_tp                  3365  0
8021q                  18593  0
garp                    6072  1 8021q
stp                     2032  1 garp
llc                     5365  2 stp,garp
sunxi_ir                4037  0
hidp                   17640  0
rfcomm                 58686  0
hci_uart               25000  0
bluetooth             264185  5 hidp,hci_uart,rfcomm
root@bananapipro:~# less /etc/asound.conf
/etc/asound.conf: No such file or directory
root@bananapipro:~# find / -iname *sunxi-snd*
/sys/bus/platform/drivers/sunxi-sndhdmi

This is related to my own image.

root@bananapipro:~# dmesg | grep audio
[    0.000000] Kernel command line: console=tty1 root=/dev/mmcblk0p1 rootwait rootfstype=ext4 hdmi.audio=EDID:0 disp.screen0_output_mode=1280x1024p60 panic=10 consoleblank=0 enforcing=0 loglevel=1

This is related to Debian Armbian 4.5.

root@bananapi:~# dmesg | grep audio
[    0.000000] Kernel command line: console=tty1 root=/dev/mmcblk0p1 rootwait rootfstype=ext4 sunxi_ve_mem_reserve=0 sunxi_g2d_mem_reserve=0 sunxi_no_mali_mem_reserve sunxi_fb_mem_reserve=16 hdmi.audio=EDID:0 disp.screen0_output_mode=1280x1024p60 panic=10 consoleblank=0 enforcing=0 loglevel=1

Thanks for support.

Link to comment
Share on other sites

http://linux-sunxi.org/LeMaker_Banana_Pi

 

SinoVoip produced a different version called "M1Plus" (BPi-M1+) as a Banana Pro rip-off sharing exactly the same hardware specs and almost the same position of onboard connectors. Main difference: SoC, DRAM and PMU are on the upper side of the PCB whereas on the lower on Banana Pro. Featurewise both boards are nearly identical and fex/dts files can be interchanged directly, with one small exception: according to LeMaker's and Sinovoip's fex files, [audio_pa_ctrl] differs: PH26 on M1+ and PH15 on Banana Pro.

 

There is no special M1+ config, so you need to alter script.bin ... and you will get a sound.

Link to comment
Share on other sites

Ok, I'll try. If I'm not mistaken, I have to convert bananapro.bin to fex (script.bin is a link to bananapro.bin), modify it and then convert it again to bin format again.

 

I'm using my own built image following the instruction found here

https://github.com/igorpecovnik/lib/blob/second/README.md

The image is a Debian Jessie with kernel 3.4.109, bananapro as hadware and with XFCE desktop.

Is there something I can change in the build process to have this change already built in the created image with compile.sh script?

Link to comment
Share on other sites

Yes, that's correct.

 

When you will have / find a working script.bin simply add (with some obvious name) it's source (fex) to lib/config or attach it here and I'll add this to build by default.

Link to comment
Share on other sites

From my understanding, all that needs to be done for an M1+ is to fex to text the .bin file, make a change to the pin numbers and then text to fex it back again?

 

Audio out via 3.5mm is a must for me with my current project.

Link to comment
Share on other sites

I don't know what happened, but the change of script.bin didn't resolve the problem. So I decided to build the image again, and now I can hear audio from 3.5 jack playing video with both default script.bin (with PH15) and modified script.bin (with PH26). This means that hardware and audio codec are ok, but I cannot hear audio seeing video on youtube with Iceweasel, and the video stutters. But this is another film.

 

Thanks.

 

P.S. I think there is no need to add another configuration for BPI M1+.

Link to comment
Share on other sites

Banana Pi M1+

 

Using legacy Debian jessie, I've got script.bin linking to bananapro,bin and I've got audio from the 3.5mm jack, but it's overlaid with a regular clicking noise every second.

 

From what I can gather, it's because audio and video are both output through the 3.5mm jack and using a standard audio TRS plug causes a short between the video and ground, but what type of TRRS cable is needed to fix it I wonder?

 

 

Trrs-videocable587.png

Link to comment
Share on other sites

I remembered this thread about disabling the onboard audio, but the tools have disappeared during the upgrade

lrwxrwxrwx  1 root root       82 Dec 28 18:52 fex2bin -> /root/output/debs/jessie/linux-jessie-root-bananapi_4.81_armhf/usr/sbin/sunxi-fexc

It would appear that it's now necessary to install sunxi-tools

Link to comment
Share on other sites

Hi.

Can anybody explain this to me?

I have just installed OpenMediaVault which is Armbian based. Did all upgrades and now I'm using 4.11.5-sunxi.

My cat, are just the same as matteobps. but...

cat /proc/asound/timers
G0: system timer : 10000.000us (10000000 ticks)
P0-0-0: PCM playback 0-0-0 : SLAVE
P0-0-1: PCM capture 0-0-1 : SLAVE

and

 

lsmod
Module                  Size  Used by
binfmt_misc            16384  1 
tun                    28672  2 
xt_nat                 16384  1 
iptable_nat            16384  1 
nf_conntrack_ipv4      16384  2 
nf_defrag_ipv4         16384  1 nf_conntrack_ipv4
nf_nat_ipv4            16384  1 iptable_nat
nf_nat                 20480  2 xt_nat,nf_nat_ipv4
nf_conntrack           77824  4 xt_nat,nf_conntrack_ipv4,nf_nat_ipv4,nf_nat
ip_tables              20480  1 iptable_nat
x_tables               20480  2 xt_nat,ip_tables
evdev                  20480  3 
ir_lirc_codec          16384  0 
nvmem_sunxi_sid        16384  0 
sun4i_codec            32768  3 
nvmem_core             16384  1 nvmem_sunxi_sid
snd_soc_core          114688  1 sun4i_codec
snd_pcm_dmaengine      16384  1 snd_soc_core
snd_pcm                69632  2 snd_pcm_dmaengine,snd_soc_core
lirc_dev               16384  1 ir_lirc_codec
snd_timer              24576  1 snd_pcm
snd                    45056  3 snd_timer,snd_soc_core,snd_pcm
soundcore              16384  1 snd
sunxi_cir              16384  0 
sun4i_ss               24576  0 
cpufreq_dt             16384  0 
uio_pdrv_genirq        16384  0 
uio                    16384  1 uio_pdrv_genirq
bonding                90112  0 
brcmfmac              147456  0 
brcmutil               16384  1 brcmfmac
cfg80211              352256  1 brcmfmac
rfkill                 20480  3 cfg80211
fuse                   69632  1 
dm_mod                 86016  0 
md_mod                 94208  0 
pwrseq_simple          16384  1 
realtek                16384  1

and

find / -iname *sunxi-snd*

finds nothing and output dmsg...

dmesg | grep audio
[    0.000000] Kernel command line: console=ttyS0,115200 console=tty1 root=/dev/mmcblk0p1 rootwait rootfstype=ext4 cgroup_enable=memory swapaccount=1 sunxi_ve_mem_reserve=0 sunxi_g2d_mem_reserve=0 sunxi_no_mali_mem_reserve sunxi_fb_mem_reserve=16 hdmi.audio=EDID:0 disp.screen0_output_mode=1920x1080p60 panic=10 consoleblank=0 enforcing=0 loglevel=7

Can you help?? I've connected speakers to my Banana, added storage set up vnc and want to use it as a jukebox... everything works exept the main fucnction of plaing audio...

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