public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Dan Murphy <dmurphy@ti.com>
To: <lgirdwood@gmail.com>, <broonie@kernel.org>, <perex@perex.cz>,
	<tiwai@suse.com>
Cc: <alsa-devel@alsa-project.org>, <linux-kernel@vger.kernel.org>,
	<robh@kernel.org>, <devicetree@vger.kernel.org>
Subject: Re: [PATCH v6 4/7] ASoC: tas2562: Add rx and tx slot programming
Date: Wed, 24 Jun 2020 17:08:32 -0500	[thread overview]
Message-ID: <c3c86e7f-de5e-dea1-98de-045bdd564fbc@ti.com> (raw)
In-Reply-To: <20200624174932.9604-5-dmurphy@ti.com>

Hello

On 6/24/20 12:49 PM, Dan Murphy wrote:
> Add programming for the tdm slots for both tx and rx offsets.
>
> Signed-off-by: Dan Murphy <dmurphy@ti.com>
> ---
>   sound/soc/codecs/tas2562.c | 17 ++++++++++++++++-
>   sound/soc/codecs/tas2562.h |  4 ++++
>   2 files changed, 20 insertions(+), 1 deletion(-)
>
> diff --git a/sound/soc/codecs/tas2562.c b/sound/soc/codecs/tas2562.c
> index d26e30a2948c..2f1d4b697f01 100644
> --- a/sound/soc/codecs/tas2562.c
> +++ b/sound/soc/codecs/tas2562.c
> @@ -208,6 +208,22 @@ static int tas2562_set_dai_tdm_slot(struct snd_soc_dai *dai,
>   	if (ret < 0)
>   		return ret;
>   
> +	if (tx_mask > TAS2562_TX_OFF_MAX) {
> +		dev_err(tas2562->dev, "TX slot is larger then %d",
> +			TAS2562_TX_OFF_MAX);
> +		return -EINVAL;
> +	}
> +
> +	ret = snd_soc_component_update_bits(component, TAS2562_TDM_CFG1,
> +					    TAS2562_RX_OFF_MASK, rx_mask << 1);
> +	if (ret < 0)
> +		return ret;
> +
> +	ret = snd_soc_component_update_bits(component, TAS2562_TDM_CFG4,
> +					    TAS2562_TX_OFF_MASK, tx_mask << 1);
> +	if (ret < 0)
> +		return ret;
> +

I need to fix this patch to remove the slot programming during dai_fmt 
as the code is not correct and resets the slots

Dan



  reply	other threads:[~2020-06-24 22:09 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-06-24 17:49 [PATCH v6 0/7] TAS2562 issue fixes and slot programming Dan Murphy
2020-06-24 17:49 ` [PATCH v6 1/7] dt-bindings: tas2562: Fix shut-down gpio property Dan Murphy
2020-06-24 17:49 ` [PATCH v6 2/7] ASoC: tas2562: Update shutdown GPIO property Dan Murphy
2020-06-24 17:49 ` [PATCH v6 3/7] ASoC: tas2562: Fix format issue for extra space before a comma Dan Murphy
2020-06-24 17:49 ` [PATCH v6 4/7] ASoC: tas2562: Add rx and tx slot programming Dan Murphy
2020-06-24 22:08   ` Dan Murphy [this message]
2020-06-24 17:49 ` [PATCH v6 5/7] dt-bindings: tas2562: Add voltage sense slot property Dan Murphy
2020-06-24 17:49 ` [PATCH v6 6/7] ASoC: tas2562: Add voltage sense slot configuration Dan Murphy
2020-06-24 17:49 ` [PATCH v6 7/7] dt-bindings: tas2562: Convert the tas2562 binding to yaml Dan Murphy
2020-06-25 19:11 ` [PATCH v6 0/7] TAS2562 issue fixes and slot programming Mark Brown

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=c3c86e7f-de5e-dea1-98de-045bdd564fbc@ti.com \
    --to=dmurphy@ti.com \
    --cc=alsa-devel@alsa-project.org \
    --cc=broonie@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=lgirdwood@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=perex@perex.cz \
    --cc=robh@kernel.org \
    --cc=tiwai@suse.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox