codepayne / linux-sound-huawei

linux kernel for Huawei matebook AMD sound support
Other
87 stars 3 forks source link

HUAWEI MateBook D 16 (AMD 2021) HVY-WXX9 M1040 sound is not working #7

Closed IStranger closed 1 year ago

IStranger commented 1 year ago

Hi! Thanks for your patches. However I cannot get this to work on Ubuntu 22.04.1. I compiled the kernel, loaded the necessary modules, configured alsamixer (as you described in the wiki), but the sound still doesn't work. Do you have any ideas what else I can try to do?

As I see, all the necessary modules are loaded, but the blacklisted modules are not. But it shows Used by = 0 for snd_pci_acp3x? Is it correct?

$ lsmod ``` Module Size Used by uhid 20480 1 rfcomm 86016 4 ccm 20480 6 cmac 16384 3 algif_hash 16384 1 algif_skcipher 16384 1 af_alg 32768 6 algif_hash,algif_skcipher bnep 28672 2 sch_fq_codel 24576 1 intel_rapl_msr 20480 0 intel_rapl_common 40960 1 intel_rapl_msr joydev 32768 0 amdgpu 12709888 17 binfmt_misc 24576 1 edac_mce_amd 36864 0 kvm_amd 172032 0 iwlmvm 606208 0 btusb 61440 0 iommu_v2 24576 1 amdgpu kvm 1130496 1 kvm_amd btrtl 24576 1 btusb mac80211 1372160 1 iwlmvm uvcvideo 118784 0 gpu_sched 49152 1 amdgpu crct10dif_pclmul 16384 1 btbcm 24576 1 btusb snd_sof_amd_rembrandt 16384 0 btintel 40960 1 btusb drm_buddy 20480 1 amdgpu nls_iso8859_1 16384 1 videobuf2_vmalloc 20480 1 uvcvideo polyval_clmulni 16384 0 snd_sof_amd_renoir 16384 0 btmtk 16384 1 btusb drm_ttm_helper 16384 1 amdgpu videobuf2_memops 20480 1 videobuf2_vmalloc ttm 94208 2 amdgpu,drm_ttm_helper snd_sof_amd_acp 49152 2 snd_sof_amd_rembrandt,snd_sof_amd_renoir polyval_generic 16384 1 polyval_clmulni videobuf2_v4l2 32768 1 uvcvideo libarc4 16384 1 mac80211 ghash_clmulni_intel 16384 0 snd_sof_pci 24576 2 snd_sof_amd_rembrandt,snd_sof_amd_renoir videobuf2_common 81920 4 videobuf2_vmalloc,videobuf2_v4l2,uvcvideo,videobuf2_memops sha512_ssse3 53248 0 snd_hda_codec_hdmi 81920 1 drm_display_helper 188416 1 amdgpu iwlwifi 491520 1 iwlmvm aesni_intel 389120 8 snd_sof 262144 2 snd_sof_amd_acp,snd_sof_pci bluetooth 856064 36 btrtl,btmtk,btintel,btbcm,bnep,btusb,rfcomm input_leds 16384 0 snd_hda_intel 53248 1 crypto_simd 16384 1 aesni_intel snd_sof_utils 20480 1 snd_sof videodev 282624 3 videobuf2_v4l2,uvcvideo,videobuf2_common cec 81920 1 drm_display_helper cryptd 24576 3 crypto_simd,ghash_clmulni_intel snd_intel_dspcfg 36864 2 snd_hda_intel,snd_sof huawei_wmi 20480 0 rc_core 65536 1 cec ledtrig_audio 16384 1 huawei_wmi ecdh_generic 16384 2 bluetooth snd_intel_sdw_acpi 20480 1 snd_intel_dspcfg rapl 20480 0 mc 77824 4 videodev,videobuf2_v4l2,uvcvideo,videobuf2_common hid_multitouch 32768 0 ecc 40960 1 ecdh_generic drm_kms_helper 204800 4 drm_display_helper,amdgpu serio_raw 20480 0 sparse_keymap 16384 1 huawei_wmi snd_pci_ps 20480 0 wmi_bmof 16384 0 cfg80211 1073152 3 iwlmvm,iwlwifi,mac80211 i2c_algo_bit 16384 1 amdgpu snd_rpl_pci_acp6x 20480 0 snd_hda_codec 172032 2 snd_hda_codec_hdmi,snd_hda_intel snd_acp_pci 16384 0 fb_sys_fops 16384 1 drm_kms_helper snd_acp_config 16384 3 snd_sof_amd_rembrandt,snd_acp_pci,snd_sof_amd_renoir snd_soc_acpi 16384 2 snd_sof_amd_acp,snd_acp_config syscopyarea 16384 1 drm_kms_helper snd_hda_core 114688 3 snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec k10temp 16384 0 sysfillrect 20480 1 drm_kms_helper ccp 110592 1 kvm_amd sysimgblt 16384 1 drm_kms_helper snd_hwdep 20480 1 snd_hda_codec snd_pci_acp6x 20480 0 snd_soc_acp3x_es8336_mach 20480 4 mac_hid 16384 0 snd_pci_acp3x 20480 0 snd_acp3x_i2s 16384 1 snd_acp3x_pcm_dma 16384 1 snd_soc_es8316 49152 1 snd_soc_es83xx_dsm_common 24576 1 snd_soc_es8316 snd_soc_core 364544 5 snd_acp3x_pcm_dma,snd_acp3x_i2s,snd_sof,snd_soc_es8316,snd_soc_acp3x_es8336_mach snd_compress 24576 1 snd_soc_core ac97_bus 16384 1 snd_soc_core snd_pcm_dmaengine 20480 1 snd_soc_core snd_pcm 155648 16 snd_acp3x_pcm_dma,snd_sof_amd_acp,snd_hda_codec_hdmi,snd_pci_acp6x,snd_hda_intel,snd_hda_codec,snd_sof,snd_compress,snd_soc_core,snd_sof_utils,snd_soc_es8316,snd_hda_core,snd_pci_ps,snd_soc_acp3x_es8336_mach,snd_pcm_dmaengine snd_seq_midi 20480 0 snd_seq_midi_event 16384 1 snd_seq_midi snd_rawmidi 45056 1 snd_seq_midi snd_seq 77824 2 snd_seq_midi,snd_seq_midi_event snd_seq_device 16384 3 snd_seq,snd_seq_midi,snd_rawmidi snd_timer 40960 3 snd_seq,snd_pcm snd 114688 21 snd_seq,snd_seq_device,snd_hda_codec_hdmi,snd_hwdep,snd_hda_intel,snd_hda_codec,snd_sof,snd_timer,snd_compress,snd_soc_core,snd_pcm,snd_rawmidi,snd_soc_acp3x_es8336_mach soundcore 16384 1 snd msr 16384 0 parport_pc 53248 0 ppdev 24576 0 lp 28672 0 parport 73728 3 parport_pc,lp,ppdev ramoops 28672 0 reed_solomon 28672 1 ramoops pstore_blk 16384 0 drm 581632 15 gpu_sched,drm_kms_helper,drm_display_helper,drm_buddy,amdgpu,drm_ttm_helper,ttm pstore_zone 32768 1 pstore_blk efi_pstore 16384 0 ip_tables 32768 0 x_tables 57344 1 ip_tables autofs4 45056 2 nvme 49152 2 hid_generic 16384 0 nvme_core 172032 3 nvme crc32_pclmul 16384 0 xhci_pci 24576 0 i2c_piix4 28672 0 xhci_pci_renesas 20480 1 xhci_pci nvme_common 24576 1 nvme_core video 65536 1 amdgpu i2c_hid_acpi 16384 0 i2c_hid 32768 1 i2c_hid_acpi wmi 32768 3 video,huawei_wmi,wmi_bmof hid 159744 4 i2c_hid,hid_multitouch,hid_generic,uhid ```
$ make oldconfig ``` HOSTCC scripts/kconfig/conf.o HOSTCC scripts/kconfig/confdata.o HOSTCC scripts/kconfig/expr.o LEX scripts/kconfig/lexer.lex.c YACC scripts/kconfig/parser.tab.[ch] HOSTCC scripts/kconfig/lexer.lex.o HOSTCC scripts/kconfig/menu.o HOSTCC scripts/kconfig/parser.tab.o HOSTCC scripts/kconfig/preprocess.o HOSTCC scripts/kconfig/symbol.o HOSTCC scripts/kconfig/util.o HOSTLD scripts/kconfig/conf * * Restart config... * * * ALSA for SoC audio support * ALSA for SoC audio support (SND_SOC) [M/n/?] m Audio support for Analog Devices reference designs (SND_SOC_ADI) [M/n/?] m AXI-I2S support (SND_SOC_ADI_AXI_I2S) [M/n/?] m AXI-SPDIF support (SND_SOC_ADI_AXI_SPDIF) [M/n/?] m AMD Audio Coprocessor support (SND_SOC_AMD_ACP) [M/n/?] m AMD CZ support for DA7219, RT5682 and MAX9835 (SND_SOC_AMD_CZ_DA7219MX98357_MACH) [M/n/?] m AMD CZ support for RT5645 (SND_SOC_AMD_CZ_RT5645_MACH) [M/n/?] m AMD ST support for ES8336 (SND_SOC_AMD_ST_ES8336_MACH) [M/n/?] m AMD Audio Coprocessor-v3.x support (SND_SOC_AMD_ACP3x) [M/n/?] m AMD RV support for RT5682 (SND_SOC_AMD_RV_RT5682_MACH) [M/n/?] m AMD ACP3x support for ES8336 (SND_SOC_AMD_ACP3x_ES8336_MACH) [N/m/?] (NEW) m AMD Audio Coprocessor - Renoir support (SND_SOC_AMD_RENOIR) [M/n/?] m AMD Renoir support for DMIC (SND_SOC_AMD_RENOIR_MACH) [M/n/?] m AMD Audio Coprocessor-v5.x I2S support (SND_SOC_AMD_ACP5x) [M/n/?] m AMD Vangogh support for NAU8821 CS35L41 (SND_SOC_AMD_VANGOGH_MACH) [M/n/?] m AMD Audio Coprocessor-v6.x Yellow Carp support (SND_SOC_AMD_ACP6x) [M/n/?] m AMD YC support for DMIC (SND_SOC_AMD_YC_MACH) [M/n/?] m AMD ACP configuration selection (SND_AMD_ACP_CONFIG) [M/?] m AMD Audio ACP Common support (SND_SOC_AMD_ACP_COMMON) [M/n/?] m AMD ACP PCI Driver Support (SND_SOC_AMD_ACP_PCI) [M/n/?] m AMD ACP ASOC Renoir Support (SND_AMD_ASOC_RENOIR) [M/n/?] m AMD ACP ASOC Rembrandt Support (SND_AMD_ASOC_REMBRANDT) [M/n/?] m AMD Legacy Machine Driver Support (SND_SOC_AMD_LEGACY_MACH) [M/n/?] m AMD SOF Machine Driver Support (SND_SOC_AMD_SOF_MACH) [M/n/?] m AMD Audio Coprocessor-v6.2 RPL support (SND_SOC_AMD_RPL_ACP6x) [M/n/?] m AMD Audio Coprocessor-v6.2 Pink Sardine support (SND_SOC_AMD_PS) [M/n/?] m AMD PINK SARDINE support for DMIC (SND_SOC_AMD_PS_MACH) [M/n/?] m SoC Audio for the Atmel System-on-Chip (SND_ATMEL_SOC) [M/n/?] m SoC Audio support for the Broadcom BCM63XX I2S module (SND_BCM63XX_I2S_WHISTLER) [M/n/?] m Synopsys I2S Device Driver (SND_DESIGNWARE_I2S) [M/n/?] m PCM PIO extension for I2S driver (SND_DESIGNWARE_PCM) [Y/n/?] y Hisilicon I2S controller (SND_I2S_HI6210_I2S) [M/n/?] m Audio support for Imagination Technologies designs (SND_SOC_IMG) [Y/n/?] y Imagination I2S Input Device Driver (SND_SOC_IMG_I2S_IN) [M/n/?] m Imagination I2S Output Device Driver (SND_SOC_IMG_I2S_OUT) [M/n/?] m Imagination Parallel Output Device Driver (SND_SOC_IMG_PARALLEL_OUT) [M/n/?] m Imagination SPDIF Input Device Driver (SND_SOC_IMG_SPDIF_IN) [M/n/?] m Imagination SPDIF Output Device Driver (SND_SOC_IMG_SPDIF_OUT) [M/n/?] m Support for Pistachio SoC Internal DAC Driver (SND_SOC_IMG_PISTACHIO_INTERNAL_DAC) [M/n/?] m Intel ASoC SST drivers (SND_SOC_INTEL_SST_TOPLEVEL) [Y/n/?] y Haswell and Broadwell (SND_SOC_INTEL_CATPT) [M/n/?] m PCI HiFi2 (Merrifield) Platforms (SND_SST_ATOM_HIFI2_PLATFORM_PCI) [M/n/?] m ACPI HiFi2 (Baytrail, Cherrytrail) Platforms (SND_SST_ATOM_HIFI2_PLATFORM_ACPI) [M/n/?] m All Skylake/SST Platforms (SND_SOC_INTEL_SKYLAKE) [N/m/?] n Skylake Platforms (SND_SOC_INTEL_SKL) [M/n/?] m Broxton/ApolloLake Platforms (SND_SOC_INTEL_APL) [M/n/?] m Kabylake Platforms (SND_SOC_INTEL_KBL) [M/n/?] m GeminiLake Platforms (SND_SOC_INTEL_GLK) [M/n/?] m CannonLake/WhiskyLake Platforms (SND_SOC_INTEL_CNL) [N/m/?] n CoffeeLake Platforms (SND_SOC_INTEL_CFL) [N/m/?] n CometLake-H Platforms (SND_SOC_INTEL_CML_H) [N/m/?] n CometLake-LP Platforms (SND_SOC_INTEL_CML_LP) [N/m/?] n HDAudio codec support (SND_SOC_INTEL_SKYLAKE_HDAUDIO_CODEC) [Y/n/?] y Intel AVS driver (SND_SOC_INTEL_AVS) [M/n/?] m ALSA BT SCO CVSD/MSBC Driver (SND_SOC_MTK_BTCVSD) [M/n/?] m Audio support for the Xilinx I2S (SND_SOC_XILINX_I2S) [M/n/?] m Audio support for the Xilinx audio formatter (SND_SOC_XILINX_AUDIO_FORMATTER) [M/n/?] m Audio support for the Xilinx SPDIF (SND_SOC_XILINX_SPDIF) [M/n/?] m XTFPGA I2S master (SND_SOC_XTFPGA_I2S) [M/n/?] m ASoC Simple sound card support (SND_SIMPLE_CARD) [M/n/?] m # # configuration written to .config # ```
$ cat /boot/config-6.1.3 ``` $ cat /boot/config-6.1.3 | grep SND_SOC_AMD_ACP3x CONFIG_SND_SOC_AMD_ACP3x=m CONFIG_SND_SOC_AMD_ACP3x_ES8336_MACH=m $ cat /boot/config-6.1.3 | grep SND_SOC_ACPI CONFIG_SND_SOC_ACPI=m CONFIG_SND_SOC_ACPI_INTEL_MATCH=m $ cat /boot/config-6.1.3 | grep SND_SOC_ES8316 CONFIG_SND_SOC_ES8316=m ```
$ lspci -vv ``` 00:00.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne Root Complex Subsystem: Device 1e83:3e30 Control: I/O- Mem- BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx- Status: Cap- 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- SERR- TAbort- SERR- 00:01.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir PCIe Dummy Host Bridge Control: I/O- Mem- BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx- Status: Cap- 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- SERR- TAbort- SERR- TAbort- SERR- TAbort- Reset- FastB2B- PriDiscTmr- SecDiscTmr- DiscTmrStat- DiscTmrSERREn- Capabilities: Kernel driver in use: pcieport 00:02.3 PCI bridge: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne PCIe GPP Bridge (prog-if 00 [Normal decode]) Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+ Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- SERR- TAbort- Reset- FastB2B- PriDiscTmr- SecDiscTmr- DiscTmrStat- DiscTmrSERREn- Capabilities: Kernel driver in use: pcieport 00:08.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir PCIe Dummy Host Bridge Control: I/O- Mem- BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx- Status: Cap- 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- SERR- TAbort- SERR- TAbort- Reset- FastB2B- PriDiscTmr- SecDiscTmr- DiscTmrStat- DiscTmrSERREn- Capabilities: Kernel driver in use: pcieport 00:14.0 SMBus: Advanced Micro Devices, Inc. [AMD] FCH SMBus Controller (rev 51) Subsystem: Device 1e83:3e30 Control: I/O+ Mem+ BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+ Status: Cap- 66MHz+ UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- SERR- TAbort- SERR- TAbort- SERR- TAbort- SERR- TAbort- SERR- TAbort- SERR- TAbort- SERR- TAbort- SERR- TAbort- SERR- TAbort- SERR- TAbort- SERR- Kernel driver in use: iwlwifi Kernel modules: iwlwifi 02:00.0 Non-Volatile memory controller: Samsung Electronics Co Ltd NVMe SSD Controller SM981/PM981/PM983 (prog-if 02 [NVM Express]) Subsystem: Samsung Electronics Co Ltd SSD 970 EVO Plus 1TB Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+ Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- SERR- Kernel driver in use: nvme Kernel modules: nvme 03:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Renoir (rev c7) (prog-if 00 [VGA controller]) Subsystem: Device 1e83:3e30 Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+ Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort+ SERR- Kernel driver in use: amdgpu Kernel modules: amdgpu 03:00.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] Renoir Radeon High Definition Audio Controller Subsystem: Device 1e83:3e30 Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+ Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- SERR- Kernel driver in use: snd_hda_intel Kernel modules: snd_hda_intel 03:00.2 Encryption controller: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 10h-1fh) Platform Security Processor Subsystem: Device 1e83:3e30 Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+ Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort+ SERR- Kernel driver in use: ccp Kernel modules: ccp 03:00.3 USB controller: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne USB 3.1 (prog-if 30 [XHCI]) Subsystem: Device 1e83:3e30 Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+ Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- SERR- Kernel driver in use: xhci_hcd Kernel modules: xhci_pci 03:00.4 USB controller: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne USB 3.1 (prog-if 30 [XHCI]) Subsystem: Device 1e83:3e30 Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+ Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- SERR- Kernel driver in use: xhci_hcd Kernel modules: xhci_pci 03:00.5 Multimedia controller: Advanced Micro Devices, Inc. [AMD] Raven/Raven2/FireFlight/Renoir Audio Processor (rev 01) Subsystem: Device 1e83:3e30 Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx- Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- SERR- Kernel driver in use: snd_pci_acp3x Kernel modules: snd_pci_acp3x, snd_rn_pci_acp3x, snd_pci_acp5x, snd_pci_acp6x, snd_acp_pci, snd_rpl_pci_acp6x, snd_pci_ps, snd_sof_amd_renoir, snd_sof_amd_rembrandt ```
$ dmidecode ``` Handle 0x0001, DMI type 1, 27 bytes System Information Manufacturer: HUAWEI Product Name: HVY-WXX9 Version: M1040 Serial Number: [redacted] UUID: [redacted] Wake-up Type: AC Power Restored SKU Number: C171 Family: MateBook D Handle 0x0002, DMI type 2, 17 bytes Base Board Information Manufacturer: HUAWEI Product Name: HVY-WXX9-PCB-B1 Version: M1040 Serial Number: [redacted] Asset Tag: N/A Features: Board is a hosting board Board is replaceable Location In Chassis: Not Specified Chassis Handle: 0x0003 Type: Motherboard Contained Object Handles: 0 ```
$ dmesg (partially) ``` ... [ 2.181733] snd_pci_acp3x 0000:03:00.5: enabling device (0000 -> 0002) [ 2.279718] es8316 i2c-ESSX8336:00: PLATFORM_MAINMIC_TYPE_ARG=0xbb [ 2.279795] es8316 i2c-ESSX8336:00: PLATFORM_HPMIC_TYPE_ARG=0xcc [ 2.279875] es8316 i2c-ESSX8336:00: PLATFORM_SPK_TYPE_ARG=0x2 [ 2.279960] es8316 i2c-ESSX8336:00: PLATFORM_HPDET_INV_ARG=0x0 [ 2.282641] es8316 i2c-ESSX8336:00: PLATFORM_MIC_DE_POP_ARG=0x0 [ 2.284912] es8316 i2c-ESSX8336:00: PLATFORM_BUS_SLOT_ARG=0x2 [ 2.285026] es8316 i2c-ESSX8336:00: HP_CODEC_LINEIN_PGA_GAIN_ARG=0x5 [ 2.285141] es8316 i2c-ESSX8336:00: MAIN_CODEC_LINEIN_PGA_GAIN_ARG=0x5 [ 2.285276] es8316 i2c-ESSX8336:00: HP_CODEC_D2SEPGA_GAIN_ARG=0x1 [ 2.285420] es8316 i2c-ESSX8336:00: MAIN_CODEC_D2SEPGA_GAIN_ARG=0x1 [ 2.285565] es8316 i2c-ESSX8336:00: HP_CODEC_ADC_VOLUME_ARG=0x0 [ 2.285720] es8316 i2c-ESSX8336:00: MAIN_CODEC_ADC_VOLUME_ARG=0x0 [ 2.285879] es8316 i2c-ESSX8336:00: HP_CODEC_ADC_ALC_ENABLE_ARG=0x1 [ 2.286027] es8316 i2c-ESSX8336:00: MAIN_CODEC_ADC_ALC_ENABLE_ARG=0x1 [ 2.286181] es8316 i2c-ESSX8336:00: HP_CODEC_ADC_ALC_TARGET_LEVEL_ARG=0xa [ 2.286338] es8316 i2c-ESSX8336:00: MAIN_CODEC_ADC_ALC_TARGET_LEVEL_ARG=0xa [ 2.286503] es8316 i2c-ESSX8336:00: HP_CODEC_ADC_ALC_MAXGAIN_ARG=0x12 [ 2.286683] es8316 i2c-ESSX8336:00: MAIN_CODEC_ADC_ALC_MAXGAIN_ARG=0x12 [ 2.286870] es8316 i2c-ESSX8336:00: HP_CODEC_ADC_ALC_MINGAIN_ARG=0x8 [ 2.287064] es8316 i2c-ESSX8336:00: MAIN_CODEC_ADC_ALC_MINGAIN_ARG=0x4 [ 2.287259] es8316 i2c-ESSX8336:00: HP_CODEC_ADC_ALC_HLDTIME_ARG=0x0 [ 2.287470] es8316 i2c-ESSX8336:00: MAIN_CODEC_ADC_ALC_HLDTIME_ARG=0x0 [ 2.287694] es8316 i2c-ESSX8336:00: HP_CODEC_ADC_ALC_DCYTIME_ARG=0x0 [ 2.287923] es8316 i2c-ESSX8336:00: MAIN_CODEC_ADC_ALC_DCYTIME_ARG=0x0 [ 2.288655] es8316 i2c-ESSX8336:00: HP_CODEC_ADC_ALC_ATKTIME_ARG=0x2 [ 2.288873] es8316 i2c-ESSX8336:00: MAIN_CODEC_ADC_ALC_ATKTIME_ARG=0x2 [ 2.289063] es8316 i2c-ESSX8336:00: HP_CODEC_ADC_ALC_NGTYPE_ARG=0x3 [ 2.289274] es8316 i2c-ESSX8336:00: MAIN_CODEC_ADC_ALC_NGTYPE_ARG=0x3 [ 2.289481] es8316 i2c-ESSX8336:00: HP_CODEC_ADC_ALC_NGTHLD_ARG=0x1 [ 2.289682] es8316 i2c-ESSX8336:00: MAIN_CODEC_ADC_ALC_NGTHLD_ARG=0x1 [ 2.289762] es8316 i2c-ESSX8336:00: MAIN_CODEC_ADC_GUI_STEP_ARG=0x3 [ 2.289840] es8316 i2c-ESSX8336:00: MAIN_CODEC_ADC_GUI_GAIN_RANGE_ARG=0x3 [ 2.291045] es8316 i2c-ESSX8336:00: HP_CODEC_DAC_HPMIX_HIGAIN_ARG=0x0 [ 2.291299] es8316 i2c-ESSX8336:00: SPK_CODEC_DAC_HPMIX_HIGAIN_ARG=0x0 [ 2.291575] es8316 i2c-ESSX8336:00: HP_CODEC_DAC_HPMIX_VOLUME_ARG=0xbb [ 2.291803] es8316 i2c-ESSX8336:00: SPK_CODEC_DAC_HPMIX_VOLUME_ARG=0xbb [ 2.292072] es8316 i2c-ESSX8336:00: HP_CODEC_DAC_HPOUT_VOLUME_ARG=0x0 [ 2.292362] es8316 i2c-ESSX8336:00: SPK_CODEC_DAC_HPOUT_VOLUME_ARG=0x0 [ 2.292609] es8316 i2c-ESSX8336:00: HP_CODEC_LDAC_VOLUME_ARG=0x0 [ 2.292905] es8316 i2c-ESSX8336:00: HP_CODEC_RDAC_VOLUME_ARG=0x0 [ 2.293190] es8316 i2c-ESSX8336:00: SPK_CODEC_LDAC_VOLUME_ARG=0x0 [ 2.293458] es8316 i2c-ESSX8336:00: SPK_CODEC_RDAC_VOLUME_ARG=0x0 [ 2.293732] es8316 i2c-ESSX8336:00: HP_CODEC_DAC_AUTOMUTE_ARG=0x0 [ 2.294024] es8316 i2c-ESSX8336:00: SPK_CODEC_DAC_AUTOMUTE_ARG=0x1 [ 2.294325] es8316 i2c-ESSX8336:00: HP_CODEC_DAC_MONO_ARG=0x0 [ 2.294616] es8316 i2c-ESSX8336:00: SPK_CODEC_DAC_MONO_ARG=0x0 [ 2.295502] es8316 i2c-ESSX8336:00: SPK_CTL_IO_LEVEL_ARG=0x1 [ 2.295621] es8316 i2c-ESSX8336:00: CODEC_GPIO0_FUNC_ARG=0x0 [ 2.296802] ccp 0000:03:00.2: enabling device (0000 -> 0002) [ 2.299098] es8316 i2c-ESSX8336:00: PLATFORM_MCLK_LRCK_FREQ_ARG=0x0 [ 2.299167] es8316 i2c-ESSX8336:00: PLATFORM_MAINMIC_TYPE_ARG=0xbb [ 2.299232] es8316 i2c-ESSX8336:00: PLATFORM_HPMIC_TYPE_ARG=0xcc [ 2.299301] es8316 i2c-ESSX8336:00: PLATFORM_SPK_TYPE_ARG=0x2 [ 2.299374] es8316 i2c-ESSX8336:00: PLATFORM_HPDET_INV_ARG=0x0 [ 2.300301] es8316 i2c-ESSX8336:00: PLATFORM_MIC_DE_POP_ARG=0x0 [ 2.301218] es8316 i2c-ESSX8336:00: PLATFORM_BUS_SLOT_ARG=0x2 [ 2.301316] es8316 i2c-ESSX8336:00: HP_CODEC_LINEIN_PGA_GAIN_ARG=0x5 [ 2.301415] es8316 i2c-ESSX8336:00: MAIN_CODEC_LINEIN_PGA_GAIN_ARG=0x5 [ 2.301533] es8316 i2c-ESSX8336:00: HP_CODEC_D2SEPGA_GAIN_ARG=0x1 [ 2.301660] es8316 i2c-ESSX8336:00: MAIN_CODEC_D2SEPGA_GAIN_ARG=0x1 [ 2.301792] es8316 i2c-ESSX8336:00: HP_CODEC_ADC_VOLUME_ARG=0x0 [ 2.301929] es8316 i2c-ESSX8336:00: MAIN_CODEC_ADC_VOLUME_ARG=0x0 [ 2.302035] es8316 i2c-ESSX8336:00: HP_CODEC_ADC_ALC_ENABLE_ARG=0x1 [ 2.302161] es8316 i2c-ESSX8336:00: MAIN_CODEC_ADC_ALC_ENABLE_ARG=0x1 [ 2.302307] es8316 i2c-ESSX8336:00: HP_CODEC_ADC_ALC_TARGET_LEVEL_ARG=0xa [ 2.302445] es8316 i2c-ESSX8336:00: MAIN_CODEC_ADC_ALC_TARGET_LEVEL_ARG=0xa [ 2.302583] es8316 i2c-ESSX8336:00: HP_CODEC_ADC_ALC_MAXGAIN_ARG=0x12 [ 2.302728] es8316 i2c-ESSX8336:00: MAIN_CODEC_ADC_ALC_MAXGAIN_ARG=0x12 [ 2.302876] es8316 i2c-ESSX8336:00: HP_CODEC_ADC_ALC_MINGAIN_ARG=0x8 [ 2.303028] es8316 i2c-ESSX8336:00: MAIN_CODEC_ADC_ALC_MINGAIN_ARG=0x4 [ 2.303182] es8316 i2c-ESSX8336:00: HP_CODEC_ADC_ALC_HLDTIME_ARG=0x0 [ 2.303367] es8316 i2c-ESSX8336:00: MAIN_CODEC_ADC_ALC_HLDTIME_ARG=0x0 [ 2.303536] es8316 i2c-ESSX8336:00: HP_CODEC_ADC_ALC_DCYTIME_ARG=0x0 [ 2.303693] ccp 0000:03:00.2: ccp: unable to access the device: you might be running a broken BIOS. [ 2.303701] es8316 i2c-ESSX8336:00: MAIN_CODEC_ADC_ALC_DCYTIME_ARG=0x0 [ 2.303875] es8316 i2c-ESSX8336:00: HP_CODEC_ADC_ALC_ATKTIME_ARG=0x2 [ 2.304037] es8316 i2c-ESSX8336:00: MAIN_CODEC_ADC_ALC_ATKTIME_ARG=0x2 [ 2.304263] es8316 i2c-ESSX8336:00: HP_CODEC_ADC_ALC_NGTYPE_ARG=0x3 [ 2.304439] es8316 i2c-ESSX8336:00: MAIN_CODEC_ADC_ALC_NGTYPE_ARG=0x3 [ 2.304676] es8316 i2c-ESSX8336:00: HP_CODEC_ADC_ALC_NGTHLD_ARG=0x1 [ 2.304920] es8316 i2c-ESSX8336:00: MAIN_CODEC_ADC_ALC_NGTHLD_ARG=0x1 [ 2.305021] es8316 i2c-ESSX8336:00: MAIN_CODEC_ADC_GUI_STEP_ARG=0x3 [ 2.305121] es8316 i2c-ESSX8336:00: MAIN_CODEC_ADC_GUI_GAIN_RANGE_ARG=0x3 [ 2.306075] es8316 i2c-ESSX8336:00: HP_CODEC_DAC_HPMIX_HIGAIN_ARG=0x0 [ 2.306265] es8316 i2c-ESSX8336:00: SPK_CODEC_DAC_HPMIX_HIGAIN_ARG=0x0 [ 2.306491] es8316 i2c-ESSX8336:00: HP_CODEC_DAC_HPMIX_VOLUME_ARG=0xbb [ 2.306710] es8316 i2c-ESSX8336:00: SPK_CODEC_DAC_HPMIX_VOLUME_ARG=0xbb [ 2.306944] es8316 i2c-ESSX8336:00: HP_CODEC_DAC_HPOUT_VOLUME_ARG=0x0 [ 2.307167] es8316 i2c-ESSX8336:00: SPK_CODEC_DAC_HPOUT_VOLUME_ARG=0x0 [ 2.307408] es8316 i2c-ESSX8336:00: HP_CODEC_LDAC_VOLUME_ARG=0x0 [ 2.307623] es8316 i2c-ESSX8336:00: HP_CODEC_RDAC_VOLUME_ARG=0x0 [ 2.307841] es8316 i2c-ESSX8336:00: SPK_CODEC_LDAC_VOLUME_ARG=0x0 [ 2.308086] es8316 i2c-ESSX8336:00: SPK_CODEC_RDAC_VOLUME_ARG=0x0 [ 2.308447] es8316 i2c-ESSX8336:00: HP_CODEC_DAC_AUTOMUTE_ARG=0x0 [ 2.308773] es8316 i2c-ESSX8336:00: SPK_CODEC_DAC_AUTOMUTE_ARG=0x1 [ 2.309042] es8316 i2c-ESSX8336:00: HP_CODEC_DAC_MONO_ARG=0x0 [ 2.309361] es8316 i2c-ESSX8336:00: SPK_CODEC_DAC_MONO_ARG=0x0 [ 2.310499] es8316 i2c-ESSX8336:00: SPK_CTL_IO_LEVEL_ARG=0x1 [ 2.310659] es8316 i2c-ESSX8336:00: CODEC_GPIO0_FUNC_ARG=0x0 [ 2.314006] ccp 0000:03:00.2: tee enabled [ 2.314014] ccp 0000:03:00.2: psp enabled [ 2.314337] es8316 i2c-ESSX8336:00: PLATFORM_MCLK_LRCK_FREQ_ARG=0x0 [ 2.314417] es8316 i2c-ESSX8336:00: HP jack detect inverted 0 ... [ 7.220624] amd-acp3x-essx8336 amd-acp3x-essx8336.0: matched DMI table with this system, trying to register sound card [ 7.220763] es8316 i2c-ESSX8336:00: assuming static mclk [ 7.267135] amd-acp3x-essx8336 amd-acp3x-essx8336.0: ASoC: driver name too long 'amd-acp3x-essx8336' -> 'amd-acp3x-essx8' [ 7.270410] input: amd-acp3x-essx8336 Headset as /devices/platform/amd-acp3x-essx8336.0/sound/card1/input16 [ 7.270671] amd-acp3x-essx8336 amd-acp3x-essx8336.0: successfully registered the sound card [ 7.270693] amd-acp3x-essx8336: platform device registered successfully ```
IStranger commented 1 year ago

Now I've made the sound work! Thank you very much! It seems the problem was in alsamixer config. I've changed DAC Source Mux --> [LDATA TO LDAC, RDATA TO RDAC]. and it start to work!

Many thanks to @nkhost . He sent me compiled kernel, that helped me to determine what happened.

kovalev0 commented 1 year ago

@IStranger Do you have sound working when headphones are connected? can I please have your alsa settings?

sudo alsa-info.sh --no-upload --output alsa-info.txt
sudo alsactl --file asound.txt store

Please attach the files alsa-info.txt and asound.txt

IStranger commented 1 year ago

@kovalev0 I don't use headphones (with 3.5 jack). But I've checked it now, it does not work unfortunately. Mixerbar in "Settings > Sound" shows that "sound plays", but I don't hear it in headphones. Perhaps, it requires some special option in alsamixer. As usual, I use Bluetooth headphones, they work fine.

Do you still need my alsa configs? PS: I've compiled new *.deb kernel based on linux-6.2.0-rc6, it fixes "suspend/resume" feature (when you close your laptop, for example). All 6.1.* kernels have bug with suspend for this laptop. I can send you deb packages if you need.

kovalev0 commented 1 year ago

@IStranger thank you, no need in this case, I was interested so far only in the output of sound to headphones via jack.