Commit 5e564c85 authored by Ajit Pandey's avatar Ajit Pandey Committed by DidntRead
Browse files

switch: arizona: Initialize the tuning level to some invalid value



Change-Id: I9e3356d22ebd28cfeb26eec1db438ee979e37a14
Signed-off-by: default avatarAjit Pandey <ajit.pandey@incubesol.com>
parent a8670f05
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -73,6 +73,8 @@
#define ARIZONA_MIC_MUTE		1
#define ARIZONA_MIC_UNMUTE		0

#define ARIZONA_HP_TUNING_INVALID	-1

#define MOON_HP_LOW_IMPEDANCE_LIMIT    11
#define MOON_HP_MEDIUM_IMPEDANCE_LIMIT 23

@@ -3369,6 +3371,10 @@ static int arizona_extcon_probe(struct platform_device *pdev)
	info->micd_low_ohm_done = false;
	arizona_extcon_set_mode(info, 0);

	/* Invalidate the tuning level so that the first detection
	 * will always apply a tuning */
	info->hp_imp_level = ARIZONA_HP_TUNING_INVALID;

	pm_runtime_enable(&pdev->dev);
	pm_runtime_idle(&pdev->dev);
	pm_runtime_get_sync(&pdev->dev);