Skip to content

Commit

Permalink
ASoC: OMAP: HDMI: Update the platform device names
Browse files Browse the repository at this point in the history
In order to utilize the new OMAP HDMI codec and the updated name of
the device of the CPU DAI, update the names at the drivers accordingly.

While there, also update the name of the machine driver to be more
generic and encompass more OMAP processors featuring HDMI and not
only OMAP4.

Signed-off-by: Ricardo Neri <[email protected]>
Acked-by: Mark Brown <[email protected]>
Signed-off-by: Liam Girdwood <[email protected]>
  • Loading branch information
Ricardo Neri authored and lrg-ti committed May 22, 2012
1 parent 356bccb commit e412ec6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion sound/soc/omap/omap-hdmi.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
#include "omap-pcm.h"
#include "omap-hdmi.h"

#define DRV_NAME "hdmi-audio-dai"
#define DRV_NAME "omap-hdmi-audio-dai"

static struct omap_pcm_dma_data omap_hdmi_dai_dma_params = {
.name = "HDMI playback",
Expand Down
10 changes: 5 additions & 5 deletions sound/soc/omap/omap4-hdmi-card.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
#include <asm/mach-types.h>
#include <video/omapdss.h>

#define DRV_NAME "omap4-hdmi-audio"
#define DRV_NAME "omap-hdmi-audio"

static int omap4_hdmi_dai_hw_params(struct snd_pcm_substream *substream,
struct snd_pcm_hw_params *params)
Expand Down Expand Up @@ -65,10 +65,10 @@ static struct snd_soc_ops omap4_hdmi_dai_ops = {
static struct snd_soc_dai_link omap4_hdmi_dai = {
.name = "HDMI",
.stream_name = "HDMI",
.cpu_dai_name = "hdmi-audio-dai",
.cpu_dai_name = "omap-hdmi-audio-dai",
.platform_name = "omap-pcm-audio",
.codec_name = "omapdss_hdmi",
.codec_dai_name = "hdmi-audio-codec",
.codec_name = "hdmi-audio-codec",
.codec_dai_name = "omap-hdmi-hifi",
.ops = &omap4_hdmi_dai_ops,
};

Expand Down Expand Up @@ -106,7 +106,7 @@ static int __devexit omap4_hdmi_remove(struct platform_device *pdev)

static struct platform_driver omap4_hdmi_driver = {
.driver = {
.name = "omap4-hdmi-audio",
.name = DRV_NAME,
.owner = THIS_MODULE,
},
.probe = omap4_hdmi_probe,
Expand Down

0 comments on commit e412ec6

Please sign in to comment.