linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/4] ASoC: fsl: Add stream names to CPU DAI drivers for DPCM
@ 2014-07-30  3:10 Nicolin Chen
  2014-07-30  3:10 ` [PATCH 1/4] ASoC: fsl_esai: Add stream names for DPCM usage Nicolin Chen
                   ` (4 more replies)
  0 siblings, 5 replies; 7+ messages in thread
From: Nicolin Chen @ 2014-07-30  3:10 UTC (permalink / raw)
  To: broonie
  Cc: alsa-devel, lgirdwood, tiwai, b42378, b02247, linux-kernel,
	timur, Li.Xiubo, perex, linuxppc-dev

DPCM needs extra dapm routes in the machine driver to route audio
between Front-End and Back-End. In order to differ the stream names
in the route map from CODECs, we here add specific stream names to
all Freescale ASoC CPU DAI drivers so that we can implement ASRC via
DPCM to each of them.

Document for DPCM: ./Documentation/sound/alsa/soc/DPCM.txt

Nicolin Chen (4):
  ASoC: fsl_esai: Add stream names for DPCM usage
  ASoC: fsl_sai: Add stream names for DPCM usage
  ASoC: fsl_spdif: Add stream names for DPCM usage
  ASoC: fsl_ssi: Add stream names for DPCM usage

 sound/soc/fsl/fsl_esai.c  | 2 ++
 sound/soc/fsl/fsl_sai.c   | 2 ++
 sound/soc/fsl/fsl_spdif.c | 2 ++
 sound/soc/fsl/fsl_ssi.c   | 2 ++
 4 files changed, 8 insertions(+)

-- 
1.8.4

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [PATCH 1/4] ASoC: fsl_esai: Add stream names for DPCM usage
  2014-07-30  3:10 [PATCH 0/4] ASoC: fsl: Add stream names to CPU DAI drivers for DPCM Nicolin Chen
@ 2014-07-30  3:10 ` Nicolin Chen
  2014-07-30  3:10 ` [PATCH 2/4] ASoC: fsl_sai: " Nicolin Chen
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 7+ messages in thread
From: Nicolin Chen @ 2014-07-30  3:10 UTC (permalink / raw)
  To: broonie
  Cc: alsa-devel, lgirdwood, tiwai, b42378, b02247, linux-kernel,
	timur, Li.Xiubo, perex, linuxppc-dev

DPCM needs extra dapm routes in the machine driver to route audio
between Front-End and Back-End. In order to differ the stream names
in the route map from CODECs, we here add specific stream names to
ESAI driver so that we can implement ASRC via DPCM to it.

Signed-off-by: Nicolin Chen <nicoleotsuka@gmail.com>
---
 sound/soc/fsl/fsl_esai.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/sound/soc/fsl/fsl_esai.c b/sound/soc/fsl/fsl_esai.c
index d719caf..72d154e 100644
--- a/sound/soc/fsl/fsl_esai.c
+++ b/sound/soc/fsl/fsl_esai.c
@@ -624,12 +624,14 @@ static int fsl_esai_dai_probe(struct snd_soc_dai *dai)
 static struct snd_soc_dai_driver fsl_esai_dai = {
 	.probe = fsl_esai_dai_probe,
 	.playback = {
+		.stream_name = "CPU-Playback",
 		.channels_min = 1,
 		.channels_max = 12,
 		.rates = FSL_ESAI_RATES,
 		.formats = FSL_ESAI_FORMATS,
 	},
 	.capture = {
+		.stream_name = "CPU-Capture",
 		.channels_min = 1,
 		.channels_max = 8,
 		.rates = FSL_ESAI_RATES,
-- 
1.8.4

^ permalink raw reply related	[flat|nested] 7+ messages in thread

* [PATCH 2/4] ASoC: fsl_sai: Add stream names for DPCM usage
  2014-07-30  3:10 [PATCH 0/4] ASoC: fsl: Add stream names to CPU DAI drivers for DPCM Nicolin Chen
  2014-07-30  3:10 ` [PATCH 1/4] ASoC: fsl_esai: Add stream names for DPCM usage Nicolin Chen
@ 2014-07-30  3:10 ` Nicolin Chen
  2014-07-30  3:10 ` [PATCH 3/4] ASoC: fsl_spdif: " Nicolin Chen
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 7+ messages in thread
From: Nicolin Chen @ 2014-07-30  3:10 UTC (permalink / raw)
  To: broonie
  Cc: alsa-devel, lgirdwood, tiwai, b42378, b02247, linux-kernel,
	timur, Li.Xiubo, perex, linuxppc-dev

DPCM needs extra dapm routes in the machine driver to route audio
between Front-End and Back-End. In order to differ the stream names
in the route map from CODECs, we here add specific stream names to
SAI driver so that we can implement ASRC via DPCM to it.

Signed-off-by: Nicolin Chen <nicoleotsuka@gmail.com>
---
 sound/soc/fsl/fsl_sai.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/sound/soc/fsl/fsl_sai.c b/sound/soc/fsl/fsl_sai.c
index 364410b..faa0497 100644
--- a/sound/soc/fsl/fsl_sai.c
+++ b/sound/soc/fsl/fsl_sai.c
@@ -455,12 +455,14 @@ static int fsl_sai_dai_probe(struct snd_soc_dai *cpu_dai)
 static struct snd_soc_dai_driver fsl_sai_dai = {
 	.probe = fsl_sai_dai_probe,
 	.playback = {
+		.stream_name = "CPU-Playback",
 		.channels_min = 1,
 		.channels_max = 2,
 		.rates = SNDRV_PCM_RATE_8000_96000,
 		.formats = FSL_SAI_FORMATS,
 	},
 	.capture = {
+		.stream_name = "CPU-Capture",
 		.channels_min = 1,
 		.channels_max = 2,
 		.rates = SNDRV_PCM_RATE_8000_96000,
-- 
1.8.4

^ permalink raw reply related	[flat|nested] 7+ messages in thread

* [PATCH 3/4] ASoC: fsl_spdif: Add stream names for DPCM usage
  2014-07-30  3:10 [PATCH 0/4] ASoC: fsl: Add stream names to CPU DAI drivers for DPCM Nicolin Chen
  2014-07-30  3:10 ` [PATCH 1/4] ASoC: fsl_esai: Add stream names for DPCM usage Nicolin Chen
  2014-07-30  3:10 ` [PATCH 2/4] ASoC: fsl_sai: " Nicolin Chen
@ 2014-07-30  3:10 ` Nicolin Chen
  2014-07-30  3:10 ` [PATCH 4/4] ASoC: fsl_ssi: " Nicolin Chen
  2014-07-31 19:55 ` [PATCH 0/4] ASoC: fsl: Add stream names to CPU DAI drivers for DPCM Mark Brown
  4 siblings, 0 replies; 7+ messages in thread
From: Nicolin Chen @ 2014-07-30  3:10 UTC (permalink / raw)
  To: broonie
  Cc: alsa-devel, lgirdwood, tiwai, b42378, b02247, linux-kernel,
	timur, Li.Xiubo, perex, linuxppc-dev

DPCM needs extra dapm routes in the machine driver to route audio
between Front-End and Back-End. In order to differ the stream names
in the route map from CODECs, we here add specific stream names to
SPDIF driver so that we can implement ASRC via DPCM to it.

Signed-off-by: Nicolin Chen <nicoleotsuka@gmail.com>
---
 sound/soc/fsl/fsl_spdif.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/sound/soc/fsl/fsl_spdif.c b/sound/soc/fsl/fsl_spdif.c
index 495b9f3..70acfe4 100644
--- a/sound/soc/fsl/fsl_spdif.c
+++ b/sound/soc/fsl/fsl_spdif.c
@@ -975,12 +975,14 @@ static int fsl_spdif_dai_probe(struct snd_soc_dai *dai)
 static struct snd_soc_dai_driver fsl_spdif_dai = {
 	.probe = &fsl_spdif_dai_probe,
 	.playback = {
+		.stream_name = "CPU-Playback",
 		.channels_min = 2,
 		.channels_max = 2,
 		.rates = FSL_SPDIF_RATES_PLAYBACK,
 		.formats = FSL_SPDIF_FORMATS_PLAYBACK,
 	},
 	.capture = {
+		.stream_name = "CPU-Capture",
 		.channels_min = 2,
 		.channels_max = 2,
 		.rates = FSL_SPDIF_RATES_CAPTURE,
-- 
1.8.4

^ permalink raw reply related	[flat|nested] 7+ messages in thread

* [PATCH 4/4] ASoC: fsl_ssi: Add stream names for DPCM usage
  2014-07-30  3:10 [PATCH 0/4] ASoC: fsl: Add stream names to CPU DAI drivers for DPCM Nicolin Chen
                   ` (2 preceding siblings ...)
  2014-07-30  3:10 ` [PATCH 3/4] ASoC: fsl_spdif: " Nicolin Chen
@ 2014-07-30  3:10 ` Nicolin Chen
  2014-07-30 12:19   ` Timur Tabi
  2014-07-31 19:55 ` [PATCH 0/4] ASoC: fsl: Add stream names to CPU DAI drivers for DPCM Mark Brown
  4 siblings, 1 reply; 7+ messages in thread
From: Nicolin Chen @ 2014-07-30  3:10 UTC (permalink / raw)
  To: broonie
  Cc: alsa-devel, lgirdwood, tiwai, b42378, b02247, linux-kernel,
	timur, Li.Xiubo, perex, linuxppc-dev

DPCM needs extra dapm routes in the machine driver to route audio
between Front-End and Back-End. In order to differ the stream names
in the route map from CODECs, we here add specific stream names to
SSI driver so that we can implement ASRC via DPCM to it.

Signed-off-by: Nicolin Chen <nicoleotsuka@gmail.com>
---
 sound/soc/fsl/fsl_ssi.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/sound/soc/fsl/fsl_ssi.c b/sound/soc/fsl/fsl_ssi.c
index 3043d57..87eb577 100644
--- a/sound/soc/fsl/fsl_ssi.c
+++ b/sound/soc/fsl/fsl_ssi.c
@@ -1032,12 +1032,14 @@ static const struct snd_soc_dai_ops fsl_ssi_dai_ops = {
 static struct snd_soc_dai_driver fsl_ssi_dai_template = {
 	.probe = fsl_ssi_dai_probe,
 	.playback = {
+		.stream_name = "CPU-Playback",
 		.channels_min = 1,
 		.channels_max = 2,
 		.rates = FSLSSI_I2S_RATES,
 		.formats = FSLSSI_I2S_FORMATS,
 	},
 	.capture = {
+		.stream_name = "CPU-Capture",
 		.channels_min = 1,
 		.channels_max = 2,
 		.rates = FSLSSI_I2S_RATES,
-- 
1.8.4

^ permalink raw reply related	[flat|nested] 7+ messages in thread

* Re: [PATCH 4/4] ASoC: fsl_ssi: Add stream names for DPCM usage
  2014-07-30  3:10 ` [PATCH 4/4] ASoC: fsl_ssi: " Nicolin Chen
@ 2014-07-30 12:19   ` Timur Tabi
  0 siblings, 0 replies; 7+ messages in thread
From: Timur Tabi @ 2014-07-30 12:19 UTC (permalink / raw)
  To: Nicolin Chen, broonie
  Cc: alsa-devel, tiwai, b42378, b02247, linux-kernel, lgirdwood,
	Li.Xiubo, perex, linuxppc-dev

Nicolin Chen wrote:
> DPCM needs extra dapm routes in the machine driver to route audio
> between Front-End and Back-End. In order to differ the stream names
> in the route map from CODECs, we here add specific stream names to
> SSI driver so that we can implement ASRC via DPCM to it.
>
> Signed-off-by: Nicolin Chen<nicoleotsuka@gmail.com>

Acked-by: Timur Tabi <timur@tabi.org>

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH 0/4] ASoC: fsl: Add stream names to CPU DAI drivers for DPCM
  2014-07-30  3:10 [PATCH 0/4] ASoC: fsl: Add stream names to CPU DAI drivers for DPCM Nicolin Chen
                   ` (3 preceding siblings ...)
  2014-07-30  3:10 ` [PATCH 4/4] ASoC: fsl_ssi: " Nicolin Chen
@ 2014-07-31 19:55 ` Mark Brown
  4 siblings, 0 replies; 7+ messages in thread
From: Mark Brown @ 2014-07-31 19:55 UTC (permalink / raw)
  To: Nicolin Chen
  Cc: alsa-devel, lgirdwood, tiwai, b42378, b02247, linux-kernel,
	timur, Li.Xiubo, perex, linuxppc-dev

[-- Attachment #1: Type: text/plain, Size: 386 bytes --]

On Wed, Jul 30, 2014 at 11:10:25AM +0800, Nicolin Chen wrote:
> DPCM needs extra dapm routes in the machine driver to route audio
> between Front-End and Back-End. In order to differ the stream names
> in the route map from CODECs, we here add specific stream names to
> all Freescale ASoC CPU DAI drivers so that we can implement ASRC via
> DPCM to each of them.

Applied all, thanks.

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2014-07-31 19:56 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-07-30  3:10 [PATCH 0/4] ASoC: fsl: Add stream names to CPU DAI drivers for DPCM Nicolin Chen
2014-07-30  3:10 ` [PATCH 1/4] ASoC: fsl_esai: Add stream names for DPCM usage Nicolin Chen
2014-07-30  3:10 ` [PATCH 2/4] ASoC: fsl_sai: " Nicolin Chen
2014-07-30  3:10 ` [PATCH 3/4] ASoC: fsl_spdif: " Nicolin Chen
2014-07-30  3:10 ` [PATCH 4/4] ASoC: fsl_ssi: " Nicolin Chen
2014-07-30 12:19   ` Timur Tabi
2014-07-31 19:55 ` [PATCH 0/4] ASoC: fsl: Add stream names to CPU DAI drivers for DPCM Mark Brown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).