Skip to content

Commit ad6baae

Browse files
Jorge Sanjuantiwai
authored andcommitted
ALSA: usb-audio: Always create the interrupt pipe for the mixer
An UAC3 BADD device may also include an interrupt status pipe to report changes on the HEADSET ADAPTER terminals. The creation of the status pipe is dependent on the device reporting that it has it. Signed-off-by: Jorge Sanjuan <jorge.sanjuan@codethink.co.uk> Signed-off-by: Takashi Iwai <tiwai@suse.de>
1 parent 3528cd8 commit ad6baae

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

sound/usb/mixer.c

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3338,10 +3338,12 @@ int snd_usb_create_mixer(struct snd_usb_audio *chip, int ctrlif,
33383338
err = snd_usb_mixer_controls(mixer);
33393339
if (err < 0)
33403340
goto _error;
3341-
err = snd_usb_mixer_status_create(mixer);
3342-
if (err < 0)
3343-
goto _error;
33443341
}
3342+
3343+
err = snd_usb_mixer_status_create(mixer);
3344+
if (err < 0)
3345+
goto _error;
3346+
33453347
err = create_keep_iface_ctl(mixer);
33463348
if (err < 0)
33473349
goto _error;

0 commit comments

Comments
 (0)