summaryrefslogtreecommitdiffstats
path: root/sound/usb/clock.c
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2020-11-23 09:53:24 +0100
committerTakashi Iwai <tiwai@suse.de>2020-11-23 15:14:09 +0100
commitd767aba2023c80ff0247b45526358d9a30af8293 (patch)
treee2ccf0bd0031c9e9a5c2ab57fb21e10d73cf7a35 /sound/usb/clock.c
parentALSA: usb-audio: Don't set altsetting before initializing sample rate (diff)
downloadlinux-d767aba2023c80ff0247b45526358d9a30af8293.tar.xz
linux-d767aba2023c80ff0247b45526358d9a30af8293.zip
ALSA: usb-audio: Pass snd_usb_audio object to quirk functions
A preliminary patch for the later big change. Just a minor code refactoring. Tested-by: Keith Milner <kamilner@superlative.org> Tested-by: Dylan Robinson <dylan_robinson@motu.com> Link: https://lore.kernel.org/r/20201123085347.19667-19-tiwai@suse.de Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/usb/clock.c')
-rw-r--r--sound/usb/clock.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/usb/clock.c b/sound/usb/clock.c
index f174230d07d5..3298a654ce96 100644
--- a/sound/usb/clock.c
+++ b/sound/usb/clock.c
@@ -658,9 +658,9 @@ static int set_sample_rate_v2v3(struct snd_usb_audio *chip, int iface,
* interface is active. */
if (rate != prev_rate) {
usb_set_interface(dev, iface, 0);
- snd_usb_set_interface_quirk(dev);
+ snd_usb_set_interface_quirk(chip);
usb_set_interface(dev, iface, fmt->altsetting);
- snd_usb_set_interface_quirk(dev);
+ snd_usb_set_interface_quirk(chip);
}
validation: