Bug 110916 - The audio playback does not work anymore after suspend & resume on ASUS E406MA
Summary: The audio playback does not work anymore after suspend & resume on ASUS E406MA
Status: RESOLVED FIXED
Alias: None
Product: DRI
Classification: Unclassified
Component: DRM/Intel (show other bugs)
Version: XOrg git
Hardware: x86-64 (AMD64) Linux (All)
: medium major
Assignee: Intel GFX Bugs mailing list
QA Contact: Intel GFX Bugs mailing list
URL:
Whiteboard: Triaged
Keywords:
Depends on:
Blocks:
 
Reported: 2019-06-14 05:27 UTC by jian-hong
Modified: 2019-07-09 17:13 UTC (History)
3 users (show)

See Also:
i915 platform: GLK
i915 features: display/audio


Attachments
The dmesg with drm.debug=0xe in boot command (159.18 KB, text/x-log)
2019-06-14 05:27 UTC, jian-hong
no flags Details
The dmesg with drm.debug=0xe and snd_hda_intel.probe_mask=0x01 in boot command (193.31 KB, text/x-log)
2019-06-14 05:49 UTC, jian-hong
no flags Details
The dmesg with drm-tip tree and drm.debug=0xe in boot command (191.84 KB, text/x-log)
2019-06-14 09:33 UTC, jian-hong
no flags Details

Description jian-hong 2019-06-14 05:27:03 UTC
Created attachment 144537 [details]
The dmesg with drm.debug=0xe in boot command

We have an ASUS E406MA laptop equipped with Intel N5000 CPU.  After system suspend & resume, the audio playback does not work anymore. The device for sound output is listed as a headphone device.  Plugging in headphones no sound is audible neither.

The kernel is Linux stable 5.1.9.

Here are the error messages after resume:

[   65.532457] snd_hda_intel 0000:00:0e.0: No response from codec, disabling MSI: last cmd=0x20bf8100
[   66.536453] snd_hda_intel 0000:00:0e.0: azx_get_response timeout, switching to single_cmd mode: last cmd=0x20bf8100
[   66.738975] snd_hda_codec_realtek hdaudioC0D0: Unable to sync register 0x2b8000. -5
[   66.741358] snd_hda_codec_realtek hdaudioC0D0: Unable to sync register 0x2b8000. -5
[   66.770874] snd_hda_codec_hdmi hdaudioC0D2: Unable to sync register 0x2f0d00. -5

This bug is also discussed in kernel bugzilla [1] and the mail list [2]

[1] https://bugzilla.kernel.org/show_bug.cgi?id=203623
[2] https://www.spinics.net/lists/stable/msg310395.html
Comment 1 jian-hong 2019-06-14 05:49:19 UTC
Created attachment 144538 [details]
The dmesg with drm.debug=0xe and snd_hda_intel.probe_mask=0x01 in boot command

I also follow Takashi's comment [1]

After add "snd_hda_intel.probe_mask=0x01" to boot command, the built-in audio (including internal speaker, mic and headset) works after resume, and there is no error message mentioned in comment #0.  However, the HDMI audio is not listed and cannot be used.

[1] https://bugzilla.kernel.org/show_bug.cgi?id=203623#c5
Comment 2 Lakshmi 2019-06-14 08:02:10 UTC
Reporter, you have tried to verify the issue with drmtip (https://cgit.freedesktop.org/drm-tip)?

If so, can you attach the dmesg?
Comment 3 jian-hong 2019-06-14 09:33:47 UTC
Created attachment 144540 [details]
The dmesg with drm-tip tree and drm.debug=0xe in boot command

(In reply to Lakshmi from comment #2)

I tried with https://cgit.freedesktop.org/drm-tip
The attachment is the corresponding dmesg.

The test result is same as the comment: the audio works after resume.
https://bugzilla.kernel.org/show_bug.cgi?id=203623#c6
Comment 4 Ville Syrjala 2019-06-14 13:43:59 UTC
Hmm. I do see 
[   57.460391] [drm:intel_dump_cdclk_state [i915]] Changing CDCLK to 79200 kHz, VCO 633600 kHz, ref 19200 kHz, bypass 19200 kHz, voltage level 4
in the logs.

Ah, that's for the case when we disable all display pipes (glk_calc_cdclk(0) cases). Apparently we didn't add the audio cdclk requirement to those code paths :(
Comment 5 Ville Syrjala 2019-07-09 17:13:59 UTC
The backports went in I believe. We can close this.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.