.stream_name = "HDMI PCM",
.codec_name = "hdmi-i2s",
.platform_name = "rockchip-audio",
+#if defined(CONFIG_SND_RK29_SOC_I2S_8CH)
+ .cpu_dai_name = "rk29_i2s.0",
+#elif defined(CONFIG_SND_RK29_SOC_I2S_2CH)
.cpu_dai_name = "rk29_i2s.1",
+#endif
.codec_dai_name = "rk-hdmi-i2s-hifi",
.ops = &hdmi_i2s_hifi_ops,
};
platform_device_put(hdmi_i2s_device);
return ret;
}
- DBG("Enter::%s----%d 1\n",__FUNCTION__,__LINE__);
+
hdmi_i2s_snd_device = platform_device_alloc("soc-audio", -3);
if (!hdmi_i2s_snd_device) {
printk("platform device allocation failed\n");
.stream_name = "RK616 PCM",\r
.codec_name = "rk616-codec.4-0050",\r
.platform_name = "rockchip-audio",\r
+#if defined(CONFIG_SND_RK29_SOC_I2S_8CH)\r
+ .cpu_dai_name = "rk29_i2s.0",\r
+#elif defined(CONFIG_SND_RK29_SOC_I2S_2CH)\r
.cpu_dai_name = "rk29_i2s.1",\r
+#endif\r
.codec_dai_name = "rk616-hifi",\r
.init = rk616_init,\r
.ops = &rk616_hifi_ops,\r
.stream_name = "RK616 PCM",\r
.codec_name = "rk616-codec.4-0050",\r
.platform_name = "rockchip-audio",\r
+#if defined(CONFIG_SND_RK29_SOC_I2S_8CH)\r
+ .cpu_dai_name = "rk29_i2s.0",\r
+#elif defined(CONFIG_SND_RK29_SOC_I2S_2CH)\r
.cpu_dai_name = "rk29_i2s.1",\r
+#endif\r
.codec_dai_name = "rk616-voice",\r
.ops = &rk616_voice_ops,\r
},\r