Lines Matching refs:playback
177 static void toggle_clock(struct davinci_mcbsp_dev *dev, int playback) in toggle_clock() argument
179 u32 m = playback ? DAVINCI_MCBSP_PCR_CLKXP : DAVINCI_MCBSP_PCR_CLKRP; in toggle_clock()
190 int playback = (substream->stream == SNDRV_PCM_STREAM_PLAYBACK); in davinci_mcbsp_start() local
192 u32 mask = playback ? DAVINCI_MCBSP_SPCR_XRST : DAVINCI_MCBSP_SPCR_RRST; in davinci_mcbsp_start()
205 static void davinci_mcbsp_stop(struct davinci_mcbsp_dev *dev, int playback) in davinci_mcbsp_stop() argument
212 spcr &= playback ? ~DAVINCI_MCBSP_SPCR_XRST : ~DAVINCI_MCBSP_SPCR_RRST; in davinci_mcbsp_stop()
214 toggle_clock(dev, playback); in davinci_mcbsp_stop()
529 int playback = (substream->stream == SNDRV_PCM_STREAM_PLAYBACK); in davinci_i2s_prepare() local
531 u32 mask = playback ? DAVINCI_MCBSP_SPCR_XRST : DAVINCI_MCBSP_SPCR_RRST; in davinci_i2s_prepare()
533 davinci_mcbsp_stop(dev, playback); in davinci_i2s_prepare()
540 toggle_clock(dev, playback); in davinci_i2s_prepare()
549 if (playback) { in davinci_i2s_prepare()
562 toggle_clock(dev, playback); in davinci_i2s_prepare()
573 int playback = (substream->stream == SNDRV_PCM_STREAM_PLAYBACK); in davinci_i2s_trigger() local
584 davinci_mcbsp_stop(dev, playback); in davinci_i2s_trigger()
596 int playback = (substream->stream == SNDRV_PCM_STREAM_PLAYBACK); in davinci_i2s_shutdown() local
597 davinci_mcbsp_stop(dev, playback); in davinci_i2s_shutdown()
626 .playback = {