summaryrefslogtreecommitdiff
path: root/sound/soc/soc-core.c
diff options
context:
space:
mode:
authorSudheer Papothi <spapothi@codeaurora.org>2016-01-29 00:36:30 +0530
committerDavid Keitel <dkeitel@codeaurora.org>2016-03-23 20:09:50 -0700
commit93a336484a5e14711f62bc83f08cddd08ef3669e (patch)
tree56a533683a94b145370f759ee2dc4d7c7ac6a145 /sound/soc/soc-core.c
parent7ed3e4477179ea3db0639f740d191840a9a8b9f8 (diff)
ALSA: core: Expose sound card online/offline state
Expose sound card online/offline state to procfs so userspace application can poll and read sound card's state. Signed-off-by: Joonwoo Park <joonwoop@codeaurora.org> Signed-off-by: Banajit Goswami <bgoswami@codeaurora.org> Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
Diffstat (limited to 'sound/soc/soc-core.c')
-rw-r--r--sound/soc/soc-core.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/sound/soc/soc-core.c b/sound/soc/soc-core.c
index 24cb33a9f5c8..e28f0f9e6e99 100644
--- a/sound/soc/soc-core.c
+++ b/sound/soc/soc-core.c
@@ -3039,6 +3039,17 @@ static int snd_soc_codec_set_bias_level(struct snd_soc_dapm_context *dapm,
}
/**
+ * snd_soc_card_change_online_state - Mark if soc card is online/offline
+ *
+ * @soc_card : soc_card to mark
+ */
+void snd_soc_card_change_online_state(struct snd_soc_card *soc_card, int online)
+{
+ snd_card_change_online_state(soc_card->snd_card, online);
+}
+EXPORT_SYMBOL(snd_soc_card_change_online_state);
+
+/**
* snd_soc_register_codec - Register a codec with the ASoC core
*
* @dev: The parent device for this codec