Lines Matching defs:alsa_sub
170 *alsa_sub)
172 struct pcm_runtime *rt = snd_pcm_substream_chip(alsa_sub);
175 if (alsa_sub->stream == SNDRV_PCM_STREAM_PLAYBACK)
347 static int hiface_pcm_open(struct snd_pcm_substream *alsa_sub)
349 struct pcm_runtime *rt = snd_pcm_substream_chip(alsa_sub);
351 struct snd_pcm_runtime *alsa_rt = alsa_sub->runtime;
360 if (alsa_sub->stream == SNDRV_PCM_STREAM_PLAYBACK)
374 ret = snd_pcm_hw_constraint_list(alsa_sub->runtime, 0,
381 sub->instance = alsa_sub;
386 static int hiface_pcm_close(struct snd_pcm_substream *alsa_sub)
388 struct pcm_runtime *rt = snd_pcm_substream_chip(alsa_sub);
389 struct pcm_substream *sub = hiface_pcm_get_substream(alsa_sub);
406 static int hiface_pcm_prepare(struct snd_pcm_substream *alsa_sub)
408 struct pcm_runtime *rt = snd_pcm_substream_chip(alsa_sub);
409 struct pcm_substream *sub = hiface_pcm_get_substream(alsa_sub);
410 struct snd_pcm_runtime *alsa_rt = alsa_sub->runtime;
437 static int hiface_pcm_trigger(struct snd_pcm_substream *alsa_sub, int cmd)
439 struct pcm_substream *sub = hiface_pcm_get_substream(alsa_sub);
440 struct pcm_runtime *rt = snd_pcm_substream_chip(alsa_sub);
467 static snd_pcm_uframes_t hiface_pcm_pointer(struct snd_pcm_substream *alsa_sub)
469 struct pcm_substream *sub = hiface_pcm_get_substream(alsa_sub);
470 struct pcm_runtime *rt = snd_pcm_substream_chip(alsa_sub);
478 return bytes_to_frames(alsa_sub->runtime, dma_offset);