From: Marcus Cooper <[email protected]>
Signed-off-by: Marcus Cooper <[email protected]>
---
sound/soc/sunxi/spdif/sunxi_spdif.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/sound/soc/sunxi/spdif/sunxi_spdif.c
b/sound/soc/sunxi/spdif/sunxi_spdif.c
index 63f5221..c509343 100644
--- a/sound/soc/sunxi/spdif/sunxi_spdif.c
+++ b/sound/soc/sunxi/spdif/sunxi_spdif.c
@@ -71,7 +71,7 @@ void sunxi_snd_txctrl(struct snd_pcm_substream *substream,
int on)
}
/* soft reset SPDIF */
- writel(0x1, sunxi_spdif.regs + SUNXI_SPDIF_CTL);
+ writel(SUNXI_SPDIF_CTL_RESET, sunxi_spdif.regs + SUNXI_SPDIF_CTL);
/* MCLK OUTPUT enable */
reg_val = readl(sunxi_spdif.regs + SUNXI_SPDIF_CTL);
@@ -451,7 +451,8 @@ static void spdifregsave(void)
{
regsave[0] = readl(sunxi_spdif.regs + SUNXI_SPDIF_CTL);
regsave[1] = readl(sunxi_spdif.regs + SUNXI_SPDIF_TXCFG);
- regsave[2] = readl(sunxi_spdif.regs + SUNXI_SPDIF_FCTL) | (0x3 << 16);
+ regsave[2] = readl(sunxi_spdif.regs + SUNXI_SPDIF_FCTL) |
+ (SUNXI_SPDIF_FCTL_FTX | SUNXI_SPDIF_FCTL_FRX);
regsave[3] = readl(sunxi_spdif.regs + SUNXI_SPDIF_INT);
regsave[4] = readl(sunxi_spdif.regs + SUNXI_SPDIF_TXCHSTA0);
regsave[5] = readl(sunxi_spdif.regs + SUNXI_SPDIF_TXCHSTA1);
--
1.9.1
--
You received this message because you are subscribed to the Google Groups
"linux-sunxi" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.