Applied "ASoC: hdmi-codec: Add an op to set callback function for plug event" to the asoc tree
Mark Brown
maintainerThe patch
ASoC: hdmi-codec: Add an op to set callback function for plug event
has been applied to the asoc tree at
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git
All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted.
You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed.
If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced.
Please add any relevant lists and maintainers to the CCs when replying to this mail.
Thanks,
Mark
From 6fa5963c37a2e3335eba0b7455e35a01318ebc15 Mon Sep 17 00:00:00 2001
From: Cheng-Yi Chiang <[email protected]>
Date: Wed, 17 Jul 2019 16:33:23 +0800
Subject: [PATCH] ASoC: hdmi-codec: Add an op to set callback function for plug
event
Add an op in hdmi_codec_ops so codec driver can register callback function to handle plug event.
Driver in DRM can use this callback function to report connector status.
--- include/sound/hdmi-codec.h | 17 +++++++++++++ sound/soc/codecs/hdmi-codec.c | 46 +++++++++++++++++++++++++++++++++++ 2 files changed, 63 insertions(+)
include/sound/hdmi-codec.h +17 -0
@@ -47,6 +47,9 @@ struct hdmi_codec_params {int channels; }; +typedef void (*hdmi_codec_plugged_cb )(struct device *dev, +bool plugged); +struct hdmi_codec_pdata ;struct hdmi_codec_ops {/*
@@ -88,6 +91,14 @@ struct hdmi_codec_ops {*/ int (*get_dai_id)(struct snd_soc_component *comment,struct device_node *endpoint); + +/* +* Hook callback function to handle connector plug event. +* Optional +*/ +int (*hook_plugged_cb)(struct device *dev,void *data, +hdmi_codec_plugged_cb fn, +struct device *codec_dev); };/* HDMI codec initalization data */
@@ -99,6 +110,12 @@ struct hdmi_codec_pdata { void *data; }; +struct snd_soc_component ; +struct snd_soc_jack ; + +int hdmi_codec_set_jack_detect (struct snd_soc_component *component, +struct snd_soc_jack *jack); +#define HDMI_CODEC_DRV_NAME "hdmi-audio-codec"#endif /* __HDMI_CODEC_H__ */
sound/soc/codecs/hdmi-codec.c +46 -0
64 lines not on this page · raw message
Signature · 6 lines
2.20.1 _______________________________________________ Alsa-devel mailing list [email protected] https://mailman.alsa-project.org/mailman/listinfo/alsa-devel