Pārlūkot izejas kodu

Merge "ASoC: codecs: disable supply after successful probe"

qctecmdr 5 gadi atpakaļ
vecāks
revīzija
12b0b549c4
1 mainītis faili ar 5 papildinājumiem un 0 dzēšanām
  1. 5 0
      asoc/codecs/swr-dmic.c

+ 5 - 0
asoc/codecs/swr-dmic.c

@@ -496,6 +496,11 @@ static int swr_dmic_probe(struct swr_device *pdev)
 			strlen(swr_dmic_name_prefix_of));
 	component->name_prefix = prefix_name;
 
+	if (swr_dmic->is_en_supply == 1) {
+		enable_wcd_codec_supply(swr_dmic, false);
+		--swr_dmic->is_en_supply;
+	}
+
 	return 0;
 
 dev_err: