Searched refs:c_srates (Results 1 – 7 of 7) sorted by relevance
/openbmc/linux/drivers/usb/gadget/legacy/ |
H A D | audio.c | 51 static int c_srates[UAC_MAX_RATES] = {UAC2_DEF_CSRATE}; variable 53 module_param_array_named(c_srate, c_srates, uint, &c_srates_cnt, 0444); 93 static int c_srates[UAC_MAX_RATES] = {UAC1_DEF_CSRATE}; variable 95 module_param_array_named(c_srate, c_srates, uint, &c_srates_cnt, 0444); 294 uac2_opts->c_srates[i] = c_srates[i]; in audio_bind() 311 uac1_opts->c_srates[i] = c_srates[i]; in audio_bind()
|
/openbmc/linux/drivers/usb/gadget/function/ |
H A D | u_uac1.h | 34 int c_srates[UAC_MAX_RATES]; member
|
H A D | u_uac2.h | 45 int c_srates[UAC_MAX_RATES]; member
|
H A D | u_audio.h | 50 int c_srates[UAC_MAX_RATES]; /* available rates in Hz (0 terminated list) */ member
|
H A D | f_uac1.c | 1144 } else if (!opts->c_srates[0]) { in f_audio_validate_opts() 1282 if (audio_opts->c_srates[i] == 0) in f_audio_bind() 1285 &audio_opts->c_srates[i], 3); in f_audio_bind() 1299 uac1->c_srate = audio_opts->c_srates[0]; in f_audio_bind() 1378 memcpy(audio->params.c_srates, audio_opts->c_srates, in f_audio_bind() 1379 sizeof(audio->params.c_srates)); in f_audio_bind() 1668 opts->c_srates[0] = UAC1_DEF_CSRATE; in f_audio_alloc_inst()
|
H A D | f_uac2.c | 696 srate = get_max_srate(uac2_opts->c_srates); in get_max_bw_for_bint() 1002 else if (!opts->c_srates[0]) in afunc_validate_opts() 1313 memcpy(agdev->params.c_srates, uac2_opts->c_srates, in afunc_bind() 1314 sizeof(agdev->params.c_srates)); in afunc_bind() 1614 srates = opts->c_srates; in in_rq_range() 2164 opts->c_srates[0] = UAC2_DEF_CSRATE; in afunc_alloc_inst()
|
H A D | u_audio.c | 519 if (params->c_srates[i] == srate) { in u_audio_set_capture_srate() 525 if (params->c_srates[i] == 0) in u_audio_set_capture_srate() 1118 srates = params->c_srates; in u_audio_rate_info() 1210 prm->srate = params->c_srates[0]; in g_audio_setup()
|