Bug 12905 - Headphone polling creates noise on line-in
: Headphone polling creates noise on line-in
Status: RESOLVED FIXED
Product: SB Radio
Classification: Unclassified
Component: Audio
: Include FW version in comment
: PC Other
: -- normal (vote)
: MP
Assigned To: Richard Titmuss
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2009-07-16 18:35 UTC by Caleb Crome
Modified: 2009-09-08 09:26 UTC (History)
0 users

See Also:
Category: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Caleb Crome 2009-07-16 18:35:15 UTC
The enable-disable polling for the headset detect creates a 0.5hz pop (pretty low level), on the line-in.

I think we can be smarter about polling the headphone.   Use the previous HP detect method until a HP is inserted.  Only when it is inserted, then do the off-on trick to determine the HP type.  Then more polling is unnecessary.
Comment 1 Richard Titmuss 2009-07-20 07:52:46 UTC
Fixed in baby-mp r6677.

Caleb, can you please test and confirm it works with all headset types.
Comment 2 Caleb Crome 2009-07-20 17:18:59 UTC
Headphone detect seems to be reliable, but headset type detection is not.

I think you should probably either increase debounce time, or just wait for .5 to 1 second after headset is detected, then do the disable/enable trick to detect type.
Comment 3 Caleb Crome 2009-07-20 17:19:15 UTC
I see both a 3-wire detected as 4-wire, and 4-wire detected as 3-wire.
Comment 4 Richard Titmuss 2009-07-22 03:48:29 UTC
Fixed in baby-mp r6737. The headset type detection has been disabled for now, so we don't detect if the headset has a mic.