summaryrefslogtreecommitdiffstats
path: root/sound/soc/codecs/rt5640.h
diff options
context:
space:
mode:
authorSugar Zhang <sugar.zhang@rock-chips.com>2016-02-22 08:56:55 +0100
committerMark Brown <broonie@kernel.org>2016-02-22 12:05:21 +0100
commit6049af00fc2fac8d27f8bd064ff68b16991a80f7 (patch)
treec55281881daecb581cc7dd3a462a5e2d78edf234 /sound/soc/codecs/rt5640.h
parentLinux 4.5-rc1 (diff)
downloadlinux-6049af00fc2fac8d27f8bd064ff68b16991a80f7.tar.xz
linux-6049af00fc2fac8d27f8bd064ff68b16991a80f7.zip
ASoC: rt5640: add master clock handling for rt5640
enable/disable master clock when codec is active or not. Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/codecs/rt5640.h')
-rw-r--r--sound/soc/codecs/rt5640.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sound/soc/codecs/rt5640.h b/sound/soc/codecs/rt5640.h
index 83a7150ddc24..1761c3a98b76 100644
--- a/sound/soc/codecs/rt5640.h
+++ b/sound/soc/codecs/rt5640.h
@@ -12,6 +12,7 @@
#ifndef _RT5640_H
#define _RT5640_H
+#include <linux/clk.h>
#include <sound/rt5640.h>
/* Info */
@@ -2097,6 +2098,7 @@ struct rt5640_priv {
struct snd_soc_codec *codec;
struct rt5640_platform_data pdata;
struct regmap *regmap;
+ struct clk *mclk;
int sysclk;
int sysclk_src;