aboutsummaryrefslogtreecommitdiffstats
path: root/sound/usb/usbaudio.c
diff options
context:
space:
mode:
authorClemens Ladisch <clemens@ladisch.de>2005-05-10 08:51:40 -0400
committerJaroslav Kysela <perex@suse.cz>2005-05-29 04:06:43 -0400
commit1dcd3ec4728f9568ee204ceb46b0851be324a7f9 (patch)
tree9c89dfeb83d373627b5b47b0fbf2defd0f0ed4df /sound/usb/usbaudio.c
parent462c4173509c5d1ebdc6cfd58f7236c2ac467e30 (diff)
[ALSA] usb-audio - bind to control interface instead of usb_device
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>
Diffstat (limited to 'sound/usb/usbaudio.c')
-rw-r--r--sound/usb/usbaudio.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sound/usb/usbaudio.c b/sound/usb/usbaudio.c
index 34d5f58985b6..c360ab9783d5 100644
--- 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,
3129 3129
3130 snd_usb_audio_create_proc(chip); 3130 snd_usb_audio_create_proc(chip);
3131 3131
3132 snd_card_set_dev(card, &dev->dev);
3133
3134 *rchip = chip; 3132 *rchip = chip;
3135 return 0; 3133 return 0;
3136} 3134}
@@ -3212,6 +3210,7 @@ static void *snd_usb_audio_probe(struct usb_device *dev,
3212 if (snd_usb_audio_create(dev, i, quirk, &chip) < 0) { 3210 if (snd_usb_audio_create(dev, i, quirk, &chip) < 0) {
3213 goto __error; 3211 goto __error;
3214 } 3212 }
3213 snd_card_set_dev(chip->card, &intf->dev);
3215 break; 3214 break;
3216 } 3215 }
3217 if (! chip) { 3216 if (! chip) {