]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
ALSA: usb-audio: Assume first control interface is for audio
authorDaniel Mack <daniel@caiaq.de>
Thu, 2 Sep 2010 09:13:15 +0000 (17:13 +0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 20 Sep 2010 20:36:28 +0000 (13:36 -0700)
commit7a2a632d33a13111fdc7cb141958db8894653279
tree7a4d87898a3049bf8f4a896cfa0bf603d5dc69d7
parente46eb17f9d1ed722daae4297623e267c3fc17547
ALSA: usb-audio: Assume first control interface is for audio

commit 7b6717e144de6592e614fd7fc3b914b6bf686a9d upstream.

For devices with more than one control interface, let's assume the first
one contains the audio controls. Unfortunately, there is no field in any
of the descriptors to tell us whether a control interface is for audio
or MIDI controls, so a better check is not easy to implement.

On a composite device with audio and MIDI functions, for example, the
code currently overwrites chip->ctrl_intf, causing operations on the
control interface to fail if they are issued after the device probe.

Signed-off-by: Daniel Mack <daniel@caiaq.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
sound/usb/card.c