Skip to content

Commit 76df529

Browse files
kazukitiwai
authored andcommitted
ALSA: usb-audio: Fix quirks code is not called
snd_usb_{set_interface,ctl_msg}_quirk checks chip->usb_id to need calling a quirks code. But existed code path that not calling dev_set_drvdata in usb_audio_probe. Fixes: 79289e2 ("ALSA: usb-audio: Refer to chip->usb_id for quirks and MIDI creation") Signed-off-by: Kazuki Oikawa <[email protected]> Cc: <[email protected]> # v4.6+ Reviewed-by: Takashi Sakamoto <[email protected]> Tested-by: Takashi Sakamoto <[email protected]> Signed-off-by: Takashi Iwai <[email protected]>
1 parent d716fb0 commit 76df529

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sound/usb/card.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -556,7 +556,6 @@ static int usb_audio_probe(struct usb_interface *intf,
556556
goto __error;
557557
}
558558
chip = usb_chip[i];
559-
dev_set_drvdata(&dev->dev, chip);
560559
atomic_inc(&chip->active); /* avoid autopm */
561560
break;
562561
}
@@ -582,6 +581,7 @@ static int usb_audio_probe(struct usb_interface *intf,
582581
goto __error;
583582
}
584583
}
584+
dev_set_drvdata(&dev->dev, chip);
585585

586586
/*
587587
* For devices with more than one control interface, we assume the

0 commit comments

Comments
 (0)