Lines Matching refs:sparams
840 struct snd_pcm_hw_params *params, *sparams; in snd_pcm_oss_change_params() local
855 sparams = kmalloc(sizeof(*sparams), GFP_KERNEL); in snd_pcm_oss_change_params()
856 if (!sw_params || !params || !sparams) { in snd_pcm_oss_change_params()
867 _snd_pcm_hw_params_any(sparams); in snd_pcm_oss_change_params()
868 _snd_pcm_hw_param_setinteger(sparams, SNDRV_PCM_HW_PARAM_PERIODS); in snd_pcm_oss_change_params()
869 _snd_pcm_hw_param_min(sparams, SNDRV_PCM_HW_PARAM_PERIODS, 2, 0); in snd_pcm_oss_change_params()
878 err = snd_pcm_hw_param_mask(substream, sparams, SNDRV_PCM_HW_PARAM_ACCESS, &mask); in snd_pcm_oss_change_params()
884 choose_rate(substream, sparams, runtime->oss.rate); in snd_pcm_oss_change_params()
885 …snd_pcm_hw_param_near(substream, sparams, SNDRV_PCM_HW_PARAM_CHANNELS, runtime->oss.channels, NULL… in snd_pcm_oss_change_params()
889 sformat_mask = *hw_param_mask(sparams, SNDRV_PCM_HW_PARAM_FORMAT); in snd_pcm_oss_change_params()
910 err = _snd_pcm_hw_param_set(sparams, SNDRV_PCM_HW_PARAM_FORMAT, (__force int)sformat, 0); in snd_pcm_oss_change_params()
915 memcpy(params, sparams, sizeof(*params)); in snd_pcm_oss_change_params()
931 params_access(sparams), params_format(sparams), in snd_pcm_oss_change_params()
932 params_channels(sparams), params_rate(sparams)); in snd_pcm_oss_change_params()
944 sparams)) < 0) { in snd_pcm_oss_change_params()
951 if ((err = snd_pcm_plugin_build_io(substream, sparams, &plugin)) < 0) { in snd_pcm_oss_change_params()
969 err = snd_pcm_oss_period_size(substream, params, sparams); in snd_pcm_oss_change_params()
974 err = snd_pcm_hw_param_near(substream, sparams, SNDRV_PCM_HW_PARAM_PERIOD_SIZE, n, NULL); in snd_pcm_oss_change_params()
978 err = snd_pcm_hw_param_near(substream, sparams, SNDRV_PCM_HW_PARAM_PERIODS, in snd_pcm_oss_change_params()
985 if ((err = snd_pcm_kernel_ioctl(substream, SNDRV_PCM_IOCTL_HW_PARAMS, sparams)) < 0) { in snd_pcm_oss_change_params()
1023 runtime->oss.periods = params_periods(sparams); in snd_pcm_oss_change_params()
1024 oss_period_size = snd_pcm_plug_client_size(substream, params_period_size(sparams)); in snd_pcm_oss_change_params()
1051 params_period_size(sparams), in snd_pcm_oss_change_params()
1052 params_buffer_size(sparams)); in snd_pcm_oss_change_params()
1077 kfree(sparams); in snd_pcm_oss_change_params()