diff options
author | Takashi Iwai <tiwai@suse.de> | 2020-11-23 11:53:26 +0300 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2020-11-23 17:14:27 +0300 |
commit | 73037c8dc1c8cf994a38fedba4a5af7e6da5e4f1 (patch) | |
tree | 8b8666cf31004ba0df6c7a08cecab12904fed983 /sound/usb/stream.c | |
parent | 953a446b50fd6c68f0a40f0cd79a2a903faf3243 (diff) | |
download | linux-73037c8dc1c8cf994a38fedba4a5af7e6da5e4f1.tar.xz |
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/stream.c')
-rw-r--r-- | sound/usb/stream.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/usb/stream.c b/sound/usb/stream.c index 23e881985123..7f58c7625cd4 100644 --- a/sound/usb/stream.c +++ b/sound/usb/stream.c @@ -1224,7 +1224,7 @@ static int __snd_usb_parse_audio_interface(struct snd_usb_audio *chip, /* try to set the interface... */ usb_set_interface(chip->dev, iface_no, 0); - snd_usb_init_pitch(chip, iface_no, alts, fp); + snd_usb_init_pitch(chip, fp); snd_usb_init_sample_rate(chip, fp, fp->rate_max); usb_set_interface(chip->dev, iface_no, altno); } |