Lines Matching refs:oparams
3979 struct snd_pcm_hw_params_old *oparams) in snd_pcm_hw_convert_from_old_params() argument
3984 params->flags = oparams->flags; in snd_pcm_hw_convert_from_old_params()
3985 for (i = 0; i < ARRAY_SIZE(oparams->masks); i++) in snd_pcm_hw_convert_from_old_params()
3986 params->masks[i].bits[0] = oparams->masks[i]; in snd_pcm_hw_convert_from_old_params()
3987 memcpy(params->intervals, oparams->intervals, sizeof(oparams->intervals)); in snd_pcm_hw_convert_from_old_params()
3988 params->rmask = __OLD_TO_NEW_MASK(oparams->rmask); in snd_pcm_hw_convert_from_old_params()
3989 params->cmask = __OLD_TO_NEW_MASK(oparams->cmask); in snd_pcm_hw_convert_from_old_params()
3990 params->info = oparams->info; in snd_pcm_hw_convert_from_old_params()
3991 params->msbits = oparams->msbits; in snd_pcm_hw_convert_from_old_params()
3992 params->rate_num = oparams->rate_num; in snd_pcm_hw_convert_from_old_params()
3993 params->rate_den = oparams->rate_den; in snd_pcm_hw_convert_from_old_params()
3994 params->fifo_size = oparams->fifo_size; in snd_pcm_hw_convert_from_old_params()
3997 static void snd_pcm_hw_convert_to_old_params(struct snd_pcm_hw_params_old *oparams, in snd_pcm_hw_convert_to_old_params() argument
4002 memset(oparams, 0, sizeof(*oparams)); in snd_pcm_hw_convert_to_old_params()
4003 oparams->flags = params->flags; in snd_pcm_hw_convert_to_old_params()
4004 for (i = 0; i < ARRAY_SIZE(oparams->masks); i++) in snd_pcm_hw_convert_to_old_params()
4005 oparams->masks[i] = params->masks[i].bits[0]; in snd_pcm_hw_convert_to_old_params()
4006 memcpy(oparams->intervals, params->intervals, sizeof(oparams->intervals)); in snd_pcm_hw_convert_to_old_params()
4007 oparams->rmask = __NEW_TO_OLD_MASK(params->rmask); in snd_pcm_hw_convert_to_old_params()
4008 oparams->cmask = __NEW_TO_OLD_MASK(params->cmask); in snd_pcm_hw_convert_to_old_params()
4009 oparams->info = params->info; in snd_pcm_hw_convert_to_old_params()
4010 oparams->msbits = params->msbits; in snd_pcm_hw_convert_to_old_params()
4011 oparams->rate_num = params->rate_num; in snd_pcm_hw_convert_to_old_params()
4012 oparams->rate_den = params->rate_den; in snd_pcm_hw_convert_to_old_params()
4013 oparams->fifo_size = params->fifo_size; in snd_pcm_hw_convert_to_old_params()
4020 struct snd_pcm_hw_params_old *oparams = NULL; in snd_pcm_hw_refine_old_user() local
4027 oparams = memdup_user(_oparams, sizeof(*oparams)); in snd_pcm_hw_refine_old_user()
4028 if (IS_ERR(oparams)) { in snd_pcm_hw_refine_old_user()
4029 err = PTR_ERR(oparams); in snd_pcm_hw_refine_old_user()
4032 snd_pcm_hw_convert_from_old_params(params, oparams); in snd_pcm_hw_refine_old_user()
4041 snd_pcm_hw_convert_to_old_params(oparams, params); in snd_pcm_hw_refine_old_user()
4042 if (copy_to_user(_oparams, oparams, sizeof(*oparams))) in snd_pcm_hw_refine_old_user()
4045 kfree(oparams); in snd_pcm_hw_refine_old_user()
4055 struct snd_pcm_hw_params_old *oparams = NULL; in snd_pcm_hw_params_old_user() local
4062 oparams = memdup_user(_oparams, sizeof(*oparams)); in snd_pcm_hw_params_old_user()
4063 if (IS_ERR(oparams)) { in snd_pcm_hw_params_old_user()
4064 err = PTR_ERR(oparams); in snd_pcm_hw_params_old_user()
4068 snd_pcm_hw_convert_from_old_params(params, oparams); in snd_pcm_hw_params_old_user()
4073 snd_pcm_hw_convert_to_old_params(oparams, params); in snd_pcm_hw_params_old_user()
4074 if (copy_to_user(_oparams, oparams, sizeof(*oparams))) in snd_pcm_hw_params_old_user()
4077 kfree(oparams); in snd_pcm_hw_params_old_user()