Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 305626
b: refs/heads/master
c: af8a2fe
h: refs/heads/master
v: v3
  • Loading branch information
Kuninori Morimoto authored and Mark Brown committed Apr 13, 2012
1 parent 47b99ec commit 4bfc5b4
Show file tree
Hide file tree
Showing 10 changed files with 40 additions and 140 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: f2390880ec0264a0ed26b32c23bc23435b4297da
refs/heads/master: af8a2fe12fae1b59178dc96e396e5665bcbea7da
2 changes: 2 additions & 0 deletions trunk/arch/arm/mach-shmobile/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ config MACH_AP4EVB
depends on ARCH_SH7372
select ARCH_REQUIRE_GPIOLIB
select SH_LCD_MIPI_DSI
select SND_SOC_AK4642 if SND_SIMPLE_CARD

choice
prompt "AP4EVB LCD panel selection"
Expand All @@ -82,6 +83,7 @@ config MACH_MACKEREL
bool "mackerel board"
depends on ARCH_SH7372
select ARCH_REQUIRE_GPIOLIB
select SND_SOC_AK4642 if SND_SIMPLE_CARD

config MACH_KOTA2
bool "KOTA2 board"
Expand Down
15 changes: 12 additions & 3 deletions trunk/arch/arm/mach-shmobile/board-ap4evb.c
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@
#include <media/soc_camera.h>

#include <sound/sh_fsi.h>
#include <sound/simple_card.h>

#include <video/sh_mobile_hdmi.h>
#include <video/sh_mobile_lcdc.h>
Expand Down Expand Up @@ -785,17 +786,25 @@ static struct platform_device fsi_device = {
},
};

static struct fsi_ak4642_info fsi2_ak4643_info = {
static struct asoc_simple_dai_init_info fsi2_ak4643_init_info = {
.fmt = SND_SOC_DAIFMT_LEFT_J,
.codec_daifmt = SND_SOC_DAIFMT_CBM_CFM,
.cpu_daifmt = SND_SOC_DAIFMT_CBS_CFS,
.sysclk = 11289600,
};

static struct asoc_simple_card_info fsi2_ak4643_info = {
.name = "AK4643",
.card = "FSI2A-AK4643",
.cpu_dai = "fsia-dai",
.codec = "ak4642-codec.0-0013",
.platform = "sh_fsi2",
.id = FSI_PORT_A,
.codec_dai = "ak4642-hifi",
.init = &fsi2_ak4643_init_info,
};

static struct platform_device fsi_ak4643_device = {
.name = "fsi-ak4642-audio",
.name = "asoc-simple-card",
.dev = {
.platform_data = &fsi2_ak4643_info,
},
Expand Down
15 changes: 12 additions & 3 deletions trunk/arch/arm/mach-shmobile/board-mackerel.c
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@
#include <media/soc_camera.h>
#include <media/soc_camera_platform.h>
#include <sound/sh_fsi.h>
#include <sound/simple_card.h>

#include <mach/common.h>
#include <mach/irqs.h>
Expand Down Expand Up @@ -941,17 +942,25 @@ static struct platform_device fsi_device = {
},
};

static struct fsi_ak4642_info fsi2_ak4643_info = {
static struct asoc_simple_dai_init_info fsi2_ak4643_init_info = {
.fmt = SND_SOC_DAIFMT_LEFT_J,
.codec_daifmt = SND_SOC_DAIFMT_CBM_CFM,
.cpu_daifmt = SND_SOC_DAIFMT_CBS_CFS,
.sysclk = 11289600,
};

static struct asoc_simple_card_info fsi2_ak4643_info = {
.name = "AK4643",
.card = "FSI2A-AK4643",
.cpu_dai = "fsia-dai",
.codec = "ak4642-codec.0-0013",
.platform = "sh_fsi2",
.id = FSI_PORT_A,
.codec_dai = "ak4642-hifi",
.init = &fsi2_ak4643_init_info,
};

static struct platform_device fsi_ak4643_device = {
.name = "fsi-ak4642-audio",
.name = "asoc-simple-card",
.dev = {
.platform_data = &fsi2_ak4643_info,
},
Expand Down
1 change: 1 addition & 0 deletions trunk/arch/sh/boards/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ config SH_7724_SOLUTION_ENGINE
select SOLUTION_ENGINE
depends on CPU_SUBTYPE_SH7724
select ARCH_REQUIRE_GPIOLIB
select SND_SOC_AK4642 if SND_SIMPLE_CARD
help
Select 7724 SolutionEngine if configuring for a Hitachi SH7724
evaluation board.
Expand Down
15 changes: 12 additions & 3 deletions trunk/arch/sh/boards/mach-se/7724/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
#include <video/sh_mobile_lcdc.h>
#include <media/sh_mobile_ceu.h>
#include <sound/sh_fsi.h>
#include <sound/simple_card.h>
#include <asm/io.h>
#include <asm/heartbeat.h>
#include <asm/clock.h>
Expand Down Expand Up @@ -304,17 +305,25 @@ static struct platform_device fsi_device = {
},
};

static struct fsi_ak4642_info fsi_ak4642_info = {
static struct asoc_simple_dai_init_info fsi2_ak4642_init_info = {
.fmt = SND_SOC_DAIFMT_LEFT_J,
.codec_daifmt = SND_SOC_DAIFMT_CBM_CFM,
.cpu_daifmt = SND_SOC_DAIFMT_CBS_CFS,
.sysclk = 11289600,
};

static struct asoc_simple_card_info fsi_ak4642_info = {
.name = "AK4642",
.card = "FSIA-AK4642",
.cpu_dai = "fsia-dai",
.codec = "ak4642-codec.0-0012",
.platform = "sh_fsi.0",
.id = FSI_PORT_A,
.codec_dai = "ak4642-hifi",
.init = &fsi2_ak4642_init_info,
};

static struct platform_device fsi_ak4642_device = {
.name = "fsi-ak4642-audio",
.name = "asoc-simple-card",
.dev = {
.platform_data = &fsi_ak4642_info,
},
Expand Down
12 changes: 0 additions & 12 deletions trunk/include/sound/sh_fsi.h
Original file line number Diff line number Diff line change
Expand Up @@ -84,16 +84,4 @@ struct sh_fsi_platform_info {
struct sh_fsi_port_info port_b;
};

/*
* for fsi-ak4642
*/
struct fsi_ak4642_info {
const char *name;
const char *card;
const char *cpu_dai;
const char *codec;
const char *platform;
int id;
};

#endif /* __SOUND_FSI_H */
8 changes: 0 additions & 8 deletions trunk/sound/soc/sh/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -46,14 +46,6 @@ config SND_SH7760_AC97
This option enables generic sound support for the first
AC97 unit of the SH7760.

config SND_FSI_AK4642
tristate "FSI-AK4642 sound support"
depends on SND_SOC_SH4_FSI && I2C
select SND_SOC_AK4642
help
This option enables generic sound support for the
FSI - AK4642 unit

config SND_FSI_DA7210
tristate "FSI-DA7210 sound support"
depends on SND_SOC_SH4_FSI && I2C
Expand Down
2 changes: 0 additions & 2 deletions trunk/sound/soc/sh/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,11 @@ obj-$(CONFIG_SND_SOC_SH4_SIU) += snd-soc-siu.o

## boards
snd-soc-sh7760-ac97-objs := sh7760-ac97.o
snd-soc-fsi-ak4642-objs := fsi-ak4642.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_AK4642) += snd-soc-fsi-ak4642.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
108 changes: 0 additions & 108 deletions trunk/sound/soc/sh/fsi-ak4642.c

This file was deleted.

0 comments on commit 4bfc5b4

Please sign in to comment.