Searched refs:p_srates (Results 1 – 7 of 7) sorted by relevance
/drivers/usb/gadget/legacy/ |
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()
|
/drivers/usb/gadget/function/ |
D | u_uac1.h | 37 int p_srates[UAC_MAX_RATES]; member
|
D | u_uac2.h | 41 int p_srates[UAC_MAX_RATES]; member
|
D | f_uac1.c | 1141 } else if (!opts->p_srates[0]) { in f_audio_validate_opts() 1291 if (audio_opts->p_srates[i] == 0) in f_audio_bind() 1294 &audio_opts->p_srates[i], 3); in f_audio_bind() 1298 uac1->p_srate = audio_opts->p_srates[0]; in f_audio_bind() 1391 memcpy(audio->params.p_srates, audio_opts->p_srates, in f_audio_bind() 1392 sizeof(audio->params.p_srates)); in f_audio_bind() 1671 opts->p_srates[0] = UAC1_DEF_PSRATE; in f_audio_alloc_inst()
|
D | u_audio.h | 44 int p_srates[UAC_MAX_RATES]; /* available rates in Hz (0 terminated list) */ member
|
D | f_uac2.c | 692 srate = get_max_srate(uac2_opts->p_srates); in get_max_bw_for_bint() 1000 else if (!opts->p_srates[0]) in afunc_validate_opts() 1301 memcpy(agdev->params.p_srates, uac2_opts->p_srates, in afunc_bind() 1302 sizeof(agdev->params.p_srates)); in afunc_bind() 1612 srates = opts->p_srates; in in_rq_range() 2157 opts->p_srates[0] = UAC2_DEF_PSRATE; in afunc_alloc_inst()
|
D | u_audio.c | 559 if (params->p_srates[i] == srate) { in u_audio_set_playback_srate() 565 if (params->p_srates[i] == 0) in u_audio_set_playback_srate() 1095 srates = params->p_srates; in u_audio_rate_info() 1210 prm->srate = params->p_srates[0]; in g_audio_setup()
|