diff options
author | Liam Girdwood <liam.r.girdwood@linux.intel.com> | 2014-05-14 17:20:54 +0300 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2014-05-14 16:57:27 +0100 |
commit | 49fee17816347c401be0dfcf98ee9fc131f25f10 (patch) | |
tree | 3a575a775bfc6e2cd2bfacde170a355209c1d936 /sound/soc/intel/sst-baytrail-pcm.c | |
parent | 3a46c7b7cc09ace471f9ccb4d11950fb2f7f2d96 (diff) | |
download | op-kernel-dev-49fee17816347c401be0dfcf98ee9fc131f25f10.zip op-kernel-dev-49fee17816347c401be0dfcf98ee9fc131f25f10.tar.gz |
ASoC: Intel: Only export one Baytrail DAI
We don't need more than one DAI for Baytrail SST. Usage becomes also more
straightforward by grouping playback and capture streams under the same PCM
device.
[Jarkko: I made Liam's sst-baytrail-pcm.c change a few lines smaller and
squashed together with my byt-rt5640.c change]
Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
Signed-off-by: Jarkko Nikula <jarkko.nikula@linux.intel.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'sound/soc/intel/sst-baytrail-pcm.c')
-rw-r--r-- | sound/soc/intel/sst-baytrail-pcm.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/sound/soc/intel/sst-baytrail-pcm.c b/sound/soc/intel/sst-baytrail-pcm.c index 73bb681..23a25c0 100644 --- a/sound/soc/intel/sst-baytrail-pcm.c +++ b/sound/soc/intel/sst-baytrail-pcm.c @@ -342,7 +342,7 @@ static int sst_byt_pcm_new(struct snd_soc_pcm_runtime *rtd) static struct snd_soc_dai_driver byt_dais[] = { { - .name = "Front-cpu-dai", + .name = "Baytrail PCM", .playback = { .stream_name = "System Playback", .channels_min = 2, @@ -351,9 +351,6 @@ static struct snd_soc_dai_driver byt_dais[] = { .formats = SNDRV_PCM_FMTBIT_S24_3LE | SNDRV_PCM_FMTBIT_S16_LE, }, - }, - { - .name = "Mic1-cpu-dai", .capture = { .stream_name = "Analog Capture", .channels_min = 2, @@ -378,7 +375,7 @@ static int sst_byt_pcm_probe(struct snd_soc_platform *platform) priv_data->byt = plat_data->dsp; snd_soc_platform_set_drvdata(platform, priv_data); - for (i = 0; i < ARRAY_SIZE(byt_dais); i++) { + for (i = 0; i < BYT_PCM_COUNT; i++) { mutex_init(&priv_data->pcm[i].mutex); INIT_WORK(&priv_data->pcm[i].work, sst_byt_pcm_work); } |