Skip to content

Commit

Permalink
ASoC: sh: fsi: use simple-card instead of fsi-hdmi
Browse files Browse the repository at this point in the history
This patch uses simple-card driver instead of fsi-hdmi on each board.
This patch removes fsi-hdmi driver which is no longer needed

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
  • Loading branch information
Kuninori Morimoto authored and Mark Brown committed Apr 13, 2012
1 parent af8a2fe commit fa063b4
Show file tree
Hide file tree
Showing 5 changed files with 38 additions and 129 deletions.
20 changes: 19 additions & 1 deletion arch/arm/mach-shmobile/board-ap4evb.c
Original file line number Diff line number Diff line change
Expand Up @@ -909,8 +909,26 @@ static struct platform_device lcdc1_device = {
},
};

static struct asoc_simple_dai_init_info fsi2_hdmi_init_info = {
.cpu_daifmt = SND_SOC_DAIFMT_CBM_CFM,
};

static struct asoc_simple_card_info fsi2_hdmi_info = {
.name = "HDMI",
.card = "FSI2B-HDMI",
.cpu_dai = "fsib-dai",
.codec = "sh-mobile-hdmi",
.platform = "sh_fsi2",
.codec_dai = "sh_mobile_hdmi-hifi",
.init = &fsi2_hdmi_init_info,
};

static struct platform_device fsi_hdmi_device = {
.name = "sh_fsi2_b_hdmi",
.name = "asoc-simple-card",
.id = 1,
.dev = {
.platform_data = &fsi2_hdmi_info,
},
};

static struct gpio_led ap4evb_leds[] = {
Expand Down
20 changes: 19 additions & 1 deletion arch/arm/mach-shmobile/board-mackerel.c
Original file line number Diff line number Diff line change
Expand Up @@ -503,8 +503,26 @@ static struct platform_device hdmi_lcdc_device = {
},
};

static struct asoc_simple_dai_init_info fsi2_hdmi_init_info = {
.cpu_daifmt = SND_SOC_DAIFMT_CBM_CFM,
};

static struct asoc_simple_card_info fsi2_hdmi_info = {
.name = "HDMI",
.card = "FSI2B-HDMI",
.cpu_dai = "fsib-dai",
.codec = "sh-mobile-hdmi",
.platform = "sh_fsi2",
.codec_dai = "sh_mobile_hdmi-hifi",
.init = &fsi2_hdmi_init_info,
};

static struct platform_device fsi_hdmi_device = {
.name = "sh_fsi2_b_hdmi",
.name = "asoc-simple-card",
.id = 1,
.dev = {
.platform_data = &fsi2_hdmi_info,
},
};

static void __init hdmi_init_pm_clock(void)
Expand Down
7 changes: 0 additions & 7 deletions sound/soc/sh/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -54,13 +54,6 @@ config SND_FSI_DA7210
This option enables generic sound support for the
FSI - DA7210 unit

config SND_FSI_HDMI
tristate "FSI-HDMI sound support"
depends on SND_SOC_SH4_FSI && FB_SH_MOBILE_HDMI
help
This option enables generic sound support for the
FSI - HDMI unit

config SND_SIU_MIGOR
tristate "SIU sound support on Migo-R"
depends on SH_MIGOR
Expand Down
2 changes: 0 additions & 2 deletions sound/soc/sh/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,8 @@ obj-$(CONFIG_SND_SOC_SH4_SIU) += snd-soc-siu.o
## boards
snd-soc-sh7760-ac97-objs := sh7760-ac97.o
snd-soc-fsi-da7210-objs := fsi-da7210.o
snd-soc-fsi-hdmi-objs := fsi-hdmi.o
snd-soc-migor-objs := migor.o

obj-$(CONFIG_SND_SH7760_AC97) += snd-soc-sh7760-ac97.o
obj-$(CONFIG_SND_FSI_DA7210) += snd-soc-fsi-da7210.o
obj-$(CONFIG_SND_FSI_HDMI) += snd-soc-fsi-hdmi.o
obj-$(CONFIG_SND_SIU_MIGOR) += snd-soc-migor.o
118 changes: 0 additions & 118 deletions sound/soc/sh/fsi-hdmi.c

This file was deleted.

0 comments on commit fa063b4

Please sign in to comment.