summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorLiam Girdwood <lrg@slimlogic.co.uk>2011-05-31 09:22:52 +0100
committerAndy Green <andy.green@linaro.org>2011-05-31 11:03:04 +0100
commitfd455c2c3d4d1945371af7eb3a1eb6b609d98407 (patch)
tree9c4cfcd7fa43df328a22f483ebce9bbe3df0eb2e /include
parentad818ef3ece5feb020ae42639388ec62f9e418bf (diff)
ASoC: core: Add fixup function for BE hw_params
Backend hw_params may be different from their frontend. Add a machine specific callback to fixup. Change-Id: Ice31d930e14edd9484e901373de7b3cbfd045321 Signed-off-by: Liam Girdwood <lrg@slimlogic.co.uk> Signed-off-by: Misael Lopez Cruz <misael.lopez@ti.com> Signed-off-by: Margarita Olaya Cabrera <magi.olaya@ti.com>
Diffstat (limited to 'include')
-rw-r--r--include/sound/soc.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/sound/soc.h b/include/sound/soc.h
index 09057197b77..357887f93cb 100644
--- a/include/sound/soc.h
+++ b/include/sound/soc.h
@@ -627,6 +627,10 @@ struct snd_soc_dai_link {
/* codec/machine specific init - e.g. add machine controls */
int (*init)(struct snd_soc_pcm_runtime *rtd);
+ /* hw_params re-writing for BE and FE sync */
+ int (*be_hw_params_fixup)(struct snd_soc_pcm_runtime *rtd,
+ struct snd_pcm_hw_params *params);
+
/* machine stream operations */
struct snd_soc_ops *ops;
};