From: Jean-Francois Moine <moinejf@free.fr>
To: Russell King - ARM Linux <linux@arm.linux.org.uk>
Cc: Andrew Lunn <andrew@lunn.ch>,
alsa-devel@alsa-project.org, Jason Cooper <jason@lakedaemon.net>,
Sebastian Hesselbarth <sebastian.hesselbarth@googlemail.com>,
Mark Brown <broonie@kernel.org>,
Gregory Clement <gregory.clement@free-electrons.com>,
Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
Subject: Re: [PATCH 00/13] Remove mach-kirkwood and mach-dove
Date: Tue, 1 Jul 2014 18:44:13 +0200 [thread overview]
Message-ID: <20140701184413.6d9aa16f@armhf> (raw)
In-Reply-To: <20140630162050.GC32514@n2100.arm.linux.org.uk>
On Mon, 30 Jun 2014 17:20:51 +0100
Russell King - ARM Linux <linux@arm.linux.org.uk> wrote:
> Add DPCM support to kirkwood-i2s to support the I2S and SPDIF streams.
> This consists of:
> - a single front end DAI called "kirkwood-fe" with "dma-tx" and "dma-rx"
> streams.
> - one backend DAI called "kirkwood-i2s" for I2S with streams named
> "i2s-tx" and "i2s-rx"
> - one backend DAI called "kirkwood-spdif" for SPDIF with a single stream
> named "spdif-tx".
In the Cubox, you may have kirkwood S/PDIF with both HDMI and S/PDIF
outputs and this avoids to activate both kirkwood I2S and S/PDIF in
most cases.
> - .rates = SNDRV_PCM_RATE_CONTINUOUS,
> - .rate_min = 5512,
> - .rate_max = 192000,
> - .formats = KIRKWOOD_I2S_FORMATS,
> + .rates = SNDRV_PCM_RATE_8000_192000 |
> + SNDRV_PCM_RATE_CONTINUOUS |
> + SNDRV_PCM_RATE_KNOT,
> + .formats = KIRKWOOD_FE_FORMATS,
This does not work: SNDRV_PCM_RATE_CONTINUOUS asks for rate_min and
rate_max. SNDRV_PCM_RATE_KNOT is of no interest here.
> diff --git a/sound/soc/kirkwood/kirkwood-openrd.c b/sound/soc/kirkwood/kirkwood-openrd.c
> index 65f2a5b9ec3b..78fb05ff44a8 100644
> --- a/sound/soc/kirkwood/kirkwood-openrd.c
> +++ b/sound/soc/kirkwood/kirkwood-openrd.c
> @@ -49,24 +49,34 @@ static struct snd_soc_ops openrd_client_ops = {
>
>
> static struct snd_soc_dai_link openrd_client_dai[] = {
> + KIRKWOOD_FE_DAI_LINK(".0", 1, 1),
> {
> .name = "CS42L51",
> .stream_name = "CS42L51 HiFi",
> - .cpu_dai_name = "i2s",
> - .platform_name = "mvebu-audio",
> + .cpu_name = "mvebu-audio.0",
> + .cpu_dai_name = "kirkwood-i2s",
> + .platform_name = "snd-soc-dummy",
> .codec_dai_name = "cs42l51-hifi",
> .codec_name = "cs42l51-codec.0-004a",
> .dai_fmt = SND_SOC_DAIFMT_I2S | SND_SOC_DAIFMT_CBS_CFS,
> .ops = &openrd_client_ops,
> + .dpcm_playback = 1,
> + .dpcm_capture = 1,
> },
> };
There is no need to change the openrd and t5325 drivers: they may use
the kirkwood DAI's in a non-DPCM way.
> diff --git a/sound/soc/kirkwood/kirkwood-spdif.c b/sound/soc/kirkwood/kirkwood-spdif.c
> index 9d49bc53f07d..6098dde85fc9 100644
> --- a/sound/soc/kirkwood/kirkwood-spdif.c
> +++ b/sound/soc/kirkwood/kirkwood-spdif.c
What is that file?
Eventually, your code is close to the one I tested end 2013. But, once
again, this does not work because DPCM does not handle the format and
rate constraints of the backends. This is critical for the device which
is connected to HDMI.
--
Ken ar c'hentañ | ** Breizh ha Linux atav! **
Jef | http://moinejf.free.fr/
_______________________________________________
Alsa-devel mailing list
Alsa-devel@alsa-project.org
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
next prev parent reply other threads:[~2014-07-01 16:42 UTC|newest]
Thread overview: 40+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-06-29 20:59 [PATCH 00/13] Remove mach-kirkwood and mach-dove Andrew Lunn
2014-06-29 20:59 ` [PATCH 03/13] ASoC: kirkwood: Remove unused drivers Andrew Lunn
2014-06-29 20:59 ` [PATCH 03/13] sound: " Andrew Lunn
2014-06-29 20:59 ` [PATCH 04/13] ASoC: kirkwood: Remove ARCH_KIRKWOOD and ARCH_DOVE dependency Andrew Lunn
2014-06-29 20:59 ` [PATCH 04/13] sound: " Andrew Lunn
2014-06-29 20:59 ` [PATCH 05/13] cpuidle: kirkwood: Replace ARCH_KIRKWOOD dependency Andrew Lunn
2014-06-29 20:59 ` [PATCH 06/13] ata: Remove ARCH_KIRKWOOD and ARCH_DOVE dependency Andrew Lunn
2014-06-29 20:59 ` [PATCH 07/13] thermal: Replace " Andrew Lunn
2014-06-29 20:59 ` [PATCH 08/13] leds: Replace ARCH_KIRKWOOD dependency Andrew Lunn
2014-06-30 17:01 ` Bryan Wu
2014-06-29 20:59 ` [PATCH 09/13] PCI: Remove ARCH_KIRKWOOD and ARCH_DOVE dependency Andrew Lunn
2014-07-05 17:54 ` Bjorn Helgaas
2014-07-05 17:52 ` Andrew Lunn
2014-06-29 21:00 ` [PATCH 12/13] watchdog: " Andrew Lunn
2014-06-29 21:35 ` [PATCH 00/13] Remove mach-kirkwood and mach-dove Russell King - ARM Linux
2014-06-30 7:16 ` [alsa-devel] " Jean-Francois Moine
2014-06-30 7:16 ` Jean-Francois Moine
2014-06-30 8:49 ` Russell King - ARM Linux
2014-06-30 9:47 ` Jean-Francois Moine
2014-06-30 9:47 ` Jean-Francois Moine
2014-06-30 10:00 ` Russell King - ARM Linux
2014-06-30 12:15 ` Sebastian Hesselbarth
2014-06-30 12:43 ` Russell King - ARM Linux
2014-06-30 13:22 ` Sebastian Hesselbarth
2014-06-30 14:25 ` Russell King - ARM Linux
2014-06-30 15:35 ` Sebastian Hesselbarth
2014-06-30 16:56 ` Russell King - ARM Linux
2014-06-30 17:31 ` Sebastian Hesselbarth
2014-06-30 19:35 ` Russell King - ARM Linux
2014-06-30 17:43 ` Andrew Lunn
2014-06-30 18:08 ` Russell King - ARM Linux
2014-06-30 18:16 ` Andrew Lunn
2014-07-06 9:49 ` [rtc-linux] " Alexander Holler
2014-06-30 22:21 ` Ezequiel Garcia
2014-06-30 22:21 ` Ezequiel Garcia
2014-06-30 16:13 ` Jean-Francois Moine
2014-06-30 16:20 ` Russell King - ARM Linux
2014-07-01 16:44 ` Jean-Francois Moine [this message]
2014-07-01 16:56 ` Russell King - ARM Linux
2014-07-08 12:13 ` Jason Cooper
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20140701184413.6d9aa16f@armhf \
--to=moinejf@free.fr \
--cc=alsa-devel@alsa-project.org \
--cc=andrew@lunn.ch \
--cc=broonie@kernel.org \
--cc=gregory.clement@free-electrons.com \
--cc=jason@lakedaemon.net \
--cc=linux@arm.linux.org.uk \
--cc=sebastian.hesselbarth@gmail.com \
--cc=sebastian.hesselbarth@googlemail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.