26 #include <linux/module.h>
27 #include <linux/device.h>
40 #define DRV_NAME "omap-hdmi-audio-dai"
62 dev_err(dai->
dev,
"could not apply constraint\n");
66 if (!priv->
dssdev->driver->audio_supported(priv->
dssdev)) {
71 snd_soc_dai_set_dma_data(dai, substream, &priv->
dma_params);
79 struct hdmi_priv *priv = snd_soc_dai_get_drvdata(dai);
88 struct hdmi_priv *priv = snd_soc_dai_get_drvdata(dai);
94 dma_data = snd_soc_dai_get_dma_data(dai, substream);
219 struct hdmi_priv *priv = snd_soc_dai_get_drvdata(dai);
242 struct hdmi_priv *priv = snd_soc_dai_get_drvdata(dai);
248 .startup = omap_hdmi_dai_startup,
249 .hw_params = omap_hdmi_dai_hw_params,
250 .prepare = omap_hdmi_dai_prepare,
251 .trigger = omap_hdmi_dai_trigger,
252 .shutdown = omap_hdmi_dai_shutdown,
262 .ops = &omap_hdmi_dai_ops,
270 bool hdmi_dev_found =
false;
273 if (hdmi_data ==
NULL) {
274 dev_err(&pdev->
dev,
"Cannot allocate memory for HDMI data\n");
280 dev_err(&pdev->
dev,
"Cannot obtain IORESOURCE_MEM HDMI\n");
289 dev_err(&pdev->
dev,
"Cannot obtain IORESOURCE_DMA HDMI\n");
305 if (!hdmi_data->
dssdev->driver) {
311 hdmi_dev_found =
true;
316 if (!hdmi_dev_found) {
317 dev_err(&pdev->
dev,
"no driver for HDMI display found\n");
333 if (hdmi_data ==
NULL) {
334 dev_err(&pdev->
dev,
"cannot obtain HDMi data\n");
347 .probe = omap_hdmi_probe,