ALC257: No sound from audio output

/dev/sndstat
Code:
pcm0: <ATI R6xx (HDMI)> (play)
pcm1: <ATI R6xx (HDMI)> (play)
pcm2: <ATI R6xx (HDMI)> (play)
pcm3: <ATI R6xx (HDMI)> (play)
pcm4: <Realtek ALC257 (Analog 2.0+HP/2.0)> (play/rec) default
No devices installed from userspace.

mixer
Code:
pcm4:mixer: <Realtek ALC257 (Analog 2.0+HP/2.0)> on hdaa1 (play/rec) (default)
    vol       = 1.00:1.00     pbk
    pcm       = 1.00:1.00     pbk
    speaker   = 1.00:1.00     rec
    mic       = 0.36:0.36     rec src
    rec       = 0.37:0.37     pbk
    ogain     = 1.00:1.00     pbk
speaker is set to rec? not sure if that is the issue or how to change it.

dmesg | grep pcm
Code:
pcm0: <ATI R6xx (HDMI)> at nid 3 on hdaa0
pcm1: <ATI R6xx (HDMI)> at nid 5 on hdaa0
pcm2: <ATI R6xx (HDMI)> at nid 7 on hdaa0
pcm3: <ATI R6xx (HDMI)> at nid 9 on hdaa0
pcm4: <Realtek ALC257 (Analog 2.0+HP/2.0)> at nid 20,33 and 25 on hdaa1

There is no audio input detected and no audio output. when i open pavucontrol, it shows that there is audio playing from firefox, but not from beep, but the speakers aren't playing anything with either.
 
speaker is set to rec? not sure if that is the issue or how to change it.
You get a better overview examining the audio function pin configuration (nid*) set by the BIOS.

Please execute as super user sysctl dev.hdac.1.pindump=1. The output won't be on the same console (unless it's tty0)/terminal, look in dmesg(8) or /var/log/messages end of file.

Copy, paste output in you next post, or if you up to, configure new pin configuration yourself in /boot/device.hints , see snd_hda(4). hint.hdaa.%d.nid%d.config and EXAMPLES section.
 
sysctl dev.hdac.1.pindump=1
Code:
hdaa1: Dumping AFG pins:
hdaa1: nid   0x    as seq device       conn  jack    loc        color   misc
hdaa1: 18 411111f0 15 0  Speaker       None  1/8     Rear       Black   1 DISA
hdaa1:     Caps: IN                
hdaa1: 19 40000000 0  0  Line-out      None  Unknown 0x00       Unknown 0 DISA
hdaa1:     Caps: IN                
hdaa1: 20 90070110 1  0  Line-out      Fixed Analog  Internal   Unknown 1
hdaa1:     Caps:    OUT    EAPD      Sense: 0x00000000 (disconnected)
hdaa1: 24 411111f0 15 0  Speaker       None  1/8     Rear       Black   1 DISA
hdaa1:     Caps: IN             VREF Sense: 0x00000000 (disconnected)
hdaa1: 25 04a11030 3  0  Mic           Jack  1/8     Right      Black   0
hdaa1:     Caps: IN             VREF Sense: 0x00000000 (disconnected)
hdaa1: 26 411111f0 15 0  Speaker       None  1/8     Rear       Black   1 DISA
hdaa1:     Caps: IN             VREF Sense: 0x00000000 (disconnected)
hdaa1: 27 411111f0 15 0  Speaker       None  1/8     Rear       Black   1 DISA
hdaa1:     Caps: IN OUT    EAPD VREF Sense: 0x00000000 (disconnected)
hdaa1: 30 411111f0 15 0  Speaker       None  1/8     Rear       Black   1 DISA
hdaa1:     Caps:    OUT              Sense: 0x00000000 (disconnected)
hdaa1: 33 0421101f 1  15 Headphones    Jack  1/8     Right      Black   0
hdaa1:     Caps:    OUT HP EAPD      Sense: 0x00000000 (disconnected)
hdaa1: NumGPIO=3 NumGPO=0 NumGPI=0 GPIWake=0 GPIUnsol=1
hdaa1:  GPIO0: output state=1
hdaa1:  GPIO1: output state=1
hdaa1:  GPIO2: disabled

I added the following to my device hints, but it still isnt working.
Code:
hint.hdaa.1.nid20.config="as=1 seq=0 device=Speaker"
hint.hdaa.1.nid24.config="as=1 seq=0 device=Speaker"
hint.hdaa.1.nid26.config="as=1 seq=0 device=Speaker"
hint.hdaa.1.nid27.config="as=1 seq=0 device=Speaker"
hint.hdaa.1.nid30.config="as=1 seq=0 device=Speaker"
hint.hdaa.1.nid33.config="as=1 seq=15 device=Headphones"
 
I added the following to my device hints, but it still isnt working.
Rich (BB code):
hint.hdaa.1.nid20.config="as=1 seq=0 device=Speaker"
hint.hdaa.1.nid24.config="as=1 seq=0 device=Speaker"
hint.hdaa.1.nid26.config="as=1 seq=0 device=Speaker"
hint.hdaa.1.nid27.config="as=1 seq=0 device=Speaker"
hint.hdaa.1.nid30.config="as=1 seq=0 device=Speaker"
hint.hdaa.1.nid33.config="as=1 seq=15 device=Headphones"

Please keep green, remove all red, and add
Code:
hint.hdaa.1.nid18.config="as=2 seq=0 device=Mic"
 
I did that but it still does not play any audio. When I run mixer it says:
Code:
pcm4:mixer: <Realtek ALC257 (Analog 2.0+HP/2.0)> on hdaa1 (play/rec) (default)
    vol       = 1.00:1.00     pbk
    pcm       = 1.00:1.00     pbk
    speaker   = 1.00:1.00     rec <-- ?
    mic       = 0.36:0.36     rec src
    rec       = 0.37:0.37     pbk
    ogain     = 1.00:1.00     pbk

Could it be that the speaker is set to record and not playback? If so, how would I change that?
 
Not sure what happened but it works now, I dont think I changed anything that should have impacted the audio. Although now the output is only audible above 50%. It plays loud enough at 100% but 0-50% are all mute. Is there a way to fix this? I set hw.snd.vpc_0db to 1 and it didn't help.
 
Back
Top