Searched refs:p_srates (Results 1 – 7 of 7) sorted by relevance
/linux/drivers/usb/gadget/legacy/ |
H A D | audio.c | 29 static int p_srates[UAC_MAX_RATES] = {UAC2_DEF_PSRATE}; variable 31 module_param_array_named(p_srate, p_srates, uint, &p_srates_cnt, 0444); 77 static int p_srates[UAC_MAX_RATES] = {UAC1_DEF_PSRATE}; variable 79 module_param_array_named(p_srate, p_srates, uint, &p_srates_cnt, 0444); 287 uac2_opts->p_srates[i] = p_srates[i]; in audio_bind() 305 uac1_opts->p_srates[i] = p_srates[i]; in audio_bind()
|
/linux/drivers/usb/gadget/function/ |
H A D | u_uac1.h | 37 int p_srates[UAC_MAX_RATES]; member
|
H A D | u_uac2.h | 46 int p_srates[UAC_MAX_RATES]; member
|
H A D | u_audio.h | 44 int p_srates[UAC_MAX_RATES]; /* available rates in Hz (0 terminated list) */ member
|
H A D | f_uac1.c | 1198 } else if (!opts->p_srates[0]) { in f_audio_validate_opts() 1362 if (audio_opts->p_srates[i] == 0) in f_audio_bind() 1365 &audio_opts->p_srates[i], 3); in f_audio_bind() 1369 uac1->p_srate = audio_opts->p_srates[0]; in f_audio_bind() 1464 memcpy(audio->params.p_srates, audio_opts->p_srates, in f_audio_bind() 1465 sizeof(audio->params.p_srates)); in f_audio_bind() 1765 opts->p_srates[0] = UAC1_DEF_PSRATE; in f_audio_alloc_inst()
|
H A D | f_uac2.c | 679 srate = get_max_srate(uac2_opts->p_srates); in get_max_bw_for_bint() 990 else if (!opts->p_srates[0]) in afunc_validate_opts() 1310 memcpy(agdev->params.p_srates, uac2_opts->p_srates, in afunc_bind() 1311 sizeof(agdev->params.p_srates)); in afunc_bind() 1621 srates = opts->p_srates; in in_rq_range() 2202 opts->p_srates[0] = UAC2_DEF_PSRATE; in afunc_alloc_inst()
|
H A D | u_audio.c | 558 if (params->p_srates[i] == srate) { in u_audio_set_playback_srate() 564 if (params->p_srates[i] == 0) in u_audio_set_playback_srate() 1120 srates = params->p_srates; in u_audio_rate_info() 1235 prm->srate = params->p_srates[0]; in g_audio_setup()
|