Browse Source

mfd: arizona: Allow the CODEC DAPM context to be accessed elsewhere

Some other device functions need to integrate with signal sources in the
audio portion (primarily for haptics) so allow CODEC to export the DAPM
context by pointing to it from the core driver.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Mark Brown 12 years ago
parent
commit
b951b523ea
1 changed files with 4 additions and 0 deletions
  1. 4 0
      include/linux/mfd/arizona/core.h

+ 4 - 0
include/linux/mfd/arizona/core.h

@@ -78,6 +78,8 @@ enum arizona_type {
 
 
 #define ARIZONA_NUM_IRQ                   50
 #define ARIZONA_NUM_IRQ                   50
 
 
+struct snd_soc_dapm_context;
+
 struct arizona {
 struct arizona {
 	struct regmap *regmap;
 	struct regmap *regmap;
 	struct device *dev;
 	struct device *dev;
@@ -98,6 +100,8 @@ struct arizona {
 
 
 	struct mutex clk_lock;
 	struct mutex clk_lock;
 	int clk32k_ref;
 	int clk32k_ref;
+
+	struct snd_soc_dapm_context *dapm;
 };
 };
 
 
 int arizona_clk32k_enable(struct arizona *arizona);
 int arizona_clk32k_enable(struct arizona *arizona);