Alsa-Devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Nicolin Chen <nicoleotsuka@gmail.com>
To: Zidan Wang <zidan.wang@freescale.com>
Cc: alsa-devel@alsa-project.org, timur@tabi.org, lgirdwood@gmail.com,
	tiwai@suse.com, broonie@kernel.org
Subject: Re: [PATCH v2] ASoC: fsl_sai: fix no frame clk in master mode
Date: Fri, 11 Dec 2015 20:47:36 -0800	[thread overview]
Message-ID: <20151212044735.GA3564@Asurada-CZ80> (raw)
In-Reply-To: <af420592483389f5420c573b2b23f187a32baea3.1449717000.git.zidan.wang@freescale.com>

On Thu, Dec 10, 2015 at 11:21:25AM +0800, Zidan Wang wrote:

> diff --git a/sound/soc/fsl/fsl_sai.c b/sound/soc/fsl/fsl_sai.c
> index 8832901..a55a7de 100644
> --- a/sound/soc/fsl/fsl_sai.c
> +++ b/sound/soc/fsl/fsl_sai.c
> @@ -564,6 +564,17 @@ static int fsl_sai_trigger(struct snd_pcm_substream *substream, int cmd,
>  					   FSL_SAI_CSR_FR, FSL_SAI_CSR_FR);
>  			regmap_update_bits(sai->regmap, FSL_SAI_RCSR,
>  					   FSL_SAI_CSR_FR, FSL_SAI_CSR_FR);
> +
> +			if (!sai->is_slave_mode) {

It'd be nicer to add a simple comment to describe the errata here.
Users may have no idea about this abrupt reset as we do.

You may add my ack to your next version:
Acked-by: Nicolin Chen <nicoleotsuka@gmail.com>

> +				/* Software Reset for both Tx and Rx */
> +				regmap_write(sai->regmap,
> +					     FSL_SAI_TCSR, FSL_SAI_CSR_SR);
> +				regmap_write(sai->regmap,
> +					     FSL_SAI_RCSR, FSL_SAI_CSR_SR);
> +				/* Clear SR bit to finish the reset */
> +				regmap_write(sai->regmap, FSL_SAI_TCSR, 0);
> +				regmap_write(sai->regmap, FSL_SAI_RCSR, 0);
> +			}

      reply	other threads:[~2015-12-12  4:47 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-12-10  3:21 [PATCH v2] ASoC: fsl_sai: fix no frame clk in master mode Zidan Wang
2015-12-12  4:47 ` Nicolin Chen [this message]

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=20151212044735.GA3564@Asurada-CZ80 \
    --to=nicoleotsuka@gmail.com \
    --cc=alsa-devel@alsa-project.org \
    --cc=broonie@kernel.org \
    --cc=lgirdwood@gmail.com \
    --cc=timur@tabi.org \
    --cc=tiwai@suse.com \
    --cc=zidan.wang@freescale.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