summaryrefslogtreecommitdiff
path: root/sound/soc/codecs/hdac_hdmi.h
diff options
context:
space:
mode:
authorJeeja KP <jeeja.kp@intel.com>2016-02-12 05:16:06 +0300
committerMark Brown <broonie@kernel.org>2016-02-15 23:54:03 +0300
commit4a3478debf36c0aa0cf0860daec245b13cd4448f (patch)
tree8bd163646d9c557be6b64bcc7ad1b2e88b4f2a34 /sound/soc/codecs/hdac_hdmi.h
parent79f4e922b54771a4d41b1da67caf109ba92ed95a (diff)
downloadlinux-4a3478debf36c0aa0cf0860daec245b13cd4448f.tar.xz
ASoC: hdac_hdmi: Add jack reporting
Jack is created based on pcm devices enumerated, so we will create Jack as "HDMI/DP, pcm=x Jack". This style is expected by current usermode like PulseAudio and CRAS. This patch exports an API which can be used to register Jack based on PCM. This API also establishes the map between PCM and cvt. Further cvt to pin mapping is established with the help of usermode selection based on the board topology. During device probe as the PCMs may not be registered, initial pin sense don't report jack events. So, first time jack reporting is done during user selection of mux control. Signed-off-by: Jeeja KP <jeeja.kp@intel.com> Signed-off-by: Subhransu S. Prusty <subhransu.s.prusty@intel.com> Signed-off-by: Vinod Koul <vinod.koul@intel.com> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/codecs/hdac_hdmi.h')
-rw-r--r--sound/soc/codecs/hdac_hdmi.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/sound/soc/codecs/hdac_hdmi.h b/sound/soc/codecs/hdac_hdmi.h
new file mode 100644
index 000000000000..8dfd1e0b57b3
--- /dev/null
+++ b/sound/soc/codecs/hdac_hdmi.h
@@ -0,0 +1,6 @@
+#ifndef __HDAC_HDMI_H__
+#define __HDAC_HDMI_H__
+
+int hdac_hdmi_jack_init(struct snd_soc_dai *dai, int pcm);
+
+#endif /* __HDAC_HDMI_H__ */