Home
last modified time | relevance | path

Searched refs:sparams (Results 1 – 4 of 4) sorted by relevance

/hardware/qcom/audio/legacy/libalsa-intf/
Darec.c90 struct snd_pcm_sw_params *sparams; in set_params() local
137 sparams = (struct snd_pcm_sw_params*) calloc(1, sizeof(struct snd_pcm_sw_params)); in set_params()
138 if (!sparams) { in set_params()
142 sparams->tstamp_mode = SNDRV_PCM_TSTAMP_NONE; in set_params()
143 sparams->period_step = 1; in set_params()
146 sparams->avail_min = pcm->period_size/2; in set_params()
147 sparams->xfer_align = pcm->period_size/2; in set_params()
149 sparams->avail_min = pcm->period_size/8; in set_params()
150 sparams->xfer_align = pcm->period_size/8; in set_params()
152 sparams->avail_min = pcm->period_size/12; in set_params()
[all …]
Daplay.c86 struct snd_pcm_sw_params *sparams; in set_params() local
133 sparams = (struct snd_pcm_sw_params*) calloc(1, sizeof(struct snd_pcm_sw_params)); in set_params()
134 if (!sparams) { in set_params()
139 sparams->tstamp_mode = SNDRV_PCM_TSTAMP_NONE; in set_params()
140 sparams->period_step = 1; in set_params()
142 sparams->avail_min = pcm->period_size/(channels * 2) ; in set_params()
143 sparams->start_threshold = pcm->period_size/(channels * 2) ; in set_params()
144 sparams->stop_threshold = pcm->buffer_size ; in set_params()
145 sparams->xfer_align = pcm->period_size/(channels * 2) ; /* needed for old kernels */ in set_params()
147 sparams->silence_size = 0; in set_params()
[all …]
Dalsa_pcm.c343 int param_set_sw_params(struct pcm *pcm, struct snd_pcm_sw_params *sparams) in param_set_sw_params() argument
345 if (ioctl(pcm->fd, SNDRV_PCM_IOCTL_SW_PARAMS, sparams)) { in param_set_sw_params()
348 pcm->sw_p = sparams; in param_set_sw_params()
758 struct snd_pcm_sw_params sparams; in pcm_open() local
Dalsa_audio.h151 int param_set_sw_params(struct pcm *pcm, struct snd_pcm_sw_params *sparams);