* [PATCH] S3C64XX I2S: Return correct codec clock
@ 2009-09-18 6:22 jassi brar
2009-09-18 14:12 ` Mark Brown
0 siblings, 1 reply; 2+ messages in thread
From: jassi brar @ 2009-09-18 6:22 UTC (permalink / raw)
To: alsa-devel; +Cc: broonie, Jassi, ben
From: Jassi <jassi.brar@samsung.com>
Instead of always returnig pointer to the 'audio-bus' clock,
check which clock is used to generate internal clocks and
then return it's pointer.
Signed-off-by: Jassi <jassi.brar@samsung.com>
---
sound/soc/s3c24xx/s3c64xx-i2s.c | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/sound/soc/s3c24xx/s3c64xx-i2s.c b/sound/soc/s3c24xx/s3c64xx-i2s.c
index 62a7fce..66f4ded 100644
--- a/sound/soc/s3c24xx/s3c64xx-i2s.c
+++ b/sound/soc/s3c24xx/s3c64xx-i2s.c
@@ -133,8 +133,12 @@ static int s3c64xx_i2s_set_sysclk(struct snd_soc_dai *cpu_dai,
struct clk *s3c64xx_i2s_get_clock(struct snd_soc_dai *dai)
{
struct s3c_i2sv2_info *i2s = to_info(dai);
+ u32 iismod = readl(i2s->regs + S3C2412_IISMOD);
- return i2s->iis_cclk;
+ if (iismod & S3C64XX_IISMOD_IMS_SYSMUX)
+ return i2s->iis_cclk;
+ else
+ return i2s->iis_pclk;
}
EXPORT_SYMBOL_GPL(s3c64xx_i2s_get_clock);
--
1.6.2.5
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] S3C64XX I2S: Return correct codec clock
2009-09-18 6:22 [PATCH] S3C64XX I2S: Return correct codec clock jassi brar
@ 2009-09-18 14:12 ` Mark Brown
0 siblings, 0 replies; 2+ messages in thread
From: Mark Brown @ 2009-09-18 14:12 UTC (permalink / raw)
To: jassi brar; +Cc: alsa-devel, Jassi, ben
On Fri, Sep 18, 2009 at 03:22:27PM +0900, jassi brar wrote:
> From: Jassi <jassi.brar@samsung.com>
> Instead of always returnig pointer to the 'audio-bus' clock,
> check which clock is used to generate internal clocks and
> then return it's pointer.
> Signed-off-by: Jassi <jassi.brar@samsung.com>
Applied, thanks.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-09-18 14:12 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-09-18 6:22 [PATCH] S3C64XX I2S: Return correct codec clock jassi brar
2009-09-18 14:12 ` Mark Brown
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.