Bug 100831 (ALC898@GA-Z77X) - Sound doesnt work corectly on Gigabyte GA Z77X UD5H
Summary: Sound doesnt work corectly on Gigabyte GA Z77X UD5H
Status: NEEDINFO
Alias: ALC898@GA-Z77X
Product: Drivers
Classification: Unclassified
Component: Sound(ALSA) (show other bugs)
Hardware: All Linux
: P1 normal
Assignee: Jaroslav Kysela
URL: https://forums.gentoo.org/viewtopic-t...
Keywords:
Depends on:
Blocks:
 
Reported: 2015-07-02 19:34 UTC by Daniel Buyer
Modified: 2015-07-06 15:18 UTC (History)
3 users (show)

See Also:
Kernel Version: 4.0.5
Subsystem:
Regression: No
Bisected commit-id:


Attachments

Description Daniel Buyer 2015-07-02 19:34:59 UTC
The bug is in the file /sound/pci/hda/patch_realtek.c
The Mainboard Gigabyte GA Z77X UD5H rev 1.0 got a problem with the sound. If you want to hear the sound you have to plug the speaker in the wrong (grey) Port in the Backside of the Motherboard. Maybe you should create a new "model=" for this Realtek ALC898 Chip in /etc/modprobe.d/alsa.conf.

lspci -v -s 00:1b.0:
00:1b.0 Audio device: Intel Corporation 7 Series/C210 Series Chipset Family High Definition Audio Controller (rev 04)
        Subsystem: Gigabyte Technology Co., Ltd Device a072
        Flags: bus master, fast devsel, latency 0, IRQ 30
        Memory at f7530000 (64-bit, non-prefetchable) [size=16K]
        Capabilities: [50] Power Management version 2
        Capabilities: [60] MSI: Enable+ Count=1/1 Maskable- 64bit+
        Capabilities: [70] Express Root Complex Integrated Endpoint, MSI 00
        Capabilities: [100] Virtual Channel
        Capabilities: [130] Root Complex Link
        Kernel driver in use: snd_hda_intel
        Kernel modules: snd_hda_intel

aplay -L:	
default:CARD=PCH
    HDA Intel PCH, ALC898 Analog
    Default Audio Device
sysdefault:CARD=PCH
    HDA Intel PCH, ALC898 Analog
    Default Audio Device
front:CARD=PCH,DEV=0
    HDA Intel PCH, ALC898 Analog
    Front speakers
surround21:CARD=PCH,DEV=0
    HDA Intel PCH, ALC898 Analog
    2.1 Surround output to Front and Subwoofer speakers
surround40:CARD=PCH,DEV=0
    HDA Intel PCH, ALC898 Analog
    4.0 Surround output to Front and Rear speakers
surround41:CARD=PCH,DEV=0
    HDA Intel PCH, ALC898 Analog
    4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=PCH,DEV=0
    HDA Intel PCH, ALC898 Analog
    5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=PCH,DEV=0
    HDA Intel PCH, ALC898 Analog
    5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=PCH,DEV=0
    HDA Intel PCH, ALC898 Analog
    7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
iec958:CARD=PCH,DEV=0
    HDA Intel PCH, ALC898 Digital
    IEC958 (S/PDIF) Digital Audio Output

dmesg | grep sound:
[    0.818433]   No soundcards found.
[   10.410302] sound hdaudioC0D2: autoconfig for ALC898: line_outs=4 (0x14/0x15/0x16/0x17/0x0) type:line
[   10.410304] sound hdaudioC0D2:    speaker_outs=0 (0x0/0x0/0x0/0x0/0x0)
[   10.410305] sound hdaudioC0D2:    hp_outs=1 (0x1b/0x0/0x0/0x0/0x0)
[   10.410306] sound hdaudioC0D2:    mono: mono_out=0x0
[   10.410307] sound hdaudioC0D2:    dig-out=0x11/0x1e
[   10.410307] sound hdaudioC0D2:    inputs:
[   10.410309] sound hdaudioC0D2:      Front Mic=0x19
[   10.410310] sound hdaudioC0D2:      Rear Mic=0x18
[   10.410311] sound hdaudioC0D2:      Line=0x1a

I have postet details in the gentoo Forums:
https://forums.gentoo.org/viewtopic-t-1021186.html
Comment 1 Raymond 2015-07-03 04:08:58 UTC
you have to post output of alsa-info.sh

https://bugs.launchpad.net/ubuntu/+source/alsa-driver/+bug/996245

Default sink name: alsa_output.pci-0000_00_1b.0.hdmi-stereo-extra1
Default source name: alsa_input.usb-046d_0821_A8C10AA0-00-U0x46d0x821.iec958-stereo

seem pulseaudio default sink is hdmi instead of alc898 

active profile: <output:hdmi-stereo-extra1+input:analog-stereo>
	sinks:
		alsa_output.pci-0000_00_1b.0.hdmi-stereo-extra1/#4: Built-in Audio Digital Stereo (HDMI)
	sources:
		alsa_input.pci-0000_00_1b.0.analog-stereo/#2: Built-in Audio Analog Stereo
		alsa_output.pci-0000_00_1b.0.hdmi-stereo-extra1.monitor/#6: Monitor of Built-in Audio Digital Stereo (HDMI)
	ports:
		analog-output: Analog Output (priority 9900, available: unknown)
			properties:
				
		analog-output-headphones: Headphones (priority 9000, available: unknown)
			properties:
				
		analog-input-microphone-front: Front Microphone (priority 8500, available: no)
			properties:
				
		analog-input-microphone-rear: Rear Microphone (priority 8200, available: no)
			properties:
				
		analog-input-linein: Line In (priority 8100, available: no)
			properties:
				
		iec958-stereo-output: Digital Output (S/PDIF) (priority 0, available: unknown)
			properties:
				
		hdmi-output-0: HDMI / DisplayPort (priority 5900, available: no)
			properties:
				
		hdmi-output-1: HDMI / DisplayPort 2 (priority 5800, available: yes)
			properties:
Comment 2 Daniel Buyer 2015-07-03 05:03:36 UTC
Here is the output:
http://www.alsa-project.org/db/?f=97d7e6321350a6f5425eb091f10519f9e0f9d03f

I dont think its a pulse- problem, because i have tried all devices with "aplay -D"

I have to go to work now, in 8 hours i can post everyhing you want to know!
Comment 3 Takashi Iwai 2015-07-03 05:11:31 UTC
This is likely the wrong pin mapping, BIOS didn't change the codec default values at all.  In addition to alsa-info.sh output, please check which jack corresponds to which pin via some program like hdajackretask or hda-analyzer.
Some information is found in Documentation/sound/alsa/HD-Audio.txt.
Comment 4 Raymond 2015-07-03 07:32:04 UTC
!Aplay/Arecord output
!!--------------------

APLAY

No protocol specified
xcb_connection_has_error() returned true
**** List of PLAYBACK Hardware Devices ****
card 0: PCH [HDA Intel PCH], device 0: ALC898 Analog [ALC898 Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 1: ALC898 Digital [ALC898 Digital]
  Subdevices: 1/1
  Subdevice #0: subdevice #0


xcb_connection_has_error was reported by pulseaudio client-conf-x11.c
Comment 6 Raymond 2015-07-03 07:44:44 UTC
    0.819699] ALSA device list:
[    0.819794]   No soundcards found.
[    0.820030] Freeing unused kernel memory: 820K (ffffffff816e0000 - ffffffff817ad000)
--
[   10.243173] hub 4-3:1.0: 4 ports detected
[   10.292227] snd_hda_intel: unknown parameter 'cards_limit' ignored
[   10.294276] usb 3-3: New USB device found, idVendor=0bc2, idProduct=3101
--
[   10.473067] e1000e 0000:00:19.0 eth0: MAC: 10, PHY: 11, PBA No: FFFFFF-0FF
[   10.473252] snd_hda_intel 0000:01:00.1: Disabling MSI


it is strange that "no sound cards found" appear at 0.819 second after boot
Comment 7 Takashi Iwai 2015-07-06 15:18:31 UTC
(In reply to Raymond from comment #6)
>     0.819699] ALSA device list:
> [    0.819794]   No soundcards found.
> [    0.820030] Freeing unused kernel memory: 820K (ffffffff816e0000 -
> ffffffff817ad000)
> --
> [   10.243173] hub 4-3:1.0: 4 ports detected
> [   10.292227] snd_hda_intel: unknown parameter 'cards_limit' ignored
> [   10.294276] usb 3-3: New USB device found, idVendor=0bc2, idProduct=3101
> --
> [   10.473067] e1000e 0000:00:19.0 eth0: MAC: 10, PHY: 11, PBA No: FFFFFF-0FF
> [   10.473252] snd_hda_intel 0000:01:00.1: Disabling MSI
> 
> 
> it is strange that "no sound cards found" appear at 0.819 second after boot

The message indicates nothing but that there is no active built-in sound driver.  It doesn't count for the modules.

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