projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
462c417
)
[ALSA] usb-audio - bind to control interface instead of usb_device
author
Clemens Ladisch
<clemens@ladisch.de>
Tue, 10 May 2005 12:51:40 +0000
(14:51 +0200)
committer
Jaroslav Kysela
<perex@suse.cz>
Sun, 29 May 2005 08:06:43 +0000
(10:06 +0200)
USB generic driver
Bind the device files to the (first) audio control interface instead of
the entire USB device.
Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
sound/usb/usbaudio.c
patch
|
blob
|
blame
|
history
diff --git
a/sound/usb/usbaudio.c
b/sound/usb/usbaudio.c
index 34d5f58985b63457a90bfb593767c254f25eff56..c360ab9783d50b731986295ba6c0fc259015732b 100644
(file)
--- a/
sound/usb/usbaudio.c
+++ b/
sound/usb/usbaudio.c
@@
-3129,8
+3129,6
@@
static int snd_usb_audio_create(struct usb_device *dev, int idx,
snd_usb_audio_create_proc(chip);
- snd_card_set_dev(card, &dev->dev);
-
*rchip = chip;
return 0;
}
@@
-3212,6
+3210,7
@@
static void *snd_usb_audio_probe(struct usb_device *dev,
if (snd_usb_audio_create(dev, i, quirk, &chip) < 0) {
goto __error;
}
+ snd_card_set_dev(chip->card, &intf->dev);
break;
}
if (! chip) {