Read Page 0, Register 13 on the TLV320AIC3104. TI defines independent debounce fields: D4:D2 for jack detection and D1:D0 for button presses. Changing the jack filter does not change the button filter. If playback, I²C and the master clock are all valid while a button still generates duplicate events, check the button field and host event handling before replacing the oscillator.
For example, jack code 010 selects 64 ms. If the button code remains 00, button debounce is still zero. To select 16 ms for the button in this example, use code 10 on D1:D0 and confirm the readback did not change jack debounce or detection enable. These are configured debounce values, not guarantees for total time from mechanical movement to an application event. Sampling phase, interrupt service and software can add delay.
Exercise the jack and the button separately. Hold the button setting fixed while testing two jack settings. Then leave the headset seated and the jack setting unchanged and vary the button field. Log the switch waveform, codec detection and host events. If the codec reports once but the application responds several times, debug host handling; if the device itself reports duplicates, check the circuit and selected debounce. Verify the DSO321SR electrical compatibility separately. A valid clock does not establish correct behavior for either detector.
Related selection guide: MERLIN Crystal Timing: TLV320AIC3104 with a 12 MHz oscillator: why does I²C work but 48 kHz audio does not?
Resource link: https://www.mecxtal.com.cn/en/handbook/new-0806.html
