* [PATCH] ARM: bockw: fixup SND_SOC_DAIFMT_CBx_CFx flags
@ 2014-03-24 3:27 Kuninori Morimoto
2014-03-24 3:33 ` Kuninori Morimoto
2014-03-24 10:41 ` Mark Brown
0 siblings, 2 replies; 3+ messages in thread
From: Kuninori Morimoto @ 2014-03-24 3:27 UTC (permalink / raw)
To: Mark Brown
Cc: Linux-ALSA, Kuninori Morimoto, linux-sh, Liam Girdwood, Simon,
Kuninori Morimoto
From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
SND_SOC_DAIFMT_CBx_CFx means "codec" side master/slave mode.
Then, rcar will be master mode if it was SND_SOC_DAIFMT_CBS_CFS.
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
---
>> Mark, Simon
I'm so sorry. current Mark's fix/rcar branch has
SND_SOC_DAIFMT_CBx_CFx fixup patches,
but it didn't care about bockw board.
This patch is for it.
This Subject is using "ARM: bockw:" prefix,
but, should it be "ASoC: rcar" ?
arch/arm/mach-shmobile/board-bockw.c | 16 +++++-----------
1 file changed, 5 insertions(+), 11 deletions(-)
diff --git a/arch/arm/mach-shmobile/board-bockw.c b/arch/arm/mach-shmobile/board-bockw.c
index b5867b7..f444be2 100644
--- a/arch/arm/mach-shmobile/board-bockw.c
+++ b/arch/arm/mach-shmobile/board-bockw.c
@@ -467,14 +467,12 @@ static struct asoc_simple_card_info rsnd_card_info[] = {
.card = "SSI56-AK4643",
.codec = "ak4642-codec.0-0012",
.platform = "rcar_sound",
- .daifmt = SND_SOC_DAIFMT_LEFT_J,
+ .daifmt = SND_SOC_DAIFMT_LEFT_J | SND_SOC_DAIFMT_CBM_CFM,
.cpu_dai = {
.name = "rsnd-dai.0",
- .fmt = SND_SOC_DAIFMT_CBS_CFS,
},
.codec_dai = {
.name = "ak4642-hifi",
- .fmt = SND_SOC_DAIFMT_CBM_CFM,
.sysclk = 11289600,
},
},
@@ -484,10 +482,9 @@ static struct asoc_simple_card_info rsnd_card_info[] = {
.card = "SSI3-AK4554(playback)",
.codec = "ak4554-adc-dac.0",
.platform = "rcar_sound",
+ .daifmt = SND_SOC_DAIFMT_CBS_CFS | SND_SOC_DAIFMT_RIGHT_J,
.cpu_dai = {
.name = "rsnd-dai.1",
- .fmt = SND_SOC_DAIFMT_CBM_CFM |
- SND_SOC_DAIFMT_RIGHT_J,
},
.codec_dai = {
.name = "ak4554-hifi",
@@ -499,10 +496,9 @@ static struct asoc_simple_card_info rsnd_card_info[] = {
.card = "SSI4-AK4554(capture)",
.codec = "ak4554-adc-dac.0",
.platform = "rcar_sound",
+ .daifmt = SND_SOC_DAIFMT_CBS_CFS | SND_SOC_DAIFMT_LEFT_J,
.cpu_dai = {
.name = "rsnd-dai.2",
- .fmt = SND_SOC_DAIFMT_CBM_CFM |
- SND_SOC_DAIFMT_LEFT_J,
},
.codec_dai = {
.name = "ak4554-hifi",
@@ -514,10 +510,9 @@ static struct asoc_simple_card_info rsnd_card_info[] = {
.card = "SSI7-AK4554(playback)",
.codec = "ak4554-adc-dac.1",
.platform = "rcar_sound",
+ .daifmt = SND_SOC_DAIFMT_CBS_CFS | SND_SOC_DAIFMT_RIGHT_J,
.cpu_dai = {
.name = "rsnd-dai.3",
- .fmt = SND_SOC_DAIFMT_CBM_CFM |
- SND_SOC_DAIFMT_RIGHT_J,
},
.codec_dai = {
.name = "ak4554-hifi",
@@ -529,10 +524,9 @@ static struct asoc_simple_card_info rsnd_card_info[] = {
.card = "SSI8-AK4554(capture)",
.codec = "ak4554-adc-dac.1",
.platform = "rcar_sound",
+ .daifmt = SND_SOC_DAIFMT_CBS_CFS | SND_SOC_DAIFMT_LEFT_J,
.cpu_dai = {
.name = "rsnd-dai.4",
- .fmt = SND_SOC_DAIFMT_CBM_CFM |
- SND_SOC_DAIFMT_LEFT_J,
},
.codec_dai = {
.name = "ak4554-hifi",
--
1.7.9.5
^ permalink raw reply related [flat|nested] 3+ messages in thread* Re: [PATCH] ARM: bockw: fixup SND_SOC_DAIFMT_CBx_CFx flags
2014-03-24 3:27 [PATCH] ARM: bockw: fixup SND_SOC_DAIFMT_CBx_CFx flags Kuninori Morimoto
@ 2014-03-24 3:33 ` Kuninori Morimoto
2014-03-24 10:41 ` Mark Brown
1 sibling, 0 replies; 3+ messages in thread
From: Kuninori Morimoto @ 2014-03-24 3:33 UTC (permalink / raw)
To: Mark Brown, Simon; +Cc: Linux-ALSA, Liam Girdwood, Kuninori Morimoto, linux-sh
Hi Mark, Simon again
> From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
>
> SND_SOC_DAIFMT_CBx_CFx means "codec" side master/slave mode.
> Then, rcar will be master mode if it was SND_SOC_DAIFMT_CBS_CFS.
>
> Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
> ---
> >> Mark, Simon
>
> I'm so sorry. current Mark's fix/rcar branch has
> SND_SOC_DAIFMT_CBx_CFx fixup patches,
> but it didn't care about bockw board.
> This patch is for it.
> This Subject is using "ARM: bockw:" prefix,
> but, should it be "ASoC: rcar" ?
>> Simon
Lager board needs similar patch,
but, it is not in linus/master branch yet.
I will send it to SH-ARM ML.
But, linus/master branch already has bockw board.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] ARM: bockw: fixup SND_SOC_DAIFMT_CBx_CFx flags
2014-03-24 3:27 [PATCH] ARM: bockw: fixup SND_SOC_DAIFMT_CBx_CFx flags Kuninori Morimoto
2014-03-24 3:33 ` Kuninori Morimoto
@ 2014-03-24 10:41 ` Mark Brown
1 sibling, 0 replies; 3+ messages in thread
From: Mark Brown @ 2014-03-24 10:41 UTC (permalink / raw)
To: Kuninori Morimoto
Cc: Linux-ALSA, Liam Girdwood, Kuninori Morimoto, Simon, linux-sh
[-- Attachment #1: Type: text/plain, Size: 186 bytes --]
On Sun, Mar 23, 2014 at 08:27:30PM -0700, Kuninori Morimoto wrote:
> This Subject is using "ARM: bockw:" prefix,
> but, should it be "ASoC: rcar" ?
No, this is good - applied, thanks.
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2014-03-24 10:41 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-03-24 3:27 [PATCH] ARM: bockw: fixup SND_SOC_DAIFMT_CBx_CFx flags Kuninori Morimoto
2014-03-24 3:33 ` Kuninori Morimoto
2014-03-24 10:41 ` Mark Brown
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox