0

on RPi 3 we are using something like amixer cset numid=3 1 and then alsactl store to force sound output to jack 3.5mm and store configuration.
I want same thing on my RPi4 model B, but it does not work. I found a few articles like this one and it seems that procedure should be very same also for RPi3.
But even the output of aplay -l is different in my case:

**** List of PLAYBACK Hardware Devices ****
card 0: b1 [bcm2835 HDMI 1], device 0: bcm2835 HDMI 1 [bcm2835 HDMI 1]
  Subdevices: 4/4
  Subdevice #0: subdevice #0
  Subdevice #1: subdevice #1
  Subdevice #2: subdevice #2
  Subdevice #3: subdevice #3
card 1: Headphones [bcm2835 Headphones], device 0: bcm2835 Headphones [bcm2835 Headphones]
  Subdevices: 4/4
  Subdevice #0: subdevice #0
  Subdevice #1: subdevice #1
  Subdevice #2: subdevice #2
  Subdevice #3: subdevice #3

Also amixer cset numid=3 1 does not work either:

amixer: Cannot find the given element from control default

UPDATE: Adding more info:

$sudo amixer controls
numid=2,iface=MIXER,name='HDMI Playback Switch'
numid=1,iface=MIXER,name='HDMI Playback Volume'

How can I change audio ouput on the fly from CLI as we need it for a script?

3

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.