aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/sound/usb/quirks.c
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2020-11-23 09:53:26 +0100
committerTakashi Iwai <tiwai@suse.de>2020-11-23 15:14:27 +0100
commit73037c8dc1c8cf994a38fedba4a5af7e6da5e4f1 (patch)
tree8b8666cf31004ba0df6c7a08cecab12904fed983 /sound/usb/quirks.c
parentALSA: usb-audio: Simplify snd_usb_init_sample_rate() arguments (diff)
downloadwireguard-linux-73037c8dc1c8cf994a38fedba4a5af7e6da5e4f1.tar.xz
wireguard-linux-73037c8dc1c8cf994a38fedba4a5af7e6da5e4f1.zip
ALSA: usb-audio: Simplify snd_usb_init_pitch() arguments
A preliminary change for the later big changes. This is a minor code refactoring to drop the unnecessary arguments that can be retrieved in a different way. Tested-by: Keith Milner <kamilner@superlative.org> Tested-by: Dylan Robinson <dylan_robinson@motu.com> Link: https://lore.kernel.org/r/20201123085347.19667-21-tiwai@suse.de Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/usb/quirks.c')
-rw-r--r--sound/usb/quirks.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/usb/quirks.c b/sound/usb/quirks.c
index 018c6f241ffb..013ab93fb640 100644
--- a/sound/usb/quirks.c
+++ b/sound/usb/quirks.c
@@ -177,7 +177,7 @@ static int create_fixed_stream_quirk(struct snd_usb_audio *chip,
if (fp->maxpacksize == 0)
fp->maxpacksize = le16_to_cpu(get_endpoint(alts, 0)->wMaxPacketSize);
usb_set_interface(chip->dev, fp->iface, 0);
- snd_usb_init_pitch(chip, fp->iface, alts, fp);
+ snd_usb_init_pitch(chip, fp);
snd_usb_init_sample_rate(chip, fp, fp->rate_max);
return 0;