mirror of
https://github.com/raspberrypi/linux.git
synced 2026-01-02 07:43:34 +00:00
usb: gadget: f_uac2: Add HS/SS bInterval to configfs
Allow configuring the HS/SS bInterval through configfs, via parameters p_hs_bint/c_hs_bint separately for playback/capture. The default param values are left at the original 4. Suggested-by: John Keeping <john@metanate.com> Signed-off-by: Pavel Hofman <pavel.hofman@ivitera.com> Link: https://lore.kernel.org/r/20220127114331.41367-2-pavel.hofman@ivitera.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
e1f09f409f
commit
4ed941a999
@@ -19,9 +19,11 @@
|
||||
#define UAC2_DEF_PCHMASK 0x3
|
||||
#define UAC2_DEF_PSRATE 48000
|
||||
#define UAC2_DEF_PSSIZE 2
|
||||
#define UAC2_DEF_PHSBINT 4
|
||||
#define UAC2_DEF_CCHMASK 0x3
|
||||
#define UAC2_DEF_CSRATE 64000
|
||||
#define UAC2_DEF_CSSIZE 2
|
||||
#define UAC2_DEF_CHSBINT 4
|
||||
#define UAC2_DEF_CSYNC USB_ENDPOINT_SYNC_ASYNC
|
||||
|
||||
#define UAC2_DEF_MUTE_PRESENT 1
|
||||
@@ -38,10 +40,12 @@ struct f_uac2_opts {
|
||||
int p_chmask;
|
||||
int p_srates[UAC_MAX_RATES];
|
||||
int p_ssize;
|
||||
u8 p_hs_bint;
|
||||
int c_chmask;
|
||||
int c_srates[UAC_MAX_RATES];
|
||||
int c_ssize;
|
||||
int c_sync;
|
||||
u8 c_hs_bint;
|
||||
|
||||
bool p_mute_present;
|
||||
bool p_volume_present;
|
||||
|
||||
Reference in New Issue
Block a user