diff mbox

[1/4] mfd: arizona: Allow the CODEC DAPM context to be accessed elsewhere

Message ID 1354020025-23881-1-git-send-email-broonie@opensource.wolfsonmicro.com (mailing list archive)
State New, archived
Headers show

Commit Message

Mark Brown Nov. 27, 2012, 12:40 p.m. UTC
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>
---
 include/linux/mfd/arizona/core.h |    4 ++++
 1 file changed, 4 insertions(+)

Comments

Samuel Ortiz Nov. 30, 2012, 10:09 a.m. UTC | #1
Hi Mark,

On Tue, Nov 27, 2012 at 12:40:22PM +0000, Mark Brown wrote:
> 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>
> ---
>  include/linux/mfd/arizona/core.h |    4 ++++
>  1 file changed, 4 insertions(+)
Probably too late, but I think it would make sense to merge this one through
your asoc tree:

Acked-by: Samuel Ortiz <sameo@linux.intel.com>

Cheers,
Samuel.
diff mbox

Patch

diff --git a/include/linux/mfd/arizona/core.h b/include/linux/mfd/arizona/core.h
index dd231ac..a580363 100644
--- a/include/linux/mfd/arizona/core.h
+++ b/include/linux/mfd/arizona/core.h
@@ -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;
@@ -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);