Skip to contentSkip to conversation

Revert "ALSA: usb-audio: Drop superfluous interface setup at parsing"

PATCH New Takashi Iwai 1 participant 1 message Jan 4, 2023 Sound

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Revert "ALSA: usb-audio: Drop superfluous interface setup at parsing"

This reverts commit ac5e2fb425e1121ceef2b9d1b3ffccc195d55707.

The commit caused a regression on Behringer UMC404HD (and likely others). As the change was meant only as a minor optimization, it's better to revert it to address the regression.

---
 sound/usb/stream.c | 6 ++++++
 1 file changed, 6 insertions(+)
sound/usb/stream.c +6 -0
index f75601ca2d52..f10f4e6d3fb8 100644
@@ -1222,6 +1222,12 @@ 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;
 }
Signature · 1 line
2.35.3