* ASoC: please revert "ASoC: db1200: Use static DAI format setup"
@ 2015-09-06 17:32 Manuel Lauss
2015-09-07 11:54 ` Lars-Peter Clausen
0 siblings, 1 reply; 5+ messages in thread
From: Manuel Lauss @ 2015-09-06 17:32 UTC (permalink / raw)
To: alsa-devel
Hi Lars,
commit b4508d0f95fa4aaed889549e31391641d675d4bb
("ASoC: db1200: Use static DAI format setup") breaks I2S in that the
set_dai_fmt() callbacks of neither the codec (wm8731) nor the I2S block
(psc-i2s) are called.
Please revert this change or fix it up so that the set_dai_fmt() callbacks
are at least called once. (This was broken since 4.0, but I just now got
around to test linux on the hardware again).
Thanks!
Manuel
--
To unsubscribe from this list: send the line "unsubscribe alsa-devel" in
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: ASoC: please revert "ASoC: db1200: Use static DAI format setup"
2015-09-06 17:32 ASoC: please revert "ASoC: db1200: Use static DAI format setup" Manuel Lauss
@ 2015-09-07 11:54 ` Lars-Peter Clausen
2015-09-07 12:10 ` Manuel Lauss
2015-09-25 16:55 ` Mark Brown
0 siblings, 2 replies; 5+ messages in thread
From: Lars-Peter Clausen @ 2015-09-07 11:54 UTC (permalink / raw)
To: Manuel Lauss, alsa-devel
[-- Attachment #1: Type: text/plain, Size: 544 bytes --]
On 09/06/2015 07:32 PM, Manuel Lauss wrote:
> Hi Lars,
>
> commit b4508d0f95fa4aaed889549e31391641d675d4bb
> ("ASoC: db1200: Use static DAI format setup") breaks I2S in that the
> set_dai_fmt() callbacks of neither the codec (wm8731) nor the I2S block
> (psc-i2s) are called.
>
> Please revert this change or fix it up so that the set_dai_fmt() callbacks
> are at least called once. (This was broken since 4.0, but I just now got
> around to test linux on the hardware again).
Hi,
Can you check whether the attached patch fixes it?
- Lars
[-- Attachment #2: au1x.patch --]
[-- Type: text/x-patch, Size: 761 bytes --]
diff --git a/sound/soc/au1x/db1200.c b/sound/soc/au1x/db1200.c
index 58c3164..8c907eb 100644
--- a/sound/soc/au1x/db1200.c
+++ b/sound/soc/au1x/db1200.c
@@ -129,6 +129,8 @@ static struct snd_soc_dai_link db1300_i2s_dai = {
.cpu_dai_name = "au1xpsc_i2s.2",
.platform_name = "au1xpsc-pcm.2",
.codec_name = "wm8731.0-001b",
+ .dai_fmt = SND_SOC_DAIFMT_LEFT_J | SND_SOC_DAIFMT_NB_NF |
+ SND_SOC_DAIFMT_CBM_CFM,
.ops = &db1200_i2s_wm8731_ops,
};
@@ -146,6 +148,8 @@ static struct snd_soc_dai_link db1550_i2s_dai = {
.cpu_dai_name = "au1xpsc_i2s.3",
.platform_name = "au1xpsc-pcm.3",
.codec_name = "wm8731.0-001b",
+ .dai_fmt = SND_SOC_DAIFMT_LEFT_J | SND_SOC_DAIFMT_NB_NF |
+ SND_SOC_DAIFMT_CBM_CFM,
.ops = &db1200_i2s_wm8731_ops,
};
[-- Attachment #3: Type: text/plain, Size: 0 bytes --]
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: ASoC: please revert "ASoC: db1200: Use static DAI format setup"
2015-09-07 11:54 ` Lars-Peter Clausen
@ 2015-09-07 12:10 ` Manuel Lauss
2015-09-25 16:55 ` Mark Brown
1 sibling, 0 replies; 5+ messages in thread
From: Manuel Lauss @ 2015-09-07 12:10 UTC (permalink / raw)
To: Lars-Peter Clausen; +Cc: alsa-devel
Servus,
On Mon, Sep 7, 2015 at 1:54 PM, Lars-Peter Clausen <lars@metafoo.de> wrote:
> On 09/06/2015 07:32 PM, Manuel Lauss wrote:
>> Hi Lars,
>>
>> commit b4508d0f95fa4aaed889549e31391641d675d4bb
>> ("ASoC: db1200: Use static DAI format setup") breaks I2S in that the
>> set_dai_fmt() callbacks of neither the codec (wm8731) nor the I2S block
>> (psc-i2s) are called.
>>
>> Please revert this change or fix it up so that the set_dai_fmt() callbacks
>> are at least called once. (This was broken since 4.0, but I just now got
>> around to test linux on the hardware again).
>
> Hi,
>
> Can you check whether the attached patch fixes it?
Ja das funktioniert wieder auf dem DB1300.
Danke dir!
Manuel
^ permalink raw reply [flat|nested] 5+ messages in thread
* Applied "ASoC: db1200: Fix DAI link format for db1300 and db1550" to the asoc tree
2015-09-07 11:54 ` Lars-Peter Clausen
@ 2015-09-25 16:55 ` Mark Brown
2015-09-25 16:55 ` Mark Brown
1 sibling, 0 replies; 5+ messages in thread
From: Mark Brown @ 2015-09-25 16:55 UTC (permalink / raw)
To: Manuel Lauss; +Cc: alsa-devel
The patch
ASoC: db1200: Fix DAI link format for db1300 and db1550
has been applied to the asoc tree at
git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git
All being well this means that it will be integrated into the linux-next
tree (usually sometime in the next 24 hours) and sent to Linus during
the next merge window (or sooner if it is a bug fix), however if
problems are discovered then the patch may be dropped or reverted.
You may get further e-mails resulting from automated or manual testing
and review of the tree, please engage with people reporting problems and
send followup patches addressing any issues that are reported if needed.
If any updates are required or you are submitting further changes they
should be sent as incremental updates against current git, existing
patches will not be replaced.
Please add any relevant lists and maintainers to the CCs when replying
to this mail.
Thanks,
Mark
>From e74679b38c9417c1c524081121cdcdb36f82264d Mon Sep 17 00:00:00 2001
From: Lars-Peter Clausen <lars@metafoo.de>
Date: Fri, 25 Sep 2015 11:07:04 +0200
Subject: [PATCH] ASoC: db1200: Fix DAI link format for db1300 and db1550
Commit b4508d0f95fa ("ASoC: db1200: Use static DAI format setup") switched
the db1200 driver over to using static DAI format setup instead of a
callback function. But the commit only added the dai_fmt field to one of
the three DAI links in the driver. This breaks audio on db1300 and db1550.
Add the two missing dai_fmt settings to fix the issue.
Fixes: b4508d0f95fa ("ASoC: db1200: Use static DAI format setup")
Reported-by: Manuel Lauss <manuel.lauss@gmail.com>
Tested-by: Manuel Lauss <manuel.lauss@gmail.com>
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Mark Brown <broonie@kernel.org>
Cc: stable@vger.kernel.org
---
sound/soc/au1x/db1200.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/sound/soc/au1x/db1200.c b/sound/soc/au1x/db1200.c
index 58c3164..8c907eb 100644
--- a/sound/soc/au1x/db1200.c
+++ b/sound/soc/au1x/db1200.c
@@ -129,6 +129,8 @@ static struct snd_soc_dai_link db1300_i2s_dai = {
.cpu_dai_name = "au1xpsc_i2s.2",
.platform_name = "au1xpsc-pcm.2",
.codec_name = "wm8731.0-001b",
+ .dai_fmt = SND_SOC_DAIFMT_LEFT_J | SND_SOC_DAIFMT_NB_NF |
+ SND_SOC_DAIFMT_CBM_CFM,
.ops = &db1200_i2s_wm8731_ops,
};
@@ -146,6 +148,8 @@ static struct snd_soc_dai_link db1550_i2s_dai = {
.cpu_dai_name = "au1xpsc_i2s.3",
.platform_name = "au1xpsc-pcm.3",
.codec_name = "wm8731.0-001b",
+ .dai_fmt = SND_SOC_DAIFMT_LEFT_J | SND_SOC_DAIFMT_NB_NF |
+ SND_SOC_DAIFMT_CBM_CFM,
.ops = &db1200_i2s_wm8731_ops,
};
--
2.5.0
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Applied "ASoC: db1200: Fix DAI link format for db1300 and db1550" to the asoc tree
@ 2015-09-25 16:55 ` Mark Brown
0 siblings, 0 replies; 5+ messages in thread
From: Mark Brown @ 2015-09-25 16:55 UTC (permalink / raw)
To: Manuel Lauss, Manuel Lauss, Lars-Peter Clausen, Mark Brown,
stable
Cc: alsa-devel
The patch
ASoC: db1200: Fix DAI link format for db1300 and db1550
has been applied to the asoc tree at
git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git
All being well this means that it will be integrated into the linux-next
tree (usually sometime in the next 24 hours) and sent to Linus during
the next merge window (or sooner if it is a bug fix), however if
problems are discovered then the patch may be dropped or reverted.
You may get further e-mails resulting from automated or manual testing
and review of the tree, please engage with people reporting problems and
send followup patches addressing any issues that are reported if needed.
If any updates are required or you are submitting further changes they
should be sent as incremental updates against current git, existing
patches will not be replaced.
Please add any relevant lists and maintainers to the CCs when replying
to this mail.
Thanks,
Mark
>From e74679b38c9417c1c524081121cdcdb36f82264d Mon Sep 17 00:00:00 2001
From: Lars-Peter Clausen <lars@metafoo.de>
Date: Fri, 25 Sep 2015 11:07:04 +0200
Subject: [PATCH] ASoC: db1200: Fix DAI link format for db1300 and db1550
Commit b4508d0f95fa ("ASoC: db1200: Use static DAI format setup") switched
the db1200 driver over to using static DAI format setup instead of a
callback function. But the commit only added the dai_fmt field to one of
the three DAI links in the driver. This breaks audio on db1300 and db1550.
Add the two missing dai_fmt settings to fix the issue.
Fixes: b4508d0f95fa ("ASoC: db1200: Use static DAI format setup")
Reported-by: Manuel Lauss <manuel.lauss@gmail.com>
Tested-by: Manuel Lauss <manuel.lauss@gmail.com>
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Mark Brown <broonie@kernel.org>
Cc: stable@vger.kernel.org
---
sound/soc/au1x/db1200.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/sound/soc/au1x/db1200.c b/sound/soc/au1x/db1200.c
index 58c3164..8c907eb 100644
--- a/sound/soc/au1x/db1200.c
+++ b/sound/soc/au1x/db1200.c
@@ -129,6 +129,8 @@ static struct snd_soc_dai_link db1300_i2s_dai = {
.cpu_dai_name = "au1xpsc_i2s.2",
.platform_name = "au1xpsc-pcm.2",
.codec_name = "wm8731.0-001b",
+ .dai_fmt = SND_SOC_DAIFMT_LEFT_J | SND_SOC_DAIFMT_NB_NF |
+ SND_SOC_DAIFMT_CBM_CFM,
.ops = &db1200_i2s_wm8731_ops,
};
@@ -146,6 +148,8 @@ static struct snd_soc_dai_link db1550_i2s_dai = {
.cpu_dai_name = "au1xpsc_i2s.3",
.platform_name = "au1xpsc-pcm.3",
.codec_name = "wm8731.0-001b",
+ .dai_fmt = SND_SOC_DAIFMT_LEFT_J | SND_SOC_DAIFMT_NB_NF |
+ SND_SOC_DAIFMT_CBM_CFM,
.ops = &db1200_i2s_wm8731_ops,
};
--
2.5.0
^ permalink raw reply related [flat|nested] 5+ messages in thread
end of thread, other threads:[~2015-09-25 16:56 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-09-06 17:32 ASoC: please revert "ASoC: db1200: Use static DAI format setup" Manuel Lauss
2015-09-07 11:54 ` Lars-Peter Clausen
2015-09-07 12:10 ` Manuel Lauss
2015-09-25 16:55 ` Applied "ASoC: db1200: Fix DAI link format for db1300 and db1550" to the asoc tree Mark Brown
2015-09-25 16:55 ` Mark Brown
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.