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>
This commit is contained in:

committed by
Mark Brown

parent
d48b088e3e
commit
a35daac77a
@@ -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,
|
||||
|
Reference in New Issue
Block a user