Hello OpenBSD Mailing list!

I've installed OpenBSD on my Dell Latitude E6440, and most things work. Audio works correctly, however, When I connect my headphones, both headphones and speaker work together.


So, I can use mixerctl outputs.spkr_mute=on (being it off), that way, only the headphones work, since  outputs.hp_mute=off.


Now, I would like to use sndioctl since, it is more suitable for audio changes, as it doesn't need privileges to be ran.

delllatitude$ sndioctl -v
input[0].level=0.486
input[1].level=0.486
input[0].mute=0
input[1].mute=0
output[0].level=0.525
output[1].level=0.525
output[0].mute=0
output[1].mute=0

Calling sndioctl output[0].mute=1 will output also the output[1], and viceversa.


I also tried sndioctl -f /dev/audio{0,1,2} to no avail, also tested snd/0 which gives me output (comes back to my device) and snd/1 which tells me that it can't open control device (since it doesn't exist.)


So, via dmesg, I see that azalia[4] is the one controlling this:

delllatitude$ dmesg | grep audio
audio0 at azalia1
audio0 at azalia1

The manual matches perfectly which what I have on mixerctl available, and where I can mute and unmute the speaker or headphones separately.


I'm at a loss on how to use sndioctl as expected, since it doesn't make sense for me to use all the time privileges in order to mute/unmute something. It makes it harder to script anything.


Btw, so far I'm loving the system!, and manuals are superb, I'm being direct as I'd like to contribute and be able to work through stuff, and help other people in the future too!


Thanks!,

Miguel Angel

Reply via email to