ASoC: Intel: boards: replace capture_only by dpcm_capture
authorPierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Mon, 8 Jun 2020 19:44:14 +0000 (14:44 -0500)
committerMark Brown <broonie@kernel.org>
Tue, 9 Jun 2020 14:29:00 +0000 (15:29 +0100)
It's not clear why specific FE dailinks use capture_only flags, likely
blind copy/paste from Chromebook driver to the other.  Replace by
dpcm_capture, this will make future alignment and removal of flags
easier.

Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Reviewed-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
Reviewed-by: Daniel Baluta <daniel.baluta@gmail.com>
Reviewed-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Link: https://lore.kernel.org/r/20200608194415.4663-4-pierre-louis.bossart@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/intel/boards/glk_rt5682_max98357a.c
sound/soc/intel/boards/kbl_da7219_max98927.c
sound/soc/intel/boards/kbl_rt5663_max98927.c
sound/soc/intel/boards/kbl_rt5663_rt5514_max98927.c

index 48eda1a..954ab01 100644 (file)
@@ -407,7 +407,7 @@ static struct snd_soc_dai_link geminilake_dais[] = {
                .name = "Glk Audio Echo Reference cap",
                .stream_name = "Echoreference Capture",
                .init = NULL,
-               .capture_only = 1,
+               .dpcm_capture = 1,
                .nonatomic = 1,
                .dynamic = 1,
                SND_SOC_DAILINK_REG(echoref, dummy, platform),
index cc9b5ea..e29c31f 100644 (file)
@@ -692,7 +692,7 @@ static struct snd_soc_dai_link kabylake_dais[] = {
                .name = "Kbl Audio Echo Reference cap",
                .stream_name = "Echoreference Capture",
                .init = NULL,
-               .capture_only = 1,
+               .dpcm_capture = 1,
                .nonatomic = 1,
                SND_SOC_DAILINK_REG(echoref, dummy, platform),
        },
@@ -858,7 +858,7 @@ static struct snd_soc_dai_link kabylake_max98_927_373_dais[] = {
                .name = "Kbl Audio Echo Reference cap",
                .stream_name = "Echoreference Capture",
                .init = NULL,
-               .capture_only = 1,
+               .dpcm_capture = 1,
                .nonatomic = 1,
                SND_SOC_DAILINK_REG(echoref, dummy, platform),
        },
index 658a9da..09ba55f 100644 (file)
@@ -672,7 +672,7 @@ static struct snd_soc_dai_link kabylake_dais[] = {
                .name = "Kbl Audio Echo Reference cap",
                .stream_name = "Echoreference Capture",
                .init = NULL,
-               .capture_only = 1,
+               .dpcm_capture = 1,
                .nonatomic = 1,
                SND_SOC_DAILINK_REG(echoref, dummy, platform),
        },
index 1b1f8d7..b34cf6c 100644 (file)
@@ -566,7 +566,7 @@ static struct snd_soc_dai_link kabylake_dais[] = {
                .name = "Kbl Audio Echo Reference cap",
                .stream_name = "Echoreference Capture",
                .init = NULL,
-               .capture_only = 1,
+               .dpcm_capture = 1,
                .nonatomic = 1,
                SND_SOC_DAILINK_REG(echoref, dummy, platform),
        },