ASoC: Intel: boards: add DEEP_BUFFER support for BYT/CHT/BSW
authorPierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Fri, 18 Dec 2015 02:35:45 +0000 (20:35 -0600)
committerMark Brown <broonie@kernel.org>
Sat, 19 Dec 2015 11:49:56 +0000 (11:49 +0000)
Add dai links to enable additional playback stream with deeper
buffer for lower power consumption.
The normal and DEEP_buffer streams are not mutually exclusive,
content will be mixed by the DSP.

Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/intel/boards/bytcr_rt5640.c
sound/soc/intel/boards/cht_bsw_max98090_ti.c
sound/soc/intel/boards/cht_bsw_rt5645.c
sound/soc/intel/boards/cht_bsw_rt5672.c

index 944283f569c6d584e066db2b63531353756eaf7a..a81389d10e176a632eb20ace585b3834680cf21b 100644 (file)
@@ -267,6 +267,19 @@ static struct snd_soc_dai_link byt_rt5640_dais[] = {
                .dpcm_capture = 1,
                .ops = &byt_rt5640_aif1_ops,
        },
+       [MERR_DPCM_DEEP_BUFFER] = {
+               .name = "Deep-Buffer Audio Port",
+               .stream_name = "Deep-Buffer Audio",
+               .cpu_dai_name = "deepbuffer-cpu-dai",
+               .codec_dai_name = "snd-soc-dummy-dai",
+               .codec_name = "snd-soc-dummy",
+               .platform_name = "sst-mfld-platform",
+               .ignore_suspend = 1,
+               .nonatomic = true,
+               .dynamic = 1,
+               .dpcm_playback = 1,
+               .ops = &byt_rt5640_aif1_ops,
+       },
        [MERR_DPCM_COMPR] = {
                .name = "Baytrail Compressed Port",
                .stream_name = "Baytrail Compress",
index e36dad302bed206e58c3174072e3547d7d5e0015..90588d6e64fc7869a4a4a210b0f188a01e7907b8 100644 (file)
@@ -232,6 +232,18 @@ static struct snd_soc_dai_link cht_dailink[] = {
                .dpcm_capture = 1,
                .ops = &cht_aif1_ops,
        },
+       [MERR_DPCM_DEEP_BUFFER] = {
+               .name = "Deep-Buffer Audio Port",
+               .stream_name = "Deep-Buffer Audio",
+               .cpu_dai_name = "deepbuffer-cpu-dai",
+               .codec_dai_name = "snd-soc-dummy-dai",
+               .codec_name = "snd-soc-dummy",
+               .platform_name = "sst-mfld-platform",
+               .nonatomic = true,
+               .dynamic = 1,
+               .dpcm_playback = 1,
+               .ops = &cht_aif1_ops,
+       },
        [MERR_DPCM_COMPR] = {
                .name = "Compressed Port",
                .stream_name = "Compress",
index 1d2525a53bff98f1e7c97fb9524d9b9241970951..2d3afddb0a2e8c83fef54b36eed42d7ff6b69878 100644 (file)
@@ -260,6 +260,18 @@ static struct snd_soc_dai_link cht_dailink[] = {
                .dpcm_capture = 1,
                .ops = &cht_aif1_ops,
        },
+       [MERR_DPCM_DEEP_BUFFER] = {
+               .name = "Deep-Buffer Audio Port",
+               .stream_name = "Deep-Buffer Audio",
+               .cpu_dai_name = "deepbuffer-cpu-dai",
+               .codec_dai_name = "snd-soc-dummy-dai",
+               .codec_name = "snd-soc-dummy",
+               .platform_name = "sst-mfld-platform",
+               .nonatomic = true,
+               .dynamic = 1,
+               .dpcm_playback = 1,
+               .ops = &cht_aif1_ops,
+       },
        [MERR_DPCM_COMPR] = {
                .name = "Compressed Port",
                .stream_name = "Compress",
index 77fb3c419ca48d23b45d506af282aa905a2967b3..2e5347f8f96c449f9fde65dc614f43439acd155b 100644 (file)
@@ -248,6 +248,18 @@ static struct snd_soc_dai_link cht_dailink[] = {
                .dpcm_capture = 1,
                .ops = &cht_aif1_ops,
        },
+       [MERR_DPCM_DEEP_BUFFER] = {
+               .name = "Deep-Buffer Audio Port",
+               .stream_name = "Deep-Buffer Audio",
+               .cpu_dai_name = "deepbuffer-cpu-dai",
+               .codec_dai_name = "snd-soc-dummy-dai",
+               .codec_name = "snd-soc-dummy",
+               .platform_name = "sst-mfld-platform",
+               .nonatomic = true,
+               .dynamic = 1,
+               .dpcm_playback = 1,
+               .ops = &cht_aif1_ops,
+       },
        [MERR_DPCM_COMPR] = {
                .name = "Compressed Port",
                .stream_name = "Compress",