Commit 1dcd3ec4 authored by Clemens Ladisch's avatar Clemens Ladisch Committed by Jaroslav Kysela

[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: default avatarClemens Ladisch <clemens@ladisch.de>
parent 462c4173
...@@ -3129,8 +3129,6 @@ static int snd_usb_audio_create(struct usb_device *dev, int idx, ...@@ -3129,8 +3129,6 @@ static int snd_usb_audio_create(struct usb_device *dev, int idx,
snd_usb_audio_create_proc(chip); snd_usb_audio_create_proc(chip);
snd_card_set_dev(card, &dev->dev);
*rchip = chip; *rchip = chip;
return 0; return 0;
} }
...@@ -3212,6 +3210,7 @@ static void *snd_usb_audio_probe(struct usb_device *dev, ...@@ -3212,6 +3210,7 @@ static void *snd_usb_audio_probe(struct usb_device *dev,
if (snd_usb_audio_create(dev, i, quirk, &chip) < 0) { if (snd_usb_audio_create(dev, i, quirk, &chip) < 0) {
goto __error; goto __error;
} }
snd_card_set_dev(chip->card, &intf->dev);
break; break;
} }
if (! chip) { if (! chip) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment