Commit 51438449 authored by Mark Brown's avatar Mark Brown

ASoC: Make S3C64xx clock export function to return struct clk

This makes the interface usable with the s3c-iis-v2 rate calculator
and consistent with S3C2412.
Signed-off-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
parent 8a0f62b8
...@@ -108,14 +108,13 @@ static int s3c64xx_i2s_set_sysclk(struct snd_soc_dai *cpu_dai, ...@@ -108,14 +108,13 @@ static int s3c64xx_i2s_set_sysclk(struct snd_soc_dai *cpu_dai,
return 0; return 0;
} }
struct clk *s3c64xx_i2s_get_clock(struct snd_soc_dai *dai)
unsigned long s3c64xx_i2s_get_clockrate(struct snd_soc_dai *dai)
{ {
struct s3c_i2sv2_info *i2s = to_info(dai); struct s3c_i2sv2_info *i2s = to_info(dai);
return clk_get_rate(i2s->iis_cclk); return i2s->iis_cclk;
} }
EXPORT_SYMBOL_GPL(s3c64xx_i2s_get_clockrate); EXPORT_SYMBOL_GPL(s3c64xx_i2s_get_clock);
static int s3c64xx_i2s_probe(struct platform_device *pdev, static int s3c64xx_i2s_probe(struct platform_device *pdev,
struct snd_soc_dai *dai) struct snd_soc_dai *dai)
......
...@@ -15,6 +15,8 @@ ...@@ -15,6 +15,8 @@
#ifndef __SND_SOC_S3C24XX_S3C64XX_I2S_H #ifndef __SND_SOC_S3C24XX_S3C64XX_I2S_H
#define __SND_SOC_S3C24XX_S3C64XX_I2S_H __FILE__ #define __SND_SOC_S3C24XX_S3C64XX_I2S_H __FILE__
struct clk;
#include "s3c-i2s-v2.h" #include "s3c-i2s-v2.h"
#define S3C64XX_DIV_BCLK S3C_I2SV2_DIV_BCLK #define S3C64XX_DIV_BCLK S3C_I2SV2_DIV_BCLK
...@@ -26,6 +28,6 @@ ...@@ -26,6 +28,6 @@
extern struct snd_soc_dai s3c64xx_i2s_dai[]; extern struct snd_soc_dai s3c64xx_i2s_dai[];
extern unsigned long s3c64xx_i2s_get_clockrate(struct snd_soc_dai *cpu_dai); extern struct clk *s3c64xx_i2s_get_clock(struct snd_soc_dai *dai);
#endif /* __SND_SOC_S3C24XX_S3C64XX_I2S_H */ #endif /* __SND_SOC_S3C24XX_S3C64XX_I2S_H */
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment