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

index 9bfef55d77d10a8202207ea9ae077a71422d3e0a..00660acdb805ea6a895f58204ab317caf3eabe38 100644 (file)
@@ -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,