ASoC: fsl: Add stream names to CPU DAI drivers for DPCM
Subsystems (3)
Nicolin Chen
reviewercover ASoC: fsl: Add stream names to CPU DAI drivers for DPCM
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(+)
Signature · 1 line
1.8.4
Nicolin Chen
reviewerPATCH 1/4 ASoC: fsl_esai: Add stream names for DPCM usage
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.
--- sound/soc/fsl/fsl_esai.c | 2 ++ 1 file changed, 2 insertions(+)
sound/soc/fsl/fsl_esai.c +2 -0
@@ -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 ,
Signature · 1 line
1.8.4
Nicolin Chen
reviewerPATCH 2/4 ASoC: fsl_sai: Add stream names for DPCM usage
In reply to Nicolin ChenDPCM 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.
--- sound/soc/fsl/fsl_sai.c | 2 ++ 1 file changed, 2 insertions(+)
sound/soc/fsl/fsl_sai.c +2 -0
@@ -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 ,
Signature · 1 line
1.8.4
Nicolin Chen
reviewerPATCH 3/4 ASoC: fsl_spdif: Add stream names for DPCM usage
In reply to Nicolin ChenDPCM 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.
--- sound/soc/fsl/fsl_spdif.c | 2 ++ 1 file changed, 2 insertions(+)
sound/soc/fsl/fsl_spdif.c +2 -0
@@ -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 ,
Signature · 1 line
1.8.4
Nicolin Chen
reviewerPATCH 4/4 ASoC: fsl_ssi: Add stream names for DPCM usage
In reply to Nicolin ChenDPCM 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.
--- sound/soc/fsl/fsl_ssi.c | 2 ++ 1 file changed, 2 insertions(+)
sound/soc/fsl/fsl_ssi.c +2 -0
@@ -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 ,
Signature · 1 line
1.8.4
Re: [PATCH 4/4] ASoC: fsl_ssi: Add stream names for DPCM usage
Quoted 6 lines · Nicolin Chen
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<[email protected]>
Quoted 5 lines · Nicolin Chen
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.