Bug 205961 - broadwell-rt286: Mic jack detection not working (Dell Latitude 7350)
Summary: broadwell-rt286: Mic jack detection not working (Dell Latitude 7350)
Status: NEW
Alias: None
Product: Drivers
Classification: Unclassified
Component: Sound(ALSA) (show other bugs)
Hardware: Intel Linux
: P1 normal
Assignee: Jaroslav Kysela
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-12-25 04:38 UTC by David Ward
Modified: 2020-05-01 22:20 UTC (History)
1 user (show)

See Also:
Kernel Version: 5.5-rc3
Tree: Mainline
Regression: No


Attachments
ALSA info - mainline - after boot (35.46 KB, text/plain)
2019-12-25 04:38 UTC, David Ward
Details
ALSA info - mainline - after headset inserted (35.45 KB, text/plain)
2019-12-25 04:39 UTC, David Ward
Details
ALSA info - mainline - after headset removed (35.45 KB, text/plain)
2019-12-25 04:39 UTC, David Ward
Details
ALSA info - modified force_combo_jack_table[] - after boot (35.38 KB, text/plain)
2019-12-25 04:41 UTC, David Ward
Details
ALSA info - modified force_combo_jack_table[] - after headset inserted (35.38 KB, text/plain)
2019-12-25 04:42 UTC, David Ward
Details
ALSA info - modified force_combo_jack_table[] - after headset removed (35.38 KB, text/plain)
2019-12-25 04:42 UTC, David Ward
Details
ALSA info - modified dmi_dell_dino[] - after boot (35.51 KB, text/plain)
2019-12-25 04:43 UTC, David Ward
Details
ALSA info - modified dmi_dell_dino[] - after headset inserted (35.51 KB, text/plain)
2019-12-25 04:43 UTC, David Ward
Details
ALSA info - modified dmi_dell_dino[] - after headset removed (35.51 KB, text/plain)
2019-12-25 04:43 UTC, David Ward
Details

Description David Ward 2019-12-25 04:38:15 UTC
Created attachment 286425 [details]
ALSA info - mainline - after boot

The Dell Latitude 7350 2-in-1 laptop has an internal digital microphone, as well as an analog 3.5mm headset jack. Under Windows 10, audio recording works from either of these sources, and the source changes automatically when a headset is inserted or removed.

There seem to be issues both in the ALSA drivers and the ALSA Use Case Manager profile which affect audio recording on this system. These problems are not new, but I am testing this with kernel 5.5-rc3 and the current development versions of alsa-lib, alsa-plugins, alsa-ucm-conf, alsa-utils, and PulseAudio.

In the ALSA mixer controls for the broadwell-rt286 card:

- The read-only 'Mic Jack' control does not change when a headset is inserted or removed (it is always 'true'). However, the read-only 'Headphone Jack' control does change, which triggers changes by the UCM profile in other playback controls.

- To use the internal microphone, the 'ADC 0 Mux' control must manually be set to 'Dmic', and the level of the 'Mic' control must be increased from the default of 0%. (Also, in the Sound panel of GNOME Settings, the input volume must be increased from 0%.)

- I have not found any settings that allow audio to be recorded from the headset.


In sound/soc/codecs/rt286.c, I tried adding the DMI values for this system to force_combo_jack_table[]. This caused the 'Mic Jack' control to be 'false' instead of 'true', but its value still did not change when a headset was inserted or removed.

I also tried adding the DMI values to dmi_dell_dino[] instead, with the same result.


For all three cases above, I am attaching the output of 'alsa-info.sh' when it was run after:
- the system was booted (without a headset attached);
- a headset was inserted into the jack; and
- the headset was removed from the jack.
Comment 1 David Ward 2019-12-25 04:39:01 UTC
Created attachment 286427 [details]
ALSA info - mainline - after headset inserted
Comment 2 David Ward 2019-12-25 04:39:30 UTC
Created attachment 286429 [details]
ALSA info - mainline - after headset removed
Comment 3 David Ward 2019-12-25 04:41:27 UTC
Created attachment 286431 [details]
ALSA info - modified force_combo_jack_table[] - after boot
Comment 4 David Ward 2019-12-25 04:42:10 UTC
Created attachment 286433 [details]
ALSA info - modified force_combo_jack_table[] - after headset inserted
Comment 5 David Ward 2019-12-25 04:42:37 UTC
Created attachment 286435 [details]
ALSA info - modified force_combo_jack_table[] - after headset removed
Comment 6 David Ward 2019-12-25 04:43:19 UTC
Created attachment 286437 [details]
ALSA info - modified dmi_dell_dino[] - after boot
Comment 7 David Ward 2019-12-25 04:43:42 UTC
Created attachment 286439 [details]
ALSA info - modified dmi_dell_dino[] - after headset inserted
Comment 8 David Ward 2019-12-25 04:43:59 UTC
Created attachment 286441 [details]
ALSA info - modified dmi_dell_dino[] - after headset removed

Note You need to log in before you can comment on or make changes to this bug.