Sarpi / Raspberry (RPi 3) - sound issue under 5.4.18-v7-arm
by eduardr from LinuxQuestions.org on (#4Z863)
omxplayer sound works.
RetroArch emulator sound no longer works (worked on 5.4.16 and everything earlier).
The problem may be somehow related to the module snd_bcm2835. In 5.4.16 and earlier, this module was always loaded automatically. With 5.4.18, module is not loaded at boot. I can modprobe it manually after boot, but there are errors appearing in dmesg when I do that, and even though it appears as loaded in lsmod, I get no sound in my RetroArch game emulator.
More details below, of differences I see in 5.4.16 vs 5.4.18. Don't have a clue yet of root cause.
Code:[root@rpi2 ~]# uname -a
Linux rpi2.lan.qurious.net 5.4.16-v7-arm #2 SMP Fri Jan 31 13:12:13 GMT 2020 armv7l BCM2835 GNU/Linux
[root@rpi2 ~]# lsmod | grep snd
snd_bcm2835 24576 0
snd_pcm 94208 1 snd_bcm2835
snd_timer 32768 1 snd_pcm
snd 69632 3 snd_timer,snd_bcm2835,snd_pcm
[root@rpi2 ~]# dmesg
...
...
[Tue Feb 11 19:07:27 2020] snd_bcm2835: module is from the staging directory, the quality is unknown, you have been warned.
[Tue Feb 11 19:07:27 2020] bcm2835_mmal_vchiq: module is from the staging directory, the quality is unknown, you have been warned.
[Tue Feb 11 19:07:27 2020] bcm2835_mmal_vchiq: module is from the staging directory, the quality is unknown, you have been warned.
[Tue Feb 11 19:07:27 2020] input: Microsoft X-Box 360 pad as /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.1/1-1.1.3/1-1.1.3:1.0/input/input4
[Tue Feb 11 19:07:27 2020] bcm2835_audio soc:audio: card created with 8 channels
...
...Code:[root@rpi2 ~]# uname -a
Linux rpi2.lan.qurious.net 5.4.18-v7-arm #5 SMP Sat Feb 8 14:36:59 GMT 2020 armv7l BCM2835 GNU/Linux
[root@rpi2 ~]# lsmod | grep snd
[root@rpi2 ~]#
[root@rpi2 ~]# dmesg | grep snd_bcm
[root@rpi2 ~]#
[root@rpi2 ~]# modprobe snd_bcm2835
[root@rpi2 ~]# dmesg
...
...
[Tue Feb 11 18:52:42 2020] snd_bcm2835: module is from the staging directory, the quality is unknown, you have been warned.
[Tue Feb 11 18:52:42 2020] bcm2835_audio bcm2835_audio: Failed to get DT property 'brcm,pwm-channels'
[Tue Feb 11 18:52:42 2020] bcm2835_audio: probe of bcm2835_audio failed with error -22
[root@rpi2 ~]# lsmod | grep snd
snd_bcm2835 24576 0
snd_pcm 94208 1 snd_bcm2835
snd_timer 32768 1 snd_pcm
snd 69632 3 snd_timer,snd_bcm2835,snd_pcm


RetroArch emulator sound no longer works (worked on 5.4.16 and everything earlier).
The problem may be somehow related to the module snd_bcm2835. In 5.4.16 and earlier, this module was always loaded automatically. With 5.4.18, module is not loaded at boot. I can modprobe it manually after boot, but there are errors appearing in dmesg when I do that, and even though it appears as loaded in lsmod, I get no sound in my RetroArch game emulator.
More details below, of differences I see in 5.4.16 vs 5.4.18. Don't have a clue yet of root cause.
Code:[root@rpi2 ~]# uname -a
Linux rpi2.lan.qurious.net 5.4.16-v7-arm #2 SMP Fri Jan 31 13:12:13 GMT 2020 armv7l BCM2835 GNU/Linux
[root@rpi2 ~]# lsmod | grep snd
snd_bcm2835 24576 0
snd_pcm 94208 1 snd_bcm2835
snd_timer 32768 1 snd_pcm
snd 69632 3 snd_timer,snd_bcm2835,snd_pcm
[root@rpi2 ~]# dmesg
...
...
[Tue Feb 11 19:07:27 2020] snd_bcm2835: module is from the staging directory, the quality is unknown, you have been warned.
[Tue Feb 11 19:07:27 2020] bcm2835_mmal_vchiq: module is from the staging directory, the quality is unknown, you have been warned.
[Tue Feb 11 19:07:27 2020] bcm2835_mmal_vchiq: module is from the staging directory, the quality is unknown, you have been warned.
[Tue Feb 11 19:07:27 2020] input: Microsoft X-Box 360 pad as /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.1/1-1.1.3/1-1.1.3:1.0/input/input4
[Tue Feb 11 19:07:27 2020] bcm2835_audio soc:audio: card created with 8 channels
...
...Code:[root@rpi2 ~]# uname -a
Linux rpi2.lan.qurious.net 5.4.18-v7-arm #5 SMP Sat Feb 8 14:36:59 GMT 2020 armv7l BCM2835 GNU/Linux
[root@rpi2 ~]# lsmod | grep snd
[root@rpi2 ~]#
[root@rpi2 ~]# dmesg | grep snd_bcm
[root@rpi2 ~]#
[root@rpi2 ~]# modprobe snd_bcm2835
[root@rpi2 ~]# dmesg
...
...
[Tue Feb 11 18:52:42 2020] snd_bcm2835: module is from the staging directory, the quality is unknown, you have been warned.
[Tue Feb 11 18:52:42 2020] bcm2835_audio bcm2835_audio: Failed to get DT property 'brcm,pwm-channels'
[Tue Feb 11 18:52:42 2020] bcm2835_audio: probe of bcm2835_audio failed with error -22
[root@rpi2 ~]# lsmod | grep snd
snd_bcm2835 24576 0
snd_pcm 94208 1 snd_bcm2835
snd_timer 32768 1 snd_pcm
snd 69632 3 snd_timer,snd_bcm2835,snd_pcm