[Sound-open-firmware] [PATCH] Fix channel number of CNL DMA.

Liam Girdwood liam.r.girdwood at linux.intel.com
Thu Mar 8 09:27:35 CET 2018


On Thu, 2018-03-08 at 16:06 +0800, yan.wang at linux.intel.com wrote:
> From: Yan Wang <yan.wang at linux.intel.com>
> 
> The channel numbers of playback and capture are reversed on CNL.
> The channel number of playback is 9.
> The channel number of capture is 7.
> 
> Signed-off-by: Yan Wang <yan.wang at linux.intel.com>

Tomasz, this reverts a part of your patch - which is correct ?

> ---
>  src/platform/cannonlake/dma.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/src/platform/cannonlake/dma.c
> b/src/platform/cannonlake/dma.c
> index 4c488c1..59e0fc7 100644
> --- a/src/platform/cannonlake/dma.c
> +++ b/src/platform/cannonlake/dma.c
> @@ -134,7 +134,7 @@ static struct dma dma[] = {
>  	.plat_data = {
>  		.id		= DMA_HOST_IN_DMAC,
>  		.base		= GTW_HOST_IN_STREAM_BASE(0),
> -		.channels	= 9,
> +		.channels	= 7,
>  		.irq = IRQ_EXT_HOST_DMA_IN_LVL3(0, 0),
>  	},
>  	.ops		= &hda_host_dma_ops,
> @@ -143,7 +143,7 @@ static struct dma dma[] = {
>  	.plat_data = {
>  		.id		= DMA_HOST_OUT_DMAC,
>  		.base		= GTW_HOST_OUT_STREAM_BASE(0),
> -		.channels	= 7,
> +		.channels	= 9,
>  		.irq = IRQ_EXT_HOST_DMA_OUT_LVL3(0, 0),
>  	},
>  	.ops		= &hda_host_dma_ops,


More information about the Sound-open-firmware mailing list