hc
2023-12-09 b22da3d8526a935aa31e086e63f60ff3246cb61c
kernel/drivers/headset_observe/rk_headset_irq_hook_adc.c
....@@ -82,9 +82,6 @@
8282 extern int rt3261_headset_mic_detect(int jack_insert);
8383 #endif
8484
85
-#if defined(CONFIG_SND_SOC_CX2072X)
86
-extern int cx2072x_jack_report(void);
87
-#endif
8885
8986 /* headset private data */
9087 struct headset_priv {
....@@ -299,13 +296,6 @@
299296 }
300297 headset_info->cur_headset_status =
301298 headset_info->isMic ? BIT_HEADSET : BIT_HEADSET_NO_MIC;
302
-
303
-#if defined(CONFIG_SND_SOC_CX2072X)
304
- if (cx2072x_jack_report() != -1)
305
- headset_info->cur_headset_status =
306
- (cx2072x_jack_report() == 3) ? BIT_HEADSET :
307
- BIT_HEADSET_NO_MIC;
308
-#endif
309299 if (headset_info->cur_headset_status) {
310300 if (headset_info->isMic) {
311301 extcon_set_state_sync(headset_info->edev,