Zend certified PHP/Magento developer

No sound from internal speakers on laptop, but headphone jack and HDMI works

I just bought an ASUS Zenbook 14, model UX3402. It came with Windows 11 installed, and sound output works perfectly on Windows. I installed Ubuntu 22.04 on it, and everything works except for the internal speakers. It uses the Realtek ALC294 codec, and shows both Harman/Kardon and Dolby Atmos logos on the keyboard deck. I’ve tried all the suggestions, like using hdajackretask to enable and route various pins, forcing the snd_hda_intel kernel module (snd_sof_intel_hda was the default), reinstalling alsa and pulseaudio, disabling fastboot in the BIOS but nothing works. Not one peep out of the internal speakers. I also tried messing with the GPIO assignments using hda-verb, but no luck.

The funny thing is, the headphone jack and audio out from both HDMI and Thunderbolt/DisplayPort works. I can plug in headphones and hear sound without any issue. So clearly the sound hardware is supported. I think the problem may be with this particular laptop’s sound system. It uses a surround-style audio setup, with possibly 4 speakers. It may also be using a built-in amplifier that is not getting enabled. When Windows was installed, the Device Manager showed a “Cirrus Logic Awesome Speaker Amps” device under “Sound, video and game controllers”:

enter image description here

However, I didn’t see anything about this when running lspci under Ubuntu.

Here’s the output from dmesg when the sound driver loads:

[    3.628292] snd_hda_intel 0000:00:1f.3: enabling device (0000 -> 0002)
[    3.628620] snd_hda_intel 0000:00:1f.3: Applying patch firmware 'hda-jack-retask.fw'
[    4.956625] snd_hda_intel 0000:00:1f.3: bound 0000:00:02.0 (ops i915_audio_component_bind_ops [i915])
[    5.052007] snd_hda_codec_realtek hdaudioC0D0: autoconfig for ALC294: line_outs=1 (0x17/0x0/0x0/0x0/0x0) type:speaker
[    5.052013] snd_hda_codec_realtek hdaudioC0D0:    speaker_outs=0 (0x0/0x0/0x0/0x0/0x0)
[    5.052016] snd_hda_codec_realtek hdaudioC0D0:    hp_outs=1 (0x21/0x0/0x0/0x0/0x0)
[    5.052017] snd_hda_codec_realtek hdaudioC0D0:    mono: mono_out=0x0
[    5.052018] snd_hda_codec_realtek hdaudioC0D0:    inputs:
[    5.052019] snd_hda_codec_realtek hdaudioC0D0:      Headset Mic=0x19

Has anyone encountered this problem with a laptop using a built-in amplifier?