[Sound-open-firmware] [PATCH] Asoc: sof: Fix usage of aif_in/out

Liam Girdwood liam.r.girdwood at linux.intel.com
Tue Dec 19 11:52:19 CET 2017


On Mon, 2017-12-18 at 15:16 +0800, Xiuli Pan wrote:
> From: Pan Xiuli <xiuli.pan at linux.intel.com>
> 
> We misuse these two defines, now align the usage.
> 
> Signed-off-by: Pan Xiuli <xiuli.pan at linux.intel.com>
> ---
>  sound/soc/sof/topology.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/sound/soc/sof/topology.c b/sound/soc/sof/topology.c
> index bef4de1..45d6398 100644
> --- a/sound/soc/sof/topology.c
> +++ b/sound/soc/sof/topology.c
> @@ -887,11 +887,11 @@ static int sof_widget_ready(struct
> snd_soc_component *scomp, int index,
>  		ret = sof_widget_load_pipeline(scomp, index,
> swidget, tw,
>  			&reply);
>  		break;
> -	case snd_soc_dapm_aif_in:
> +	case snd_soc_dapm_aif_out:
>  		ret = sof_widget_load_pcm(scomp, index, swidget,
>  			SOF_IPC_STREAM_CAPTURE, tw, &reply);
>  		break;
> -	case snd_soc_dapm_aif_out:
> +	case snd_soc_dapm_aif_in:
>  		ret = sof_widget_load_pcm(scomp, index, swidget,
>  			SOF_IPC_STREAM_PLAYBACK, tw, &reply);
>  		break;

Applied.

Liam


More information about the Sound-open-firmware mailing list