]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ASoC: fsl_sai: Add stream names for DPCM usage
authorNicolin Chen <nicoleotsuka@gmail.com>
Wed, 30 Jul 2014 03:10:27 +0000 (11:10 +0800)
committerNitin Garg <nitin.garg@freescale.com>
Fri, 16 Jan 2015 03:17:01 +0000 (21:17 -0600)
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>
Signed-off-by: Mark Brown <broonie@linaro.org>
(cherry picked from commit 20d5b76fb2c7070c70fc91b666f5395e5d16e197)

sound/soc/fsl/fsl_sai.c

index 364410be3c4eb6ecae600dc1257794051c36f0cf..faa049797897ed1e8996755437df2488c19c457b 100644 (file)
@@ -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,