I have this exact problem with HP nw8240. After suspend-to-RAM, the internal speakers do not work, but headphones are ok. A suspend-to-disc (power off) cycle fixes the problem.
I tried comparing all the AC97 registers and other info in /proc/asound but they are identical in the working and not-working cases.
I have not done any ALSA development so I am not sure if there is an easy way of playing with the AC97 registers with a userspace program. Otherwise I am not sure how to easily debug this problem. Obviously something subtle has to be initialised after resume.
I have this exact problem with HP nw8240. After suspend-to-RAM, the internal speakers do not work, but headphones are ok. A suspend-to-disc (power off) cycle fixes the problem.
I tried comparing all the AC97 registers and other info in /proc/asound but they are identical in the working and not-working cases.
I have not done any ALSA development so I am not sure if there is an easy way of playing with the AC97 registers with a userspace program. Otherwise I am not sure how to easily debug this problem. Obviously something subtle has to be initialised after resume.
Is anyone else working on this?