janvda / balena-pulseaudio

Is a balena application running a pulseaudio server and demonstrating how it can be used for playing and recording audio on a raspberry pi. It also supports bluetooth audio devices.
Eclipse Public License 2.0
6 stars 2 forks source link

Raspberry pi headphone jack no longer recognized with BalenaOS 2.41.0+rev3 #2

Closed janvda closed 5 years ago

janvda commented 5 years ago

see forum topic: Raspberry pi headphone jack no longer works with latest OS

I have just upgraded my device to production balenaOS 2.41.0+rev3 on my raspberry pi and I can no longer play audio through the headphone jack.

The following command lists all alsa playback devices on my raspberry pi.

bash-5.0# aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: vc4hdmi [vc4-hdmi], device 0: MAI PCM vc4-hdmi-hifi-0 []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
bash-5.0# 

When I executed the same command on another rapsberry pi 3 running development balenaOS 2.38.0+rev1 I get the following:

root@70c82e027ec4:/# aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: ALSA [bcm2835 ALSA], device 0: bcm2835 ALSA [bcm2835 ALSA]
  Subdevices: 7/7
  Subdevice #0: subdevice #0
  Subdevice #1: subdevice #1
  Subdevice #2: subdevice #2
  Subdevice #3: subdevice #3
  Subdevice #4: subdevice #4
  Subdevice #5: subdevice #5
  Subdevice #6: subdevice #6
card 0: ALSA [bcm2835 ALSA], device 1: bcm2835 ALSA [bcm2835 IEC958/HDMI]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
root@70c82e027ec4:/# 

I am not specialist but it looks like the raspberry pi audio driver has changed when upgrading the OS and I don't know how I can play now audio through the headphone jack.

janvda commented 5 years ago

As workaround I have moved back to BalenaOs balenaOS 2.38.0+rev1 and that works fine.

janvda commented 5 years ago

upgrading to host OS to version balenaOS 2.43.0+rev1 fixed the issue.

See following output:

root@ba7c427:/# aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: ALSA [bcm2835 ALSA], device 0: bcm2835 ALSA [bcm2835 ALSA]
  Subdevices: 6/7
  Subdevice #0: subdevice #0
  Subdevice #1: subdevice #1
  Subdevice #2: subdevice #2
  Subdevice #3: subdevice #3
  Subdevice #4: subdevice #4
  Subdevice #5: subdevice #5
  Subdevice #6: subdevice #6
card 0: ALSA [bcm2835 ALSA], device 1: bcm2835 IEC958/HDMI [bcm2835 IEC958/HDMI]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: ALSA [bcm2835 ALSA], device 2: bcm2835 IEC958/HDMI1 [bcm2835 IEC958/HDMI1]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 2: Device [USB2.0 Device], device 0: USB Audio [USB Audio]
  Subdevices: 0/1
  Subdevice #0: subdevice #0
root@ba7c427:/#