Lines Matching defs:substream
61 static int pxa2xx_ac97_pcm_open(struct snd_pcm_substream *substream)
63 struct snd_pcm_runtime *runtime = substream->runtime;
67 ret = pxa2xx_pcm_open(substream);
74 i = (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) ?
79 platform_ops = substream->pcm->card->dev->platform_data;
81 ret = platform_ops->startup(substream, platform_ops->priv);
83 pxa2xx_pcm_close(substream);
89 static int pxa2xx_ac97_pcm_close(struct snd_pcm_substream *substream)
93 platform_ops = substream->pcm->card->dev->platform_data;
95 platform_ops->shutdown(substream, platform_ops->priv);
100 static int pxa2xx_ac97_pcm_prepare(struct snd_pcm_substream *substream)
102 struct snd_pcm_runtime *runtime = substream->runtime;
103 int reg = (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) ?
107 ret = pxa2xx_pcm_prepare(substream);