Skip to contentSkip to conversation

ASoC: rt5645: fix jack type detect error

PATCH Mark Brown 1 participant 3 messages May 8, 2015 – May 11, 2015 3 messages not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

Mark Brown

author
#1 lore raw
Quoted 2 lines · John Lin

rt5645_jack_detect doesn't report the correct jack type consistently. This patch can make it more stable.

Can you be more specific about what the problem is and how this fixes it pleased? It's a bit hard to review based on your changelog.

A message that is not in the archive (sent off-list or not yet received): 14AE6189BDA733429BF8455FEEF63298010D9346@RTITMBSV02.realtek.com.tw

author
#3 lore raw
Quoted 13 lines · John Lin
Quoted 12 lines

-----Original Message-----
From: Mark Brown [mailto:[email protected]]
Sent: Saturday, May 09, 2015 1:14 AM
To: John Lin
Cc: [email protected]; [email protected]; Bard Liao; Flove; Oder Chiou; [email protected]; [email protected]; [email protected]
Subject: Re: [PATCH 1/2] ASoC: rt5645: fix jack type detect error

Quoted 2 lines · John Lin

rt5645_jack_detect doesn't report the correct jack type consistently. This patch can make it more stable.

Quoted 7 lines
Quoted 2 lines

Can you be more specific about what the problem is and how this fixes it pleased? It's a bit hard to review based on your changelog.

It mistakes OMTP type headset to CTIA type if "LDO2" power is disable in jack detection function. So, we keep "LDO2" power enabled until jack out. We also change the register sequence to make it more stable and remove unnecessary power such as "micbias1" and "micbias2" for jack detection.

This stuff needs to be in the changelog. It also sounds like there's at least two probably three patches here - one to keep the LDO power enabled for lonnger and one or more changes to the register sequence.

A message that is not in the archive (sent off-list or not yet received): [email protected]

author
#5 lore raw

Re: [PATCH 2/2] ASoC: rt5645: improve headphone depop function

Quoted 5 lines · John Lin

We add a calibration function and call it at the beginning of i2c_probe. The calibration value will be kept until codec is shutdown. We will reset the codec after the calibration is finished. So, we set cache_bypass in the calibration function. The benefit is we can shorter the delay time in headphone depop.

This looks fine but seems to depend on the previous patch.