patch "usb: gadget: f_uac1: stop playback on function disable" added to usb-linus
Subsystems (2)
This is a note to let you know that I've just added the patch titled
usb: gadget: f_uac1: stop playback on function disable
to my usb git tree which can be found at
git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git
in the usb-linus branch.
The patch will show up in the next release of the linux-next tree (usually sometime within the next 24 hours during the week.)
The patch will hopefully also be merged in Linus's tree for the next -rc kernel release.
If you have any questions about this process, please let me know.
From 466b4bed6798e912264325bb4d90dfcd3a8a9128 Mon Sep 17 00:00:00 2001
From: Ruslan Bilovol <[email protected]>
Date: Mon, 1 Mar 2021 13:49:32 +0200
Subject: usb: gadget: f_uac1: stop playback on function disable
There is missing playback stop/cleanup in case of gadget's ->disable callback that happens on events like USB host resetting or gadget disconnection
--- drivers/usb/gadget/function/f_uac1.c | 1 + 1 file changed, 1 insertion(+)
drivers/usb/gadget/function/f_uac1.c +1 -0
@@ -499,6 +499,7 @@ static void f_audio_disable(struct usb_function *f) uac1->as_out_alt =0 ; uac1->as_in_alt =0 ; +u_audio_stop_playback (&uac1->g_audio);u_audio_stop_capture (&uac1->g_audio); }
Signature · 1 line
2.30.1