diff options
author | Nicolin Chen <nicoleotsuka@gmail.com> | 2014-07-30 03:10:27 (GMT) |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2014-07-31 19:55:04 (GMT) |
commit | 20d5b76fb2c7070c70fc91b666f5395e5d16e197 (patch) | |
tree | 737a7a07be6e4879dff124e1f6582f1eb4f10696 | |
parent | 74ccb27c35c799a14933c282c4e3c864886fc429 (diff) | |
download | linux-20d5b76fb2c7070c70fc91b666f5395e5d16e197.tar.xz |
ASoC: fsl_sai: 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
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>
-rw-r--r-- | sound/soc/fsl/fsl_sai.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sound/soc/fsl/fsl_sai.c b/sound/soc/fsl/fsl_sai.c index c5a0e8a..575515d8 100644 --- a/sound/soc/fsl/fsl_sai.c +++ b/sound/soc/fsl/fsl_sai.c @@ -446,12 +446,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, |