Skip to content

Commit

Permalink
[ALSA] usb-audio - bind to control interface instead of usb_device
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Clemens Ladisch authored and Jaroslav Kysela committed May 29, 2005
1 parent 462c417 commit 1dcd3ec
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions sound/usb/usbaudio.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit 1dcd3ec

Please sign in to comment.