Solved ALC257: No output from internal speakers

Hi all,

Apologies for yet another ALC257 thread, but I checked the handbook, this thread, and this thread, and I still can't work out how to resolve this issue.

I am running XFCE on FreeBSD 14.2-RELEASE-p1, and although the sound works fine when I plug in external speakers, as soon as they are disconnected there is no sound from the internal ones. I dual boot the machine with Windows 11, and the internal speakers work fine with this, so this does not appear to be a hardware issue.

Here is the information that was requested on the other threads:

/dev/sndstat

Code:
Installed devices:
pcm0: <Realtek ALC257 (Analog)> (play/rec) default
pcm1: <Realtek ALC257 (Right Analog Mic)> (rec)
No devices installed from userspace.


/var/log/messages after running sysctl dev.hdac.0.pindump=1:

Code:
Jan 26 00:30:06 ideapad kernel: hdaa0: Dumping AFG pins:
Jan 26 00:30:06 ideapad kernel: hdaa0: nid   0x    as seq device       conn  jack    loc        color   misc
Jan 26 00:30:06 ideapad kernel: hdaa0: 18 90a60130 3  0  Mic           Fixed Digital Internal   Unknown 1
Jan 26 00:30:06 ideapad kernel: hdaa0:     Caps: IN
Jan 26 00:30:06 ideapad kernel: hdaa0: 19 40000000 0  0  Line-out      None  Unknown 0x00       Unknown 0 DISA
Jan 26 00:30:06 ideapad kernel: hdaa0:     Caps: IN
Jan 26 00:30:06 ideapad kernel: hdaa0: 20 90170120 2  0  Speaker       Fixed Analog  Internal   Unknown 1 DISA
Jan 26 00:30:06 ideapad kernel: hdaa0:     Caps:    OUT    EAPD      Sense: 0x00000000 (disconnected)
Jan 26 00:30:06 ideapad kernel: hdaa0: 24 411111f0 15 0  Speaker       None  1/8     Rear       Black   1 DISA
Jan 26 00:30:06 ideapad kernel: hdaa0:     Caps: IN             VREF Sense: 0x00000000 (disconnected)
Jan 26 00:30:06 ideapad kernel: hdaa0: 25 04a11040 4  0  Mic           Jack  1/8     Right      Black   0
Jan 26 00:30:06 ideapad kernel: hdaa0:     Caps: IN             VREF Sense: 0x00000000 (disconnected)
Jan 26 00:30:06 ideapad kernel: hdaa0: 26 411111f0 15 0  Speaker       None  1/8     Rear       Black   1 DISA
Jan 26 00:30:06 ideapad kernel: hdaa0:     Caps: IN             VREF Sense: 0x00000000 (disconnected)
Jan 26 00:30:06 ideapad kernel: hdaa0: 27 411111f0 15 0  Speaker       None  1/8     Rear       Black   1 DISA
Jan 26 00:30:06 ideapad kernel: hdaa0:     Caps: IN OUT    EAPD VREF Sense: 0x00000000 (disconnected)
Jan 26 00:30:06 ideapad kernel: hdaa0: 30 411111f0 15 0  Speaker       None  1/8     Rear       Black   1 DISA
Jan 26 00:30:06 ideapad kernel: hdaa0:     Caps:    OUT              Sense: 0x00000000 (disconnected)
Jan 26 00:30:06 ideapad kernel: hdaa0: 33 04211010 1  0  Headphones    Jack  1/8     Right      Black   0
Jan 26 00:30:06 ideapad kernel: hdaa0:     Caps:    OUT HP EAPD      Sense: 0x00000000 (disconnected)
Jan 26 00:30:06 ideapad kernel: hdaa0: NumGPIO=3 NumGPO=0 NumGPI=0 GPIWake=0 GPIUnsol=1
Jan 26 00:30:06 ideapad kernel: hdaa0:  GPIO0: disabled
Jan 26 00:30:06 ideapad kernel: hdaa0:  GPIO1: disabled
Jan 26 00:30:06 ideapad kernel: hdaa0:  GPIO2: disabled


mixer

Code:
pcm0:mixer: <Realtek ALC257 (Analog)> on hdaa0 (play/rec) (default)
    vol       = 1.00:1.00     pbk
    pcm       = 1.00:1.00     pbk
    speaker   = 1.00:1.00     pbk
    rec       = 0.37:0.37     pbk
    ogain     = 1.00:1.00     pbk
    monitor   = 0.67:0.67     rec src


Console output after booting verbose, and then plugging in the external speakers:

Code:
hdaa0: Pin sense: nid=33 sense=0x80000000 (connected)
pcm0: Playback channel set is: Front Left, Front Right,
pcm0: Playback channel matrix is: 2.0 (connected)

And after unplugging the speakers:

Code:
hdaa0: Pin sense: nid=33 sense=0x00000000 (disconnected)
pcm0: Playback channel set is: Front Left, Front Right,
pcm0: Playback channel matrix is: 2.0 (disconnected)


As always, any help would be greatly appreciated.
 
Which audio source are you using? Different media player have the option to select the audio device. Perhaps try those.

In addition, what does dmesg | grep pcm show? I'm interested in the nid settings.

Example from a ThinkPad E15:
Rich (BB code):
pcm3: <Realtek ALC257 (Analog 2.0+HP/2.0)> at nid 20,33 and 18 on hdaa1
pcm4: <Realtek ALC257 (Right Analog Mic)> at nid 25 on hdaa1
 
T-Daemon thank you for your reply. The output is being set in XFCE's PulseAudio Plugin where the only two options are:

Code:
0 - Realtek AC257 (Analog)
1 - Realtek AC257 (Right Analog Mic)

The first one is selected (with the second one, I don't even get sound from external speakers, which makes sense if it is actually a mic!)

I was testing it with YouTube in Firefox, but it's the same in VLC.

Here is the output of dmesg | grep pcm:

Code:
pcm0: <Realtek ALC257 (Analog)> at nid 33 and 18 on hdaa0
pcm1: <Realtek ALC257 (Right Analog Mic)> at nid 25 on hdaa0
 
T-Daemon thanks very much - that worked a treat!

I think I see what you did - from /var/log/messages after the pin dump, 20 shows as the internal analogue speaker, and 33 shows as headphones. As we know that 33 is already working with external speakers, that doesn’t need to be changed, but from the description in /var/log/messages, 20 must be the missing pin required to make the internal speakers work.
 
Back
Top