[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <46263e01-fd7f-57c3-64f8-c48e01cdb79c@amd.com>
Date: Tue, 3 Dec 2019 16:01:41 +0530
From: "Agrawal, Akshu" <aagrawal2@....com>
To: Ravulapati Vishnu vardhan rao
<Vishnuvardhanrao.Ravulapati@....com>
Cc: Alexander.Deucher@....com, djkurtz@...gle.com,
pierre-louis.bossart@...ux.intel.com, Akshu.Agrawal@....com,
Liam Girdwood <lgirdwood@...il.com>,
Mark Brown <broonie@...nel.org>,
Jaroslav Kysela <perex@...ex.cz>,
Takashi Iwai <tiwai@...e.com>,
Dan Carpenter <dan.carpenter@...cle.com>,
"moderated list:SOUND - SOC LAYER / DYNAMIC AUDIO POWER MANAGEM..."
<alsa-devel@...a-project.org>,
open list <linux-kernel@...r.kernel.org>
Subject: Re: [RESEND PATCH v12 4/6] ASoC: amd: add ACP3x TDM mode support
On 11/22/2019 3:14 PM, Ravulapati Vishnu vardhan rao wrote:
> ACP3x I2S (CPU DAI) can act in normal I2S and TDM modes. Added support
> for TDM mode. Desired mode can be selected from ASoC machine driver.
>
> Signed-off-by: Ravulapati Vishnu vardhan rao <Vishnuvardhanrao.Ravulapati@....com>
> ---
> sound/soc/amd/raven/acp3x-i2s.c | 24 ++++++++++++++++++++----
> sound/soc/amd/raven/acp3x.h | 1 +
> 2 files changed, 21 insertions(+), 4 deletions(-)
>
> diff --git a/sound/soc/amd/raven/acp3x-i2s.c b/sound/soc/amd/raven/acp3x-i2s.c
> index 7f05782..cea7311 100644
> --- a/sound/soc/amd/raven/acp3x-i2s.c
> +++ b/sound/soc/amd/raven/acp3x-i2s.c
> @@ -70,11 +70,27 @@ static int acp3x_i2s_set_tdm_slot(struct snd_soc_dai *cpu_dai,
>
> frm_len = FRM_LEN | (slots << 15) | (slot_len << 18);
> if (adata->substream_type == SNDRV_PCM_STREAM_PLAYBACK) {
> - reg_val = mmACP_BTTDM_ITER;
> - frmt_val = mmACP_BTTDM_TXFRMT;
> + switch (adata->i2s_instance) {
> + case I2S_BT_INSTANCE:
> + reg_val = mmACP_BTTDM_ITER;
> + frmt_reg = mmACP_BTTDM_TXFRMT;
Patch 2 of this series declares frmt_val, frmt_reg should cause build
errors.
Thanks,
Akshu
Powered by blists - more mailing lists