diff options
| author | Hui Wang <[email protected]> | 2020-04-09 13:58:16 -0500 |
|---|---|---|
| committer | Mark Brown <[email protected]> | 2020-04-14 14:34:02 +0100 |
| commit | 3a24f135e6cc58c2dc042dde44031ec31b706ce5 (patch) | |
| tree | 34083158602b4542ffa027d2ff78b1e0f1ac376f /tools/perf/scripts/python/export-to-sqlite.py | |
| parent | a8bb72f160020db5d7f81824b2dba6c8e29ef67a (diff) | |
ASoC: intel/skl/hda - set autosuspend timeout for hda codecs
On some Lenovo and HP laptops, if both codec driver and SOF driver
are in runtime suspend mode, we plug a headset to the audio jack,
the headphone could be detected but Mic couldn't.
That is because when plugging, the headphone triggers a unsol event
first, and about 0.7s later (on the Lenovo X1 Carbon 7th), the Mic
triggers a unsol event. But if the codec driver enters runtime suspend
within 0.7s, the Mic can't trigger the unsol event.
If we don't set autosuspend_delay to a non-zero value for the hda codec
driver, it will enter runtime suspend immediately after the headphone
triggers the unsol event.
Follow the sequence of legacy hda driver and set a autosuspend delay
of 1sec after card registration (refer to pci/hda/hda_intel.c and
pci/hda/hda_codec.c).
Co-developed-by: Kai Vehmanen <[email protected]>
Co-developed-by: Jaska Uimonen <[email protected]>
Signed-off-by: Hui Wang <[email protected]>
Signed-off-by: Kai Vehmanen <[email protected]>
Signed-off-by: Jaska Uimonen <[email protected]>
Signed-off-by: Pierre-Louis Bossart <[email protected]>
Reviewed-by: Ranjani Sridharan <[email protected]>
Reviewed-by: Clarex Zhou <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions