summaryrefslogtreecommitdiffstats
path: root/sound/soc/codecs/sigmadsp.h
diff options
context:
space:
mode:
authorLars-Peter Clausen <lars@metafoo.de>2014-11-19 18:29:06 +0100
committerMark Brown <broonie@kernel.org>2014-11-20 10:55:34 +0100
commita35daac77a0397d4f23b642d3dc0684682e56cc5 (patch)
tree6d6bb121b1e7491b26987492a4e11ee4a67ac321 /sound/soc/codecs/sigmadsp.h
parentASoC: sigmadsp: Restructure in preparation for fw v2 support (diff)
downloadlinux-a35daac77a0397d4f23b642d3dc0684682e56cc5.tar.xz
linux-a35daac77a0397d4f23b642d3dc0684682e56cc5.zip
ASoC: sigmadsp: Add support for fw v2
This patch adds support for the v2 version of the SigmaDSP firmware file format. The new format has support for having different program and parameter settings for different samplerates. In addition it stores metadata describing the firmware. This metadata includes the set of supported samplerates which will be used to restrict the samplerates that can be selected by userspace. Also included is information about the modifiable parameters. Those will be exposed as ALSA controls so they can be changed at runtime. The new format is based on a binary type-length-value structure that makes it both forward and backwards compatible. Signed-off-by: Lars-Peter Clausen <lars@metafoo.de> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/codecs/sigmadsp.h')
-rw-r--r--sound/soc/codecs/sigmadsp.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/sound/soc/codecs/sigmadsp.h b/sound/soc/codecs/sigmadsp.h
index a6be91a4c2dc..614475cbb823 100644
--- a/sound/soc/codecs/sigmadsp.h
+++ b/sound/soc/codecs/sigmadsp.h
@@ -27,14 +27,20 @@ struct sigmadsp_ops {
struct sigmadsp {
const struct sigmadsp_ops *ops;
+ struct list_head ctrl_list;
struct list_head data_list;
+ struct snd_pcm_hw_constraint_list rate_constraints;
+
unsigned int current_samplerate;
struct snd_soc_component *component;
struct device *dev;
+ struct mutex lock;
+
void *control_data;
int (*write)(void *, unsigned int, const uint8_t *, size_t);
+ int (*read)(void *, unsigned int, uint8_t *, size_t);
};
struct sigmadsp *devm_sigmadsp_init(struct device *dev,