OSDN Git Service

ASoC: AMD: Configure channel 1 or channel 0 for capture
authorAkshu Agrawal <akshu.agrawal@amd.com>
Thu, 21 Jun 2018 04:58:17 +0000 (12:58 +0800)
committerMark Brown <broonie@kernel.org>
Fri, 22 Jun 2018 14:48:26 +0000 (15:48 +0100)
commit2718c89a233bf8549fdba0925947b2c3cb887a95
treee4d27d6ad4f35343bafc7ec6cad3ebbea860a164
parent44fedd7da485bafcc5eee8794fa54cfc0c047dd4
ASoC: AMD: Configure channel 1 or channel 0 for capture

ST/CZ SoC have 2 channels for capture in the I2SSP path.
The DMA though these channels is done using the same dma
descriptors.
We configure the channel and enable it on the basis of
channel selected by machine driver. Machine driver knows
which codec sits on which channel and thus sends the information
to dma driver.

Signed-off-by: Akshu Agrawal <akshu.agrawal@amd.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/amd/acp-da7219-max98357a.c
sound/soc/amd/acp-pcm-dma.c
sound/soc/amd/acp.h