]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
ASoC: intel: rename ignore_pch_dmic variable name
authorVijendar Mukunda <Vijendar.Mukunda@amd.com>
Thu, 1 Aug 2024 09:14:21 +0000 (14:44 +0530)
committerMark Brown <broonie@kernel.org>
Thu, 1 Aug 2024 11:43:56 +0000 (12:43 +0100)
Rename 'ignore_pch_dmic' variable name as 'ignore_internal_dmic'.
This variable will be moved to common header file and will be used by other
platform machine driver code.

Link: https://github.com/thesofproject/linux/pull/5068
Signed-off-by: Vijendar Mukunda <Vijendar.Mukunda@amd.com>
Reviewed-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Link: https://patch.msgid.link/20240801091446.10457-7-Vijendar.Mukunda@amd.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/intel/boards/sof_sdw.c
sound/soc/intel/boards/sof_sdw_common.h

index 64418976aba4171d9e6b3698410c246cafae8909..28021d33fd2d49444381d1e76368bc3976d15cdb 100644 (file)
@@ -932,7 +932,7 @@ static struct asoc_sdw_codec_info codec_info_list[] = {
        {
                .part_id = 0x714,
                .version_id = 3,
-               .ignore_pch_dmic = true,
+               .ignore_internal_dmic = true,
                .dais = {
                        {
                                .direction = {false, true},
@@ -947,7 +947,7 @@ static struct asoc_sdw_codec_info codec_info_list[] = {
        {
                .part_id = 0x715,
                .version_id = 3,
-               .ignore_pch_dmic = true,
+               .ignore_internal_dmic = true,
                .dais = {
                        {
                                .direction = {false, true},
@@ -962,7 +962,7 @@ static struct asoc_sdw_codec_info codec_info_list[] = {
        {
                .part_id = 0x714,
                .version_id = 2,
-               .ignore_pch_dmic = true,
+               .ignore_internal_dmic = true,
                .dais = {
                        {
                                .direction = {false, true},
@@ -977,7 +977,7 @@ static struct asoc_sdw_codec_info codec_info_list[] = {
        {
                .part_id = 0x715,
                .version_id = 2,
-               .ignore_pch_dmic = true,
+               .ignore_internal_dmic = true,
                .dais = {
                        {
                                .direction = {false, true},
@@ -1542,7 +1542,7 @@ static int parse_sdw_endpoints(struct snd_soc_card *card,
                        if (!codec_info)
                                return -EINVAL;
 
-                       ctx->ignore_pch_dmic |= codec_info->ignore_pch_dmic;
+                       ctx->ignore_internal_dmic |= codec_info->ignore_internal_dmic;
 
                        codec_name = asoc_sdw_get_codec_name(dev, codec_info, adr_link, i);
                        if (!codec_name)
@@ -2018,7 +2018,7 @@ static int sof_card_dai_links_create(struct snd_soc_card *card)
 
        /* dmic */
        if (dmic_num > 0) {
-               if (ctx->ignore_pch_dmic) {
+               if (ctx->ignore_internal_dmic) {
                        dev_warn(dev, "Ignoring PCH DMIC\n");
                } else {
                        ret = create_dmic_dailinks(card, &dai_links, &be_id);
index 28db2f1c6daeaddc5e8f3671d7f4062a91914f53..c1b58180efe54b1aaa75315821e72f4dd891bc33 100644 (file)
@@ -106,7 +106,7 @@ struct asoc_sdw_codec_info {
        const char *codec_name;
        int amp_num;
        const u8 acpi_id[ACPI_ID_LEN];
-       const bool ignore_pch_dmic;
+       const bool ignore_internal_dmic;
        const struct snd_soc_ops *ops;
        struct asoc_sdw_dai_info dais[SOC_SDW_MAX_DAI_NUM];
        const int dai_num;
@@ -129,7 +129,7 @@ struct mc_private {
        /* To store SDW Pin index for each SoundWire link */
        unsigned int sdw_pin_index[SDW_MAX_LINKS];
        bool append_dai_type;
-       bool ignore_pch_dmic;
+       bool ignore_internal_dmic;
 };
 
 extern unsigned long sof_sdw_quirk;