[alsa-devel] [PATCH 1/2] ASoC: fsi: simultaneous playback/recorde support

Liam Girdwood lrg at slimlogic.co.uk
Tue Oct 12 11:19:17 CEST 2010


On Tue, 2010-10-12 at 13:39 +0900, Kuninori Morimoto wrote:
> Current FSI driver had not cared about simultaneous
> playback/recorde on same port.
> This patch add new fsi_stream struct to care it,
> 
> Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx at renesas.com>
> ---
>  sound/soc/sh/fsi.c |  142 +++++++++++++++++++++++++++++++--------------------
>  1 files changed, 86 insertions(+), 56 deletions(-)
> 
> diff --git a/sound/soc/sh/fsi.c b/sound/soc/sh/fsi.c
> index 895ce75..0c80d10 100644
> --- a/sound/soc/sh/fsi.c
> +++ b/sound/soc/sh/fsi.c
> @@ -48,6 +48,10 @@
>  #define MREG_START	A_MST_CTLR
>  #define MREG_END	FIFO_SZ
>  
> +/* is */
> +#define IS_PLAY		1
> +#define IS_CAPTURE	0

Please use SNDRV_PCM_STREAM_PLAYBACK and SNDRV_PCM_STREAM_CAPTURE here.

-- 
Freelance Developer, SlimLogic Ltd
ASoC and Voltage Regulator Maintainer.
http://www.slimlogic.co.uk



More information about the Alsa-devel mailing list