summaryrefslogtreecommitdiff
path: root/sound/usb/stream.c
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2022-08-31 15:00:21 +0200
committerTakashi Iwai <tiwai@suse.de>2022-09-01 10:23:44 +0200
commitac5e2fb425e1121ceef2b9d1b3ffccc195d55707 (patch)
treed333ecca01811ff73d206e5815223eb77e4b5420 /sound/usb/stream.c
parent999b95a72d90ed7a7073eae594fa35462d71854f (diff)
ALSA: usb-audio: Drop superfluous interface setup at parsing
We reset each interface that is being parsed for each stream, but this is superfluous and even can lead to spurious errors. Since the interface is set up properly at opening the endpoint for each actual stream operation, let's drop the superfluous one. Link: https://lore.kernel.org/r/20220831130021.4762-1-tiwai@suse.de Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/usb/stream.c')
-rw-r--r--sound/usb/stream.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/sound/usb/stream.c b/sound/usb/stream.c
index ceb93d798182..99578e9a8af0 100644
--- a/sound/usb/stream.c
+++ b/sound/usb/stream.c
@@ -1221,12 +1221,6 @@ static int __snd_usb_parse_audio_interface(struct snd_usb_audio *chip,
if (err < 0)
return err;
}
-
- /* try to set the interface... */
- usb_set_interface(chip->dev, iface_no, 0);
- snd_usb_init_pitch(chip, fp);
- snd_usb_init_sample_rate(chip, fp, fp->rate_max);
- usb_set_interface(chip->dev, iface_no, altno);
}
return 0;
}