Home
last modified time | relevance | path

Searched refs:p_chmask (Results 1 – 12 of 12) sorted by relevance

/openbmc/linux/drivers/usb/gadget/legacy/
H A Daudio.c24 static int p_chmask = UAC2_DEF_PCHMASK; variable
25 module_param(p_chmask, uint, 0444);
26 MODULE_PARM_DESC(p_chmask, "Playback Channel Mask");
72 static int p_chmask = UAC1_DEF_PCHMASK; variable
73 module_param(p_chmask, uint, 0444);
74 MODULE_PARM_DESC(p_chmask, "Playback Channel Mask");
284 uac2_opts->p_chmask = p_chmask; in audio_bind()
302 uac1_opts->p_chmask = p_chmask; in audio_bind()
/openbmc/linux/drivers/usb/gadget/function/
H A Du_audio.c393 int p_chmask, c_chmask; in uac_pcm_open() local
399 p_chmask = params->p_chmask; in uac_pcm_open()
407 runtime->hw.channels_min = num_channels(p_chmask); in uac_pcm_open()
734 num_channels(params->p_chmask); in u_audio_start_playback()
1188 int p_chmask, c_chmask; in g_audio_setup() local
1201 p_chmask = params->p_chmask; in g_audio_setup()
1229 if (p_chmask) { in g_audio_setup()
1267 p_chmask ? 1 : 0, c_chmask ? 1 : 0, &pcm); in g_audio_setup()
1283 || (p_chmask && params->p_fu.id) in g_audio_setup()
1303 if (p_chmask) { in g_audio_setup()
H A Du_uac1.h36 int p_chmask; member
H A Du_uac2.h40 int p_chmask; member
H A Df_uac1.c29 #define EPIN_EN(_opts) ((_opts)->p_chmask != 0)
1126 if (!opts->p_chmask && !opts->c_chmask) { in f_audio_validate_opts()
1129 } else if (opts->p_chmask & ~UAC1_CHANNEL_MASK) { in f_audio_validate_opts()
1213 in_feature_unit_desc = build_fu_desc(audio_opts->p_chmask); in f_audio_bind()
1253 io_in_it_desc.bNrChannels = num_channels(audio_opts->p_chmask); in f_audio_bind()
1254 io_in_it_desc.wChannelConfig = cpu_to_le16(audio_opts->p_chmask); in f_audio_bind()
1255 as_in_type_i_desc.bNrChannels = num_channels(audio_opts->p_chmask); in f_audio_bind()
1390 audio->params.p_chmask = audio_opts->p_chmask; in f_audio_bind()
1595 UAC1_ATTRIBUTE(u32, p_chmask);
1670 opts->p_chmask = UAC1_DEF_PCHMASK; in f_audio_alloc_inst()
H A Df_uac2.c53 #define EPIN_EN(_opts) ((_opts)->p_chmask != 0)
691 chmask = uac2_opts->p_chmask; in get_max_bw_for_bint()
990 if (!opts->p_chmask && !opts->c_chmask) in afunc_validate_opts()
992 else if (opts->p_chmask & ~UAC2_CHANNEL_MASK) in afunc_validate_opts()
1060 in_feature_unit_desc = build_fu_desc(uac2_opts->p_chmask); in afunc_bind()
1095 io_in_it_desc.bNrChannels = num_channels(uac2_opts->p_chmask); in afunc_bind()
1096 io_in_it_desc.bmChannelConfig = cpu_to_le32(uac2_opts->p_chmask); in afunc_bind()
1099 as_in_hdr_desc.bNrChannels = num_channels(uac2_opts->p_chmask); in afunc_bind()
1100 as_in_hdr_desc.bmChannelConfig = cpu_to_le32(uac2_opts->p_chmask); in afunc_bind()
1301 agdev->params.p_chmask = uac2_opts->p_chmask; in afunc_bind()
[all …]
H A Du_audio.h43 int p_chmask; /* channel mask */ member
/openbmc/linux/sound/usb/
H A Dmixer.c2960 int p_chmask; /* playback channels mask */ member
2974 .p_chmask = -1, /* dynamic channels */
2980 .p_chmask = 3,
2986 .p_chmask = -1, /* dynamic channels */
3003 .p_chmask = -1, /* dynamic channels */
3011 .p_chmask = 3,
3019 .p_chmask = 1,
3026 int c_chmask, int p_chmask) in uac3_badd_func_has_valid_channels() argument
3032 if (f->c_chmask < 0 && f->p_chmask < 0) { in uac3_badd_func_has_valid_channels()
3033 if (!c_chmask && !p_chmask) { in uac3_badd_func_has_valid_channels()
[all …]
/openbmc/linux/Documentation/ABI/testing/
H A Dconfigfs-usb-gadget-uac119 p_chmask playback channel mask
H A Dconfigfs-usb-gadget-uac223 p_chmask playback channel mask
/openbmc/openbmc/meta-openembedded/meta-oe/recipes-support/libusbgx/libusbgx/
H A D0001-fix-stack-buffer-overflow-in-usbg_f_foo_attr_val-pro.patch444 @@ -266,8 +263,8 @@ static inline int usbg_f_uac2_get_p_chmask(usbg_f_uac2 *af, int *p_chmask)
446 static inline int usbg_f_uac2_set_p_chmask(usbg_f_uac2 *af, int p_chmask)
449 - USBG_F_UAC2_INT_TO_ATTR_VAL(p_chmask));
450 + union usbg_f_uac2_attr_val val = {.p_chmask = p_chmask};
/openbmc/linux/Documentation/usb/
H A Dgadget-testing.rst746 p_chmask playback channel mask
937 p_chmask playback channel mask