fsa4480: Update bits for switch ctl in reg notifier

Update bits for switch ctl in reg notifier so that
after PDR euro headset is detected as US and playback dosent
get paused on headset.

Change-Id: I02639b2c1db64bea03c0bb0696568a3aa9275b01
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
This commit is contained in:
Vatsal Bucha 2020-11-21 12:58:35 +05:30
commit 70d6e6fe76

View file

@ -311,8 +311,8 @@ int fsa4480_reg_notifier(struct notifier_block *nb,
dev_dbg(fsa_priv->dev, "%s: verify if USB adapter is already inserted\n",
__func__);
rc = fsa4480_usbc_analog_setup_switches(fsa_priv);
fsa4480_usbc_update_settings(fsa_priv, fsa_priv->switch_control,
0x9F);
regmap_update_bits(fsa_priv->regmap, FSA4480_SWITCH_CONTROL, 0x07,
fsa_priv->switch_control);
return rc;
}
EXPORT_SYMBOL(fsa4480_reg_notifier);