Applied "ASoC: Intel: boards: remove hard-coded compressed dailinks" to the asoc tree
Subsystems (3)
Mark Brown
maintainerThe patch
ASoC: Intel: boards: remove hard-coded compressed dailinks
has been applied to the asoc tree at
git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git
All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted.
You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed.
If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced.
Please add any relevant lists and maintainers to the CCs when replying to this mail.
Thanks,
Mark
Quoted 1 line
From
2193eb9631d272e5a8a7e7534830f555305aa556Mon Sep 17 00:00:00 2001
From: Pierre-Louis Bossart <[email protected]>
Date: Thu, 12 Oct 2017 18:38:05 -0500
Subject: [PATCH] ASoC: Intel: boards: remove hard-coded compressed dailinks
The hard-coded compressed dailinks are not supported using publicly-available firmwares, which creates unnecessary user confusion [1]. Even if the firmware was available, the mainline code does not have the required .dynamic=1 and .dpcm_playback=1 fields so probably never worked as is, and last and they conflict with topology-defined streams.
Remove them and move on. This can be re-enabled with SOF later in a more flexible manner.
[1] http://mailman.alsa-project.org/pipermail/alsa-devel/2017-August/124868.html
--- sound/soc/intel/boards/bytcht_da7213.c | 9 --------- sound/soc/intel/boards/bytcht_es8316.c | 9 --------- sound/soc/intel/boards/bytcht_nocodec.c | 8 -------- sound/soc/intel/boards/bytcr_rt5640.c | 11 +---------- sound/soc/intel/boards/bytcr_rt5651.c | 11 +---------- sound/soc/intel/boards/cht_bsw_max98090_ti.c | 8 -------- sound/soc/intel/boards/cht_bsw_rt5645.c | 8 -------- sound/soc/intel/boards/cht_bsw_rt5672.c | 8 -------- 8 files changed, 2 insertions(+), 70 deletions(-)
sound/soc/intel/boards/bytcht_da7213.c +0 -9
@@ -185,14 +185,6 @@ static struct snd_soc_dai_link dailink[] = { .dpcm_playback = 1, .ops = &aif1_ops, }, - [MERR_DPCM_COMPR] = { - .name = "Compressed Port", - .stream_name = "Compress", - .cpu_dai_name = "compress-cpu-dai", - .codec_dai_name = "snd-soc-dummy-dai", - .codec_name = "snd-soc-dummy", - .platform_name = "sst-mfld-platform", - },/* CODEC<->CODEC link */ /* back ends */ {
@@ -243,7 +235,6 @@ static int bytcht_da7213_probe(struct platform_device *pdev) card->dev = &pdev->dev;/* fix index of codec dai */ - dai_index =MERR_DPCM_COMPR +1 ;for (i =0 ; i <ARRAY_SIZE (dailink); i++) {if (!strcmp (dailink[i].codec_name,"i2c-DLGS7213:00" )) { dai_index = i;
sound/soc/intel/boards/bytcht_es8316.c +0 -9
@@ -194,15 +194,6 @@ static struct snd_soc_dai_link byt_cht_es8316_dais[] = { .ops = &byt_cht_es8316_aif1_ops, }, - [MERR_DPCM_COMPR] = { - .name = "Compressed Port", - .stream_name = "Compress", - .cpu_dai_name = "compress-cpu-dai", - .codec_dai_name = "snd-soc-dummy-dai", - .codec_name = "snd-soc-dummy", - .platform_name = "sst-mfld-platform", - }, -/* back ends */ {/* Only SSP2 has been tested here, so BYT-CR platforms that
sound/soc/intel/boards/bytcht_nocodec.c +0 -8
@@ -133,14 +133,6 @@ static struct snd_soc_dai_link dais[] = { .dpcm_playback = 1, .ops = &aif1_ops, }, - [MERR_DPCM_COMPR] = { - .name = "Compressed Port", - .stream_name = "Compress", - .cpu_dai_name = "compress-cpu-dai", - .codec_dai_name = "snd-soc-dummy-dai", - .codec_name = "snd-soc-dummy", - .platform_name = "sst-mfld-platform", - },/* CODEC<->CODEC link */ /* back ends */ {
sound/soc/intel/boards/bytcr_rt5640.c +1 -10
@@ -678,14 +678,6 @@ static struct snd_soc_dai_link byt_rt5640_dais[] = { .dynamic = 1, .dpcm_playback = 1, .ops = &byt_rt5640_aif1_ops, - }, - [MERR_DPCM_COMPR] = { - .name = "Baytrail Compressed Port", - .stream_name = "Baytrail Compress", - .cpu_dai_name = "compress-cpu-dai", - .codec_dai_name = "snd-soc-dummy-dai", - .codec_name = "snd-soc-dummy", - .platform_name = "sst-mfld-platform", },/* back ends */ {
@@ -748,7 +740,7 @@ static int snd_byt_rt5640_mc_probe(struct platform_device *pdev)struct sst_acpi_mach *mach;const char *i2c_name =NULL ;int ret_val =0 ; -int dai_index; +int dai_index =0 ;int i; is_bytcr = false;
@@ -762,7 +754,6 @@ static int snd_byt_rt5640_mc_probe(struct platform_device *pdev)snd_soc_card_set_drvdata (&byt_rt5640_card, priv);/* fix index of codec dai */ - dai_index =MERR_DPCM_COMPR +1 ;for (i =0 ; i <ARRAY_SIZE (byt_rt5640_dais); i++) {if (!strcmp (byt_rt5640_dais[i].codec_name,"i2c-10EC5640:00" )) { dai_index = i;
sound/soc/intel/boards/bytcr_rt5651.c +1 -10
@@ -389,14 +389,6 @@ static struct snd_soc_dai_link byt_rt5651_dais[] = { .dpcm_playback = 1, .ops = &byt_rt5651_aif1_ops, }, - [MERR_DPCM_COMPR] = { - .name = "Compressed Port", - .stream_name = "Compress", - .cpu_dai_name = "compress-cpu-dai", - .codec_dai_name = "snd-soc-dummy-dai", - .codec_name = "snd-soc-dummy", - .platform_name = "sst-mfld-platform", - },/* CODEC<->CODEC link */ /* back ends */ {
@@ -440,7 +432,7 @@ static int snd_byt_rt5651_mc_probe(struct platform_device *pdev)struct sst_acpi_mach *mach;const char *i2c_name =NULL ;int ret_val =0 ; -int dai_index; +int dai_index =0 ;int i; priv =devm_kzalloc (&pdev->dev,sizeof (*priv),GFP_ATOMIC );
@@ -454,7 +446,6 @@ static int snd_byt_rt5651_mc_probe(struct platform_device *pdev)snd_soc_card_set_drvdata (&byt_rt5651_card, priv);/* fix index of codec dai */ - dai_index =MERR_DPCM_COMPR +1 ;for (i =0 ; i <ARRAY_SIZE (byt_rt5651_dais); i++) {if (!strcmp (byt_rt5651_dais[i].codec_name,"i2c-10EC5651:00" )) { dai_index = i;
sound/soc/intel/boards/cht_bsw_max98090_ti.c +0 -8
@@ -350,14 +350,6 @@ static struct snd_soc_dai_link cht_dailink[] = { .dpcm_playback = 1, .ops = &cht_aif1_ops, }, - [MERR_DPCM_COMPR] = { - .name = "Compressed Port", - .stream_name = "Compress", - .cpu_dai_name = "compress-cpu-dai", - .codec_dai_name = "snd-soc-dummy-dai", - .codec_name = "snd-soc-dummy", - .platform_name = "sst-mfld-platform", - },/* back ends */ { .name = "SSP2-Codec",
sound/soc/intel/boards/cht_bsw_rt5645.c +0 -8
@@ -445,14 +445,6 @@ static struct snd_soc_dai_link cht_dailink[] = { .dpcm_playback = 1, .ops = &cht_aif1_ops, }, - [MERR_DPCM_COMPR] = { - .name = "Compressed Port", - .stream_name = "Compress", - .cpu_dai_name = "compress-cpu-dai", - .codec_dai_name = "snd-soc-dummy-dai", - .codec_name = "snd-soc-dummy", - .platform_name = "sst-mfld-platform", - },/* CODEC<->CODEC link */ /* back ends */ {
sound/soc/intel/boards/cht_bsw_rt5672.c +0 -8
@@ -302,14 +302,6 @@ static struct snd_soc_dai_link cht_dailink[] = { .dpcm_playback = 1, .ops = &cht_aif1_ops, }, - [MERR_DPCM_COMPR] = { - .name = "Compressed Port", - .stream_name = "Compress", - .cpu_dai_name = "compress-cpu-dai", - .codec_dai_name = "snd-soc-dummy-dai", - .codec_name = "snd-soc-dummy", - .platform_name = "sst-mfld-platform", - },/* Back End DAI links */ {
Signature · 1 line
2.14.1