Home
last modified time | relevance | path

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

/Linux-v5.15/drivers/usb/gadget/legacy/
Daudio.c24 static int p_chmask = UAC2_DEF_PCHMASK; variable
25 module_param(p_chmask, uint, S_IRUGO);
26 MODULE_PARM_DESC(p_chmask, "Playback Channel Mask");
57 static int p_chmask = UAC1_DEF_PCHMASK; variable
58 module_param(p_chmask, uint, S_IRUGO);
59 MODULE_PARM_DESC(p_chmask, "Playback Channel Mask");
265 uac2_opts->p_chmask = p_chmask; in audio_bind()
275 uac1_opts->p_chmask = p_chmask; in audio_bind()
/Linux-v5.15/drivers/usb/gadget/function/
Du_audio.c364 int p_chmask, c_chmask; in uac_pcm_open() local
372 p_chmask = params->p_chmask; in uac_pcm_open()
381 runtime->hw.channels_min = num_channels(p_chmask); in uac_pcm_open()
584 num_channels(params->p_chmask); in u_audio_start_playback()
952 int p_chmask, c_chmask; in g_audio_setup() local
965 p_chmask = params->p_chmask; in g_audio_setup()
992 if (p_chmask) { in g_audio_setup()
1029 p_chmask ? 1 : 0, c_chmask ? 1 : 0, &pcm); in g_audio_setup()
1045 || (p_chmask && params->p_fu.id) in g_audio_setup()
Df_uac1.c28 #define EPIN_EN(_opts) ((_opts)->p_chmask != 0)
1062 if (!opts->p_chmask && !opts->c_chmask) { in f_audio_validate_opts()
1065 } else if (opts->p_chmask & ~UAC1_CHANNEL_MASK) { in f_audio_validate_opts()
1148 in_feature_unit_desc = build_fu_desc(audio_opts->p_chmask); in f_audio_bind()
1188 io_in_it_desc.bNrChannels = num_channels(audio_opts->p_chmask); in f_audio_bind()
1189 io_in_it_desc.wChannelConfig = cpu_to_le16(audio_opts->p_chmask); in f_audio_bind()
1190 as_in_type_i_desc.bNrChannels = num_channels(audio_opts->p_chmask); in f_audio_bind()
1311 audio->params.p_chmask = audio_opts->p_chmask; in f_audio_bind()
1419 UAC1_ATTRIBUTE(u32, p_chmask);
1491 opts->p_chmask = UAC1_DEF_PCHMASK; in f_audio_alloc_inst()
Du_uac1.h35 int p_chmask; member
Du_uac2.h38 int p_chmask; member
Df_uac2.c52 #define EPIN_EN(_opts) ((_opts)->p_chmask != 0)
668 chmask = uac2_opts->p_chmask; in set_ep_max_packet_size()
898 if (!opts->p_chmask && !opts->c_chmask) { in afunc_validate_opts()
901 } else if (opts->p_chmask & ~UAC2_CHANNEL_MASK) { in afunc_validate_opts()
972 in_feature_unit_desc = build_fu_desc(uac2_opts->p_chmask); in afunc_bind()
1007 io_in_it_desc.bNrChannels = num_channels(uac2_opts->p_chmask); in afunc_bind()
1008 io_in_it_desc.bmChannelConfig = cpu_to_le32(uac2_opts->p_chmask); in afunc_bind()
1011 as_in_hdr_desc.bNrChannels = num_channels(uac2_opts->p_chmask); in afunc_bind()
1012 as_in_hdr_desc.bmChannelConfig = cpu_to_le32(uac2_opts->p_chmask); in afunc_bind()
1209 agdev->params.p_chmask = uac2_opts->p_chmask; in afunc_bind()
[all …]
Du_audio.h36 int p_chmask; /* channel mask */ member
/Linux-v5.15/sound/usb/
Dmixer.c2914 int p_chmask; /* playback channels mask */ member
2928 .p_chmask = -1, /* dynamic channels */
2934 .p_chmask = 3,
2940 .p_chmask = -1, /* dynamic channels */
2957 .p_chmask = -1, /* dynamic channels */
2965 .p_chmask = 3,
2973 .p_chmask = 1,
2980 int c_chmask, int p_chmask) in uac3_badd_func_has_valid_channels() argument
2986 if (f->c_chmask < 0 && f->p_chmask < 0) { in uac3_badd_func_has_valid_channels()
2987 if (!c_chmask && !p_chmask) { in uac3_badd_func_has_valid_channels()
[all …]
/Linux-v5.15/Documentation/ABI/testing/
Dconfigfs-usb-gadget-uac116 p_chmask playback channel mask
Dconfigfs-usb-gadget-uac218 p_chmask playback channel mask
/Linux-v5.15/Documentation/usb/
Dgadget-testing.rst738 p_chmask playback channel mask
926 p_chmask playback channel mask