Bug 87771 - No sound in Linux after rebooting from Windows. Gigabyte GA-Z97-D3H motherboard.
Summary: No sound in Linux after rebooting from Windows. Gigabyte GA-Z97-D3H motherboard.
Status: RESOLVED CODE_FIX
Alias: None
Product: Drivers
Classification: Unclassified
Component: Sound(ALSA) (show other bugs)
Hardware: x86-64 Linux
: P1 normal
Assignee: Jaroslav Kysela
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-11-05 13:20 UTC by Ivan Gumenyuk
Modified: 2016-10-23 13:28 UTC (History)
6 users (show)

See Also:
Kernel Version: 3.16, 3.17
Subsystem:
Regression: No
Bisected commit-id:


Attachments
alsa-info.sh output in working status (44.11 KB, application/octet-stream)
2014-11-06 06:41 UTC, Ivan Gumenyuk
Details
alsa-info.sh output in broken status (44.28 KB, application/octet-stream)
2014-11-06 06:41 UTC, Ivan Gumenyuk
Details
alsa-info.sh output in working status with coef=1 (43.26 KB, text/plain)
2014-11-11 16:41 UTC, Ivan Gumenyuk
Details
alsa-info.sh output in broken status with coef=1 (43.86 KB, text/plain)
2014-11-11 16:41 UTC, Ivan Gumenyuk
Details
alsa-info.sh output in working status with coef=1 (second try) (44.34 KB, text/plain)
2014-11-11 17:57 UTC, Ivan Gumenyuk
Details

Description Ivan Gumenyuk 2014-11-05 13:20:28 UTC
Bug description: No sound in Linux after rebooting from Windows 7 Pro. Sound in Windows works normally.
Affected OS: confirmed on Ubuntu 14.04, 14.10, kernels up to 3.17
Affected hardware: Gigabyte GA-Z97-D3H motherboard. Possibly all the motherboards with Realtek ALC1150 sound.
Desired result: normal sound in Linux after rebooting from Windows
Conditions of bug:
At least Windows 7 must be installed. After rebooting/shutdown from Windows sound in any Linux distribution would fail. This also affects Live-CD images. After physical detachment from power source the sound works in Linux till the first startup of Windows.
Possible reasons: Windows do the wrong initialization of hardware, which is stored by controller after reboot. DMI-function also affects the bug: after enabling/disabling it in BIOS menu the sound appears till firs Windows startup.
Additional data:
lspci -vvv:
00:1b.0 Audio device: Intel Corporation 9 Series Chipset Family HD Audio Controller
        Subsystem: Gigabyte Technology Co., Ltd Device a182
        Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+
        Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
        Latency: 0, Cache Line Size: 64 bytes
        Interrupt: pin A routed to IRQ 49
        Region 0: Memory at f7f30000 (64-bit, non-prefetchable) [size=16K]
        Capabilities: <access denied>
        Kernel driver in use: snd_hda_intel
HEX-dump of PCI-E registry from Linux and Windows, using the lspci utility.
Windows:
C:\Users\Meklon\Downloads\pciutils-3.2.1>lspci.exe -xxxx -d 8086:8ca0
00:1b.0 Audio device: Intel Corporation Device 8ca0
00: 86 80 a0 8c 06 00 10 00 00 00 03 04 10 00 00 00
10: 04 00 f3 f7 00 00 00 00 00 00 00 00 00 00 00 00
20: 00 00 00 00 00 00 00 00 00 00 00 00 58 14 82 a1
30: 00 00 00 00 50 00 00 00 00 00 00 00 16 01 00 00
40: 03 00 00 17 00 00 00 00 00 00 00 00 00 80 00 00
50: 01 60 42 c8 00 00 00 00 00 00 00 00 00 00 00 00
60: 05 70 80 00 00 00 00 00 00 00 00 00 00 00 00 00
70: 10 00 91 00 00 00 00 10 00 00 10 00 00 00 00 00
80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
90: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
c0: 00 04 02 01 00 60 00 00 00 0c 85 82 10 00 33 02
d0: 00 0c 85 02 10 00 33 02 00 00 00 00 00 00 00 00
e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
f0: 00 00 00 00 00 00 00 00 b1 0f 00 08 00 00 00 00
Linux (identical in working and broken status):
sudo lspci -xxxx -d 8086:8ca0
00:1b.0 Audio device: Intel Corporation 9 Series Chipset Family HD Audio Controller
00: 86 80 a0 8c 06 04 10 00 00 00 03 04 10 00 00 00
10: 04 00 f3 f7 00 00 00 00 00 00 00 00 00 00 00 00
20: 00 00 00 00 00 00 00 00 00 00 00 00 58 14 82 a1
30: 00 00 00 00 50 00 00 00 00 00 00 00 0a 01 00 00
40: 03 00 00 17 00 00 00 00 00 00 00 00 00 80 00 00
50: 01 60 42 c8 00 00 00 00 00 00 00 00 00 00 00 00
60: 05 70 81 00 f8 03 e0 fe 00 00 00 00 00 00 00 00
70: 10 00 91 00 00 00 00 10 00 00 10 00 00 00 00 00
80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
90: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
c0: 00 04 02 01 00 60 00 00 00 0c 85 82 10 00 33 02
d0: 00 0c 85 02 10 00 33 02 00 00 00 00 00 00 00 00
e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
f0: 00 00 00 00 00 00 00 00 b1 0f 00 08 00 00 00 00
100: 02 00 01 00 01 00 00 00 00 00 00 00 00 00 00 00
110: 00 00 00 00 01 00 00 80 00 00 00 00 00 00 00 00
120: 04 00 00 82 00 00 00 00 00 00 00 00 00 00 00 00
130: 05 00 01 00 00 01 00 0f 00 00 00 00 00 00 00 00
140: 01 00 00 00 00 00 00 00 00 c0 d1 fe 00 00 00 00
150: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
160: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
170: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
180: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
190: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
1a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
1b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
1c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
1d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
1e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
1f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
200: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
210: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
220: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
230: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
240: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
250: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
260: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
270: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
280: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
290: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
2a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
2b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
2c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
2d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
2e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
2f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
300: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
310: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
320: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
330: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
340: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
350: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
360: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
370: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
380: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
390: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
3a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
3b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
3c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
3d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
3e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
3f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
400: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
410: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
420: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
430: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
440: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
450: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
460: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
470: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
480: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
490: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
4a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
4b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
4c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
4d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
4e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
4f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
500: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
510: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
520: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
530: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
540: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
550: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
560: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
570: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
580: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
590: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
5a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
5b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
5c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
5d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
5e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
5f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
600: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
610: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
620: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
630: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
640: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
650: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
660: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
670: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
680: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
690: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
6a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
6b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
6c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
6d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
6e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
6f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
700: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
710: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
720: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
730: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
740: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
750: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
760: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
770: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
780: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
790: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
7a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
7b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
7c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
7d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
7e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
7f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
800: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
810: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
820: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
830: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
840: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
850: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
860: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
870: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
880: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
890: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
8a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
8b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
8c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
8d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
8e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
8f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
900: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
910: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
920: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
930: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
940: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
950: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
960: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
970: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
980: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
990: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
9a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
9b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
9c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
9d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
9e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
9f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
a00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
a10: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
a20: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
a30: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
a40: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
a50: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
a60: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
a70: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
a80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
a90: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
aa0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ab0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ac0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ad0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ae0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
af0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
b00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
b10: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
b20: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
b30: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
b40: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
b50: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
b60: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
b70: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
b80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
b90: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ba0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
bb0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
bc0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
bd0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
be0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
bf0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
c00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
c10: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
c20: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
c30: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
c40: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
c50: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
c60: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
c70: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
c80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
c90: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ca0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
cb0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
cc0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
cd0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ce0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
cf0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
d00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
d10: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
d20: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
d30: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
d40: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
d50: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
d60: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
d70: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
d80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
d90: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
da0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
db0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
dc0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
dd0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
de0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
df0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
e00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
e10: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
e20: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
e30: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
e40: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
e50: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
e60: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
e70: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
e80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
e90: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ea0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
eb0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ec0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ed0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ee0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ef0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
f10: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
f20: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
f30: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
f40: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
f50: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
f60: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
f70: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
f90: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
fa0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
fb0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
fc0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
fd0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
fe0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ff0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
Comment 1 Raymond 2014-11-06 05:19:53 UTC
you have to diff -u outputs of alsa-info.sh in cold boot and warm boot
Comment 2 Ivan Gumenyuk 2014-11-06 06:38:45 UTC
(In reply to Raymond from comment #1)
> you have to diff -u outputs of alsa-info.sh in cold boot and warm boot

meklon@meklon-desktop:~/tmp$ diff -u alsa-info_broken.txt.WyIsuIE4Fp alsa-info_working.txt.sgfNP9HKI1 
--- alsa-info_broken.txt.WyIsuIE4Fp     2014-11-06 09:35:13.000000000 +0300
+++ alsa-info_working.txt.sgfNP9HKI1    2014-11-06 09:28:57.000000000 +0300
@@ -3,7 +3,7 @@
 !!ALSA Information Script v 0.4.64
 !!################################
 
-!!Script ran on: Thu Nov  6 06:35:12 UTC 2014
+!!Script ran on: Thu Nov  6 06:28:56 UTC 2014
 
 
 !!Linux Distribution
@@ -166,7 +166,7 @@
     ControlAmp: chs=3, dir=Out, idx=0, ofs=0
   Device: name="ALC1150 Analog", type="Audio", device=0
   Amp-Out caps: ofs=0x57, nsteps=0x57, stepsize=0x02, mute=0
-  Amp-Out vals:  [0x37 0x37]
+  Amp-Out vals:  [0x2d 0x2d]
   Converter: stream=8, channel=0
   PCM:
     rates [0x560]: 44100 48000 96000 192000
@@ -178,7 +178,7 @@
   Control: name="Surround Playback Volume", index=0, device=0
     ControlAmp: chs=3, dir=Out, idx=0, ofs=0
   Amp-Out caps: ofs=0x57, nsteps=0x57, stepsize=0x02, mute=0
-  Amp-Out vals:  [0x37 0x37]
+  Amp-Out vals:  [0x2d 0x2d]
   Converter: stream=8, channel=2
   PCM:
     rates [0x560]: 44100 48000 96000 192000
@@ -192,7 +192,7 @@
   Control: name="LFE Playback Volume", index=0, device=0
     ControlAmp: chs=2, dir=Out, idx=0, ofs=0
   Amp-Out caps: ofs=0x57, nsteps=0x57, stepsize=0x02, mute=0
-  Amp-Out vals:  [0x38 0x38]
+  Amp-Out vals:  [0x2e 0x2e]
   Converter: stream=8, channel=4
   PCM:
     rates [0x560]: 44100 48000 96000 192000
@@ -204,7 +204,7 @@
   Control: name="Side Playback Volume", index=0, device=0
     ControlAmp: chs=3, dir=Out, idx=0, ofs=0
   Amp-Out caps: ofs=0x57, nsteps=0x57, stepsize=0x02, mute=0
-  Amp-Out vals:  [0x37 0x37]
+  Amp-Out vals:  [0x2d 0x2d]
   Converter: stream=8, channel=6
   PCM:
     rates [0x560]: 44100 48000 96000 192000
@@ -511,7 +511,7 @@
   Control: name="Headphone Playback Volume", index=0, device=0
     ControlAmp: chs=3, dir=Out, idx=0, ofs=0
   Amp-Out caps: ofs=0x57, nsteps=0x57, stepsize=0x02, mute=0
-  Amp-Out vals:  [0x38 0x38]
+  Amp-Out vals:  [0x2e 0x2e]
   Converter: stream=8, channel=0
   PCM:
     rates [0x560]: 44100 48000 96000 192000
@@ -567,24 +567,24 @@
 !!ALSA Device nodes
 !!-----------------
 
-crw-rw----+ 1 root audio 116,  5 Nov  6 09:34 /dev/snd/controlC0
-crw-rw----+ 1 root audio 116,  2 Nov  6 09:34 /dev/snd/controlC1
-crw-rw----+ 1 root audio 116, 10 Nov  6 09:34 /dev/snd/hwC0D2
-crw-rw----+ 1 root audio 116,  4 Nov  6 09:34 /dev/snd/hwC1D0
-crw-rw----+ 1 root audio 116,  7 Nov  6 09:34 /dev/snd/pcmC0D0c
-crw-rw----+ 1 root audio 116,  6 Nov  6 09:34 /dev/snd/pcmC0D0p
-crw-rw----+ 1 root audio 116,  8 Nov  6 09:34 /dev/snd/pcmC0D1p
-crw-rw----+ 1 root audio 116,  9 Nov  6 09:34 /dev/snd/pcmC0D2c
-crw-rw----+ 1 root audio 116,  3 Nov  6 09:34 /dev/snd/pcmC1D3p
-crw-rw----+ 1 root audio 116,  1 Nov  6 09:34 /dev/snd/seq
-crw-rw----+ 1 root audio 116, 33 Nov  6 09:34 /dev/snd/timer
+crw-rw----+ 1 root audio 116,  5 Nov  6 09:26 /dev/snd/controlC0
+crw-rw----+ 1 root audio 116,  2 Nov  6 09:26 /dev/snd/controlC1
+crw-rw----+ 1 root audio 116, 10 Nov  6 09:26 /dev/snd/hwC0D2
+crw-rw----+ 1 root audio 116,  4 Nov  6 09:26 /dev/snd/hwC1D0
+crw-rw----+ 1 root audio 116,  7 Nov  6 09:26 /dev/snd/pcmC0D0c
+crw-rw----+ 1 root audio 116,  6 Nov  6 09:27 /dev/snd/pcmC0D0p
+crw-rw----+ 1 root audio 116,  8 Nov  6 09:26 /dev/snd/pcmC0D1p
+crw-rw----+ 1 root audio 116,  9 Nov  6 09:26 /dev/snd/pcmC0D2c
+crw-rw----+ 1 root audio 116,  3 Nov  6 09:26 /dev/snd/pcmC1D3p
+crw-rw----+ 1 root audio 116,  1 Nov  6 09:26 /dev/snd/seq
+crw-rw----+ 1 root audio 116, 33 Nov  6 09:26 /dev/snd/timer
 
 /dev/snd/by-path:
 total 0
-drwxr-xr-x 2 root root  80 Nov  6 09:34 .
-drwxr-xr-x 3 root root 280 Nov  6 09:34 ..
-lrwxrwxrwx 1 root root  12 Nov  6 09:34 pci-0000:00:1b.0 -> ../controlC0
-lrwxrwxrwx 1 root root  12 Nov  6 09:34 pci-0000:01:00.1 -> ../controlC1
+drwxr-xr-x 2 root root  80 Nov  6 09:26 .
+drwxr-xr-x 3 root root 280 Nov  6 09:26 ..
+lrwxrwxrwx 1 root root  12 Nov  6 09:26 pci-0000:00:1b.0 -> ../controlC0
+lrwxrwxrwx 1 root root  12 Nov  6 09:26 pci-0000:01:00.1 -> ../controlC1
 
 
 !!Aplay/Arecord output
@@ -627,7 +627,7 @@
   Capabilities: pvolume pvolume-joined pswitch pswitch-joined
   Playback channels: Mono
   Limits: Playback 0 - 87
-  Mono: Playback 56 [64%] [-23.25dB] [on]
+  Mono: Playback 46 [53%] [-30.75dB] [on]
 Simple mixer control 'Headphone',0
   Capabilities: pvolume pswitch
   Playback channels: Front Left - Front Right
@@ -1206,7 +1206,7 @@
        control.34 {
                iface MIXER
                name 'Master Playback Volume'
-               value 56
+               value 46
                comment {
                        access 'read write'
                        type INTEGER
@@ -1214,7 +1214,7 @@
                        range '0 - 87'
                        dbmin -6525
                        dbmax 0
-                       dbvalue.0 -2325
+                       dbvalue.0 -3075
                }
        }
        control.35 {
@@ -1535,58 +1535,58 @@
 intel_rapl
 x86_pkg_temp_thermal
 intel_powerclamp
+snd_hda_codec_realtek
+snd_hda_codec_generic
+snd_hda_codec_hdmi
 coretemp
+snd_hda_intel
 kvm_intel
 kvm
+snd_soc_rt5640
+snd_hda_controller
+snd_hda_codec
 crct10dif_pclmul
+snd_soc_rl6231
 crc32_pclmul
+snd_soc_core
+snd_hwdep
 ghash_clmulni_intel
-snd_hda_codec_realtek
-aesni_intel
-snd_hda_codec_generic
-aes_x86_64
+snd_compress
 nls_utf8
+snd_pcm_dmaengine
+snd_pcm
 cifs
+fscache
+mei_me
+snd_seq_midi
+aesni_intel
+mei
+aes_x86_64
 lrw
 gf128mul
 glue_helper
-snd_hda_codec_hdmi
 ablk_helper
-fscache
-cryptd
-snd_seq_midi
-snd_hda_intel
-snd_hda_controller
-snd_hda_codec
-serio_raw
-snd_soc_rt5640
-snd_soc_rl6231
-snd_hwdep
-snd_soc_core
-snd_compress
-snd_pcm_dmaengine
 snd_seq_midi_event
+cryptd
 snd_rawmidi
+serio_raw
 snd_seq
-snd_pcm
 snd_seq_device
+snd_timer
+snd_soc_sst_acpi
 dw_dmac
+snd
 dw_dmac_core
-snd_timer
+8250_dw
 i2c_hid
-i2c_designware_platform
-shpchp
 spi_pxa2xx_platform
-snd
-snd_soc_sst_acpi
-mei_me
-mac_hid
+i2c_designware_platform
 acpi_pad
-8250_dw
 soundcore
-mei
-tpm_infineon
 i2c_designware_core
+tpm_infineon
+shpchp
+mac_hid
 parport_pc
 ppdev
 lp
@@ -1596,16 +1596,16 @@
 usbhid
 hid
 radeon
+ahci
+e1000e
 i2c_algo_bit
 ttm
 drm_kms_helper
-e1000e
-psmouse
-ahci
-drm
 libahci
 ptp
+drm
 pps_core
+psmouse
 video
 sdhci_acpi
 sdhci
@@ -1649,40 +1649,39 @@
 !!ALSA/HDA dmesg
 !!--------------
 
-[    0.960885] [drm] Connector 2:
-[    0.960885] [drm]   HDMI-A-1
-[    0.960886] [drm]   HPD6
+[    0.961877] [drm] Connector 2:
+[    0.961877] [drm]   HDMI-A-1
+[    0.961877] [drm]   HPD6
 --
-[    6.477674] shpchp: Standard Hot Plug PCI Controller Driver version: 0.4
-[    6.518120] snd_hda_intel 0000:00:1b.0: irq 49 for MSI/MSI-X
-[    6.518184] snd_hda_intel 0000:01:00.1: Handle VGA-switcheroo audio client
-[    6.518199] snd_hda_intel 0000:01:00.1: irq 50 for MSI/MSI-X
-[    6.526407] FS-Cache: Loaded
-[    6.528573] input: HDA ATI HDMI HDMI/DP,pcm=3 as /devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card1/input10
-[    6.530599] FS-Cache: Netfs 'cifs' registered for caching
+[    6.678847] random: nonblocking pool is initialized
+[    6.698674] snd_hda_intel 0000:00:1b.0: irq 49 for MSI/MSI-X
+[    6.698738] snd_hda_intel 0000:01:00.1: Handle VGA-switcheroo audio client
+[    6.699517] snd_hda_intel 0000:01:00.1: irq 50 for MSI/MSI-X
+[    6.701823] CIFS VFS: Error connecting to socket. Aborting operation.
 --
-[    6.535790] AVX2 version of gcm_enc/dec engaged.
-[    6.536811] sound hdaudioC0D2: ALC1150: SKU not ready 0x00000000
-[    6.537192] sound hdaudioC0D2: autoconfig: line_outs=4 (0x14/0x15/0x16/0x17/0x0) type:line
-[    6.537193] sound hdaudioC0D2:    speaker_outs=0 (0x0/0x0/0x0/0x0/0x0)
-[    6.537194] sound hdaudioC0D2:    hp_outs=1 (0x1b/0x0/0x0/0x0/0x0)
-[    6.537195] sound hdaudioC0D2:    mono: mono_out=0x0
-[    6.537195] sound hdaudioC0D2:    dig-out=0x11/0x0
-[    6.537196] sound hdaudioC0D2:    inputs:
-[    6.537197] sound hdaudioC0D2:      Front Mic=0x19
-[    6.537198] sound hdaudioC0D2:      Rear Mic=0x18
-[    6.537199] sound hdaudioC0D2:      Line=0x1a
-[    6.548311] audit: type=1400 audit(1415255644.478:2): apparmor="STATUS" operation="profile_load" profile="unconfined" name="/sbin/dhclient" pid=520 comm="apparmor_parser"
+[    6.702328] CIFS VFS: cifs_mount failed w/return code = -101
+[    6.707107] input: HDA ATI HDMI HDMI/DP,pcm=3 as /devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card1/input10
+[    6.708910] sound hdaudioC0D2: ALC1150: SKU not ready 0x00000000
+[    6.709290] sound hdaudioC0D2: autoconfig: line_outs=4 (0x14/0x15/0x16/0x17/0x0) type:line
+[    6.709291] sound hdaudioC0D2:    speaker_outs=0 (0x0/0x0/0x0/0x0/0x0)
+[    6.709292] sound hdaudioC0D2:    hp_outs=1 (0x1b/0x0/0x0/0x0/0x0)
+[    6.709293] sound hdaudioC0D2:    mono: mono_out=0x0
+[    6.709294] sound hdaudioC0D2:    dig-out=0x11/0x0
+[    6.709294] sound hdaudioC0D2:    inputs:
+[    6.709296] sound hdaudioC0D2:      Front Mic=0x19
+[    6.709296] sound hdaudioC0D2:      Rear Mic=0x18
+[    6.709297] sound hdaudioC0D2:      Line=0x1a
+[    6.720864] intel_rapl: Found RAPL domain package
 --
-[    6.548317] audit: type=1400 audit(1415255644.478:4): apparmor="STATUS" operation="profile_load" profile="unconfined" name="/usr/lib/connman/scripts/dhclient-script" pid=520 comm="apparmor_parser"
-[    6.551063] input: HDA Intel PCH Front Mic as /devices/pci0000:00/0000:00:1b.0/sound/card0/input11
-[    6.551256] input: HDA Intel PCH Rear Mic as /devices/pci0000:00/0000:00:1b.0/sound/card0/input12
-[    6.551506] input: HDA Intel PCH Line as /devices/pci0000:00/0000:00:1b.0/sound/card0/input13
-[    6.551539] input: HDA Intel PCH Line Out Front as /devices/pci0000:00/0000:00:1b.0/sound/card0/input14
-[    6.551577] input: HDA Intel PCH Line Out Surround as /devices/pci0000:00/0000:00:1b.0/sound/card0/input15
-[    6.551611] input: HDA Intel PCH Line Out CLFE as /devices/pci0000:00/0000:00:1b.0/sound/card0/input16
-[    6.551640] input: HDA Intel PCH Line Out Side as /devices/pci0000:00/0000:00:1b.0/sound/card0/input17
-[    6.551670] input: HDA Intel PCH Front Headphone as /devices/pci0000:00/0000:00:1b.0/sound/card0/input18
-[    6.610618] intel_rapl: Found RAPL domain package
+[    6.720869] intel_rapl: Found RAPL domain dram
+[    6.722358] input: HDA Intel PCH Front Mic as /devices/pci0000:00/0000:00:1b.0/sound/card0/input11
+[    6.722418] input: HDA Intel PCH Rear Mic as /devices/pci0000:00/0000:00:1b.0/sound/card0/input12
+[    6.723909] input: HDA Intel PCH Line as /devices/pci0000:00/0000:00:1b.0/sound/card0/input13
+[    6.723949] input: HDA Intel PCH Line Out Front as /devices/pci0000:00/0000:00:1b.0/sound/card0/input14
+[    6.723981] input: HDA Intel PCH Line Out Surround as /devices/pci0000:00/0000:00:1b.0/sound/card0/input15
+[    6.724011] input: HDA Intel PCH Line Out CLFE as /devices/pci0000:00/0000:00:1b.0/sound/card0/input16
+[    6.724043] input: HDA Intel PCH Line Out Side as /devices/pci0000:00/0000:00:1b.0/sound/card0/input17
+[    6.724074] input: HDA Intel PCH Front Headphone as /devices/pci0000:00/0000:00:1b.0/sound/card0/input18
+[    6.734293] audit: type=1400 audit(1415255176.664:2): apparmor="STATUS" operation="profile_load" profile="unconfined" name="/sbin/dhclient" pid=621 comm="apparmor_parser"
Comment 3 Ivan Gumenyuk 2014-11-06 06:41:02 UTC
Created attachment 156851 [details]
alsa-info.sh output in working status
Comment 4 Ivan Gumenyuk 2014-11-06 06:41:26 UTC
Created attachment 156861 [details]
alsa-info.sh output in broken status
Comment 5 Raymond 2014-11-06 07:14:30 UTC
https://git.kernel.org/cgit/linux/kernel/git/tiwai/sound.git/commit/sound/pci/hda?id=cd262518a3ae4465e8e51c29641d98c4ed0651a1


your codec info seem normal

try compare those proc coeffiecient by specify 

options snd-hda-intel dump_coef=1


Node 0x20 [Vendor Defined Widget] wcaps 0xf00040: Mono Processing caps: benign=0, ncoeff=32
Comment 6 Ivan Gumenyuk 2014-11-06 07:47:19 UTC
(In reply to Raymond from comment #5)
> https://git.kernel.org/cgit/linux/kernel/git/tiwai/sound.git/commit/sound/
> pci/hda?id=cd262518a3ae4465e8e51c29641d98c4ed0651a1
> 
> 
> your codec info seem normal
> 
> try compare those proc coeffiecient by specify 
> 
> options snd-hda-intel dump_coef=1
> 
> 
> Node 0x20 [Vendor Defined Widget] wcaps 0xf00040: Mono Processing caps:
> benign=0, ncoeff=32

Could you, please, explain the steps, I should do more clearly?
Thanks in advance.
Comment 8 Ivan Gumenyuk 2014-11-07 05:10:20 UTC
(In reply to Raymond from comment #7)
> are you using latest alsa driver? 
> 
> https://git.kernel.org/cgit/linux/kernel/git/tiwai/sound.git/commit/sound/
> pci/hda/patch_realtek.c?id=acf08081adb5e8fe0519eb97bb49797ef52614d6

nano /proc/asound/version
Advanced Linux Sound Architecture Driver Version k3.16.0-24-generic.

The default driver in 3.17 kernel also don't work.
Comment 9 Raymond 2014-11-08 16:31:40 UTC
http://www.realtek.com.tw/products/productsView.aspx?Langid=1&PFid=28&Level=5&Conn=4&ProdID=328

you have to ask the author of both patches

seem it is slightly different fron other 7.1+2 HDA codec as it support I2S
Comment 10 Takashi Iwai 2014-11-09 08:41:17 UTC
Since the HD-audio codec verbs have no significant difference between working and non-working states, it must be the vendor-specific secret COEF.

Usually this kind of problem comes from either the codec amp state or the power state.  In the case of Realtek codecs, the latter possibility is low, as there is no fine power control.  So the only possibility is the codec master amp controlled by COEF.  That's why the comparison of COEF dumps is requested in comment 5 (although the comment is wrong -- it's a parameter for snd-hda-codec module, not snd-hda-intel module).

In short: do the following

- Boot from Windows, confirm that the no sound comes out.

- Write the following as root
    echo 1 > /sys/module/snd_hda_codec/parameters/coef_dump

- Run alsa-info.sh (with --no-upload option), save the result.

- Cold reboot, cofirm that the sound works.

- Again, write coef_dump proc file, and run alsa-info.sh, save the result.

- Attach both files to Bugzilla.
Comment 11 Takashi Iwai 2014-11-09 08:42:21 UTC
BTW, before doing the above, try the latest Linus tree (or upcoming 3.18-rc4 today).  There have been a few Realtek-related fixes, so we must check it beforehand.
Comment 12 Ivan Gumenyuk 2014-11-11 16:28:16 UTC
(In reply to Takashi Iwai from comment #11)
> BTW, before doing the above, try the latest Linus tree (or upcoming 3.18-rc4
> today).  There have been a few Realtek-related fixes, so we must check it
> beforehand.

3.18-rc4 Didn't help. Trying to get the correct dump.
Comment 13 Ivan Gumenyuk 2014-11-11 16:35:06 UTC
(In reply to Takashi Iwai from comment #10)
> Since the HD-audio codec verbs have no significant difference between
> working and non-working states, it must be the vendor-specific secret COEF.
> 
> Usually this kind of problem comes from either the codec amp state or the
> power state.  In the case of Realtek codecs, the latter possibility is low,
> as there is no fine power control.  So the only possibility is the codec
> master amp controlled by COEF.  That's why the comparison of COEF dumps is
> requested in comment 5 (although the comment is wrong -- it's a parameter
> for snd-hda-codec module, not snd-hda-intel module).
> 
> In short: do the following
> 
> - Boot from Windows, confirm that the no sound comes out.
> 
> - Write the following as root
>     echo 1 > /sys/module/snd_hda_codec/parameters/coef_dump
> 
> - Run alsa-info.sh (with --no-upload option), save the result.
> 
> - Cold reboot, cofirm that the sound works.
> 
> - Again, write coef_dump proc file, and run alsa-info.sh, save the result.
> 
> - Attach both files to Bugzilla.

There is no /sys/module/snd_hda_codec/parameters/coef_dump. I've changed the dump_coef file instead.
Comment 14 Ivan Gumenyuk 2014-11-11 16:41:28 UTC
Created attachment 157281 [details]
alsa-info.sh output in working status with coef=1
Comment 15 Ivan Gumenyuk 2014-11-11 16:41:59 UTC
Created attachment 157291 [details]
alsa-info.sh output in broken status with coef=1
Comment 16 Takashi Iwai 2014-11-11 16:58:00 UTC
(In reply to Ivan Gumenyuk from comment #14)
> Created attachment 157281 [details]
> alsa-info.sh output in working status with coef=1

You seem to have forgotten to set dump_coef=1 for this case.
(The second one has the COEF dump, though.)
Comment 17 Ivan Gumenyuk 2014-11-11 17:57:20 UTC
Created attachment 157301 [details]
alsa-info.sh output in working status with coef=1 (second try)
Comment 18 Ivan Gumenyuk 2014-11-11 18:02:52 UTC
(In reply to Takashi Iwai from comment #16)
> (In reply to Ivan Gumenyuk from comment #14)
> > Created attachment 157281 [details]
> > alsa-info.sh output in working status with coef=1
> 
> You seem to have forgotten to set dump_coef=1 for this case.
> (The second one has the COEF dump, though.)

Sorry for that. I didn't know that dump_coef=1 resets after reboot. Attached new one. By the way, a person with the same problem contacted me. He has got the GA-Z97X-UD5H and 3.17-1-amd64 kernel.
Comment 19 Takashi Iwai 2014-11-11 19:13:53 UTC
OK, then try to install hda-verb program (included in the latest alsa-tools package), and run like below as root on the non-working system:

    hda-verb /dev/snd/hwC0D2 0x20 SET_COEF_INDEX 0x07
    hda-verb /dev/snd/hwC0D2 0x20 SET_PROC_COEF 0x7cb0
Comment 20 Ivan Gumenyuk 2014-11-11 20:00:57 UTC
(In reply to Takashi Iwai from comment #19)
> OK, then try to install hda-verb program (included in the latest alsa-tools
> package), and run like below as root on the non-working system:
> 
>     hda-verb /dev/snd/hwC0D2 0x20 SET_COEF_INDEX 0x07
>     hda-verb /dev/snd/hwC0D2 0x20 SET_PROC_COEF 0x7cb0

root@meklon-desktop:/home/meklon# hda-verb /dev/snd/hwC0D2 0x20 SET_COEF_INDEX 0x07
nid = 0x20, verb = 0x500, param = 0x7
value = 0x0
root@meklon-desktop:/home/meklon# hda-verb /dev/snd/hwC0D2 0x20 SET_PROC_COEF 0x7cb0
nid = 0x20, verb = 0x400, param = 0x7cb0
value = 0x0

Some kind of black magic for me) Sound appears after this.
Comment 21 Takashi Iwai 2014-11-12 10:37:27 UTC
OK, now the fix patch landed in sound git tree for 3.18-rc5.

Unfortunately, backporting this to stable kernels isn't so trivial.  Either we need to backport lots of other patches or we need to rewrite the code.
Comment 22 Takashi Iwai 2014-11-12 10:44:46 UTC
FWIW, the following commits need backports for 3.16.x and 3.17.x:

f2a227cd3891266f1486a21aac86fa39b3abd093
    ALSA: hda/realtek - Optimize alc888_coef_init()
1687ccc8b2229d05c579924086e9b42ada9db888
    ALSA: hda/realtek - Use alc_write_coef_idx() in alc269_quanta_automake()
98b248839474293481905562ae38dc2d6558ef20
    ALSA: hda/realtek - Add alc_update_coef*_idx() helper
54db6c3949359ee35e9addb02506fca431721ef0
    ALSA: hda/realtek - Use tables for batch COEF writes/updtes
32fa7e4977d86fdcfeb01b8ace32a2b63974f97c
    ALSA: hda/realtek - Update restore default value for ALC282
56779864f135b309c11dd18156784f83ddc1571e
    ALSA: hda/realtek - Update restore default value for ALC283
1df8874bfab15671fe9433ec20807590ba86b334
    ALSA: hda/realtek - Update Initial AMP for EAPD control
f3f9185f3e49c748e952dd579357048a42e89398
    ALSA: hda/realtek - Restore default value for ALC668
394c97f824fa6b62351fe08b722fff2fc5188bfc
    ALSA: hda/realtek - Change EAPD to verb control
Comment 23 Ivan Gumenyuk 2014-11-12 11:14:42 UTC
(In reply to Takashi Iwai from comment #21)
> OK, now the fix patch landed in sound git tree for 3.18-rc5.
> 
> Unfortunately, backporting this to stable kernels isn't so trivial.  Either
> we need to backport lots of other patches or we need to rewrite the code.

Thank you for your attention. The bug is not critical. The can be a workaround with adding the script during the system startup.
hda-verb /dev/snd/hwC0D2 0x20 SET_COEF_INDEX 0x07
hda-verb /dev/snd/hwC0D2 0x20 SET_PROC_COEF 0x7cb0
Comment 24 Douglas H Campbell 2014-12-01 17:46:53 UTC
Should I be acting on this fix?  Thanks

Douglas H Campbell
Comment 25 Dominique Ragot 2015-03-08 23:01:36 UTC
(In reply to Ivan Gumenyuk from comment #23)
> (In reply to Takashi Iwai from comment #21)
> > OK, now the fix patch landed in sound git tree for 3.18-rc5.
> > 
> > Unfortunately, backporting this to stable kernels isn't so trivial.  Either
> > we need to backport lots of other patches or we need to rewrite the code.
> 
> Thank you for your attention. The bug is not critical. The can be a
> workaround with adding the script during the system startup.
> hda-verb /dev/snd/hwC0D2 0x20 SET_COEF_INDEX 0x07
> hda-verb /dev/snd/hwC0D2 0x20 SET_PROC_COEF 0x7cb0

FYI, following this procedure with workaround solved a "no sound" issue with a ASUS A88X Gamer motherboard, having also a Realtek ALC1150 chip. System is Debian 7 and the stock kernel has been replaced by a 3.19 from kernel.org (instead of 3.18-rc5 as indicated here).

Thank you for your help.

Dominique Ragot
Comment 26 func0der 2015-04-11 16:34:21 UTC
(In reply to Ivan Gumenyuk from comment #23)
> (In reply to Takashi Iwai from comment #21)
> > OK, now the fix patch landed in sound git tree for 3.18-rc5.
> > 
> > Unfortunately, backporting this to stable kernels isn't so trivial.  Either
> > we need to backport lots of other patches or we need to rewrite the code.
> 
> Thank you for your attention. The bug is not critical. The can be a
> workaround with adding the script during the system startup.
> hda-verb /dev/snd/hwC0D2 0x20 SET_COEF_INDEX 0x07
> hda-verb /dev/snd/hwC0D2 0x20 SET_PROC_COEF 0x7cb0

Do these two commands really need to be run on startup? Or can I just run them afterwards from terminal with 'sudo'?

Because If so: This does not fix my sound problems.

I am currently running the 3.19.3-031903-generic kernel.

I have no clue what else I could try, because I invested about 10 hours - maybe more - in this problem already.
Maybe my system is too messed for this to work now.

Do you have any suggestions on how to fix this for me with a fresh Ubuntu system?
Apparently this fix is not going to be rolled out any time soon and if the commands do the exact same thing as the code does, it would not help me anyway :/

I have an ALC898.
Comment 27 Douglas H Campbell 2016-10-23 13:28:40 UTC
The fix for this bug is:

> hda-verb /dev/snd/hwC0D2 0x20
SET_COEF_INDEX 0x07
> hda-verb /dev/snd/hwC0D2 0x20 SET_PROC_COEF
0x7cb0

Unfortunately after a couple years I am still 
without sound. After writing a script with this
fix, it didn’t work.  It may be that on my computer
I don’t have file “hwC0D2” in /dev/snd.

doug@doug-Ubuntu:~$ ls /dev/snd
by-path    hwC0D0  pcmC0D0c  pcmC1D10p  pcmC1D8p  pcmC2D1c  seq
controlC0  hwC1D0  pcmC0D0p  pcmC1D11p  pcmC1D9p  pcmC2D1p  timer
controlC1  hwC2D1  pcmC0D1p  pcmC1D3p   pcmC2D0c  pcmC2D2c
controlC2  hwC2D2  pcmC0D2c  pcmC1D7p   pcmC2D0p  pcmC2D4c
doug@doug-Ubuntu:~$ 

I have downloaded and installed alsa-tools-1.1.0.

How do I get file hwC0D2?  

Dougca17

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