Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 303453
b: refs/heads/master
c: 5eeec21
h: refs/heads/master
i:
  303451: e7e94f6
v: v3
  • Loading branch information
Ricardo Neri authored and Tony Lindgren committed May 9, 2012
1 parent 999dc6a commit 5d9b397
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: a42cf2c6c6ea0ec0237d555b95467c149e20e696
refs/heads/master: 5eeec215869cf7533d5180edcdf580a92cf50f66
31 changes: 31 additions & 0 deletions trunk/arch/arm/mach-omap2/devices.c
Original file line number Diff line number Diff line change
Expand Up @@ -355,6 +355,36 @@ static void __init omap_init_dmic(void)
static inline void omap_init_dmic(void) {}
#endif

#if defined(CONFIG_SND_OMAP_SOC_OMAP_HDMI) || \
defined(CONFIG_SND_OMAP_SOC_OMAP_HDMI_MODULE)

static struct platform_device omap_hdmi_audio = {
.name = "omap-hdmi-audio",
.id = -1,
};

static void __init omap_init_hdmi_audio(void)
{
struct omap_hwmod *oh;
struct platform_device *pdev;

oh = omap_hwmod_lookup("dss_hdmi");
if (!oh) {
printk(KERN_ERR "Could not look up dss_hdmi hw_mod\n");
return;
}

pdev = omap_device_build("omap-hdmi-audio-dai",
-1, oh, NULL, 0, NULL, 0, 0);
WARN(IS_ERR(pdev),
"Can't build omap_device for omap-hdmi-audio-dai.\n");

platform_device_register(&omap_hdmi_audio);
}
#else
static inline void omap_init_hdmi_audio(void) {}
#endif

#if defined(CONFIG_SPI_OMAP24XX) || defined(CONFIG_SPI_OMAP24XX_MODULE)

#include <plat/mcspi.h>
Expand Down Expand Up @@ -704,6 +734,7 @@ static int __init omap2_init_devices(void)
omap_init_mcpdm();
omap_init_dmic();
omap_init_camera();
omap_init_hdmi_audio();
omap_init_mbox();
omap_init_mcspi();
omap_init_pmu();
Expand Down

0 comments on commit 5d9b397

Please sign in to comment.