NetBSD-Bugs archive

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

kern/52781: audioctl can't set output gain



>Number:         52781
>Category:       kern
>Synopsis:       audioctl can't set output gain
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Dec 03 18:30:00 +0000 2017
>Originator:     Manuel Bouyer
>Release:        NetBSD 8.99.6, netbsd-8 userland
>Organization:
>Environment:
System: NetBSD sandettie.soc.lip6.fr 8.99.6 NetBSD 8.99.6 (GENERIC) #73: Sun Dec 3 16:09:50 CET 2017 bouyer%bop.soc.lip6.fr@localhost:/dsk/l1/misc/bouyer/tmp/amd64/obj/dsk/l1/misc/bouyer/HEAD/src/sys/arch/amd64/compile/GENERIC amd64
Architecture: x86_64
Machine: amd64
hdaudio0 at pci0 dev 31 function 3: HD Audio Controller
allocated pic msi3 type edge pin 0 level 7 to cpu0 slot 20 idt entry 112
hdaudio0: interrupting at msi3 vec 0
hdafg0 at hdaudio0 vendor 0x10EC product 0x0256 nid 0x01: vendor 10ec product 02
56
hdafg0: DAC00 2ch: Speaker [Built-In]
    nid=14 [pin: Speaker (Built-In)]
           nid=02 [audio output] [source: dac]
hdafg0: DAC01 2ch: HP Out [Jack]
    nid=21 [pin: HP Out (Black Jack)]
           nid=03 [audio output] [source: dac]
hdafg0: ADC02 2ch: Mic In [Built-In]
    nid=12 [pin: Mic In (Built-In)]
hdafg0: 2ch/2ch 44100Hz 48000Hz 96000Hz 192000Hz PCM16 PCM20 PCM24 AC3
audio0 at hdafg0: full duplex, playback, capture, mmap, independent
hdafg0: Virtual format configured - Format SLINEAR, precision 16, channels 2, frequency 48000
hdafg0: Latency: 128 milliseconds
spkr0 at audio0: PC Speaker (synthesized)
wsbell at spkr0 not configured
hdafg1 at hdaudio0 vendor 0x8086 product 0x280B nid 0x01: vendor 8086 product 280b
hdafg1: DP00 8ch: Digital Out [Jack]
    nid=03 [pin: Digital Out (Jack)]
           nid=02 [audio output] [source: dac]
hdafg1: 8ch/0ch 48000Hz PCM16*

>Description:
	trying to set the audio output volume with audioctl fails:
sandettie# audioctl play.gain
play.gain=174
sandettie# audioctl -w play.gain=100
play.gain: -> 174
sandettie# audioctl play.gain
play.gain=174

	using mixerctl works around the problem:
sandettie# audioctl play.gain
play.gain=174
sandettie# mixerctl outputs.master
outputs.master=174,174
sandettie# mixerctl -w outputs.master=100,100
outputs.master: 174,174 -> 100,100
sandettie# mixerctl outputs.master
outputs.master=100,100
sandettie# audioctl play.gain
play.gain=100


>How-To-Repeat:
	try to use audioctl to change volume
>Fix:
	workaround: use mixerctl



Home | Main Index | Thread Index | Old Index