mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-09 08:09:12 +00:00
ASoC: Intel: boards: add DEEP_BUFFER support for BYT/CHT/BSW
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>
This commit is contained in:
parent
8788f83929
commit
d35eb96a95
4 changed files with 49 additions and 0 deletions
|
@ -267,6 +267,19 @@ static struct snd_soc_dai_link byt_rt5640_dais[] = {
|
||||||
.dpcm_capture = 1,
|
.dpcm_capture = 1,
|
||||||
.ops = &byt_rt5640_aif1_ops,
|
.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] = {
|
[MERR_DPCM_COMPR] = {
|
||||||
.name = "Baytrail Compressed Port",
|
.name = "Baytrail Compressed Port",
|
||||||
.stream_name = "Baytrail Compress",
|
.stream_name = "Baytrail Compress",
|
||||||
|
|
|
@ -232,6 +232,18 @@ static struct snd_soc_dai_link cht_dailink[] = {
|
||||||
.dpcm_capture = 1,
|
.dpcm_capture = 1,
|
||||||
.ops = &cht_aif1_ops,
|
.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] = {
|
[MERR_DPCM_COMPR] = {
|
||||||
.name = "Compressed Port",
|
.name = "Compressed Port",
|
||||||
.stream_name = "Compress",
|
.stream_name = "Compress",
|
||||||
|
|
|
@ -260,6 +260,18 @@ static struct snd_soc_dai_link cht_dailink[] = {
|
||||||
.dpcm_capture = 1,
|
.dpcm_capture = 1,
|
||||||
.ops = &cht_aif1_ops,
|
.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] = {
|
[MERR_DPCM_COMPR] = {
|
||||||
.name = "Compressed Port",
|
.name = "Compressed Port",
|
||||||
.stream_name = "Compress",
|
.stream_name = "Compress",
|
||||||
|
|
|
@ -248,6 +248,18 @@ static struct snd_soc_dai_link cht_dailink[] = {
|
||||||
.dpcm_capture = 1,
|
.dpcm_capture = 1,
|
||||||
.ops = &cht_aif1_ops,
|
.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] = {
|
[MERR_DPCM_COMPR] = {
|
||||||
.name = "Compressed Port",
|
.name = "Compressed Port",
|
||||||
.stream_name = "Compress",
|
.stream_name = "Compress",
|
||||||
|
|
Loading…
Add table
Reference in a new issue