* [PATCH] ASoC: kirkwood: Fix erroneous double output while playing
@ 2013-11-25 19:19 Jean-Francois Moine
2013-11-27 17:16 ` Mark Brown
0 siblings, 1 reply; 2+ messages in thread
From: Jean-Francois Moine @ 2013-11-25 19:19 UTC (permalink / raw)
To: linux-arm-kernel
This patch fixes the setting of the register KIRKWOOD_PLAYCTL which did
always streaming on both I2S and SPDIF, ignoring the DAI ID.
The bug was introduced by the commit 75b9b65ee5a
"ASoC: kirkwood: add S/PDIF support"
Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
---
sound/soc/kirkwood/kirkwood-i2s.c | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/sound/soc/kirkwood/kirkwood-i2s.c b/sound/soc/kirkwood/kirkwood-i2s.c
index d34d917..b27f826 100644
--- a/sound/soc/kirkwood/kirkwood-i2s.c
+++ b/sound/soc/kirkwood/kirkwood-i2s.c
@@ -244,15 +244,15 @@ static int kirkwood_i2s_play_trigger(struct snd_pcm_substream *substream,
ctl);
}
- if (dai->id == 0)
- ctl &= ~KIRKWOOD_PLAYCTL_SPDIF_EN; /* i2s */
- else
- ctl &= ~KIRKWOOD_PLAYCTL_I2S_EN; /* spdif */
-
switch (cmd) {
case SNDRV_PCM_TRIGGER_START:
/* configure */
ctl = priv->ctl_play;
+ if (dai->id == 0)
+ ctl &= ~KIRKWOOD_PLAYCTL_SPDIF_EN; /* i2s */
+ else
+ ctl &= ~KIRKWOOD_PLAYCTL_I2S_EN; /* spdif */
+
value = ctl & ~KIRKWOOD_PLAYCTL_ENABLE_MASK;
writel(value, priv->io + KIRKWOOD_PLAYCTL);
--
Ken ar c'henta? | ** Breizh ha Linux atav! **
Jef | http://moinejf.free.fr/
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [PATCH] ASoC: kirkwood: Fix erroneous double output while playing
2013-11-25 19:19 [PATCH] ASoC: kirkwood: Fix erroneous double output while playing Jean-Francois Moine
@ 2013-11-27 17:16 ` Mark Brown
0 siblings, 0 replies; 2+ messages in thread
From: Mark Brown @ 2013-11-27 17:16 UTC (permalink / raw)
To: linux-arm-kernel
On Mon, Nov 25, 2013 at 08:19:05PM +0100, Jean-Francois Moine wrote:
> This patch fixes the setting of the register KIRKWOOD_PLAYCTL which did
> always streaming on both I2S and SPDIF, ignoring the DAI ID.
Applied, thanks.
> The bug was introduced by the commit 75b9b65ee5a
> "ASoC: kirkwood: add S/PDIF support"
There's the "Fixes:" tag for that now.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20131127/23ccc50d/attachment.sig>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-11-27 17:16 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-11-25 19:19 [PATCH] ASoC: kirkwood: Fix erroneous double output while playing Jean-Francois Moine
2013-11-27 17:16 ` Mark Brown
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox