ASoC: fsl_esai: Add stream names for DPCM usage
authorNicolin Chen <nicoleotsuka@gmail.com>
Wed, 30 Jul 2014 03:10:26 +0000 (11:10 +0800)
committerMark Brown <broonie@linaro.org>
Thu, 31 Jul 2014 19:55:04 +0000 (20:55 +0100)
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>
Signed-off-by: Mark Brown <broonie@linaro.org>
sound/soc/fsl/fsl_esai.c

index d719caf26dc20f170febad730f0cb77e65039742..72d154e7dd03c3695860dd4da8b00fd6bc2ff3c5 100644 (file)
@@ -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,