asoc: Add support for rouleur codec in machine driver
Add rouleur codec support in bengal machine driver to create codec entry and invoke mbhc hs detect functions for respective codecs. Correct the logic for headset detection pull up current and volatile registers for digital part of rouleur codec. Change-Id: I22545dc796c215c1501e883796546c97d8ca8698 Signed-off-by: Aditya Bavanari <abavanar@codeaurora.org>
This commit is contained in:

committed by
Gerrit - the friendly Code Review server

부모
29eea04338
커밋
ee6367c560
@@ -291,14 +291,14 @@ static void rouleur_mbhc_hph_l_pull_up_control(
|
||||
/* Default pull up current to 2uA */
|
||||
if (pull_up_cur < I_OFF || pull_up_cur > I_3P0_UA ||
|
||||
pull_up_cur == I_DEFAULT)
|
||||
pull_up_cur = I_2P0_UA;
|
||||
pull_up_cur = I_3P0_UA;
|
||||
|
||||
dev_dbg(component->dev, "%s: HS pull up current:%d\n",
|
||||
__func__, pull_up_cur);
|
||||
|
||||
snd_soc_component_update_bits(component,
|
||||
ROULEUR_ANA_MBHC_PLUG_DETECT_CTL,
|
||||
0xC0, pull_up_cur);
|
||||
0xC0, pull_up_cur << 6);
|
||||
}
|
||||
|
||||
static int rouleur_mbhc_request_micbias(struct snd_soc_component *component,
|
||||
|
Reference in New Issue
Block a user