Skip to content

Commit 2424d45

Browse files
Russell Kingbroonie
authored andcommitted
ASoC: kirkwood-i2s: fix DCO lock detection
This is part of a patch found in Rabeeh Khoury's git tree for the cubox, which is further attributed to Sebastian Hesselbrath. Rather than masking the KIRKWOOD_DCO_SPCR_STATUS register contents against the registers virtual address, let's actually use the bit definition for the locked status, as required in the documentation. Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
1 parent 25ec6bb commit 2424d45

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sound/soc/kirkwood/kirkwood-i2s.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ static inline void kirkwood_set_dco(void __iomem *io, unsigned long rate)
9595
do {
9696
cpu_relax();
9797
value = readl(io + KIRKWOOD_DCO_SPCR_STATUS);
98-
value &= KIRKWOOD_DCO_SPCR_STATUS;
98+
value &= KIRKWOOD_DCO_SPCR_STATUS_DCO_LOCK;
9999
} while (value == 0);
100100
}
101101

0 commit comments

Comments
 (0)