Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d91394bf authored by Sriharsha Allenki's avatar Sriharsha Allenki Committed by Gerrit - the friendly Code Review server
Browse files

usb: gadget: f_uac2: Support for mic only use case



Add support for dynamic switch between mic only and
mic, speaker use case for the existing f_uac2 driver.
Mic will be enabled always, user can choose to
disable/enable the speaker usecase using the module
parameter enable_capture.
To enable speaker
echo Y > /sys/module/usb_f_uac2/parameters/enable_capture
setprop sys.usb.config diag,adb,uac2
To disable speaker
echo N > /sys/module/usb_f_uac2/parameters/enable_capture
setprop sys.usb.config diag,adb,uac2

Change-Id: Ic58bac474c6854dfb89c0568b887e9fb4fc6d937
Signed-off-by: default avatarSriharsha Allenki <sallenki@codeaurora.org>
parent a650fa2d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment