Lines Matching defs:substream
64 static int pxa2xx_ac97_pcm_open(struct snd_pcm_substream *substream)
66 struct snd_pcm_runtime *runtime = substream->runtime;
70 ret = pxa2xx_pcm_open(substream);
77 i = (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) ?
82 platform_ops = substream->pcm->card->dev->platform_data;
84 ret = platform_ops->startup(substream, platform_ops->priv);
86 pxa2xx_pcm_close(substream);
92 static int pxa2xx_ac97_pcm_close(struct snd_pcm_substream *substream)
96 platform_ops = substream->pcm->card->dev->platform_data;
98 platform_ops->shutdown(substream, platform_ops->priv);
103 static int pxa2xx_ac97_pcm_prepare(struct snd_pcm_substream *substream)
105 struct snd_pcm_runtime *runtime = substream->runtime;
106 int reg = (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) ?
110 ret = pxa2xx_pcm_prepare(substream);