Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 12b0b549 authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

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

parents d5e44c9b 5bf4532a
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -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: