[alsa-devel] [PATCH 4/5] ASoC: fsi: Add fsi_is_play function
Liam Girdwood
lrg at slimlogic.co.uk
Tue Oct 12 11:16:19 CEST 2010
On Tue, 2010-10-12 at 11:40 +0900, Kuninori Morimoto wrote:
> Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx at renesas.com>
> ---
> sound/soc/sh/fsi.c | 13 +++++++++----
> 1 files changed, 9 insertions(+), 4 deletions(-)
>
> diff --git a/sound/soc/sh/fsi.c b/sound/soc/sh/fsi.c
> index 2b3a50d..09a2df2 100644
> --- a/sound/soc/sh/fsi.c
> +++ b/sound/soc/sh/fsi.c
> @@ -295,6 +295,11 @@ static u32 fsi_get_info_flags(struct fsi_priv *fsi)
> master->info->portb_flags;
> }
>
> +static int fsi_is_play(struct snd_pcm_substream *substream)
> +{
> + return substream->stream == SNDRV_PCM_STREAM_PLAYBACK;
> +}
> +
It may be better to make this inline since it's very small.
--
Freelance Developer, SlimLogic Ltd
ASoC and Voltage Regulator Maintainer.
http://www.slimlogic.co.uk
More information about the Alsa-devel
mailing list