NetBSD-Bugs archive

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

kern/53802: audioctl not working for usb audio dev



>Number:         53802
>Category:       kern
>Synopsis:       audioctl not working for usb audio dev
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Dec 19 19:00:00 +0000 2018
>Originator:     scole_mail
>Release:        8.0
>Organization:
none
>Environment:
NetBSD dstar 8.0_STABLE NetBSD 8.0_STABLE (GENERIC) #0: Fri Nov 30 13:53:15 PST 2018  scole@dstar:/home/scole/nbsd/cvs/8_0/obj/sys/arch/i386/compile/GENERIC i386
>Description:
I've got a usb audio device in addition to a builtin audio dev.  The
sound works fine for both, but I can't change settings of the usb audio
device with "/usr/bin/audioctl". The usb audio settings won't change:

 # audioctl -d /dev/audioctl1 -w play.gain=99
 play.gain: -> 127

but the built audio works fine:

 # audioctl -d /dev/audioctl0 -w play.gain=99
 play.gain: -> 99

Here is some dmesg for the builtin:
 hdaudio0 at pci0 dev 27 function 0: HD Audio Controller
 hdaudio0: interrupting at msi0 vec 0
 hdafg0 at hdaudio0: vendor 10ec product 0885
 hdafg0: DAC00 8ch: Speaker [Jack]
 hdafg0: DAC01 2ch: HP Out [Jack]
 hdafg0: DIG02 2ch: SPDIF Out [Jack]
 hdafg0: ADC03 2ch: Line In [Jack], Mic In [Jack]
 hdafg0: ADC04 2ch: Mic In [Jack]
 hdafg0: DIG-In05 2ch: SPDIF In [Jack]
 hdafg0: 8ch/2ch 44100Hz 48000Hz 96000Hz 192000Hz PCM16 PCM20 PCM24 AC3
 audio0 at hdafg0: full duplex, playback, capture, mmap, independent

and the usb audio, which is actually plugged into a usb hub:
 uaudio0 at uhub8 port 3 configuration 1 interface 0
 uaudio0: C-Media Electronics Inc. (0xd8c) USB Audio Device (0x14), rev 1.10/1.00, addr 5
 uaudio0: audio rev 1.00
 audio1 at uaudio0: full duplex, playback, capture, mmap, independent
 uaudio0: Virtual format configured - Format SLINEAR, precision 16, channels 2, frequency 48000
 uaudio0: Latency: 180 milliseconds
 uhidev3 at uhub8 port 3 configuration 1 interface 3
 uhidev3: C-Media Electronics Inc. (0xd8c) USB Audio Device (0x14), rev 1.10/1.00, addr 5, iclass 3/0
 uhid3 at uhidev3: input=4, output=4, feature=0

Here is a dump of both devices:
# audioctl -d /dev/audioctl0 -a
name=Realtek Semic
version=ALC885
config=01h
encodings=slinear_le:16,slinear_be:16*,ulinear_le:16*,ulinear_be:16*,mulaw:8*,alaw:8*
properties=full_duplex,mmap,independent
full_duplex=0
fullduplex=0
blocksize=8192
hiwat=0
lowat=0
monitor_gain=0
mode=
play.rate=48000
play.channels=2
play.precision=16
play.encoding=slinear_le
play.gain=99
play.balance=32
play.port=0x0
play.avail_ports=0x0
play.seek=0
play.samples=4294950912
play.eof=0
play.pause=0
play.error=1
play.waiting=0
play.open=0
play.active=0
play.buffer_size=0
record.rate=48000
record.channels=2
record.precision=16
record.encoding=slinear_le
record.gain=0
record.balance=32
record.port=0x0
record.avail_ports=0x0
record.seek=0
record.samples=0
record.eof=0
record.pause=0
record.error=0
record.waiting=0
record.open=0
record.active=0
record.buffer_size=0
record.errors=0

# audioctl -d /dev/audioctl1 -a
name=USB audio
version=
config=usb:00000011
encodings=slinear_le:16,slinear_be:16*,ulinear_le:16*,ulinear_be:16*,mulaw:8*,alaw:8*
properties=full_duplex,mmap,independent
full_duplex=0
fullduplex=0
blocksize=16384
hiwat=0
lowat=0
monitor_gain=0
mode=
play.rate=48000
play.channels=2
play.precision=16
play.encoding=slinear_le
play.gain=127
play.balance=32
play.port=0x0
play.avail_ports=0x0
play.seek=0
play.samples=0
play.eof=0
play.pause=0
play.error=0
play.waiting=0
play.open=0
play.active=0
play.buffer_size=0
record.rate=48000
record.channels=2
record.precision=16
record.encoding=slinear_le
record.gain=127
record.balance=32
record.port=0x0
record.avail_ports=0x0
record.seek=0
record.samples=0
record.eof=0
record.pause=0
record.error=0
record.waiting=0
record.open=0
record.active=0
record.buffer_size=0
record.errors=0

Overall though, I'm pretty excited with the audio functionality of the
8.0 release.  In-kernel mixing/firefox and my usb audio device work
great otherwise.

>How-To-Repeat:
try to adjust audio settings with audioctl for a usb audio device
>Fix:



Home | Main Index | Thread Index | Old Index