alsa-devel.alsa-project.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] ASoC: i.MX SSI: Fix DSP_A format.
@ 2012-02-23 14:43 Javier Martin
  2012-02-23 18:30 ` Sascha Hauer
  2012-02-23 18:59 ` Mark Brown
  0 siblings, 2 replies; 3+ messages in thread
From: Javier Martin @ 2012-02-23 14:43 UTC (permalink / raw)
  To: alsa-devel; +Cc: s.hauer, broonie, w.sang, Javier Martin, axel.lin, lrg

According to i.MX27 Reference Manual (p 1593) TXBIT0 bit selects
whether the most significant or the less significant part of the
data word written to the FIFO is transmitted.

As DSP_A is the same as DSP_B with a data offset of 1 bit, it
doesn't make any sense to remove TXBIT0 bit here.

Signed-off-by: Javier Martin <javier.martin@vista-silicon.com>
---
 sound/soc/imx/imx-ssi.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/sound/soc/imx/imx-ssi.c b/sound/soc/imx/imx-ssi.c
index 01d1f74..b6adbed 100644
--- a/sound/soc/imx/imx-ssi.c
+++ b/sound/soc/imx/imx-ssi.c
@@ -112,7 +112,7 @@ static int imx_ssi_set_dai_fmt(struct snd_soc_dai *cpu_dai, unsigned int fmt)
 		break;
 	case SND_SOC_DAIFMT_DSP_A:
 		/* data on rising edge of bclk, frame high 1clk before data */
-		strcr |= SSI_STCR_TFSL | SSI_STCR_TEFS;
+		strcr |= SSI_STCR_TFSL | SSI_STCR_TXBIT0 | SSI_STCR_TEFS;
 		break;
 	}
 
-- 
1.7.0.4

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] ASoC: i.MX SSI: Fix DSP_A format.
  2012-02-23 14:43 [PATCH] ASoC: i.MX SSI: Fix DSP_A format Javier Martin
@ 2012-02-23 18:30 ` Sascha Hauer
  2012-02-23 18:59 ` Mark Brown
  1 sibling, 0 replies; 3+ messages in thread
From: Sascha Hauer @ 2012-02-23 18:30 UTC (permalink / raw)
  To: Javier Martin; +Cc: lrg, alsa-devel, broonie, w.sang, axel.lin

On Thu, Feb 23, 2012 at 03:43:18PM +0100, Javier Martin wrote:
> According to i.MX27 Reference Manual (p 1593) TXBIT0 bit selects
> whether the most significant or the less significant part of the
> data word written to the FIFO is transmitted.
> 
> As DSP_A is the same as DSP_B with a data offset of 1 bit, it
> doesn't make any sense to remove TXBIT0 bit here.

I have the very same patch locally but wasn't confident enough to send
it.

Acked-by: Sascha Hauer <s.hauer@pengutronix.de>


> 
> Signed-off-by: Javier Martin <javier.martin@vista-silicon.com>
> ---
>  sound/soc/imx/imx-ssi.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/sound/soc/imx/imx-ssi.c b/sound/soc/imx/imx-ssi.c
> index 01d1f74..b6adbed 100644
> --- a/sound/soc/imx/imx-ssi.c
> +++ b/sound/soc/imx/imx-ssi.c
> @@ -112,7 +112,7 @@ static int imx_ssi_set_dai_fmt(struct snd_soc_dai *cpu_dai, unsigned int fmt)
>  		break;
>  	case SND_SOC_DAIFMT_DSP_A:
>  		/* data on rising edge of bclk, frame high 1clk before data */
> -		strcr |= SSI_STCR_TFSL | SSI_STCR_TEFS;
> +		strcr |= SSI_STCR_TFSL | SSI_STCR_TXBIT0 | SSI_STCR_TEFS;
>  		break;
>  	}
>  
> -- 
> 1.7.0.4
> 
> 

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] ASoC: i.MX SSI: Fix DSP_A format.
  2012-02-23 14:43 [PATCH] ASoC: i.MX SSI: Fix DSP_A format Javier Martin
  2012-02-23 18:30 ` Sascha Hauer
@ 2012-02-23 18:59 ` Mark Brown
  1 sibling, 0 replies; 3+ messages in thread
From: Mark Brown @ 2012-02-23 18:59 UTC (permalink / raw)
  To: Javier Martin; +Cc: axel.lin, alsa-devel, lrg, s.hauer, w.sang


[-- Attachment #1.1: Type: text/plain, Size: 263 bytes --]

On Thu, Feb 23, 2012 at 03:43:18PM +0100, Javier Martin wrote:
> According to i.MX27 Reference Manual (p 1593) TXBIT0 bit selects
> whether the most significant or the less significant part of the
> data word written to the FIFO is transmitted.

Applied, thanks.

[-- Attachment #1.2: Digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]

[-- Attachment #2: Type: text/plain, Size: 0 bytes --]



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-02-23 18:59 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-02-23 14:43 [PATCH] ASoC: i.MX SSI: Fix DSP_A format Javier Martin
2012-02-23 18:30 ` Sascha Hauer
2012-02-23 18:59 ` Mark Brown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).