aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/atmel-ssc.h
diff options
context:
space:
mode:
authorPeter Rosin <peda@axentia.se>2016-12-06 20:22:36 +0100
committerMark Brown <broonie@kernel.org>2016-12-15 12:13:31 +0000
commite8314d7d53c8b050aac2828a5de5f28a997b468b (patch)
tree13f10f857576908d744e8a42f6cda3eae6908800 /include/linux/atmel-ssc.h
parentMerge remote-tracking branches 'asoc/topic/wm9712', 'asoc/topic/wm9713' and 'asoc/topic/zte' into asoc-next (diff)
downloadlinux-dev-e8314d7d53c8b050aac2828a5de5f28a997b468b.tar.xz
linux-dev-e8314d7d53c8b050aac2828a5de5f28a997b468b.zip
misc: atmel-ssc: register as sound DAI if #sound-dai-cells is present
The SSC is currently not usable with the ASoC simple-audio-card, as every SSC audio user has to build a platform driver that may do as little as calling atmel_ssc_set_audio/atmel_ssc_put_audio (which allocates the SSC and registers a DAI with the ASoC subsystem). So, have that happen automatically, if the #sound-dai-cells property is present in devicetree, which it has to be anyway for simple audio card to work. Signed-off-by: Peter Rosin <peda@axentia.se> Acked-by: Rob Herring <robh@kernel.org> Acked-by: Nicolas Ferre <nicolas.ferre@atmel.com> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'include/linux/atmel-ssc.h')
-rw-r--r--include/linux/atmel-ssc.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/atmel-ssc.h b/include/linux/atmel-ssc.h
index 7c0f6549898b..fdb545101ede 100644
--- a/include/linux/atmel-ssc.h
+++ b/include/linux/atmel-ssc.h
@@ -20,6 +20,7 @@ struct ssc_device {
int user;
int irq;
bool clk_from_rk_pin;
+ bool sound_dai;
};
struct ssc_device * __must_check ssc_request(unsigned int ssc_num);