[alsa-devel] [PATCH 4/6] ASoC: rsnd: CTU kctrl sets once

Sergei Shtylyov sergei.shtylyov at cogentembedded.com
Sat Sep 30 12:03:39 CEST 2017


Hello!

On 9/29/2017 3:10 AM, Kuninori Morimoto wrote:

> From: Kuninori Morimoto <kuninori.morimoto.gx at renesas.com>
> 
> Same CTU might be used few times if system/platform is using MIX.
> For example below case.
> 
> 	DAI0 playback = <&src0 &ctu02 &mix0 &dvc0 &ssi0>;
> 	DAI1 playback = <&src2 &ctu03 &mix0 &dvc0 &ssi0>;
> 
> This case, ALSA will have CTU,0 and CTU,1 kcontrol interfaces,
> but these are same CTU. This is confusable.

    Again, confusing,

> This patch adds new flags and avoid such case.
> 
> Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx at renesas.com>
> Tested-by: Hiroyuki Yokoyama <hiroyuki.yokoyama.vx at renesas.com>
> ---
>   sound/soc/sh/rcar/ctu.c | 8 ++++++++
>   1 file changed, 8 insertions(+)
> 
> diff --git a/sound/soc/sh/rcar/ctu.c b/sound/soc/sh/rcar/ctu.c
> index e7f53f4..1536d9d 100644
> --- a/sound/soc/sh/rcar/ctu.c
> +++ b/sound/soc/sh/rcar/ctu.c
> @@ -81,8 +81,11 @@ struct rsnd_ctu {
>   	struct rsnd_kctrl_cfg_m sv3;
>   	struct rsnd_kctrl_cfg_s reset;
>   	int channels;
> +	u32 flags;
>   };
>   
> +#define KCTRL_INITIALIZEED	(1 << 0)
> +

    Again, one E is enough. :-)

[...]

MBR, Sergei


More information about the Alsa-devel mailing list