]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
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)
committerNitin Garg <nitin.garg@freescale.com>
Fri, 16 Jan 2015 03:17:02 +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
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>
(cherry picked from commit e365500459095276d19a920d5be1a65d0ef9999c)

sound/soc/fsl/fsl_ssi.c

index 3043d576856b21f6eaa77a6432c257296412b66f..87eb5776a39b627feb046a8be130d2c85da12c6a 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,