[alsa-devel] No sound after suspend-to-ram
After a fresh reboot, the sound works ok but if I put the computer to sleep (pm-suspend), after it wakes up there is no sound anymore.
I did try 'alsa force-reload' after suspend but still no sound. After 'pm-hibernate' sound is back again.
I found an old thread here: https://bugzilla.kernel.org/show_bug.cgi?id=49421 where Michael seems to have the same problem which is still unsolved; maybe I can help with more info.
I attached the 'alsa-info.sh' output before and after suspend: 'alsa-info.txt.before' and 'alsa-info.txt.after' (as a patch to stay below 80k mail size rule: diff -u alsa-info.txt.before alsa-info.txt.after > alsa-info.txt.patch)
The only difference between before and after is this one: @@ -241,7 +241,7 @@ Node 0x11 [Audio Input] wcaps 0x10051b: Stereo Amp-In Amp-In caps: ofs=0x11, nsteps=0x2e, stepsize=0x03, mute=1 Amp-In vals: [0x12 0x12] - Converter: stream=4, channel=0 + Converter: stream=0, channel=0 SDI-Select: 0 PCM: rates [0x160]: 44100 48000 96000
The PC is here: http://www.dell.com/us/p/xps-27-2720-aio/pd?ref=PD_OC, but the 2y older version with no touch
If I boot into windows (8.1) everything works great, including sound (even after suspend)
On Thu, 22 Oct 2015 10:38:37 +0200, George Gugulea wrote:
After a fresh reboot, the sound works ok but if I put the computer to sleep (pm-suspend), after it wakes up there is no sound anymore.
I did try 'alsa force-reload' after suspend but still no sound. After 'pm-hibernate' sound is back again.
I found an old thread here: https://bugzilla.kernel.org/show_bug.cgi?id=49421 where Michael seems to have the same problem which is still unsolved; maybe I can help with more info.
I attached the 'alsa-info.sh' output before and after suspend: 'alsa-info.txt.before' and 'alsa-info.txt.after' (as a patch to stay below 80k mail size rule: diff -u alsa-info.txt.before alsa-info.txt.after > alsa-info.txt.patch)
The only difference between before and after is this one: @@ -241,7 +241,7 @@ Node 0x11 [Audio Input] wcaps 0x10051b: Stereo Amp-In Amp-In caps: ofs=0x11, nsteps=0x2e, stepsize=0x03, mute=1 Amp-In vals: [0x12 0x12]
- Converter: stream=4, channel=0
- Converter: stream=0, channel=0 SDI-Select: 0 PCM: rates [0x160]: 44100 48000 96000
The PC is here: http://www.dell.com/us/p/xps-27-2720-aio/pd?ref=PD_OC, but the 2y older version with no touch
If I boot into windows (8.1) everything works great, including sound (even after suspend)
Did you test with 4.3-rc kernel? 3.19 is very old.
It's likely codec-specific stuff, as there is no difference seen in alsa-info.sh outputs (the converter is the value assigned dynamically at playback, so it doesn't matter at all).
Takashi
I did now with 4.3.0-rc6 and there is the same problem. I reattached the two outputs, before and after (as a patch) suspend-to-ram: diff -u alsa-info.txt.4.3-rc6.before alsa-info.txt.4.3-rc6.after > alsa-info.txt.4.3-rc6.patch
On Thu, Oct 22, 2015 at 6:15 PM, Takashi Iwai tiwai@suse.de wrote:
On Thu, 22 Oct 2015 10:38:37 +0200, George Gugulea wrote:
After a fresh reboot, the sound works ok but if I put the computer to sleep (pm-suspend), after it wakes up there is no sound anymore.
I did try 'alsa force-reload' after suspend but still no sound. After 'pm-hibernate' sound is back again.
I found an old thread here: https://bugzilla.kernel.org/show_bug.cgi?id=49421 where Michael seems to have the same problem which is still unsolved; maybe I can help with more info.
I attached the 'alsa-info.sh' output before and after suspend: 'alsa-info.txt.before' and 'alsa-info.txt.after' (as a patch to stay below 80k mail size rule: diff -u alsa-info.txt.before alsa-info.txt.after > alsa-info.txt.patch)
The only difference between before and after is this one: @@ -241,7 +241,7 @@ Node 0x11 [Audio Input] wcaps 0x10051b: Stereo Amp-In Amp-In caps: ofs=0x11, nsteps=0x2e, stepsize=0x03, mute=1 Amp-In vals: [0x12 0x12]
- Converter: stream=4, channel=0
- Converter: stream=0, channel=0 SDI-Select: 0 PCM: rates [0x160]: 44100 48000 96000
The PC is here: http://www.dell.com/us/p/xps-27-2720-aio/pd?ref=PD_OC, but the 2y older version with no touch
If I boot into windows (8.1) everything works great, including sound (even after suspend)
Did you test with 4.3-rc kernel? 3.19 is very old.
It's likely codec-specific stuff, as there is no difference seen in alsa-info.sh outputs (the converter is the value assigned dynamically at playback, so it doesn't matter at all).
Takashi
On Thu, 22 Oct 2015 23:23:05 +0200, George Gugulea wrote:
I did now with 4.3.0-rc6 and there is the same problem. I reattached the two outputs, before and after (as a patch) suspend-to-ram: diff -u alsa-info.txt.4.3-rc6.before alsa-info.txt.4.3-rc6.after > alsa-info.txt.4.3-rc6.patch
OK, so we need to hunt more.
Kailang, could you check whether anything missing for this codec? The symptom appears like the COEF thingy you fixed by extra init verbs.
thanks,
Takashi
On Thu, Oct 22, 2015 at 6:15 PM, Takashi Iwai tiwai@suse.de wrote:
On Thu, 22 Oct 2015 10:38:37 +0200, George Gugulea wrote:
After a fresh reboot, the sound works ok but if I put the computer to sleep (pm-suspend), after it wakes up there is no sound anymore.
I did try 'alsa force-reload' after suspend but still no sound. After 'pm-hibernate' sound is back again.
I found an old thread here: https://bugzilla.kernel.org/show_bug.cgi?id=49421 where Michael seems to have the same problem which is still unsolved; maybe I can help with more info.
I attached the 'alsa-info.sh' output before and after suspend: 'alsa-info.txt.before' and 'alsa-info.txt.after' (as a patch to stay below 80k mail size rule: diff -u alsa-info.txt.before alsa-info.txt.after > alsa-info.txt.patch)
The only difference between before and after is this one: @@ -241,7 +241,7 @@ Node 0x11 [Audio Input] wcaps 0x10051b: Stereo Amp-In Amp-In caps: ofs=0x11, nsteps=0x2e, stepsize=0x03, mute=1 Amp-In vals: [0x12 0x12]
- Converter: stream=4, channel=0
- Converter: stream=0, channel=0 SDI-Select: 0 PCM: rates [0x160]: 44100 48000 96000
The PC is here: http://www.dell.com/us/p/xps-27-2720-aio/pd?ref=PD_OC, but the 2y older version with no touch
If I boot into windows (8.1) everything works great, including sound (even after suspend)
Did you test with 4.3-rc kernel? 3.19 is very old.
It's likely codec-specific stuff, as there is no difference seen in alsa-info.sh outputs (the converter is the value assigned dynamically at playback, so it doesn't matter at all).
Takashi
-- gg [2 alsa-info.txt.4.3-rc6.before <application/octet-stream (base64)>]
--- alsa-info.txt.4.3-rc6.before 2015-10-22 23:41:24.265081408 +0300 +++ alsa-info.txt.4.3-rc6.after 2015-10-22 23:46:30.584791012 +0300 @@ -3,7 +3,7 @@ !!ALSA Information Script v 0.4.64 !!################################
-!!Script ran on: Thu Oct 22 20:41:23 UTC 2015 +!!Script ran on: Thu Oct 22 20:46:30 UTC 2015
!!Linux Distribution @@ -142,26 +142,26 @@ ControlAmp: chs=3, dir=Out, idx=0, ofs=0 Device: name="ALC3260 Analog", type="Audio", device=0 Amp-Out caps: ofs=0x3f, nsteps=0x40, stepsize=0x03, mute=0
- Amp-Out vals: [0x25 0x25]
- Converter: stream=5, channel=0
- Amp-Out vals: [0x21 0x21]
- Converter: stream=0, channel=0 PCM: rates [0x560]: 44100 48000 96000 192000 bits [0xe]: 16 20 24 formats [0x1]: PCM Power states: D0 D1 D2 D3 EPSS
- Power: setting=D0, actual=D0
- Power: setting=D3, actual=D3
Node 0x03 [Audio Output] wcaps 0x41d: Stereo Amp-Out Control: name="Speaker Playback Volume", index=0, device=0 ControlAmp: chs=3, dir=Out, idx=0, ofs=0 Amp-Out caps: ofs=0x3f, nsteps=0x40, stepsize=0x03, mute=0
- Amp-Out vals: [0x25 0x25]
- Converter: stream=5, channel=0
- Amp-Out vals: [0x21 0x21]
- Converter: stream=0, channel=0 PCM: rates [0x560]: 44100 48000 96000 192000 bits [0xe]: 16 20 24 formats [0x1]: PCM Power states: D0 D1 D2 D3 EPSS
- Power: setting=D0, actual=D0
- Power: setting=D3, actual=D3
Node 0x04 [Vendor Defined Widget] wcaps 0xf00000: Mono Node 0x05 [Vendor Defined Widget] wcaps 0xf00000: Mono Node 0x06 [Audio Output] wcaps 0x611: Stereo Digital @@ -182,7 +182,7 @@ ControlAmp: chs=3, dir=In, idx=0, ofs=0 Device: name="ALC3260 Analog", type="Audio", device=0 Amp-In caps: ofs=0x11, nsteps=0x2e, stepsize=0x03, mute=1
- Amp-In vals: [0x11 0x11]
- Amp-In vals: [0x10 0x10] Converter: stream=0, channel=0 SDI-Select: 0 PCM:
@@ -240,7 +240,7 @@ Node 0x10 [Vendor Defined Widget] wcaps 0xf00000: Mono Node 0x11 [Audio Input] wcaps 0x10051b: Stereo Amp-In Amp-In caps: ofs=0x11, nsteps=0x2e, stepsize=0x03, mute=1
- Amp-In vals: [0x11 0x11]
- Amp-In vals: [0x10 0x10] Converter: stream=1, channel=0 SDI-Select: 0 PCM:
@@ -288,7 +288,7 @@ Misc = NO_PRESENCE Pin-ctls: 0x40: OUT Power states: D0 D1 D2 D3 EPSS
- Power: setting=D0, actual=D0
- Power: setting=D3, actual=D3 Connection: 2 0x0c 0x0d*
Node 0x15 [Pin Complex] wcaps 0x40058d: Stereo Amp-Out @@ -531,8 +531,8 @@ crw-rw----+ 1 root audio 116, 2 Oct 22 23:40 /dev/snd/controlC0 crw-rw----+ 1 root audio 116, 6 Oct 22 23:40 /dev/snd/hwC0D0 crw-rw----+ 1 root audio 116, 7 Oct 22 23:40 /dev/snd/hwC0D3 -crw-rw----+ 1 root audio 116, 4 Oct 22 23:40 /dev/snd/pcmC0D0c -crw-rw----+ 1 root audio 116, 3 Oct 22 23:40 /dev/snd/pcmC0D0p +crw-rw----+ 1 root audio 116, 4 Oct 22 23:46 /dev/snd/pcmC0D0c +crw-rw----+ 1 root audio 116, 3 Oct 22 23:45 /dev/snd/pcmC0D0p crw-rw----+ 1 root audio 116, 5 Oct 22 23:40 /dev/snd/pcmC0D3p crw-rw----+ 1 root audio 116, 1 Oct 22 23:40 /dev/snd/seq crw-rw----+ 1 root audio 116, 33 Oct 22 23:40 /dev/snd/timer @@ -578,7 +578,7 @@ Capabilities: pvolume pvolume-joined pswitch pswitch-joined Playback channels: Mono Limits: Playback 0 - 64
- Mono: Playback 38 [59%] [-26.00dB] [on]
- Mono: Playback 34 [53%] [-30.00dB] [on]
Simple mixer control 'Headphone',0 Capabilities: pvolume pswitch Playback channels: Front Left - Front Right @@ -598,8 +598,8 @@ Playback channels: Front Left - Front Right Limits: Playback 0 - 255 Mono:
- Front Left: Playback 255 [100%] [0.00dB]
- Front Right: Playback 255 [100%] [0.00dB]
- Front Left: Playback 253 [99%] [-0.40dB]
- Front Right: Playback 253 [99%] [-0.40dB]
Simple mixer control 'Mic',0 Capabilities: pvolume pswitch Playback channels: Front Left - Front Right @@ -629,8 +629,8 @@ Capabilities: cvolume cswitch Capture channels: Front Left - Front Right Limits: Capture 0 - 46
- Front Left: Capture 17 [37%] [0.00dB] [on]
- Front Right: Capture 17 [37%] [0.00dB] [on]
- Front Left: Capture 16 [35%] [-1.00dB] [on]
- Front Right: Capture 16 [35%] [-1.00dB] [on]
Simple mixer control 'Auto-Mute Mode',0 Capabilities: enum Items: 'Disabled' 'Enabled' @@ -745,8 +745,8 @@ control.8 { iface MIXER name 'Capture Volume'
value.0 17
value.1 17
value.0 16
comment { access 'read write' type INTEGERvalue.1 16
@@ -754,8 +754,8 @@ range '0 - 46' dbmin -1700 dbmax 2900
dbvalue.0 0
dbvalue.1 0
dbvalue.0 -100
} } control.9 {dbvalue.1 -100
@@ -804,7 +804,7 @@ control.12 { iface MIXER name 'Master Playback Volume'
value 38
comment { access 'read write' type INTEGERvalue 34
@@ -812,7 +812,7 @@ range '0 - 64' dbmin -6400 dbmax 0
dbvalue.0 -2600
} } control.13 {dbvalue.0 -3000
@@ -999,8 +999,8 @@ control.29 { iface MIXER name 'PCM Playback Volume'
value.0 255
value.1 255
value.0 253
comment { access 'read write user' type INTEGERvalue.1 253
@@ -1009,8 +1009,8 @@ tlv '0000000100000008ffffec1400000014' dbmin -5100 dbmax 0
dbvalue.0 0
dbvalue.1 0
dbvalue.0 -40
} }dbvalue.1 -40
} @@ -1021,6 +1021,8 @@ !!------------------
Module +alx +mdio cmac rfcomm bnep @@ -1131,11 +1133,9 @@ psmouse ahci sdhci_pci -alx rtsx_pci libahci sdhci -mdio floppy
Alsa-devel mailing list Alsa-devel@alsa-project.org http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
On Fri, 23 Oct 2015 09:30:38 +0200, Takashi Iwai wrote:
On Thu, 22 Oct 2015 23:23:05 +0200, George Gugulea wrote:
I did now with 4.3.0-rc6 and there is the same problem. I reattached the two outputs, before and after (as a patch) suspend-to-ram: diff -u alsa-info.txt.4.3-rc6.before alsa-info.txt.4.3-rc6.after > alsa-info.txt.4.3-rc6.patch
OK, so we need to hunt more.
Kailang, could you check whether anything missing for this codec? The symptom appears like the COEF thingy you fixed by extra init verbs.
One thing I forgot George can test easily. After reboot, enable proc coef dump via echo 1 > /sys/modules/snd_hda_codec/parameters/dump_coef
Then get alsa-info.sh before and after PM. Now likely you'll get more differences. The coef values can be updated even manually from user-space, e.g. via hda-verb.
Takashi
thanks,
Takashi
On Thu, Oct 22, 2015 at 6:15 PM, Takashi Iwai tiwai@suse.de wrote:
On Thu, 22 Oct 2015 10:38:37 +0200, George Gugulea wrote:
After a fresh reboot, the sound works ok but if I put the computer to sleep (pm-suspend), after it wakes up there is no sound anymore.
I did try 'alsa force-reload' after suspend but still no sound. After 'pm-hibernate' sound is back again.
I found an old thread here: https://bugzilla.kernel.org/show_bug.cgi?id=49421 where Michael seems to have the same problem which is still unsolved; maybe I can help with more info.
I attached the 'alsa-info.sh' output before and after suspend: 'alsa-info.txt.before' and 'alsa-info.txt.after' (as a patch to stay below 80k mail size rule: diff -u alsa-info.txt.before alsa-info.txt.after > alsa-info.txt.patch)
The only difference between before and after is this one: @@ -241,7 +241,7 @@ Node 0x11 [Audio Input] wcaps 0x10051b: Stereo Amp-In Amp-In caps: ofs=0x11, nsteps=0x2e, stepsize=0x03, mute=1 Amp-In vals: [0x12 0x12]
- Converter: stream=4, channel=0
- Converter: stream=0, channel=0 SDI-Select: 0 PCM: rates [0x160]: 44100 48000 96000
The PC is here: http://www.dell.com/us/p/xps-27-2720-aio/pd?ref=PD_OC, but the 2y older version with no touch
If I boot into windows (8.1) everything works great, including sound (even after suspend)
Did you test with 4.3-rc kernel? 3.19 is very old.
It's likely codec-specific stuff, as there is no difference seen in alsa-info.sh outputs (the converter is the value assigned dynamically at playback, so it doesn't matter at all).
Takashi
-- gg [2 alsa-info.txt.4.3-rc6.before <application/octet-stream (base64)>]
--- alsa-info.txt.4.3-rc6.before 2015-10-22 23:41:24.265081408 +0300 +++ alsa-info.txt.4.3-rc6.after 2015-10-22 23:46:30.584791012 +0300 @@ -3,7 +3,7 @@ !!ALSA Information Script v 0.4.64 !!################################
-!!Script ran on: Thu Oct 22 20:41:23 UTC 2015 +!!Script ran on: Thu Oct 22 20:46:30 UTC 2015
!!Linux Distribution @@ -142,26 +142,26 @@ ControlAmp: chs=3, dir=Out, idx=0, ofs=0 Device: name="ALC3260 Analog", type="Audio", device=0 Amp-Out caps: ofs=0x3f, nsteps=0x40, stepsize=0x03, mute=0
- Amp-Out vals: [0x25 0x25]
- Converter: stream=5, channel=0
- Amp-Out vals: [0x21 0x21]
- Converter: stream=0, channel=0 PCM: rates [0x560]: 44100 48000 96000 192000 bits [0xe]: 16 20 24 formats [0x1]: PCM Power states: D0 D1 D2 D3 EPSS
- Power: setting=D0, actual=D0
- Power: setting=D3, actual=D3
Node 0x03 [Audio Output] wcaps 0x41d: Stereo Amp-Out Control: name="Speaker Playback Volume", index=0, device=0 ControlAmp: chs=3, dir=Out, idx=0, ofs=0 Amp-Out caps: ofs=0x3f, nsteps=0x40, stepsize=0x03, mute=0
- Amp-Out vals: [0x25 0x25]
- Converter: stream=5, channel=0
- Amp-Out vals: [0x21 0x21]
- Converter: stream=0, channel=0 PCM: rates [0x560]: 44100 48000 96000 192000 bits [0xe]: 16 20 24 formats [0x1]: PCM Power states: D0 D1 D2 D3 EPSS
- Power: setting=D0, actual=D0
- Power: setting=D3, actual=D3
Node 0x04 [Vendor Defined Widget] wcaps 0xf00000: Mono Node 0x05 [Vendor Defined Widget] wcaps 0xf00000: Mono Node 0x06 [Audio Output] wcaps 0x611: Stereo Digital @@ -182,7 +182,7 @@ ControlAmp: chs=3, dir=In, idx=0, ofs=0 Device: name="ALC3260 Analog", type="Audio", device=0 Amp-In caps: ofs=0x11, nsteps=0x2e, stepsize=0x03, mute=1
- Amp-In vals: [0x11 0x11]
- Amp-In vals: [0x10 0x10] Converter: stream=0, channel=0 SDI-Select: 0 PCM:
@@ -240,7 +240,7 @@ Node 0x10 [Vendor Defined Widget] wcaps 0xf00000: Mono Node 0x11 [Audio Input] wcaps 0x10051b: Stereo Amp-In Amp-In caps: ofs=0x11, nsteps=0x2e, stepsize=0x03, mute=1
- Amp-In vals: [0x11 0x11]
- Amp-In vals: [0x10 0x10] Converter: stream=1, channel=0 SDI-Select: 0 PCM:
@@ -288,7 +288,7 @@ Misc = NO_PRESENCE Pin-ctls: 0x40: OUT Power states: D0 D1 D2 D3 EPSS
- Power: setting=D0, actual=D0
- Power: setting=D3, actual=D3 Connection: 2 0x0c 0x0d*
Node 0x15 [Pin Complex] wcaps 0x40058d: Stereo Amp-Out @@ -531,8 +531,8 @@ crw-rw----+ 1 root audio 116, 2 Oct 22 23:40 /dev/snd/controlC0 crw-rw----+ 1 root audio 116, 6 Oct 22 23:40 /dev/snd/hwC0D0 crw-rw----+ 1 root audio 116, 7 Oct 22 23:40 /dev/snd/hwC0D3 -crw-rw----+ 1 root audio 116, 4 Oct 22 23:40 /dev/snd/pcmC0D0c -crw-rw----+ 1 root audio 116, 3 Oct 22 23:40 /dev/snd/pcmC0D0p +crw-rw----+ 1 root audio 116, 4 Oct 22 23:46 /dev/snd/pcmC0D0c +crw-rw----+ 1 root audio 116, 3 Oct 22 23:45 /dev/snd/pcmC0D0p crw-rw----+ 1 root audio 116, 5 Oct 22 23:40 /dev/snd/pcmC0D3p crw-rw----+ 1 root audio 116, 1 Oct 22 23:40 /dev/snd/seq crw-rw----+ 1 root audio 116, 33 Oct 22 23:40 /dev/snd/timer @@ -578,7 +578,7 @@ Capabilities: pvolume pvolume-joined pswitch pswitch-joined Playback channels: Mono Limits: Playback 0 - 64
- Mono: Playback 38 [59%] [-26.00dB] [on]
- Mono: Playback 34 [53%] [-30.00dB] [on]
Simple mixer control 'Headphone',0 Capabilities: pvolume pswitch Playback channels: Front Left - Front Right @@ -598,8 +598,8 @@ Playback channels: Front Left - Front Right Limits: Playback 0 - 255 Mono:
- Front Left: Playback 255 [100%] [0.00dB]
- Front Right: Playback 255 [100%] [0.00dB]
- Front Left: Playback 253 [99%] [-0.40dB]
- Front Right: Playback 253 [99%] [-0.40dB]
Simple mixer control 'Mic',0 Capabilities: pvolume pswitch Playback channels: Front Left - Front Right @@ -629,8 +629,8 @@ Capabilities: cvolume cswitch Capture channels: Front Left - Front Right Limits: Capture 0 - 46
- Front Left: Capture 17 [37%] [0.00dB] [on]
- Front Right: Capture 17 [37%] [0.00dB] [on]
- Front Left: Capture 16 [35%] [-1.00dB] [on]
- Front Right: Capture 16 [35%] [-1.00dB] [on]
Simple mixer control 'Auto-Mute Mode',0 Capabilities: enum Items: 'Disabled' 'Enabled' @@ -745,8 +745,8 @@ control.8 { iface MIXER name 'Capture Volume'
value.0 17
value.1 17
value.0 16
comment { access 'read write' type INTEGERvalue.1 16
@@ -754,8 +754,8 @@ range '0 - 46' dbmin -1700 dbmax 2900
dbvalue.0 0
dbvalue.1 0
dbvalue.0 -100
} } control.9 {dbvalue.1 -100
@@ -804,7 +804,7 @@ control.12 { iface MIXER name 'Master Playback Volume'
value 38
comment { access 'read write' type INTEGERvalue 34
@@ -812,7 +812,7 @@ range '0 - 64' dbmin -6400 dbmax 0
dbvalue.0 -2600
} } control.13 {dbvalue.0 -3000
@@ -999,8 +999,8 @@ control.29 { iface MIXER name 'PCM Playback Volume'
value.0 255
value.1 255
value.0 253
comment { access 'read write user' type INTEGERvalue.1 253
@@ -1009,8 +1009,8 @@ tlv '0000000100000008ffffec1400000014' dbmin -5100 dbmax 0
dbvalue.0 0
dbvalue.1 0
dbvalue.0 -40
} }dbvalue.1 -40
} @@ -1021,6 +1021,8 @@ !!------------------
Module +alx +mdio cmac rfcomm bnep @@ -1131,11 +1133,9 @@ psmouse ahci sdhci_pci -alx rtsx_pci libahci sdhci -mdio floppy
Alsa-devel mailing list Alsa-devel@alsa-project.org http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
Was speaker no sound only? Or Headphone also no sound.
-----Original Message----- From: Takashi Iwai [mailto:tiwai@suse.de] Sent: Friday, October 23, 2015 3:31 PM To: George Gugulea Cc: Kailang; alsa-devel@alsa-project.org Subject: Re: [alsa-devel] No sound after suspend-to-ram
On Thu, 22 Oct 2015 23:23:05 +0200, George Gugulea wrote:
I did now with 4.3.0-rc6 and there is the same problem. I reattached the two outputs, before and after (as a patch)
suspend-to-ram:
diff -u alsa-info.txt.4.3-rc6.before alsa-info.txt.4.3-rc6.after > alsa-info.txt.4.3-rc6.patch
OK, so we need to hunt more.
Kailang, could you check whether anything missing for this codec? The symptom appears like the COEF thingy you fixed by extra init verbs.
thanks,
Takashi
On Thu, Oct 22, 2015 at 6:15 PM, Takashi Iwai tiwai@suse.de wrote:
On Thu, 22 Oct 2015 10:38:37 +0200, George Gugulea wrote:
After a fresh reboot, the sound works ok but if I put
the computer
to sleep (pm-suspend), after it wakes up there is no
sound anymore.
I did try 'alsa force-reload' after suspend but still no sound. After 'pm-hibernate' sound is back again.
I found an old thread here: https://bugzilla.kernel.org/show_bug.cgi?id=49421 where Michael seems to have the same problem which is still unsolved;
maybe I can
help with more info.
I attached the 'alsa-info.sh' output before and after suspend: 'alsa-info.txt.before' and 'alsa-info.txt.after' (as a patch to stay below 80k mail size rule: diff -u alsa-info.txt.before alsa-info.txt.after > alsa-info.txt.patch)
The only difference between before and after is this one: @@ -241,7 +241,7 @@ Node 0x11 [Audio Input] wcaps 0x10051b: Stereo Amp-In Amp-In caps: ofs=0x11, nsteps=0x2e, stepsize=0x03, mute=1 Amp-In vals: [0x12 0x12]
- Converter: stream=4, channel=0
- Converter: stream=0, channel=0 SDI-Select: 0 PCM: rates [0x160]: 44100 48000 96000
The PC is here: http://www.dell.com/us/p/xps-27-2720-aio/pd?ref=PD_OC, but the 2y older version with no touch
If I boot into windows (8.1) everything works great, including sound (even after suspend)
Did you test with 4.3-rc kernel? 3.19 is very old.
It's likely codec-specific stuff, as there is no
difference seen in
alsa-info.sh outputs (the converter is the value assigned dynamically at playback, so it doesn't matter at all).
Takashi
-- gg [2 alsa-info.txt.4.3-rc6.before <application/octet-stream (base64)>]
--- alsa-info.txt.4.3-rc6.before 2015-10-22
23:41:24.265081408 +0300
+++ alsa-info.txt.4.3-rc6.after 2015-10-22
23:46:30.584791012 +0300
@@ -3,7 +3,7 @@ !!ALSA Information Script v 0.4.64 !!################################
-!!Script ran on: Thu Oct 22 20:41:23 UTC 2015 +!!Script ran on: Thu Oct 22 20:46:30 UTC 2015
!!Linux Distribution @@ -142,26 +142,26 @@ ControlAmp: chs=3, dir=Out, idx=0, ofs=0 Device: name="ALC3260 Analog", type="Audio", device=0 Amp-Out caps: ofs=0x3f, nsteps=0x40, stepsize=0x03, mute=0
- Amp-Out vals: [0x25 0x25]
- Converter: stream=5, channel=0
- Amp-Out vals: [0x21 0x21]
- Converter: stream=0, channel=0 PCM: rates [0x560]: 44100 48000 96000 192000 bits [0xe]: 16 20 24 formats [0x1]: PCM Power states: D0 D1 D2 D3 EPSS
- Power: setting=D0, actual=D0
- Power: setting=D3, actual=D3
Node 0x03 [Audio Output] wcaps 0x41d: Stereo Amp-Out Control: name="Speaker Playback Volume", index=0, device=0 ControlAmp: chs=3, dir=Out, idx=0, ofs=0 Amp-Out caps: ofs=0x3f, nsteps=0x40, stepsize=0x03, mute=0
- Amp-Out vals: [0x25 0x25]
- Converter: stream=5, channel=0
- Amp-Out vals: [0x21 0x21]
- Converter: stream=0, channel=0 PCM: rates [0x560]: 44100 48000 96000 192000 bits [0xe]: 16 20 24 formats [0x1]: PCM Power states: D0 D1 D2 D3 EPSS
- Power: setting=D0, actual=D0
- Power: setting=D3, actual=D3
Node 0x04 [Vendor Defined Widget] wcaps 0xf00000: Mono Node 0x05 [Vendor Defined Widget] wcaps 0xf00000: Mono Node 0x06
[Audio Output]
wcaps 0x611: Stereo Digital @@ -182,7 +182,7 @@ ControlAmp: chs=3, dir=In, idx=0, ofs=0 Device: name="ALC3260 Analog", type="Audio", device=0 Amp-In caps: ofs=0x11, nsteps=0x2e, stepsize=0x03, mute=1
- Amp-In vals: [0x11 0x11]
- Amp-In vals: [0x10 0x10] Converter: stream=0, channel=0 SDI-Select: 0 PCM:
@@ -240,7 +240,7 @@ Node 0x10 [Vendor Defined Widget] wcaps 0xf00000: Mono Node 0x11 [Audio Input] wcaps 0x10051b: Stereo Amp-In Amp-In caps: ofs=0x11, nsteps=0x2e, stepsize=0x03, mute=1
- Amp-In vals: [0x11 0x11]
- Amp-In vals: [0x10 0x10] Converter: stream=1, channel=0 SDI-Select: 0 PCM:
@@ -288,7 +288,7 @@ Misc = NO_PRESENCE Pin-ctls: 0x40: OUT Power states: D0 D1 D2 D3 EPSS
- Power: setting=D0, actual=D0
- Power: setting=D3, actual=D3 Connection: 2 0x0c 0x0d*
Node 0x15 [Pin Complex] wcaps 0x40058d: Stereo Amp-Out @@ -531,8 +531,8 @@ crw-rw----+ 1 root audio 116, 2 Oct 22 23:40 /dev/snd/controlC0 crw-rw----+ 1 root audio 116, 6 Oct 22 23:40 /dev/snd/hwC0D0 crw-rw----+ 1 root audio 116, 7 Oct 22 23:40 /dev/snd/hwC0D3 -crw-rw----+ 1 root audio 116, 4 Oct 22 23:40 /dev/snd/pcmC0D0c -crw-rw----+ 1 root audio 116, 3 Oct 22 23:40 /dev/snd/pcmC0D0p +crw-rw----+ 1 root audio 116, 4 Oct 22 23:46 /dev/snd/pcmC0D0c +crw-rw----+ 1 root audio 116, 3 Oct 22 23:45 /dev/snd/pcmC0D0p crw-rw----+ 1 root audio 116, 5 Oct 22 23:40 /dev/snd/pcmC0D3p crw-rw----+ 1 root audio 116, 1 Oct 22 23:40 /dev/snd/seq crw-rw----+ 1 root audio 116, 33 Oct 22 23:40
/dev/snd/timer @@ -578,7
+578,7 @@ Capabilities: pvolume pvolume-joined pswitch pswitch-joined Playback channels: Mono Limits: Playback 0 - 64
- Mono: Playback 38 [59%] [-26.00dB] [on]
- Mono: Playback 34 [53%] [-30.00dB] [on]
Simple mixer control 'Headphone',0 Capabilities: pvolume pswitch Playback channels: Front Left - Front Right @@ -598,8 +598,8 @@ Playback channels: Front Left - Front Right Limits: Playback 0 - 255 Mono:
- Front Left: Playback 255 [100%] [0.00dB]
- Front Right: Playback 255 [100%] [0.00dB]
- Front Left: Playback 253 [99%] [-0.40dB] Front Right:
Playback 253
- [99%] [-0.40dB]
Simple mixer control 'Mic',0 Capabilities: pvolume pswitch Playback channels: Front Left - Front Right @@ -629,8 +629,8 @@ Capabilities: cvolume cswitch Capture channels: Front Left - Front Right Limits: Capture 0 - 46
- Front Left: Capture 17 [37%] [0.00dB] [on]
- Front Right: Capture 17 [37%] [0.00dB] [on]
- Front Left: Capture 16 [35%] [-1.00dB] [on] Front
Right: Capture
- 16 [35%] [-1.00dB] [on]
Simple mixer control 'Auto-Mute Mode',0 Capabilities: enum Items: 'Disabled' 'Enabled' @@ -745,8 +745,8 @@ control.8 { iface MIXER name 'Capture Volume'
value.0 17
value.1 17
value.0 16
comment { access 'read write' type INTEGERvalue.1 16
@@ -754,8 +754,8 @@ range '0 - 46' dbmin -1700 dbmax 2900
dbvalue.0 0
dbvalue.1 0
dbvalue.0 -100
} } control.9 {dbvalue.1 -100
@@ -804,7 +804,7 @@ control.12 { iface MIXER name 'Master Playback Volume'
value 38
comment { access 'read write' type INTEGERvalue 34
@@ -812,7 +812,7 @@ range '0 - 64' dbmin -6400 dbmax 0
dbvalue.0 -2600
} } control.13 {dbvalue.0 -3000
@@ -999,8 +999,8 @@ control.29 { iface MIXER name 'PCM Playback Volume'
value.0 255
value.1 255
value.0 253
comment { access 'read write user' type INTEGERvalue.1 253
@@ -1009,8 +1009,8 @@ tlv '0000000100000008ffffec1400000014' dbmin -5100 dbmax 0
dbvalue.0 0
dbvalue.1 0
dbvalue.0 -40
} }dbvalue.1 -40
} @@ -1021,6 +1021,8 @@ !!------------------
Module +alx +mdio cmac rfcomm bnep @@ -1131,11 +1133,9 @@ psmouse ahci sdhci_pci -alx rtsx_pci libahci sdhci -mdio floppy
Alsa-devel mailing list Alsa-devel@alsa-project.org http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
------Please consider the environment before printing this e-mail.
Sure thing,
Kailang, yes, there is a side headphones jack and it does work OK after PM suspend-to-ram
I did `echo 1 > /sys/modules/snd_hda_codec/parameters/dump_coef ` and I attached the output but you are probably interested in this:
Node 0x20 [Vendor Defined Widget] wcaps 0xf00040: Mono ..... 447c447 < Coeff 0x1f: 0x00c0 ---
Coeff 0x1f: 0x0000
464c464 < Coeff 0x30: 0x00b1 ---
Coeff 0x30: 0x0090
And after I reset the two processing caps, the sound is back again.
hda-verb /dev/snd/hwC0D0 0x20 SET_COEF_INDEX 0x1f hda-verb /dev/snd/hwC0D0 0x20 SET_PROC_COEF 0x00c0 hda-verb /dev/snd/hwC0D0 0x20 SET_COEF_INDEX 0x30 hda-verb /dev/snd/hwC0D0 0x20 SET_PROC_COEF 0x00b1
I'm not sure that this are the correct parameters of hda-verb (because I lack the knowledge of alsa development) but based on the result it seems to be correct
Takashi, thanks for the hint
On Fri, Oct 23, 2015 at 11:28 AM, Kailang kailang@realtek.com wrote:
Was speaker no sound only? Or Headphone also no sound.
-----Original Message----- From: Takashi Iwai [mailto:tiwai@suse.de] Sent: Friday, October 23, 2015 3:31 PM To: George Gugulea Cc: Kailang; alsa-devel@alsa-project.org Subject: Re: [alsa-devel] No sound after suspend-to-ram
On Thu, 22 Oct 2015 23:23:05 +0200, George Gugulea wrote:
I did now with 4.3.0-rc6 and there is the same problem. I reattached the two outputs, before and after (as a patch)
suspend-to-ram:
diff -u alsa-info.txt.4.3-rc6.before alsa-info.txt.4.3-rc6.after > alsa-info.txt.4.3-rc6.patch
OK, so we need to hunt more.
Kailang, could you check whether anything missing for this codec? The symptom appears like the COEF thingy you fixed by extra init verbs.
thanks,
Takashi
On Thu, Oct 22, 2015 at 6:15 PM, Takashi Iwai tiwai@suse.de wrote:
On Thu, 22 Oct 2015 10:38:37 +0200, George Gugulea wrote:
After a fresh reboot, the sound works ok but if I put
the computer
to sleep (pm-suspend), after it wakes up there is no
sound anymore.
I did try 'alsa force-reload' after suspend but still no sound. After 'pm-hibernate' sound is back again.
I found an old thread here: https://bugzilla.kernel.org/show_bug.cgi?id=49421 where Michael seems to have the same problem which is still unsolved;
maybe I can
help with more info.
I attached the 'alsa-info.sh' output before and after suspend: 'alsa-info.txt.before' and 'alsa-info.txt.after' (as a patch to stay below 80k mail size rule: diff -u alsa-info.txt.before alsa-info.txt.after > alsa-info.txt.patch)
The only difference between before and after is this one: @@ -241,7 +241,7 @@ Node 0x11 [Audio Input] wcaps 0x10051b: Stereo Amp-In Amp-In caps: ofs=0x11, nsteps=0x2e, stepsize=0x03, mute=1 Amp-In vals: [0x12 0x12]
- Converter: stream=4, channel=0
- Converter: stream=0, channel=0 SDI-Select: 0 PCM: rates [0x160]: 44100 48000 96000
The PC is here: http://www.dell.com/us/p/xps-27-2720-aio/pd?ref=PD_OC, but the 2y older version with no touch
If I boot into windows (8.1) everything works great, including sound (even after suspend)
Did you test with 4.3-rc kernel? 3.19 is very old.
It's likely codec-specific stuff, as there is no
difference seen in
alsa-info.sh outputs (the converter is the value assigned dynamically at playback, so it doesn't matter at all).
Takashi
-- gg [2 alsa-info.txt.4.3-rc6.before <application/octet-stream (base64)>]
--- alsa-info.txt.4.3-rc6.before 2015-10-22
23:41:24.265081408 +0300
+++ alsa-info.txt.4.3-rc6.after 2015-10-22
23:46:30.584791012 +0300
@@ -3,7 +3,7 @@ !!ALSA Information Script v 0.4.64 !!################################
-!!Script ran on: Thu Oct 22 20:41:23 UTC 2015 +!!Script ran on: Thu Oct 22 20:46:30 UTC 2015
!!Linux Distribution @@ -142,26 +142,26 @@ ControlAmp: chs=3, dir=Out, idx=0, ofs=0 Device: name="ALC3260 Analog", type="Audio", device=0 Amp-Out caps: ofs=0x3f, nsteps=0x40, stepsize=0x03, mute=0
- Amp-Out vals: [0x25 0x25]
- Converter: stream=5, channel=0
- Amp-Out vals: [0x21 0x21]
- Converter: stream=0, channel=0 PCM: rates [0x560]: 44100 48000 96000 192000 bits [0xe]: 16 20 24 formats [0x1]: PCM Power states: D0 D1 D2 D3 EPSS
- Power: setting=D0, actual=D0
- Power: setting=D3, actual=D3
Node 0x03 [Audio Output] wcaps 0x41d: Stereo Amp-Out Control: name="Speaker Playback Volume", index=0, device=0 ControlAmp: chs=3, dir=Out, idx=0, ofs=0 Amp-Out caps: ofs=0x3f, nsteps=0x40, stepsize=0x03, mute=0
- Amp-Out vals: [0x25 0x25]
- Converter: stream=5, channel=0
- Amp-Out vals: [0x21 0x21]
- Converter: stream=0, channel=0 PCM: rates [0x560]: 44100 48000 96000 192000 bits [0xe]: 16 20 24 formats [0x1]: PCM Power states: D0 D1 D2 D3 EPSS
- Power: setting=D0, actual=D0
- Power: setting=D3, actual=D3
Node 0x04 [Vendor Defined Widget] wcaps 0xf00000: Mono Node 0x05 [Vendor Defined Widget] wcaps 0xf00000: Mono Node 0x06
[Audio Output]
wcaps 0x611: Stereo Digital @@ -182,7 +182,7 @@ ControlAmp: chs=3, dir=In, idx=0, ofs=0 Device: name="ALC3260 Analog", type="Audio", device=0 Amp-In caps: ofs=0x11, nsteps=0x2e, stepsize=0x03, mute=1
- Amp-In vals: [0x11 0x11]
- Amp-In vals: [0x10 0x10] Converter: stream=0, channel=0 SDI-Select: 0 PCM:
@@ -240,7 +240,7 @@ Node 0x10 [Vendor Defined Widget] wcaps 0xf00000: Mono Node 0x11 [Audio Input] wcaps 0x10051b: Stereo Amp-In Amp-In caps: ofs=0x11, nsteps=0x2e, stepsize=0x03, mute=1
- Amp-In vals: [0x11 0x11]
- Amp-In vals: [0x10 0x10] Converter: stream=1, channel=0 SDI-Select: 0 PCM:
@@ -288,7 +288,7 @@ Misc = NO_PRESENCE Pin-ctls: 0x40: OUT Power states: D0 D1 D2 D3 EPSS
- Power: setting=D0, actual=D0
- Power: setting=D3, actual=D3 Connection: 2 0x0c 0x0d*
Node 0x15 [Pin Complex] wcaps 0x40058d: Stereo Amp-Out @@ -531,8 +531,8 @@ crw-rw----+ 1 root audio 116, 2 Oct 22 23:40 /dev/snd/controlC0 crw-rw----+ 1 root audio 116, 6 Oct 22 23:40 /dev/snd/hwC0D0 crw-rw----+ 1 root audio 116, 7 Oct 22 23:40 /dev/snd/hwC0D3 -crw-rw----+ 1 root audio 116, 4 Oct 22 23:40 /dev/snd/pcmC0D0c -crw-rw----+ 1 root audio 116, 3 Oct 22 23:40 /dev/snd/pcmC0D0p +crw-rw----+ 1 root audio 116, 4 Oct 22 23:46 /dev/snd/pcmC0D0c +crw-rw----+ 1 root audio 116, 3 Oct 22 23:45 /dev/snd/pcmC0D0p crw-rw----+ 1 root audio 116, 5 Oct 22 23:40 /dev/snd/pcmC0D3p crw-rw----+ 1 root audio 116, 1 Oct 22 23:40 /dev/snd/seq crw-rw----+ 1 root audio 116, 33 Oct 22 23:40
/dev/snd/timer @@ -578,7
+578,7 @@ Capabilities: pvolume pvolume-joined pswitch pswitch-joined Playback channels: Mono Limits: Playback 0 - 64
- Mono: Playback 38 [59%] [-26.00dB] [on]
- Mono: Playback 34 [53%] [-30.00dB] [on]
Simple mixer control 'Headphone',0 Capabilities: pvolume pswitch Playback channels: Front Left - Front Right @@ -598,8 +598,8 @@ Playback channels: Front Left - Front Right Limits: Playback 0 - 255 Mono:
- Front Left: Playback 255 [100%] [0.00dB]
- Front Right: Playback 255 [100%] [0.00dB]
- Front Left: Playback 253 [99%] [-0.40dB] Front Right:
Playback 253
- [99%] [-0.40dB]
Simple mixer control 'Mic',0 Capabilities: pvolume pswitch Playback channels: Front Left - Front Right @@ -629,8 +629,8 @@ Capabilities: cvolume cswitch Capture channels: Front Left - Front Right Limits: Capture 0 - 46
- Front Left: Capture 17 [37%] [0.00dB] [on]
- Front Right: Capture 17 [37%] [0.00dB] [on]
- Front Left: Capture 16 [35%] [-1.00dB] [on] Front
Right: Capture
- 16 [35%] [-1.00dB] [on]
Simple mixer control 'Auto-Mute Mode',0 Capabilities: enum Items: 'Disabled' 'Enabled' @@ -745,8 +745,8 @@ control.8 { iface MIXER name 'Capture Volume'
value.0 17
value.1 17
value.0 16
value.1 16 comment { access 'read write' type INTEGER
@@ -754,8 +754,8 @@ range '0 - 46' dbmin -1700 dbmax 2900
dbvalue.0 0
dbvalue.1 0
dbvalue.0 -100
} control.9 {dbvalue.1 -100 }
@@ -804,7 +804,7 @@ control.12 { iface MIXER name 'Master Playback Volume'
value 38
value 34 comment { access 'read write' type INTEGER
@@ -812,7 +812,7 @@ range '0 - 64' dbmin -6400 dbmax 0
dbvalue.0 -2600
} control.13 {dbvalue.0 -3000 }
@@ -999,8 +999,8 @@ control.29 { iface MIXER name 'PCM Playback Volume'
value.0 255
value.1 255
value.0 253
value.1 253 comment { access 'read write user' type INTEGER
@@ -1009,8 +1009,8 @@ tlv '0000000100000008ffffec1400000014' dbmin -5100 dbmax 0
dbvalue.0 0
dbvalue.1 0
dbvalue.0 -40
}dbvalue.1 -40 }
} @@ -1021,6 +1021,8 @@ !!------------------
Module +alx +mdio cmac rfcomm bnep @@ -1131,11 +1133,9 @@ psmouse ahci sdhci_pci -alx rtsx_pci libahci sdhci -mdio floppy
Alsa-devel mailing list Alsa-devel@alsa-project.org http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
------Please consider the environment before printing this e-mail.
On Sat, 24 Oct 2015 00:01:00 +0200, George Gugulea wrote:
Sure thing,
Kailang, yes, there is a side headphones jack and it does work OK after PM suspend-to-ram
I did `echo 1 > /sys/modules/snd_hda_codec/parameters/dump_coef ` and I attached the output but you are probably interested in this:
Node 0x20 [Vendor Defined Widget] wcaps 0xf00040: Mono ..... 447c447
< Coeff 0x1f: 0x00c0
Coeff 0x1f: 0x0000
464c464
< Coeff 0x30: 0x00b1
Coeff 0x30: 0x0090
And after I reset the two processing caps, the sound is back again.
hda-verb /dev/snd/hwC0D0 0x20 SET_COEF_INDEX 0x1f hda-verb /dev/snd/hwC0D0 0x20 SET_PROC_COEF 0x00c0 hda-verb /dev/snd/hwC0D0 0x20 SET_COEF_INDEX 0x30 hda-verb /dev/snd/hwC0D0 0x20 SET_PROC_COEF 0x00b1
I'm not sure that this are the correct parameters of hda-verb (because I lack the knowledge of alsa development) but based on the result it seems to be correct
Yes, the command sequences are correct (sorry I didn't write it in details). Mostly only some of these bits are mandatory, but only Realtek knows this secret...
Takashi
Hi George,
I think your machine had the I2C codec for speaker. I will check it with our AE. BIOS fill the verb table for initial I2C part to enable speaker function. But Linux didn't know this feature. So, when you enter to suspend state, the codec hiden register will return to default value. When you resume, speaker will no sound. Because driver need to fill the initial verb for I2C codec. But Linux didn't do it. This says Dell had not support this machine for Linux OS. If this support Linux OS, Ubuntu will request this from me.
This case just need to fill two registers for turn on speaker. I could make a patch for this.
BR, Kailang
-----Original Message----- From: Takashi Iwai [mailto:tiwai@suse.de] Sent: Saturday, October 24, 2015 3:38 PM To: George Gugulea Cc: Kailang; alsa-devel@alsa-project.org Subject: Re: [alsa-devel] No sound after suspend-to-ram
On Sat, 24 Oct 2015 00:01:00 +0200, George Gugulea wrote:
Sure thing,
Kailang, yes, there is a side headphones jack and it does work OK after PM suspend-to-ram
I did `echo 1 >
/sys/modules/snd_hda_codec/parameters/dump_coef ` and
I attached the output but you are probably interested in this:
Node 0x20 [Vendor Defined Widget] wcaps 0xf00040: Mono ..... 447c447
< Coeff 0x1f: 0x00c0
Coeff 0x1f: 0x0000
464c464
< Coeff 0x30: 0x00b1
Coeff 0x30: 0x0090
And after I reset the two processing caps, the sound is back again.
hda-verb /dev/snd/hwC0D0 0x20 SET_COEF_INDEX 0x1f hda-verb /dev/snd/hwC0D0 0x20 SET_PROC_COEF 0x00c0 hda-verb /dev/snd/hwC0D0 0x20 SET_COEF_INDEX 0x30 hda-verb /dev/snd/hwC0D0 0x20
SET_PROC_COEF
0x00b1
I'm not sure that this are the correct parameters of
hda-verb (because
I lack the knowledge of alsa development) but based on the
result it
seems to be correct
Yes, the command sequences are correct (sorry I didn't write it in details). Mostly only some of these bits are mandatory, but only Realtek knows this secret...
Takashi
------Please consider the environment before printing this e-mail.
Hi Takashi,
[ALC275_FIXUP_DELL_XPS] = { .type = HDA_FIXUP_VERBS, .v.verbs = (const struct hda_verb[]) { /* Enables internal speaker */ {0x20, AC_VERB_SET_COEF_INDEX, 0x1f}, {0x20, AC_VERB_SET_PROC_COEF, 0x00c0}, {0x20, AC_VERB_SET_COEF_INDEX, 0x30}, {0x20, AC_VERB_SET_PROC_COEF, 0x00b1}, {} } },
Could I put code as upper? Was it enter to initial state? I think it should be execute atfter resume back. Right?
BR, Kailang
-----Original Message----- From: Takashi Iwai [mailto:tiwai@suse.de] Sent: Saturday, October 24, 2015 3:38 PM To: George Gugulea Cc: Kailang; alsa-devel@alsa-project.org Subject: Re: [alsa-devel] No sound after suspend-to-ram
On Sat, 24 Oct 2015 00:01:00 +0200, George Gugulea wrote:
Sure thing,
Kailang, yes, there is a side headphones jack and it does work OK after PM suspend-to-ram
I did `echo 1 >
/sys/modules/snd_hda_codec/parameters/dump_coef ` and
I attached the output but you are probably interested in this:
Node 0x20 [Vendor Defined Widget] wcaps 0xf00040: Mono ..... 447c447
< Coeff 0x1f: 0x00c0
Coeff 0x1f: 0x0000
464c464
< Coeff 0x30: 0x00b1
Coeff 0x30: 0x0090
And after I reset the two processing caps, the sound is back again.
hda-verb /dev/snd/hwC0D0 0x20 SET_COEF_INDEX 0x1f hda-verb /dev/snd/hwC0D0 0x20 SET_PROC_COEF 0x00c0 hda-verb /dev/snd/hwC0D0 0x20 SET_COEF_INDEX 0x30 hda-verb /dev/snd/hwC0D0 0x20
SET_PROC_COEF
0x00b1
I'm not sure that this are the correct parameters of
hda-verb (because
I lack the knowledge of alsa development) but based on the
result it
seems to be correct
Yes, the command sequences are correct (sorry I didn't write it in details). Mostly only some of these bits are mandatory, but only Realtek knows this secret...
Takashi
------Please consider the environment before printing this e-mail.
On Mon, 26 Oct 2015 08:00:20 +0100, Kailang wrote:
Hi Takashi,
[ALC275_FIXUP_DELL_XPS] = { .type = HDA_FIXUP_VERBS, .v.verbs = (const struct hda_verb[]) { /* Enables internal speaker */ {0x20, AC_VERB_SET_COEF_INDEX, 0x1f}, {0x20, AC_VERB_SET_PROC_COEF, 0x00c0}, {0x20, AC_VERB_SET_COEF_INDEX, 0x30}, {0x20, AC_VERB_SET_PROC_COEF, 0x00b1}, {} } },
Could I put code as upper? Was it enter to initial state? I think it should be execute atfter resume back. Right?
Yes, these are performed at resume. But the COEF stuff needs a bit care since it's written in multiple places. If you can cook up the patch, I can check it hda-emu, too.
thanks,
Takashi
Attach is the patch.
-----Original Message----- From: Takashi Iwai [mailto:tiwai@suse.de] Sent: Monday, October 26, 2015 3:13 PM To: Kailang Cc: George Gugulea; alsa-devel@alsa-project.org Subject: Re: [alsa-devel] No sound after suspend-to-ram
On Mon, 26 Oct 2015 08:00:20 +0100, Kailang wrote:
Hi Takashi,
[ALC275_FIXUP_DELL_XPS] = { .type = HDA_FIXUP_VERBS, .v.verbs = (const struct hda_verb[]) { /* Enables internal speaker */ {0x20, AC_VERB_SET_COEF_INDEX, 0x1f}, {0x20, AC_VERB_SET_PROC_COEF, 0x00c0}, {0x20, AC_VERB_SET_COEF_INDEX, 0x30}, {0x20, AC_VERB_SET_PROC_COEF, 0x00b1}, {} } },
Could I put code as upper? Was it enter to initial state? I think it should be execute atfter resume back. Right?
Yes, these are performed at resume. But the COEF stuff needs a bit care since it's written in multiple places. If you can cook up the patch, I can check it hda-emu, too.
thanks,
Takashi
------Please consider the environment before printing this e-mail.
I will test the patch on my system as well.
On Mon, Oct 26, 2015 at 9:45 AM, Kailang kailang@realtek.com wrote:
Attach is the patch.
-----Original Message----- From: Takashi Iwai [mailto:tiwai@suse.de] Sent: Monday, October 26, 2015 3:13 PM To: Kailang Cc: George Gugulea; alsa-devel@alsa-project.org Subject: Re: [alsa-devel] No sound after suspend-to-ram
On Mon, 26 Oct 2015 08:00:20 +0100, Kailang wrote:
Hi Takashi,
[ALC275_FIXUP_DELL_XPS] = { .type = HDA_FIXUP_VERBS, .v.verbs = (const struct hda_verb[]) { /* Enables internal speaker */ {0x20, AC_VERB_SET_COEF_INDEX, 0x1f}, {0x20, AC_VERB_SET_PROC_COEF, 0x00c0}, {0x20, AC_VERB_SET_COEF_INDEX, 0x30}, {0x20, AC_VERB_SET_PROC_COEF, 0x00b1}, {} } },
Could I put code as upper? Was it enter to initial state? I think it should be execute atfter resume back. Right?
Yes, these are performed at resume. But the COEF stuff needs a bit care since it's written in multiple places. If you can cook up the patch, I can check it hda-emu, too.
thanks,
Takashi
------Please consider the environment before printing this e-mail.
On Mon, 26 Oct 2015 08:45:02 +0100, Kailang wrote:
Attach is the patch.
Looks good to me. I'm going to queue it once when George confirms that it works indeed.
thanks,
Takashi
-----Original Message----- From: Takashi Iwai [mailto:tiwai@suse.de] Sent: Monday, October 26, 2015 3:13 PM To: Kailang Cc: George Gugulea; alsa-devel@alsa-project.org Subject: Re: [alsa-devel] No sound after suspend-to-ram
On Mon, 26 Oct 2015 08:00:20 +0100, Kailang wrote:
Hi Takashi,
[ALC275_FIXUP_DELL_XPS] = { .type = HDA_FIXUP_VERBS, .v.verbs = (const struct hda_verb[]) { /* Enables internal speaker */ {0x20, AC_VERB_SET_COEF_INDEX, 0x1f}, {0x20, AC_VERB_SET_PROC_COEF, 0x00c0}, {0x20, AC_VERB_SET_COEF_INDEX, 0x30}, {0x20, AC_VERB_SET_PROC_COEF, 0x00b1}, {} } },
Could I put code as upper? Was it enter to initial state? I think it should be execute atfter resume back. Right?
Yes, these are performed at resume. But the COEF stuff needs a bit care since it's written in multiple places. If you can cook up the patch, I can check it hda-emu, too.
thanks,
Takashi
------Please consider the environment before printing this e-mail.
[2 0000-dell-xps-speaker-no-sound.patch <application/octet-stream (base64)>]
Thanks Kailang, I applied the patch and it works. I attached again the diffs, before and after PM (with `echo 1 > /sys/modules/snd_hda_codec/parameters/dump_coef`) so you can see the coefs have the same values.
On Mon, Oct 26, 2015 at 1:39 PM, Takashi Iwai tiwai@suse.de wrote:
On Mon, 26 Oct 2015 08:45:02 +0100, Kailang wrote:
Attach is the patch.
Looks good to me. I'm going to queue it once when George confirms that it works indeed.
thanks,
Takashi
-----Original Message----- From: Takashi Iwai [mailto:tiwai@suse.de] Sent: Monday, October 26, 2015 3:13 PM To: Kailang Cc: George Gugulea; alsa-devel@alsa-project.org Subject: Re: [alsa-devel] No sound after suspend-to-ram
On Mon, 26 Oct 2015 08:00:20 +0100, Kailang wrote:
Hi Takashi,
[ALC275_FIXUP_DELL_XPS] = { .type = HDA_FIXUP_VERBS, .v.verbs = (const struct hda_verb[]) { /* Enables internal speaker */ {0x20, AC_VERB_SET_COEF_INDEX, 0x1f}, {0x20, AC_VERB_SET_PROC_COEF, 0x00c0}, {0x20, AC_VERB_SET_COEF_INDEX, 0x30}, {0x20, AC_VERB_SET_PROC_COEF, 0x00b1}, {} } },
Could I put code as upper? Was it enter to initial state? I think it should be execute atfter resume back. Right?
Yes, these are performed at resume. But the COEF stuff needs a bit care since it's written in multiple places. If you can cook up the patch, I can check it hda-emu, too.
thanks,
Takashi
------Please consider the environment before printing this e-mail.
[2 0000-dell-xps-speaker-no-sound.patch <application/octet-stream (base64)>]
On Mon, 26 Oct 2015 22:51:18 +0100, George Gugulea wrote:
Thanks Kailang, I applied the patch and it works. I attached again the diffs, before and after PM (with `echo 1 > /sys/modules/snd_hda_codec/parameters/dump_coef`) so you can see the coefs have the same values.
OK, I queued the patch now. Not sure whether this will be in 4.3 final, but certainly included in 4.4-rc1.
thanks,
Takashi
On Mon, Oct 26, 2015 at 1:39 PM, Takashi Iwai tiwai@suse.de wrote:
On Mon, 26 Oct 2015 08:45:02 +0100, Kailang wrote:
Attach is the patch.
Looks good to me. I'm going to queue it once when George confirms that it works indeed.
thanks,
Takashi
-----Original Message----- From: Takashi Iwai [mailto:tiwai@suse.de] Sent: Monday, October 26, 2015 3:13 PM To: Kailang Cc: George Gugulea; alsa-devel@alsa-project.org Subject: Re: [alsa-devel] No sound after suspend-to-ram
On Mon, 26 Oct 2015 08:00:20 +0100, Kailang wrote:
Hi Takashi,
[ALC275_FIXUP_DELL_XPS] = { .type = HDA_FIXUP_VERBS, .v.verbs = (const struct hda_verb[]) { /* Enables internal speaker */ {0x20, AC_VERB_SET_COEF_INDEX, 0x1f}, {0x20, AC_VERB_SET_PROC_COEF, 0x00c0}, {0x20, AC_VERB_SET_COEF_INDEX, 0x30}, {0x20, AC_VERB_SET_PROC_COEF, 0x00b1}, {} } },
Could I put code as upper? Was it enter to initial state? I think it should be execute atfter resume back. Right?
Yes, these are performed at resume. But the COEF stuff needs a bit care since it's written in multiple places. If you can cook up the patch, I can check it hda-emu, too.
thanks,
Takashi
------Please consider the environment before printing this e-mail.
[2 0000-dell-xps-speaker-no-sound.patch <application/octet-stream (base64)>]
-- gg [2 alsa-info.txt.4.3-rc6.fix.before <application/octet-stream (base64)>]
--- alsa-info.txt.4.3-rc6.fix.before 2015-10-26 23:23:04.626388315 +0200 +++ alsa-info.txt.4.3-rc6.fix.after 2015-10-26 23:27:32.191807203 +0200 @@ -3,7 +3,7 @@ !!ALSA Information Script v 0.4.64 !!################################
-!!Script ran on: Mon Oct 26 21:23:02 UTC 2015 +!!Script ran on: Mon Oct 26 21:27:31 UTC 2015
!!Linux Distribution @@ -142,7 +142,7 @@ ControlAmp: chs=3, dir=Out, idx=0, ofs=0 Device: name="ALC3260 Analog", type="Audio", device=0 Amp-Out caps: ofs=0x3f, nsteps=0x40, stepsize=0x03, mute=0
- Amp-Out vals: [0x1f 0x1f]
- Amp-Out vals: [0x24 0x24] Converter: stream=5, channel=0 PCM: rates [0x560]: 44100 48000 96000 192000
@@ -154,7 +154,7 @@ Control: name="Speaker Playback Volume", index=0, device=0 ControlAmp: chs=3, dir=Out, idx=0, ofs=0 Amp-Out caps: ofs=0x3f, nsteps=0x40, stepsize=0x03, mute=0
- Amp-Out vals: [0x1f 0x1f]
- Amp-Out vals: [0x24 0x24] Converter: stream=5, channel=0 PCM: rates [0x560]: 44100 48000 96000 192000
@@ -241,14 +241,14 @@ Node 0x11 [Audio Input] wcaps 0x10051b: Stereo Amp-In Amp-In caps: ofs=0x11, nsteps=0x2e, stepsize=0x03, mute=1 Amp-In vals: [0x10 0x10]
- Converter: stream=1, channel=0
- Converter: stream=0, channel=0 SDI-Select: 0 PCM: rates [0x160]: 44100 48000 96000 bits [0xe]: 16 20 24 formats [0x1]: PCM Power states: D0 D1 D2 D3 EPSS
- Power: setting=D0, actual=D0
- Power: setting=D3, actual=D3 Connection: 1 0x22
Node 0x12 [Pin Complex] wcaps 0x40040b: Stereo Amp-In @@ -263,7 +263,7 @@ Misc = NO_PRESENCE Pin-ctls: 0x20: IN Power states: D0 D1 D2 D3 EPSS
- Power: setting=D0, actual=D0
- Power: setting=D3, actual=D3
Node 0x13 [Pin Complex] wcaps 0x40040b: Stereo Amp-In Amp-In caps: ofs=0x00, nsteps=0x03, stepsize=0x27, mute=0 Amp-In vals: [0x00 0x00] @@ -532,7 +532,7 @@ crw-rw----+ 1 root audio 116, 6 Oct 26 23:22 /dev/snd/hwC0D0 crw-rw----+ 1 root audio 116, 7 Oct 26 23:22 /dev/snd/hwC0D3 crw-rw----+ 1 root audio 116, 4 Oct 26 23:22 /dev/snd/pcmC0D0c -crw-rw----+ 1 root audio 116, 3 Oct 26 23:22 /dev/snd/pcmC0D0p +crw-rw----+ 1 root audio 116, 3 Oct 26 23:27 /dev/snd/pcmC0D0p crw-rw----+ 1 root audio 116, 5 Oct 26 23:22 /dev/snd/pcmC0D3p crw-rw----+ 1 root audio 116, 1 Oct 26 23:22 /dev/snd/seq crw-rw----+ 1 root audio 116, 33 Oct 26 23:22 /dev/snd/timer @@ -551,7 +551,7 @@
**** List of PLAYBACK Hardware Devices **** card 0: PCH [HDA Intel PCH], device 0: ALC3260 Analog [ALC3260 Analog]
- Subdevices: 1/1
- Subdevices: 0/1 Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 3: HDMI 0 [HDMI 0] Subdevices: 1/1 @@ -578,7 +578,7 @@ Capabilities: pvolume pvolume-joined pswitch pswitch-joined Playback channels: Mono Limits: Playback 0 - 64
- Mono: Playback 32 [50%] [-32.00dB] [on]
- Mono: Playback 37 [58%] [-27.00dB] [on]
Simple mixer control 'Headphone',0 Capabilities: pvolume pswitch Playback channels: Front Left - Front Right @@ -804,7 +804,7 @@ control.12 { iface MIXER name 'Master Playback Volume'
value 32
comment { access 'read write' type INTEGERvalue 37
@@ -812,7 +812,7 @@ range '0 - 64' dbmin -6400 dbmax 0
dbvalue.0 -3200
} } control.13 {dbvalue.0 -2700
@@ -895,8 +895,8 @@ control.20 { iface PCM name 'Playback Channel Map'
value.0 0
value.1 0
value.0 3
comment { access read type INTEGERvalue.1 4
@@ -1021,6 +1021,8 @@ !!------------------
Module +alx +mdio vmnet vmw_vsock_vmci_transport vsock @@ -1136,11 +1138,9 @@ rtsx_pci_sdmmc psmouse ahci -alx sdhci_pci libahci rtsx_pci -mdio sdhci floppy
participants (3)
-
George Gugulea
-
Kailang
-
Takashi Iwai