Skip to contentSkip to conversation

ALSA Au1xpsc: psc not disabled when TX is idle

PATCH Applied Roel Kluin 3 participants 3 messages Jul 15, 2008

Subsystems (2)
lore
Share & tools
lore

Roel Kluin

author
#0 lore raw

PATCH 1/1 ALSA Au1xpsc: psc not disabled when TX is idle

Untested patch
---
TX idleness isn't tested, but RX twice. PSC is not disabled when TX is idle

---

sound/soc/au1x/psc-i2s.c +1 -1
index ba4b5c1..9384702 100644
@@ -231,7 +231,7 @@ static int au1xpsc_i2s_stop(struct au1xpsc_audio_data *pscdata, int stype)
 
        /* if both TX and RX are idle, disable PSC */
        stat = au_readl(I2S_STAT(pscdata));
-       if (!(stat & (PSC_I2SSTAT_RB | PSC_I2SSTAT_RB))) {
+       if (!(stat & (PSC_I2SSTAT_TB | PSC_I2SSTAT_RB))) {
                au_writel(0, I2S_CFG(pscdata));
                au_sync();
                au_writel(PSC_CTRL_SUSPEND, PSC_CTRL(pscdata));
Acked-by on v1 1/1
#1 lore raw
Quoted 11 lines · Roel Kluin

Untested patch
---
TX idleness isn't tested, but RX twice. PSC is not disabled when TX is idle

---

sound/soc/au1x/psc-i2s.c +0 -0
index ba4b5c1..9384702 100644

sound/soc/au1x/psc-i2s.c static int au1xpsc_i2s_stop(struct au1xpsc_audio_data *pscdata, int stype) · line 237

Quoted 8 lines
sound/soc/au1x/psc-i2s.c +1 -1
@@ -231,7 +231,7 @@ static int au1xpsc_i2s_stop(struct au1xpsc_audio_data *pscdata, int stype)
 
        /* if both TX and RX are idle, disable PSC */
        stat = au_readl(I2S_STAT(pscdata));
-       if (!(stat & (PSC_I2SSTAT_RB | PSC_I2SSTAT_RB))) {
+       if (!(stat & (PSC_I2SSTAT_TB | PSC_I2SSTAT_RB))) {
                au_writel(0, I2S_CFG(pscdata));
                au_sync();
                au_writel(PSC_CTRL_SUSPEND, PSC_CTRL(pscdata));

Ah, stupid copy-paste error. Thanks!

Signature · 1 line
 Manuel Lauss
Applied
#2 lore raw

At Tue, 15 Jul 2008 15:04:29 +0200,

Quoted 7 lines · Manuel Lauss
Quoted 3 lines
                au_sync();
                au_writel(PSC_CTRL_SUSPEND, PSC_CTRL(pscdata));

Ah, stupid copy-paste error. Thanks!

Applied to sound tree now. Thanks.

Takashi