Revert "ALSA: usb-audio: Fix last interface check for registration"

This reverts commit 28787ff9fb which is
commit 39efc9c8a973ddff5918191525d1679d0fb368ea upstream.

It breaks the abi and is not needed for Android devices as udev is not
used with them.  If it is needed to be added later on, it can come back
in an abi-stable way.

Bug: 161946584
Change-Id: Iccf323eca97ca9581b64b2703e3652f399c88479
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
This commit is contained in:
Greg Kroah-Hartman
2022-11-21 15:51:04 +00:00
parent 3ebc180a96
commit 8f38fb79b5

View File

@@ -889,7 +889,7 @@ static int usb_audio_probe(struct usb_interface *intf,
* one given via option
*/
if (check_delayed_register_option(chip) == ifnum ||
usb_interface_claimed(usb_ifnum_to_if(dev, chip->last_iface))) {
chip->last_iface == ifnum) {
err = snd_card_register(chip->card);
if (err < 0)
goto __error;