ASoC: Add component level stream_event() and seq_notifier() support
authorLars-Peter Clausen <lars@metafoo.de>
Mon, 16 Jun 2014 16:13:08 +0000 (18:13 +0200)
committerMark Brown <broonie@linaro.org>
Sat, 21 Jun 2014 20:34:15 +0000 (21:34 +0100)
commit14e8bdebfbc1d5c8804b3520233b2d4e516056bc
tree90e394978404a1c5ec420295ffe749aed80e356f
parentbc9af9fa9b89cb74eed020066d882abf238fad69
ASoC: Add component level stream_event() and seq_notifier() support

This patch adds stream_event() and seq_notifier() callbacks similar to those
found in the snd_soc_codec_driver and snd_soc_platform driver struct to the
snd_soc_component_driver struct. This is meant to unify the handling of these
callbacks across different types of components and will eventually allow their
removal from the CODEC and platfrom driver structs.

The new callbacks are slightly different from the old ones in that they take a
snd_soc_component as a parameter rather than a snd_soc_dapm_context. This was
done since otherwise casting from the DAPM context to the component would
typically be the first thing to do in the callback. And the interface becomes
slightly cleaner by passing a snd_soc_component to all callbacks in the
snd_soc_component_driver struct.

The patch also already removes the stream_event() callback from the
snd_soc_codec_driver and snd_soc_platform_driver structs as it is currently
unused.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Mark Brown <broonie@linaro.org>
include/sound/soc.h
sound/soc/soc-core.c