aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/codecs/sigmadsp.h
diff options
context:
space:
mode:
authorLars-Peter Clausen <lars@metafoo.de>2011-11-28 03:44:20 -0500
committerMark Brown <broonie@opensource.wolfsonmicro.com>2011-11-29 07:01:23 -0500
commit38fd54ee38624a52c28d65fadfd452c9c49fb152 (patch)
tree2c713f2e81fba99f09d3dfdf531b714090190595 /sound/soc/codecs/sigmadsp.h
parenta4c1d7e66719b326431c6e617da07cab0caedbca (diff)
ASoC: SigmaDSP: Add regmap support
Add support for loading the SigmaDSP firmware using regmap. This allows us to transparently use SPI or I2C as the transport protocol on devices which support them. For now we keep the old I2C support since we have one user of this which is not straight forward to convert to regmap, due to variable length registers. Signed-off-by: Lars-Peter Clausen <lars@metafoo.de> Acked-by: Mike Frysinger <vapier@gentoo.org> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound/soc/codecs/sigmadsp.h')
-rw-r--r--sound/soc/codecs/sigmadsp.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/sound/soc/codecs/sigmadsp.h b/sound/soc/codecs/sigmadsp.h
index 99a609157b2e..e439cbd7af7d 100644
--- a/sound/soc/codecs/sigmadsp.h
+++ b/sound/soc/codecs/sigmadsp.h
@@ -9,8 +9,13 @@
9#ifndef __SIGMA_FIRMWARE_H__ 9#ifndef __SIGMA_FIRMWARE_H__
10#define __SIGMA_FIRMWARE_H__ 10#define __SIGMA_FIRMWARE_H__
11 11
12#include <linux/device.h>
13#include <linux/regmap.h>
14
12struct i2c_client; 15struct i2c_client;
13 16
14extern int process_sigma_firmware(struct i2c_client *client, const char *name); 17extern int process_sigma_firmware(struct i2c_client *client, const char *name);
18extern int process_sigma_firmware_regmap(struct device *dev,
19 struct regmap *regmap, const char *name);
15 20
16#endif 21#endif