@@ -339,6 +339,8 @@ static int hdmi_codec_digital_mute(struct snd_soc_dai *dai, int mute)
.sig_bits = 24,
},
.ops = &hdmi_dai_ops,
+ .pcm_controls = hdmi_controls,
+ .num_pcm_controls = ARRAY_SIZE(hdmi_controls),
};
static const struct snd_soc_dai_driver hdmi_spdif_dai = {
@@ -381,8 +383,6 @@ static int hdmi_of_xlate_dai_name(struct snd_soc_component *component,
static struct snd_soc_codec_driver hdmi_codec = {
.component_driver = {
- .controls = hdmi_controls,
- .num_controls = ARRAY_SIZE(hdmi_controls),
.dapm_widgets = hdmi_widgets,
.num_dapm_widgets = ARRAY_SIZE(hdmi_widgets),
.dapm_routes = hdmi_routes,
link ELD control to PCM device to support multi instances of the codec. Signed-off-by: Arnaud Pouliquen <arnaud.pouliquen@st.com> --- sound/soc/codecs/hdmi-codec.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)