Change-Id: I8437c23eb177063e65327ccb73f91544c2025f31
Signed-off-by: Stuart Henderson <stuarth@opensource.wolfsonmicro.com>
return 0;
}
+ if (reading == MADERA_HP_Z_OPEN) {
+ if (info->hp_tuning_level == 1)
+ return 0;
+
+ dev_dbg(info->dev, "No jack: Setting tuning level 1\n");
+
+ info->hp_tuning_level = 1;
+
+ ret = regmap_multi_reg_write(madera->regmap,
+ tuning[1].patch,
+ tuning[1].patch_len);
+ return ret;
+ }
+
/*
* Check for tuning, we don't need to compare against the last
* tuning entry because we always select that if reading is not