You are not logged in.

#1 2023-12-10 20:49:29

tyrell
Member
Registered: 2023-12-10
Posts: 3

Speaker not working in LG Gram Style 14

Hi dear Arch friends,

My internal speakers are not working, headphones work and also the in-built mic works.
I have tried everything in my power to fix this before coming here.

Following this (extremely) helpful guide, I have verified the jacks are identified and correct on linux with respect to the windows Realtek dump.
Applying the diff verbs in headphones vs no-headphones does not work.
For the hda-analyser part, I believe 0x17 node is for the speakers and yes I have unmuted this and the audio mixers that it connects to but with no luck.

The only time these speakers came to life was when I used someone else's generated verbs list for a Samsung laptop, that too with uncalibrated left-right audio and too much gain on the amplifier.
I am looking to start the AMP without using any foreign list of verbs that could potentially harm the speakers (which actually happened with one of the unfortunate people with the same list of verbs).

Some info:
1. Realtek dumps from windows for headphones and speaker configurations
2. Linux codec dumps for headphones and speaker configurations
https://files.catbox.moe/thtsi7.zip

3. kernel: 6.6.3-arch1-1
4. lspci -kvv

00:1f.3 Multimedia audio controller: Intel Corporation Raptor Lake-P/U/H cAVS (rev 01)
        Subsystem: LG Electronics, Inc. Raptor Lake-P/U/H cAVS
        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: 64
        Interrupt: pin A routed to IRQ 199
        IOMMU group: 15
        Region 0: Memory at 603d190000 (64-bit, non-prefetchable) [size=16K]
        Region 4: Memory at 603d000000 (64-bit, non-prefetchable) [size=1M]
        Capabilities: [50] Power Management version 3
                Flags: PMEClk- DSI- D1- D2- AuxCurrent=55mA PME(D0-,D1-,D2-,D3hot+,D3cold+)
                Status: D3 NoSoftRst+ PME-Enable+ DSel=0 DScale=0 PME-
        Capabilities: [80] Vendor Specific Information: Len=14 <?>
        Capabilities: [60] MSI: Enable+ Count=1/1 Maskable- 64bit+
                Address: 00000000fee00c58  Data: 0000
        Kernel driver in use: sof-audio-pci-intel-tgl
        Kernel modules: snd_hda_intel, snd_sof_pci_intel_tgl

5. aplay -lL

null
    Discard all samples (playback) or generate zero samples (capture)
lavrate
    Rate Converter Plugin Using Libav/FFmpeg Library
samplerate
    Rate Converter Plugin Using Samplerate Library
speexrate
    Rate Converter Plugin Using Speex Resampler
jack
    JACK Audio Connection Kit
oss
    Open Sound System
pipewire
    PipeWire Sound Server
pulse
    PulseAudio Sound Server
speex
    Plugin using Speex DSP (resample, agc, denoise, echo, dereverb)
upmix
    Plugin for channel upmix (4,6,8)
vdownmix
    Plugin for channel downmix (stereo) with a simple spacialization
default
    Default ALSA Output (currently PipeWire Media Server)
sysdefault:CARD=sofhdadsp
    sof-hda-dsp, 
    Default Audio Device
usbstream:CARD=sofhdadsp
    sof-hda-dsp
    USB Stream Output
**** List of PLAYBACK Hardware Devices ****
card 0: sofhdadsp [sof-hda-dsp], device 0: HDA Analog (*) []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: sofhdadsp [sof-hda-dsp], device 3: HDMI1 (*) []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: sofhdadsp [sof-hda-dsp], device 4: HDMI2 (*) []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: sofhdadsp [sof-hda-dsp], device 5: HDMI3 (*) []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: sofhdadsp [sof-hda-dsp], device 31: HDA Analog Deep Buffer (*) []
  Subdevices: 1/1
  Subdevice #0: subdevice #0

6. amixer -c0

Simple mixer control 'Master',0
  Capabilities: pvolume pvolume-joined pswitch pswitch-joined
  Playback channels: Mono
  Limits: Playback 0 - 127
  Mono: Playback 127 [100%] [0.00dB] [on]
Simple mixer control 'Headphone',0
  Capabilities: pvolume pswitch
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 127
  Mono:
  Front Left: Playback 76 [60%] [-25.50dB] [off]
  Front Right: Playback 76 [60%] [-25.50dB] [off]
Simple mixer control 'Speaker',0
  Capabilities: pvolume pswitch
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 127
  Mono:
  Front Left: Playback 99 [78%] [-14.00dB] [on]
  Front Right: Playback 99 [78%] [-14.00dB] [on]
Simple mixer control 'Mic',0
  Capabilities: pvolume pswitch
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 31
  Mono:
  Front Left: Playback 0 [0%] [-34.50dB] [off]
  Front Right: Playback 0 [0%] [-34.50dB] [off]
Simple mixer control 'Mic Boost',0
  Capabilities: volume
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: 0 - 3
  Front Left: 0 [0%] [0.00dB]
  Front Right: 0 [0%] [0.00dB]
Simple mixer control 'IEC958',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [off]
Simple mixer control 'IEC958',1
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [off]
Simple mixer control 'IEC958',2
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [off]
Simple mixer control 'Capture',0
  Capabilities: cvolume cswitch
  Capture channels: Front Left - Front Right
  Limits: Capture 0 - 127
  Front Left: Capture 76 [60%] [4.50dB] [on]
  Front Right: Capture 76 [60%] [4.50dB] [on]
Simple mixer control 'Auto-Mute Mode',0
  Capabilities: enum
  Items: 'Disabled' 'Enabled'
  Item0: 'Disabled'
Simple mixer control 'Dmic0',0
  Capabilities: cvolume cswitch
  Capture channels: Front Left - Front Right
  Limits: Capture 0 - 70
  Front Left: Capture 0 [0%] [-99999.99dB] [off]
  Front Right: Capture 0 [0%] [-99999.99dB] [off]
Simple mixer control 'Dmic1 2nd',0
  Capabilities: cvolume
  Capture channels: Front Left - Front Right
  Limits: Capture 0 - 70
  Front Left: Capture 50 [71%] [0.00dB]
  Front Right: Capture 50 [71%] [0.00dB]
Simple mixer control 'Loopback Mixing',0
  Capabilities: enum
  Items: 'Disabled' 'Enabled'
  Item0: 'Disabled'
Simple mixer control 'PGA1.0 1 Master',0
  Capabilities: pvolume
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 32
  Mono:
  Front Left: Playback 32 [100%] [0.00dB]
  Front Right: Playback 32 [100%] [0.00dB]
Simple mixer control 'PGA2.0 2 Master',0
  Capabilities: cvolume
  Capture channels: Front Left - Front Right
  Limits: Capture 0 - 80
  Front Left: Capture 50 [62%] [0.00dB]
  Front Right: Capture 50 [62%] [0.00dB]
Simple mixer control 'PGA30.0 30',0
  Capabilities: pvolume
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 32
  Mono:
  Front Left: Playback 32 [100%] [0.00dB]
  Front Right: Playback 32 [100%] [0.00dB]
Simple mixer control 'PGA31.0 31',0
  Capabilities: pvolume
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 32
  Mono:
  Front Left: Playback 32 [100%] [0.00dB]
  Front Right: Playback 32 [100%] [0.00dB]
Simple mixer control 'PGA7.0 7 Master',0
  Capabilities: pvolume
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 32
  Mono:
  Front Left: Playback 32 [100%] [0.00dB]
  Front Right: Playback 32 [100%] [0.00dB]
Simple mixer control 'PGA8.0 8 Master',0
  Capabilities: pvolume
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 32
  Mono:
  Front Left: Playback 32 [100%] [0.00dB]
  Front Right: Playback 32 [100%] [0.00dB]
Simple mixer control 'PGA9.0 9 Master',0
  Capabilities: pvolume
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 32
  Mono:
  Front Left: Playback 32 [100%] [0.00dB]
  Front Right: Playback 32 [100%] [0.00dB]

7. pactl list cards

Card #234
        Name: alsa_card.pci-0000_00_1f.3-platform-skl_hda_dsp_generic.3
        Driver: alsa
        Owner Module: n/a
        Properties:
                api.acp.auto-port = "false"
                api.acp.auto-profile = "false"
                api.alsa.card = "0"
                api.alsa.card.longname = "LGElectronics-14Z90RS_G.CH74A2-0.1-14Z90RS"
                api.alsa.card.name = "sof-hda-dsp"
                api.alsa.path = "hw:0"
                api.alsa.use-acp = "true"
                api.dbus.ReserveDevice1 = "Audio0"
                device.api = "alsa"
                device.bus = "pci"
                device.bus_path = "pci-0000:00:1f.3-platform-skl_hda_dsp_generic"
                device.description = "Raptor Lake-P/U/H cAVS"
                device.enum.api = "udev"
                device.icon_name = "audio-card-analog-pci"
                device.name = "alsa_card.pci-0000_00_1f.3-platform-skl_hda_dsp_generic.3"
                device.nick = "sof-hda-dsp"
                device.plugged.usec = "6087037"
                device.product.id = "0x51ca"
                device.product.name = "Raptor Lake-P/U/H cAVS"
                device.subsystem = "sound"
                sysfs.path = "/devices/pci0000:00/0000:00:1f.3/skl_hda_dsp_generic/sound/card0"
                device.vendor.id = "0x8086"
                device.vendor.name = "Intel Corporation"
                media.class = "Audio/Device"
                factory.id = "14"
                client.id = "34"
                object.id = "79"
                object.serial = "234"
                object.path = "alsa:pcm:0"
                alsa.card = "0"
                alsa.card_name = "sof-hda-dsp"
                alsa.long_card_name = "LGElectronics-14Z90RS_G.CH74A2-0.1-14Z90RS"
                alsa.driver_name = "snd_soc_skl_hda_dsp"
                device.string = "0"
        Profiles:
                off: Off (sinks: 0, sources: 0, priority: 0, available: yes)
                HiFi: Play HiFi quality Music (sinks: 4, sources: 2, priority: 8000, available: yes)
                pro-audio: Pro Audio (sinks: 5, sources: 3, priority: 1, available: yes)
        Active Profile: HiFi
        Ports:
                [Out] HDMI3: HDMI / DisplayPort 3 Output (type: HDMI, priority: 700, latency offset: 0 usec, availability group: HDMI/DP,pcm=5, not available)
                        Properties:
                                port.type = "hdmi"
                                port.availability-group = "HDMI/DP,pcm=5"
                                device.icon_name = "video-display"
                                card.profile.port = "0"
                        Part of profile(s): HiFi
                [Out] HDMI2: HDMI / DisplayPort 2 Output (type: HDMI, priority: 600, latency offset: 0 usec, availability group: HDMI/DP,pcm=4, not available)
                        Properties:
                                port.type = "hdmi"
                                port.availability-group = "HDMI/DP,pcm=4"
                                device.icon_name = "video-display"
                                card.profile.port = "1"
                        Part of profile(s): HiFi
                [Out] HDMI1: HDMI / DisplayPort 1 Output (type: HDMI, priority: 500, latency offset: 0 usec, availability group: HDMI/DP,pcm=3, not available)
                        Properties:
                                port.type = "hdmi"
                                port.availability-group = "HDMI/DP,pcm=3"
                                device.icon_name = "video-display"
                                card.profile.port = "2"
                        Part of profile(s): HiFi
                [Out] Speaker: Speaker (type: Speaker, priority: 100, latency offset: 0 usec, availability unknown)
                        Properties:
                                port.type = "speaker"
                                device.icon_name = "audio-speakers"
                                card.profile.port = "3"
                        Part of profile(s): HiFi
                [Out] Headphones: Headphones (type: Headphones, priority: 200, latency offset: 0 usec, availability group: Headphone, not available)
                        Properties:
                                port.type = "headphones"
                                port.availability-group = "Headphone"
                                device.icon_name = "audio-headphones"
                                card.profile.port = "4"
                        Part of profile(s): HiFi
                [In] Mic2: Headphones Stereo Microphone (type: Mic, priority: 200, latency offset: 0 usec, availability group: Mic, not available)
                        Properties:
                                port.type = "mic"
                                port.availability-group = "Mic"
                                device.icon_name = "audio-input-microphone"
                                card.profile.port = "5"
                        Part of profile(s): HiFi
                [In] Mic1: Digital Microphone (type: Mic, priority: 100, latency offset: 0 usec, availability unknown)
                        Properties:
                                port.type = "mic"
                                device.icon_name = "audio-input-microphone"
                                card.profile.port = "6"
                        Part of profile(s): HiFi

8. pactl list sinks

Sink #243
        State: SUSPENDED
        Name: alsa_output.pci-0000_00_1f.3-platform-skl_hda_dsp_generic.3.HiFi__hw_sofhdadsp_5__sink
        Description: Raptor Lake-P/U/H cAVS HDMI / DisplayPort 3 Output
        Driver: PipeWire
        Sample Specification: s24-32le 2ch 48000Hz
        Channel Map: front-left,front-right
        Owner Module: 4294967295
        Mute: no
        Volume: front-left: 65536 / 100% / 0.00 dB,   front-right: 65536 / 100% / 0.00 dB
                balance 0.00
        Base Volume: 65536 / 100% / 0.00 dB
        Monitor Source: alsa_output.pci-0000_00_1f.3-platform-skl_hda_dsp_generic.3.HiFi__hw_sofhdadsp_5__sink.monitor
        Latency: 0 usec, configured 0 usec
        Flags: HARDWARE DECIBEL_VOLUME LATENCY 
        Properties:
                alsa.card = "0"
                alsa.card_name = "sof-hda-dsp"
                alsa.class = "generic"
                alsa.device = "5"
                alsa.driver_name = "snd_soc_skl_hda_dsp"
                alsa.id = "HDMI3 (*)"
                alsa.long_card_name = "LGElectronics-14Z90RS_G.CH74A2-0.1-14Z90RS"
                alsa.mixer_device = "_ucm0003.hw:sofhdadsp"
                alsa.name = ""
                alsa.resolution_bits = "16"
                alsa.subclass = "generic-mix"
                alsa.subdevice = "0"
                alsa.subdevice_name = "subdevice #0"
                api.alsa.card.longname = "LGElectronics-14Z90RS_G.CH74A2-0.1-14Z90RS"
                api.alsa.card.name = "sof-hda-dsp"
                api.alsa.open.ucm = "true"
                api.alsa.path = "hw:sofhdadsp,5"
                api.alsa.pcm.card = "0"
                api.alsa.pcm.stream = "playback"
                audio.channels = "2"
                audio.position = "FL,FR"
                card.profile.device = "0"
                device.api = "alsa"
                device.class = "sound"
                device.id = "79"
                device.profile.description = "HDMI / DisplayPort 3 Output"
                device.profile.name = "HiFi: hw:sofhdadsp,5: sink"
                device.routes = "1"
                factory.name = "api.alsa.pcm.sink"
                media.class = "Audio/Sink"
                device.description = "Raptor Lake-P/U/H cAVS"
                node.name = "alsa_output.pci-0000_00_1f.3-platform-skl_hda_dsp_generic.3.HiFi__hw_sofhdadsp_5__sink"
                node.nick = "HDMI / DisplayPort 3 Output"
                node.pause-on-idle = "false"
                object.path = "alsa:pcm:0:hw:sofhdadsp,5:playback"
                priority.driver = "664"
                priority.session = "664"
                factory.id = "18"
                clock.quantum-limit = "8192"
                client.id = "34"
                node.driver = "true"
                factory.mode = "merge"
                audio.adapt.follower = ""
                library.name = "audioconvert/libspa-audioconvert"
                object.id = "73"
                object.serial = "243"
                api.acp.auto-port = "false"
                api.acp.auto-profile = "false"
                api.alsa.card = "0"
                api.alsa.use-acp = "true"
                api.dbus.ReserveDevice1 = "Audio0"
                device.bus = "pci"
                device.bus_path = "pci-0000:00:1f.3-platform-skl_hda_dsp_generic"
                device.enum.api = "udev"
                device.icon_name = "audio-card-analog-pci"
                device.name = "alsa_card.pci-0000_00_1f.3-platform-skl_hda_dsp_generic.3"
                device.nick = "sof-hda-dsp"
                device.plugged.usec = "6087037"
                device.product.id = "0x51ca"
                device.product.name = "Raptor Lake-P/U/H cAVS"
                device.subsystem = "sound"
                sysfs.path = "/devices/pci0000:00/0000:00:1f.3/skl_hda_dsp_generic/sound/card0"
                device.vendor.id = "0x8086"
                device.vendor.name = "Intel Corporation"
                device.string = "0"
        Ports:
                [Out] HDMI3: HDMI / DisplayPort 3 Output (type: HDMI, priority: 700, availability group: HDMI/DP,pcm=5, not available)
        Active Port: [Out] HDMI3
        Formats:
                pcm

Sink #244
        State: SUSPENDED
        Name: alsa_output.pci-0000_00_1f.3-platform-skl_hda_dsp_generic.3.HiFi__hw_sofhdadsp_4__sink
        Description: Raptor Lake-P/U/H cAVS HDMI / DisplayPort 2 Output
        Driver: PipeWire
        Sample Specification: s24-32le 2ch 48000Hz
        Channel Map: front-left,front-right
        Owner Module: 4294967295
        Mute: no
        Volume: front-left: 65536 / 100% / 0.00 dB,   front-right: 65536 / 100% / 0.00 dB
                balance 0.00
        Base Volume: 65536 / 100% / 0.00 dB
        Monitor Source: alsa_output.pci-0000_00_1f.3-platform-skl_hda_dsp_generic.3.HiFi__hw_sofhdadsp_4__sink.monitor
        Latency: 0 usec, configured 0 usec
        Flags: HARDWARE DECIBEL_VOLUME LATENCY 
        Properties:
                alsa.card = "0"
                alsa.card_name = "sof-hda-dsp"
                alsa.class = "generic"
                alsa.device = "4"
                alsa.driver_name = "snd_soc_skl_hda_dsp"
                alsa.id = "HDMI2 (*)"
                alsa.long_card_name = "LGElectronics-14Z90RS_G.CH74A2-0.1-14Z90RS"
                alsa.mixer_device = "_ucm0003.hw:sofhdadsp"
                alsa.name = ""
                alsa.resolution_bits = "16"
                alsa.subclass = "generic-mix"
                alsa.subdevice = "0"
                alsa.subdevice_name = "subdevice #0"
                api.alsa.card.longname = "LGElectronics-14Z90RS_G.CH74A2-0.1-14Z90RS"
                api.alsa.card.name = "sof-hda-dsp"
                api.alsa.open.ucm = "true"
                api.alsa.path = "hw:sofhdadsp,4"
                api.alsa.pcm.card = "0"
                api.alsa.pcm.stream = "playback"
                audio.channels = "2"
                audio.position = "FL,FR"
                card.profile.device = "1"
                device.api = "alsa"
                device.class = "sound"
                device.id = "79"
                device.profile.description = "HDMI / DisplayPort 2 Output"
                device.profile.name = "HiFi: hw:sofhdadsp,4: sink"
                device.routes = "1"
                factory.name = "api.alsa.pcm.sink"
                media.class = "Audio/Sink"
                device.description = "Raptor Lake-P/U/H cAVS"
                node.name = "alsa_output.pci-0000_00_1f.3-platform-skl_hda_dsp_generic.3.HiFi__hw_sofhdadsp_4__sink"
                node.nick = "HDMI / DisplayPort 2 Output"
                node.pause-on-idle = "false"
                object.path = "alsa:pcm:0:hw:sofhdadsp,4:playback"
                priority.driver = "680"
                priority.session = "680"
                factory.id = "18"
                clock.quantum-limit = "8192"
                client.id = "34"
                node.driver = "true"
                factory.mode = "merge"
                audio.adapt.follower = ""
                library.name = "audioconvert/libspa-audioconvert"
                object.id = "62"
                object.serial = "244"
                api.acp.auto-port = "false"
                api.acp.auto-profile = "false"
                api.alsa.card = "0"
                api.alsa.use-acp = "true"
                api.dbus.ReserveDevice1 = "Audio0"
                device.bus = "pci"
                device.bus_path = "pci-0000:00:1f.3-platform-skl_hda_dsp_generic"
                device.enum.api = "udev"
                device.icon_name = "audio-card-analog-pci"
                device.name = "alsa_card.pci-0000_00_1f.3-platform-skl_hda_dsp_generic.3"
                device.nick = "sof-hda-dsp"
                device.plugged.usec = "6087037"
                device.product.id = "0x51ca"
                device.product.name = "Raptor Lake-P/U/H cAVS"
                device.subsystem = "sound"
                sysfs.path = "/devices/pci0000:00/0000:00:1f.3/skl_hda_dsp_generic/sound/card0"
                device.vendor.id = "0x8086"
                device.vendor.name = "Intel Corporation"
                device.string = "0"
        Ports:
                [Out] HDMI2: HDMI / DisplayPort 2 Output (type: HDMI, priority: 600, availability group: HDMI/DP,pcm=4, not available)
        Active Port: [Out] HDMI2
        Formats:
                pcm

Sink #245
        State: SUSPENDED
        Name: alsa_output.pci-0000_00_1f.3-platform-skl_hda_dsp_generic.3.HiFi__hw_sofhdadsp_3__sink
        Description: Raptor Lake-P/U/H cAVS HDMI / DisplayPort 1 Output
        Driver: PipeWire
        Sample Specification: s24-32le 2ch 48000Hz
        Channel Map: front-left,front-right
        Owner Module: 4294967295
        Mute: no
        Volume: front-left: 65536 / 100% / 0.00 dB,   front-right: 65536 / 100% / 0.00 dB
                balance 0.00
        Base Volume: 65536 / 100% / 0.00 dB
        Monitor Source: alsa_output.pci-0000_00_1f.3-platform-skl_hda_dsp_generic.3.HiFi__hw_sofhdadsp_3__sink.monitor
        Latency: 0 usec, configured 0 usec
        Flags: HARDWARE DECIBEL_VOLUME LATENCY 
        Properties:
                alsa.card = "0"
                alsa.card_name = "sof-hda-dsp"
                alsa.class = "generic"
                alsa.device = "3"
                alsa.driver_name = "snd_soc_skl_hda_dsp"
                alsa.id = "HDMI1 (*)"
                alsa.long_card_name = "LGElectronics-14Z90RS_G.CH74A2-0.1-14Z90RS"
                alsa.mixer_device = "_ucm0003.hw:sofhdadsp"
                alsa.name = ""
                alsa.resolution_bits = "16"
                alsa.subclass = "generic-mix"
                alsa.subdevice = "0"
                alsa.subdevice_name = "subdevice #0"
                api.alsa.card.longname = "LGElectronics-14Z90RS_G.CH74A2-0.1-14Z90RS"
                api.alsa.card.name = "sof-hda-dsp"
                api.alsa.open.ucm = "true"
                api.alsa.path = "hw:sofhdadsp,3"
                api.alsa.pcm.card = "0"
                api.alsa.pcm.stream = "playback"
                audio.channels = "2"
                audio.position = "FL,FR"
                card.profile.device = "2"
                device.api = "alsa"
                device.class = "sound"
                device.id = "79"
                device.profile.description = "HDMI / DisplayPort 1 Output"
                device.profile.name = "HiFi: hw:sofhdadsp,3: sink"
                device.routes = "1"
                factory.name = "api.alsa.pcm.sink"
                media.class = "Audio/Sink"
                device.description = "Raptor Lake-P/U/H cAVS"
                node.name = "alsa_output.pci-0000_00_1f.3-platform-skl_hda_dsp_generic.3.HiFi__hw_sofhdadsp_3__sink"
                node.nick = "HDMI / DisplayPort 1 Output"
                node.pause-on-idle = "false"
                object.path = "alsa:pcm:0:hw:sofhdadsp,3:playback"
                priority.driver = "696"
                priority.session = "696"
                factory.id = "18"
                clock.quantum-limit = "8192"
                client.id = "34"
                node.driver = "true"
                factory.mode = "merge"
                audio.adapt.follower = ""
                library.name = "audioconvert/libspa-audioconvert"
                object.id = "72"
                object.serial = "245"
                api.acp.auto-port = "false"
                api.acp.auto-profile = "false"
                api.alsa.card = "0"
                api.alsa.use-acp = "true"
                api.dbus.ReserveDevice1 = "Audio0"
                device.bus = "pci"
                device.bus_path = "pci-0000:00:1f.3-platform-skl_hda_dsp_generic"
                device.enum.api = "udev"
                device.icon_name = "audio-card-analog-pci"
                device.name = "alsa_card.pci-0000_00_1f.3-platform-skl_hda_dsp_generic.3"
                device.nick = "sof-hda-dsp"
                device.plugged.usec = "6087037"
                device.product.id = "0x51ca"
                device.product.name = "Raptor Lake-P/U/H cAVS"
                device.subsystem = "sound"
                sysfs.path = "/devices/pci0000:00/0000:00:1f.3/skl_hda_dsp_generic/sound/card0"
                device.vendor.id = "0x8086"
                device.vendor.name = "Intel Corporation"
                device.string = "0"
        Ports:
                [Out] HDMI1: HDMI / DisplayPort 1 Output (type: HDMI, priority: 500, availability group: HDMI/DP,pcm=3, not available)
        Active Port: [Out] HDMI1
        Formats:
                pcm

Sink #246
        State: SUSPENDED
        Name: alsa_output.pci-0000_00_1f.3-platform-skl_hda_dsp_generic.3.HiFi__hw_sofhdadsp__sink
        Description: Raptor Lake-P/U/H cAVS Speaker + Headphones
        Driver: PipeWire
        Sample Specification: s32le 2ch 48000Hz
        Channel Map: front-left,front-right
        Owner Module: 4294967295
        Mute: no
        Volume: front-left: 38011 /  58% / -14.19 dB,   front-right: 38011 /  58% / -14.19 dB
                balance 0.00
        Base Volume: 65536 / 100% / 0.00 dB
        Monitor Source: alsa_output.pci-0000_00_1f.3-platform-skl_hda_dsp_generic.3.HiFi__hw_sofhdadsp__sink.monitor
        Latency: 0 usec, configured 0 usec
        Flags: HARDWARE HW_MUTE_CTRL HW_VOLUME_CTRL DECIBEL_VOLUME LATENCY 
        Properties:
                alsa.card = "0"
                alsa.card_name = "sof-hda-dsp"
                alsa.class = "generic"
                alsa.device = "0"
                alsa.driver_name = "snd_soc_skl_hda_dsp"
                alsa.id = "HDA Analog (*)"
                alsa.long_card_name = "LGElectronics-14Z90RS_G.CH74A2-0.1-14Z90RS"
                alsa.mixer_device = "_ucm0003.hw:sofhdadsp"
                alsa.name = ""
                alsa.resolution_bits = "16"
                alsa.subclass = "generic-mix"
                alsa.subdevice = "0"
                alsa.subdevice_name = "subdevice #0"
                api.alsa.card.longname = "LGElectronics-14Z90RS_G.CH74A2-0.1-14Z90RS"
                api.alsa.card.name = "sof-hda-dsp"
                api.alsa.open.ucm = "true"
                api.alsa.path = "hw:sofhdadsp"
                api.alsa.pcm.card = "0"
                api.alsa.pcm.stream = "playback"
                audio.channels = "2"
                audio.position = "FL,FR"
                card.profile.device = "3"
                device.api = "alsa"
                device.class = "sound"
                device.id = "79"
                device.profile.description = "Speaker + Headphones"
                device.profile.name = "HiFi: hw:sofhdadsp: sink"
                device.routes = "2"
                factory.name = "api.alsa.pcm.sink"
                media.class = "Audio/Sink"
                device.description = "Raptor Lake-P/U/H cAVS"
                node.name = "alsa_output.pci-0000_00_1f.3-platform-skl_hda_dsp_generic.3.HiFi__hw_sofhdadsp__sink"
                node.nick = "Speaker + Headphones"
                node.pause-on-idle = "false"
                object.path = "alsa:pcm:0:hw:sofhdadsp:playback"
                priority.driver = "1000"
                priority.session = "1000"
                factory.id = "18"
                clock.quantum-limit = "8192"
                client.id = "34"
                node.driver = "true"
                factory.mode = "merge"
                audio.adapt.follower = ""
                library.name = "audioconvert/libspa-audioconvert"
                object.id = "70"
                object.serial = "246"
                api.acp.auto-port = "false"
                api.acp.auto-profile = "false"
                api.alsa.card = "0"
                api.alsa.use-acp = "true"
                api.dbus.ReserveDevice1 = "Audio0"
                device.bus = "pci"
                device.bus_path = "pci-0000:00:1f.3-platform-skl_hda_dsp_generic"
                device.enum.api = "udev"
                device.icon_name = "audio-card-analog-pci"
                device.name = "alsa_card.pci-0000_00_1f.3-platform-skl_hda_dsp_generic.3"
                device.nick = "sof-hda-dsp"
                device.plugged.usec = "6087037"
                device.product.id = "0x51ca"
                device.product.name = "Raptor Lake-P/U/H cAVS"
                device.subsystem = "sound"
                sysfs.path = "/devices/pci0000:00/0000:00:1f.3/skl_hda_dsp_generic/sound/card0"
                device.vendor.id = "0x8086"
                device.vendor.name = "Intel Corporation"
                device.string = "0"
        Ports:
                [Out] Speaker: Speaker (type: Speaker, priority: 100, availability unknown)
                [Out] Headphones: Headphones (type: Headphones, priority: 200, availability group: Headphone, not available)
        Active Port: [Out] Speaker
        Formats:
                pcm

Thanks in advance.

Last edited by tyrell (2023-12-10 20:51:05)

Offline

#2 2023-12-24 14:15:49

sb23
Member
Registered: 2023-12-24
Posts: 2

Re: Speaker not working in LG Gram Style 14

Hello,

I also have an LG gram style 14" from 2023 and until recently had the same problem.
I run linux 6.6.8-arch1 and sof-firmware 2023.12-1.

You need to install the package alsa-tools to get the program hda-verb and then download and execute this script:

https://github.com/joshuagrisham/galaxy-book2-pro-linux/raw/main/sound/necessary-verbs.sh

If you start an audio file before script execution, you should hear the speakers activate when you run the script.
Afterwards the left speaker will be slightly louder. I fixed that by adjusting the left-right balance.

This fix doesn't persist across shutdowns, so I created a systemd service file:

/etc/systemd/system/audio-fix-alc298.service
Description=Run internal speaker fix script at startup
After=getty.target

[Service]
Type=simple
ExecStart=/usr/local/sbin/necessary-verbs.sh
TimeoutStartSec=0

[Install]
WantedBy=default.target

(Solution lifted from https://askubuntu.com/questions/1467911 … 3-i7-1360p)

Hope that helps!

Offline

#3 2023-12-26 01:46:49

tyrell
Member
Registered: 2023-12-10
Posts: 3

Re: Speaker not working in LG Gram Style 14

Hi @sb23,

Thank you for your reply. I have already tried that solution would not recommend you to use that (or at least at higher volumes) since it initializes the speakers differently to how LG does. The channel balance is off and the amplifier is too much over-amplified.
While hacking through to find the correct verbs for this specific LG Gram Style 14 model, I came across a method where the audio pcie device is passed through to a windows vm and collect events that the windows' audio driver does to our device, which then can be interpreted/refined to get the final verbs. Although I got a dump, I could not verify if it was correct/complete due to my lack of knowledge and lack of time for iterations. I will report back the results when that is done.
The thing I noticed here was that the audio was exactly right, perfect balance and amplification, same as on windows (yes it was done by windows but still :), therefore, I am holding on to the hope that in a few days time I would get at least something good and workable.

On a different note, how is your wifi holding up? Does it work nicely with linux or even windows? Mine broke the second time after I gave it for repair at a service center. Surprisingly the service center guys did not replace the part but just power-cycled it as they say, didn't work for me at home though. Just wanted to know how it is with others since there aren't many people who bought this laptop.

Last edited by tyrell (2023-12-26 01:47:06)

Offline

#4 2023-12-26 08:29:33

sb23
Member
Registered: 2023-12-24
Posts: 2

Re: Speaker not working in LG Gram Style 14

It would be really great if you could produce LG specific verbs :-)

Wifi works smoothly. I am using wpa-supplicant. Something didn't work quite right with iwd. I don't know about windows.
I have unreliable wifi on a different laptop though and will try to replace the card there. Maybe that's also an option for you.

Offline

Board footer

Powered by FluxBB