Lines Matching refs:sw_params
841 struct snd_pcm_sw_params *sw_params; in snd_pcm_oss_change_params() local
853 sw_params = kmalloc(sizeof(*sw_params), GFP_KERNEL); in snd_pcm_oss_change_params()
856 if (!sw_params || !params || !sparams) { in snd_pcm_oss_change_params()
990 memset(sw_params, 0, sizeof(*sw_params)); in snd_pcm_oss_change_params()
992 sw_params->start_threshold = 1; in snd_pcm_oss_change_params()
994 sw_params->start_threshold = runtime->boundary; in snd_pcm_oss_change_params()
998 sw_params->stop_threshold = runtime->boundary; in snd_pcm_oss_change_params()
1000 sw_params->stop_threshold = runtime->buffer_size; in snd_pcm_oss_change_params()
1001 sw_params->tstamp_mode = SNDRV_PCM_TSTAMP_NONE; in snd_pcm_oss_change_params()
1002 sw_params->period_step = 1; in snd_pcm_oss_change_params()
1003 sw_params->avail_min = substream->stream == SNDRV_PCM_STREAM_PLAYBACK ? in snd_pcm_oss_change_params()
1007 sw_params->silence_threshold = 0; in snd_pcm_oss_change_params()
1008 sw_params->silence_size = 0; in snd_pcm_oss_change_params()
1014 sw_params->silence_threshold = frames; in snd_pcm_oss_change_params()
1015 sw_params->silence_size = frames; in snd_pcm_oss_change_params()
1018 if ((err = snd_pcm_kernel_ioctl(substream, SNDRV_PCM_IOCTL_SW_PARAMS, sw_params)) < 0) { in snd_pcm_oss_change_params()
1075 kfree(sw_params); in snd_pcm_oss_change_params()