Lines Matching refs:sparams
881 struct snd_pcm_sw_params sparams; in pcm_open() local
968 memset(&sparams, 0, sizeof(sparams)); in pcm_open()
969 sparams.tstamp_mode = SNDRV_PCM_TSTAMP_ENABLE; in pcm_open()
970 sparams.period_step = 1; in pcm_open()
974 pcm->config.start_threshold = sparams.start_threshold = 1; in pcm_open()
976 pcm->config.start_threshold = sparams.start_threshold = in pcm_open()
979 sparams.start_threshold = config->start_threshold; in pcm_open()
984 pcm->config.stop_threshold = sparams.stop_threshold = in pcm_open()
987 pcm->config.stop_threshold = sparams.stop_threshold = in pcm_open()
991 sparams.stop_threshold = config->stop_threshold; in pcm_open()
995 pcm->config.avail_min = sparams.avail_min = pcm->config.period_size; in pcm_open()
997 pcm->config.avail_min = sparams.avail_min = 1; in pcm_open()
999 sparams.avail_min = config->avail_min; in pcm_open()
1001 sparams.xfer_align = config->period_size / 2; /* needed for old kernels */ in pcm_open()
1002 sparams.silence_threshold = config->silence_threshold; in pcm_open()
1003 sparams.silence_size = config->silence_size; in pcm_open()
1004 pcm->boundary = sparams.boundary = pcm->buffer_size; in pcm_open()
1009 if (ioctl(pcm->fd, SNDRV_PCM_IOCTL_SW_PARAMS, &sparams)) { in pcm_open()