| .. | .. |
|---|
| 82 | 82 | extern int rt3261_headset_mic_detect(int jack_insert); |
|---|
| 83 | 83 | #endif |
|---|
| 84 | 84 | |
|---|
| 85 | | -#if defined(CONFIG_SND_SOC_CX2072X) |
|---|
| 86 | | -extern int cx2072x_jack_report(void); |
|---|
| 87 | | -#endif |
|---|
| 88 | 85 | |
|---|
| 89 | 86 | /* headset private data */ |
|---|
| 90 | 87 | struct headset_priv { |
|---|
| .. | .. |
|---|
| 299 | 296 | } |
|---|
| 300 | 297 | headset_info->cur_headset_status = |
|---|
| 301 | 298 | 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 |
|---|
| 309 | 299 | if (headset_info->cur_headset_status) { |
|---|
| 310 | 300 | if (headset_info->isMic) { |
|---|
| 311 | 301 | extcon_set_state_sync(headset_info->edev, |
|---|