• Home
  • Raw
  • Download

Lines Matching refs:oparams

3574 					       struct snd_pcm_hw_params_old *oparams)  in snd_pcm_hw_convert_from_old_params()  argument
3579 params->flags = oparams->flags; in snd_pcm_hw_convert_from_old_params()
3580 for (i = 0; i < ARRAY_SIZE(oparams->masks); i++) in snd_pcm_hw_convert_from_old_params()
3581 params->masks[i].bits[0] = oparams->masks[i]; in snd_pcm_hw_convert_from_old_params()
3582 memcpy(params->intervals, oparams->intervals, sizeof(oparams->intervals)); in snd_pcm_hw_convert_from_old_params()
3583 params->rmask = __OLD_TO_NEW_MASK(oparams->rmask); in snd_pcm_hw_convert_from_old_params()
3584 params->cmask = __OLD_TO_NEW_MASK(oparams->cmask); in snd_pcm_hw_convert_from_old_params()
3585 params->info = oparams->info; in snd_pcm_hw_convert_from_old_params()
3586 params->msbits = oparams->msbits; in snd_pcm_hw_convert_from_old_params()
3587 params->rate_num = oparams->rate_num; in snd_pcm_hw_convert_from_old_params()
3588 params->rate_den = oparams->rate_den; in snd_pcm_hw_convert_from_old_params()
3589 params->fifo_size = oparams->fifo_size; in snd_pcm_hw_convert_from_old_params()
3592 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
3597 memset(oparams, 0, sizeof(*oparams)); in snd_pcm_hw_convert_to_old_params()
3598 oparams->flags = params->flags; in snd_pcm_hw_convert_to_old_params()
3599 for (i = 0; i < ARRAY_SIZE(oparams->masks); i++) in snd_pcm_hw_convert_to_old_params()
3600 oparams->masks[i] = params->masks[i].bits[0]; in snd_pcm_hw_convert_to_old_params()
3601 memcpy(oparams->intervals, params->intervals, sizeof(oparams->intervals)); in snd_pcm_hw_convert_to_old_params()
3602 oparams->rmask = __NEW_TO_OLD_MASK(params->rmask); in snd_pcm_hw_convert_to_old_params()
3603 oparams->cmask = __NEW_TO_OLD_MASK(params->cmask); in snd_pcm_hw_convert_to_old_params()
3604 oparams->info = params->info; in snd_pcm_hw_convert_to_old_params()
3605 oparams->msbits = params->msbits; in snd_pcm_hw_convert_to_old_params()
3606 oparams->rate_num = params->rate_num; in snd_pcm_hw_convert_to_old_params()
3607 oparams->rate_den = params->rate_den; in snd_pcm_hw_convert_to_old_params()
3608 oparams->fifo_size = params->fifo_size; in snd_pcm_hw_convert_to_old_params()
3615 struct snd_pcm_hw_params_old *oparams = NULL; in snd_pcm_hw_refine_old_user() local
3622 oparams = memdup_user(_oparams, sizeof(*oparams)); in snd_pcm_hw_refine_old_user()
3623 if (IS_ERR(oparams)) { in snd_pcm_hw_refine_old_user()
3624 err = PTR_ERR(oparams); in snd_pcm_hw_refine_old_user()
3627 snd_pcm_hw_convert_from_old_params(params, oparams); in snd_pcm_hw_refine_old_user()
3629 snd_pcm_hw_convert_to_old_params(oparams, params); in snd_pcm_hw_refine_old_user()
3630 if (copy_to_user(_oparams, oparams, sizeof(*oparams))) { in snd_pcm_hw_refine_old_user()
3635 kfree(oparams); in snd_pcm_hw_refine_old_user()
3645 struct snd_pcm_hw_params_old *oparams = NULL; in snd_pcm_hw_params_old_user() local
3652 oparams = memdup_user(_oparams, sizeof(*oparams)); in snd_pcm_hw_params_old_user()
3653 if (IS_ERR(oparams)) { in snd_pcm_hw_params_old_user()
3654 err = PTR_ERR(oparams); in snd_pcm_hw_params_old_user()
3657 snd_pcm_hw_convert_from_old_params(params, oparams); in snd_pcm_hw_params_old_user()
3659 snd_pcm_hw_convert_to_old_params(oparams, params); in snd_pcm_hw_params_old_user()
3660 if (copy_to_user(_oparams, oparams, sizeof(*oparams))) { in snd_pcm_hw_params_old_user()
3665 kfree(oparams); in snd_pcm_hw_params_old_user()