Skip to content

Commit

Permalink
mfd: arizona: Allow the CODEC DAPM context to be accessed elsewhere
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Mark Brown committed Nov 28, 2012
1 parent 50fcfe4 commit b951b52
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions include/linux/mfd/arizona/core.h
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,8 @@ enum arizona_type {

#define ARIZONA_NUM_IRQ 50

struct snd_soc_dapm_context;

struct arizona {
struct regmap *regmap;
struct device *dev;
Expand All @@ -98,6 +100,8 @@ struct arizona {

struct mutex clk_lock;
int clk32k_ref;

struct snd_soc_dapm_context *dapm;
};

int arizona_clk32k_enable(struct arizona *arizona);
Expand Down

0 comments on commit b951b52

Please sign in to comment.