Skip to content

Commit

Permalink
davinci: da8xx/omap-l1x: add platform device for davinci-pcm-audio
Browse files Browse the repository at this point in the history
After the multi-component commit f0fba2a (ASoC: multi-component - ASoC
Multi-Component Support) for ASoC, we need to register the platform
device for davinci-pcm-audio.

This patch and patch at [1] are required for audio to work on
DA850/OMAP-L138.

[1] https://patchwork.kernel.org/patch/495211/

Signed-off-by: Rajashekhara, Sudhakar <sudhakar.raj@ti.com>
Signed-off-by: Kevin Hilman <khilman@ti.com>
  • Loading branch information
Rajashekhara, Sudhakar authored and Kevin Hilman committed Feb 28, 2011
1 parent f5412be commit b3d1ffb
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions arch/arm/mach-davinci/devices-da8xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -480,8 +480,15 @@ static struct platform_device da850_mcasp_device = {
.resource = da850_mcasp_resources,
};

struct platform_device davinci_pcm_device = {
.name = "davinci-pcm-audio",
.id = -1,
};

void __init da8xx_register_mcasp(int id, struct snd_platform_data *pdata)
{
platform_device_register(&davinci_pcm_device);

/* DA830/OMAP-L137 has 3 instances of McASP */
if (cpu_is_davinci_da830() && id == 1) {
da830_mcasp1_device.dev.platform_data = pdata;
Expand Down

0 comments on commit b3d1ffb

Please sign in to comment.