hcp->chmap_info->chmap = hdmi_codec_stereo_chmaps;
hcp->chmap_idx = HDMI_CODEC_CHMAP_IDX_UNKNOWN;
---- return 0;
++++ /* add ELD ctl with the device number corresponding to the PCM stream */
++++ kctl = snd_ctl_new1(&hdmi_eld_ctl, dai->component);
++++ if (!kctl)
++++ return -ENOMEM;
++++
++++ return snd_ctl_add(rtd->card->snd_card, kctl);
}
-----static struct snd_soc_dai_driver hdmi_i2s_dai = {
+++++static const struct snd_soc_dai_driver hdmi_i2s_dai = {
.name = "i2s-hifi",
.id = DAI_ID_I2S,
.playback = {
return ret;
}
-----static struct snd_soc_codec_driver hdmi_codec = {
+++++static const 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,