NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: audioctl and mixerctl command default device question





El 3/6/25 a las 12:28, Michael van Elst escribió:
ea1abz%gmail.com@localhost (Ramiro Aceves) writes:

from "man audioctl":
      The -d flag can be used to give an alternative audio control
device, the default is /dev/audioctl0.


That's a bit stale, the 'default' symlinks are a new thing.

audioctl is trying /dev/audioctl and falling back to /dev/audioctl0
if the symlink isn't there.

Similarly mixerctl is trying /dev/mixer and is falling back to
/dev/mixer0 when the symlink isn't there.



Thanks Michael for clarifying it. Audioctl seems to follow ok the symbolic link to from /dev/audioctl to /dev/audioctl1 (in my case with my default device) if "-d" is not used:


netbsd-raspa4$ audioctl -a |grep name
name=vchiq auds
netbsd-raspa4$ audioctl -d /dev/audioctl -a |grep name
name=vchiq auds
netbsd-raspa4$ audioctl -d /dev/audioctl1 -a |grep name
name=vchiq auds
netbsd-raspa4$ audioctl -d /dev/audioctl0 -a |grep name
name=USB audio


also mixerctl seems to follow the symblink from /dev/mixer to /dev/mixer1:

netbsd-raspa4$ mixerctl -a
outputs.master=95,95
inputs.dac=95,95
outputs.auto=151,151
outputs.headphones=177,177
outputs.hdmi=151,151
outputs.select=auto

netbsd-raspa4$ mixerctl -d /dev/mixer -a
outputs.master=95,95
inputs.dac=95,95
outputs.auto=151,151
outputs.headphones=177,177
outputs.hdmi=151,151
outputs.select=auto

netbsd-raspa4$ mixerctl -d /dev/mixer1 -a
outputs.master=95,95
inputs.dac=95,95
outputs.auto=151,151
outputs.headphones=177,177
outputs.hdmi=151,151
outputs.select=auto

netbsd-raspa4$ mixerctl -d /dev/mixer0 -a
record.mic.mute=off
record.mic=187
netbsd-raspa4$

Then "man audioctl" page does not tell the truth:

"The -d flag can be used to give an alternative audio control device, the default is /dev/audioctl0"

It uses /dev/audioctl instead.



Thanks.
Ramiro.




Home | Main Index | Thread Index | Old Index