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)
349 static int hiface_pcm_open(struct snd_pcm_substream *alsa_sub)
351 struct pcm_runtime *rt = snd_pcm_substream_chip(alsa_sub);
353 struct snd_pcm_runtime *alsa_rt = alsa_sub->runtime;
362 if (alsa_sub->stream == SNDRV_PCM_STREAM_PLAYBACK)
377 ret = snd_pcm_hw_constraint_list(alsa_sub->runtime, 0,
386 sub->instance = alsa_sub;
392 static int hiface_pcm_close(struct snd_pcm_substream *alsa_sub)
394 struct pcm_runtime *rt = snd_pcm_substream_chip(alsa_sub);
395 struct pcm_substream *sub = hiface_pcm_get_substream(alsa_sub);
416 static int hiface_pcm_prepare(struct snd_pcm_substream *alsa_sub)
418 struct pcm_runtime *rt = snd_pcm_substream_chip(alsa_sub);
419 struct pcm_substream *sub = hiface_pcm_get_substream(alsa_sub);
420 struct snd_pcm_runtime *alsa_rt = alsa_sub->runtime;
452 static int hiface_pcm_trigger(struct snd_pcm_substream *alsa_sub, int cmd)
454 struct pcm_substream *sub = hiface_pcm_get_substream(alsa_sub);
455 struct pcm_runtime *rt = snd_pcm_substream_chip(alsa_sub);
482 static snd_pcm_uframes_t hiface_pcm_pointer(struct snd_pcm_substream *alsa_sub)
484 struct pcm_substream *sub = hiface_pcm_get_substream(alsa_sub);
485 struct pcm_runtime *rt = snd_pcm_substream_chip(alsa_sub);
495 return bytes_to_frames(alsa_sub->runtime, dma_offset);