Lines Matching defs:substream
1637 static int twl4030_startup(struct snd_pcm_substream *substream,
1644 twl4030->slave_substream = substream;
1647 * substream to match it. */
1656 snd_pcm_hw_constraint_single(substream->runtime,
1660 twl4030->master_substream = substream;
1666 static void twl4030_shutdown(struct snd_pcm_substream *substream,
1672 if (twl4030->master_substream == substream)
1684 /* If the closing substream had 4 channel, do the necessary cleanup */
1685 if (substream->runtime->channels == 4)
1686 twl4030_tdm_enable(component, substream->stream, 0);
1689 static int twl4030_hw_params(struct snd_pcm_substream *substream,
1697 /* If the substream has 4 channel, do the necessary setup */
1706 twl4030_tdm_enable(component, substream->stream, 1);
1802 twl4030_constraints(twl4030, substream);
1922 static int twl4030_voice_startup(struct snd_pcm_substream *substream,
1954 static void twl4030_voice_shutdown(struct snd_pcm_substream *substream,
1960 twl4030_voice_enable(component, substream->stream, 0);
1963 static int twl4030_voice_hw_params(struct snd_pcm_substream *substream,
1972 twl4030_voice_enable(component, substream->stream, 1);