Lines Matching refs:ss
48 if (!ac->ss || !ac->curr_bufs[0] || !ac->curr_bufs[1]) { in tw686x_audio_irq()
77 snd_pcm_period_elapsed(ac->ss); in tw686x_audio_irq()
104 static int tw686x_pcm_open(struct snd_pcm_substream *ss) in tw686x_pcm_open() argument
106 struct tw686x_dev *dev = snd_pcm_substream_chip(ss); in tw686x_pcm_open()
107 struct tw686x_audio_channel *ac = &dev->audio_channels[ss->number]; in tw686x_pcm_open()
108 struct snd_pcm_runtime *rt = ss->runtime; in tw686x_pcm_open()
111 ac->ss = ss; in tw686x_pcm_open()
121 static int tw686x_pcm_close(struct snd_pcm_substream *ss) in tw686x_pcm_close() argument
123 struct tw686x_dev *dev = snd_pcm_substream_chip(ss); in tw686x_pcm_close()
124 struct tw686x_audio_channel *ac = &dev->audio_channels[ss->number]; in tw686x_pcm_close()
126 ac->ss = NULL; in tw686x_pcm_close()
130 static int tw686x_pcm_prepare(struct snd_pcm_substream *ss) in tw686x_pcm_prepare() argument
132 struct tw686x_dev *dev = snd_pcm_substream_chip(ss); in tw686x_pcm_prepare()
133 struct tw686x_audio_channel *ac = &dev->audio_channels[ss->number]; in tw686x_pcm_prepare()
134 struct snd_pcm_runtime *rt = ss->runtime; in tw686x_pcm_prepare()
135 unsigned int period_size = snd_pcm_lib_period_bytes(ss); in tw686x_pcm_prepare()
211 static int tw686x_pcm_trigger(struct snd_pcm_substream *ss, int cmd) in tw686x_pcm_trigger() argument
213 struct tw686x_dev *dev = snd_pcm_substream_chip(ss); in tw686x_pcm_trigger()
214 struct tw686x_audio_channel *ac = &dev->audio_channels[ss->number]; in tw686x_pcm_trigger()
250 static snd_pcm_uframes_t tw686x_pcm_pointer(struct snd_pcm_substream *ss) in tw686x_pcm_pointer() argument
252 struct tw686x_dev *dev = snd_pcm_substream_chip(ss); in tw686x_pcm_pointer()
253 struct tw686x_audio_channel *ac = &dev->audio_channels[ss->number]; in tw686x_pcm_pointer()
255 return bytes_to_frames(ss->runtime, ac->ptr); in tw686x_pcm_pointer()
270 struct snd_pcm_substream *ss; in tw686x_snd_pcm_init() local
283 for (i = 0, ss = pcm->streams[SNDRV_PCM_STREAM_CAPTURE].substream; in tw686x_snd_pcm_init()
284 ss; ss = ss->next, i++) in tw686x_snd_pcm_init()
285 snprintf(ss->name, sizeof(ss->name), "vch%u audio", i); in tw686x_snd_pcm_init()