diff options
author | Clemens Ladisch <clemens@ladisch.de> | 2013-06-15 11:21:09 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-06-27 10:34:31 -0700 |
commit | 68af5a0e5cdb5e5c9ae53af4eb6e5ab8dbdd9cb4 (patch) | |
tree | dc693f02d878434cf783a72875f518c5a4a56293 /fs/isofs/dir.c | |
parent | 937d4f9ee2fe18a6ab012a343fc3b620756b954e (diff) | |
download | kernel_samsung_espresso10-68af5a0e5cdb5e5c9ae53af4eb6e5ab8dbdd9cb4.zip kernel_samsung_espresso10-68af5a0e5cdb5e5c9ae53af4eb6e5ab8dbdd9cb4.tar.gz kernel_samsung_espresso10-68af5a0e5cdb5e5c9ae53af4eb6e5ab8dbdd9cb4.tar.bz2 |
ALSA: usb-audio: work around Android accessory firmware bug
commit 342cda29343a6272c630f94ed56810a76740251b upstream.
When the Android firmware enables the audio interfaces in accessory
mode, it always declares in the control interface's baInterfaceNr array
that interfaces 0 and 1 belong to the audio function. However, the
accessory interface itself, if also enabled, already is at index 0 and
shifts the actual audio interface numbers to 1 and 2, which prevents the
PCM streaming interface from being seen by the host driver.
To get the PCM interface interface to work, detect when the descriptors
point to the (for this driver useless) accessory interface, and redirect
to the correct one.
Reported-by: Jeremy Rosen <jeremy.rosen@openwide.fr>
Tested-by: Jeremy Rosen <jeremy.rosen@openwide.fr>
Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'fs/isofs/dir.c')
0 files changed, 0 insertions, 0 deletions