Lines Matching refs:ss
89 struct snd_pcm_substream *ss; in solo_g723_isr() local
92 for (ss = pstr->substream; ss != NULL; ss = ss->next) { in solo_g723_isr()
93 if (snd_pcm_substream_chip(ss) == NULL) in solo_g723_isr()
97 if (snd_pcm_substream_chip(ss) == solo_dev) in solo_g723_isr()
101 solo_pcm = snd_pcm_substream_chip(ss); in solo_g723_isr()
105 snd_pcm_period_elapsed(ss); in solo_g723_isr()
109 static int snd_solo_hw_params(struct snd_pcm_substream *ss, in snd_solo_hw_params() argument
112 return snd_pcm_lib_malloc_pages(ss, params_buffer_bytes(hw_params)); in snd_solo_hw_params()
115 static int snd_solo_hw_free(struct snd_pcm_substream *ss) in snd_solo_hw_free() argument
117 return snd_pcm_lib_free_pages(ss); in snd_solo_hw_free()
138 static int snd_solo_pcm_open(struct snd_pcm_substream *ss) in snd_solo_pcm_open() argument
140 struct solo_dev *solo_dev = snd_pcm_substream_chip(ss); in snd_solo_pcm_open()
155 ss->runtime->hw = snd_solo_pcm_hw; in snd_solo_pcm_open()
157 snd_pcm_substream_chip(ss) = solo_pcm; in snd_solo_pcm_open()
166 static int snd_solo_pcm_close(struct snd_pcm_substream *ss) in snd_solo_pcm_close() argument
168 struct solo_snd_pcm *solo_pcm = snd_pcm_substream_chip(ss); in snd_solo_pcm_close()
170 snd_pcm_substream_chip(ss) = solo_pcm->solo_dev; in snd_solo_pcm_close()
178 static int snd_solo_pcm_trigger(struct snd_pcm_substream *ss, int cmd) in snd_solo_pcm_trigger() argument
180 struct solo_snd_pcm *solo_pcm = snd_pcm_substream_chip(ss); in snd_solo_pcm_trigger()
212 static int snd_solo_pcm_prepare(struct snd_pcm_substream *ss) in snd_solo_pcm_prepare() argument
217 static snd_pcm_uframes_t snd_solo_pcm_pointer(struct snd_pcm_substream *ss) in snd_solo_pcm_pointer() argument
219 struct solo_snd_pcm *solo_pcm = snd_pcm_substream_chip(ss); in snd_solo_pcm_pointer()
226 static int __snd_solo_pcm_copy(struct snd_pcm_substream *ss, in __snd_solo_pcm_copy() argument
230 struct solo_snd_pcm *solo_pcm = snd_pcm_substream_chip(ss); in __snd_solo_pcm_copy()
240 (ss->number * G723_PERIOD_BYTES), in __snd_solo_pcm_copy()
256 static int snd_solo_pcm_copy_user(struct snd_pcm_substream *ss, int channel, in snd_solo_pcm_copy_user() argument
260 return __snd_solo_pcm_copy(ss, pos, (void *)dst, count, false); in snd_solo_pcm_copy_user()
263 static int snd_solo_pcm_copy_kernel(struct snd_pcm_substream *ss, int channel, in snd_solo_pcm_copy_kernel() argument
267 return __snd_solo_pcm_copy(ss, pos, dst, count, true); in snd_solo_pcm_copy_kernel()
334 struct snd_pcm_substream *ss; in solo_snd_pcm_init() local
350 for (i = 0, ss = pcm->streams[SNDRV_PCM_STREAM_CAPTURE].substream; in solo_snd_pcm_init()
351 ss; ss = ss->next, i++) in solo_snd_pcm_init()
352 sprintf(ss->name, "Camera #%d Audio", i); in solo_snd_pcm_init()