]> asedeno.scripts.mit.edu Git - linux.git/commit
ALSA: usb-audio: update clock valid control
authorAndrew Chant <achant@google.com>
Sat, 24 Mar 2018 02:25:24 +0000 (19:25 -0700)
committerTakashi Iwai <tiwai@suse.de>
Sat, 24 Mar 2018 08:50:34 +0000 (09:50 +0100)
commit568fa7e087ef98bc85b5aa31ea7c9252c1305c1f
tree2c26fc2be5cdaff4aee3faf7b3f0565c1298acff
parent5a222e8494524d04cc8de63726644759e5b132f7
ALSA: usb-audio: update clock valid control

Make the "clock valid" control a global control instead of a mixer
so that it doesn't appear in mixer applications.

Additionally, remove the check for writeability prohibited by spec, and
Use common code to read the control value.

Tested with a UAC2 Audio device that presents a clock validity
control.  The control still shows up in /proc usbmixer but not
in alsamixer.

Signed-off-by: Andrew Chant <achant@google.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/usb/mixer.c