Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Incorrect microphone driver
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
lessblonux1
n00b
n00b


Joined: 19 Mar 2023
Posts: 25

PostPosted: Sat Oct 14, 2023 5:43 am    Post subject: Incorrect microphone driver Reply with quote

Hi,

I have a problem with my microphone who produced gibberish sound. But i hear sound find, it is just a microphone issue, and it is not hardware related because it works fine on my old fedora live.

I think it is a driver problem because when i test it before on an old fedora Live it worked and inxi -Fxxz indicates that the microphone driver is snd_soc_amd_acp3x.

But now, the same indicates :
Code:
inxi -Fxxz | grep Audio
  Device-1: AMD Navi 21/23 HDMI/DP Audio driver: snd_hda_intel pcie: speed: 16 GT/s lanes: 16
  Device-2: AMD ACP/ACP3X/ACP6x Audio Coprocessor vendor: Lenovo driver: N/A pcie:
  Device-3: AMD Family 17h/19h HD Audio vendor: Lenovo driver: snd_hda_intel pcie:


The driver became N/A.
So ,i checked my kernel where he is buil-in, like you can see here :
Code:

# ACP (Audio CoProcessor) Configuration
#
CONFIG_DRM_AMD_ACP=y
# end of ACP (Audio CoProcessor) Configuration

CONFIG_SND_SOC_AMD_ACP=y
CONFIG_SND_SOC_AMD_CZ_RT5645_MACH=y
CONFIG_SND_SOC_AMD_ST_ES8336_MACH=y
CONFIG_snd_soc_amd_acp3x=y
CONFIG_SND_SOC_AMD_RENOIR=y
CONFIG_SND_SOC_AMD_ACP5x=y
CONFIG_SND_SOC_AMD_ACP6x=y
CONFIG_SND_SOC_AMD_YC_MACH=y
CONFIG_SND_AMD_ACP_CONFIG=y
CONFIG_SND_SOC_AMD_ACP_COMMON=y
CONFIG_SND_SOC_AMD_ACP_PDM=y
CONFIG_SND_SOC_AMD_ACP_I2S=y
CONFIG_SND_SOC_AMD_ACP_PCM=y
CONFIG_SND_SOC_AMD_ACP_PCI=y
CONFIG_SND_AMD_ASOC_RENOIR=y
CONFIG_SND_AMD_ASOC_REMBRANDT=y
CONFIG_SND_SOC_AMD_MACH_COMMON=y
CONFIG_SND_SOC_AMD_LEGACY_MACH=y
CONFIG_SND_SOC_AMD_SOF_MACH=y
CONFIG_SND_SOC_AMD_RPL_ACP6x=y
CONFIG_SND_SOC_AMD_PS=y
CONFIG_SND_SOC_AMD_PS_MACH=y


I also have the sof-firmware package installed.

I don't know what i am missing here.

Thanks
Back to top
View user's profile Send private message
alamahant
Advocate
Advocate


Joined: 23 Mar 2019
Posts: 3961

PostPosted: Sat Oct 14, 2023 9:46 am    Post subject: Reply with quote

Plz post
Code:

lspci -nnk | grep -iA2 audio

_________________
:)
Back to top
View user's profile Send private message
lessblonux1
n00b
n00b


Joined: 19 Mar 2023
Posts: 25

PostPosted: Sat Oct 14, 2023 6:17 pm    Post subject: Reply with quote

Here it is

Code:
lspci -nnk | grep -iA2 audio
03:00.1 Audio device [0403]: Advanced Micro Devices, Inc. [AMD/ATI] Navi 21/23 HDMI/DP Audio Controller [1002:ab28]
   Subsystem: Advanced Micro Devices, Inc. [AMD/ATI] Navi 21/23 HDMI/DP Audio Controller [1002:ab28]
   Kernel driver in use: snd_hda_intel
04:00.0 Non-Volatile memory controller [0108]: SK hynix Gold P31/BC711/PC711 NVMe Solid State Drive [1c5c:174a]
--
07:00.5 Multimedia controller [0480]: Advanced Micro Devices, Inc. [AMD] ACP/ACP3X/ACP6x Audio Coprocessor [1022:15e2] (rev 01)
   Subsystem: Lenovo ACP/ACP3X/ACP6x Audio Coprocessor [17aa:3841]
07:00.6 Audio device [0403]: Advanced Micro Devices, Inc. [AMD] Family 17h/19h HD Audio Controller [1022:15e3]
   Subsystem: Lenovo Family 17h/19h HD Audio Controller [17aa:382b]
   Kernel driver in use: snd_hda_intel
08:00.0 SATA controller [0106]: Advanced Micro Devices, Inc. [AMD] FCH SATA Controller [AHCI mode] [1022:7901] (rev 81)


Thanks for your help
Back to top
View user's profile Send private message
alamahant
Advocate
Advocate


Joined: 23 Mar 2019
Posts: 3961

PostPosted: Sat Oct 14, 2023 6:42 pm    Post subject: Reply with quote

You need
https://linux-hardware.org/?id=pci:1022-15e2-103c-8760
and/or
https://cateee.net/lkddb/web-lkddb/SND_SOC_AMD_ACP3x.html
and of course

CONFIG_SND_HDA_INTEL

NOTE:You have your drivers in-built.This prevents relevant firmware from loading.
Config them as modules plz(=m) and rebuild and reinstall kernel and modules.
You do have
linux-firmware
installed
no?
_________________
:)
Back to top
View user's profile Send private message
lessblonux1
n00b
n00b


Joined: 19 Mar 2023
Posts: 25

PostPosted: Sat Oct 14, 2023 7:02 pm    Post subject: Reply with quote

@alamahant :

I will try to re-establish modules but i doubt it works, because all the drivers who are mentionned in your two links, i have them, including :

Code:
CONFIG_SND_HDA_INTEL=y

The others one are in my first post, and remember my headphones works i can hear sound, just no sending sound.

I also have linux-firmawre and sof-firmware installed.

Thanks, i will edit this after i try the with modules option
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 55400
Location: 56N 3W

PostPosted: Sat Oct 14, 2023 7:09 pm    Post subject: Reply with quote

lessblonux1,

When a built in module needs firmware, the firmware must be built into the kernel too as root is not yet mounted.
When a module is loadable, the firmware can be loaded from /lib/firmware.

As the Mic is a Sound Open Firmware (soc) device, it probably needs something from sof-firmware.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
lessblonux1
n00b
n00b


Joined: 19 Mar 2023
Posts: 25

PostPosted: Sat Oct 14, 2023 7:18 pm    Post subject: Reply with quote

@NeddySeagoon : OK, thanks so how can i found the relevant files ?
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 55400
Location: 56N 3W

PostPosted: Sat Oct 14, 2023 7:36 pm    Post subject: Reply with quote

lessblonux1,

The module will load them or leave error messages for the files in dmesg.
However, this will only print the first missing file name.
Then you add that rebuild the kernel and get the next file name.
My video card needs 20 firmware files, so that's slow.

Configure all of your kernel sound options as <M> then you do not need to know the file names.
There is an option in the gentoo kernel to have it print firmware file names as they load too.

Once you know the names, you can include them in the kernel if you want.
Then it will work until a firmware file is added or renamed.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
lessblonux1
n00b
n00b


Joined: 19 Mar 2023
Posts: 25

PostPosted: Sat Oct 14, 2023 7:48 pm    Post subject: Reply with quote

Ok, thanks again so i can escape to recompile my kernel ...

If i checked with
Code:
dmesg | grep audio

and
Code:
dmesg | grep firmware
is it the right way to do ?
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 55400
Location: 56N 3W

PostPosted: Sat Oct 14, 2023 7:51 pm    Post subject: Reply with quote

lessblonux1,

I don't know. The file names may not contain any of those strings.

Use wgetpaste to put your Gentoo dmesg onto a pastebin please.
All of it.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
garrison
Apprentice
Apprentice


Joined: 18 Mar 2003
Posts: 267

PostPosted: Sat Oct 14, 2023 9:07 pm    Post subject: Reply with quote

I see this is in lower-case, can you double-check if making that upper-case fixes the issue?
Quote:
CONFIG_snd_soc_amd_acp3x=y
Back to top
View user's profile Send private message
lessblonux1
n00b
n00b


Joined: 19 Mar 2023
Posts: 25

PostPosted: Sun Oct 15, 2023 7:30 pm    Post subject: Reply with quote

My dmesg without modules

https://bpa.st/7ZFQ

and with modules

https://bpa.st/7F5A

With modules i don't have any sound now, which is very weird it was supposed to improve things...

For completeness i have this in my /usr/src/linux/.config with modules

Code:
#
# Automatically generated file; DO NOT EDIT.
# Linux/x86 6.5.7-gentoo Kernel Configuration
#
CONFIG_CC_VERSION_TEXT="gcc (Gentoo Hardened 13.2.1_p20230826 p7) 13.2.1 20230826"
CONFIG_CC_IS_GCC=y
CONFIG_GCC_VERSION=130201
...
CONFIG_SND_SOC_AMD_ACP=m
CONFIG_SND_SOC_AMD_CZ_RT5645_MACH=m
CONFIG_SND_SOC_AMD_ST_ES8336_MACH=m
CONFIG_SND_SOC_AMD_ACP3x=m
CONFIG_SND_SOC_AMD_RENOIR=m
CONFIG_SND_SOC_AMD_ACP5x=m
CONFIG_SND_SOC_AMD_ACP6x=m
CONFIG_SND_SOC_AMD_YC_MACH=m
CONFIG_SND_AMD_ACP_CONFIG=y
CONFIG_SND_SOC_AMD_ACP_COMMON=m
CONFIG_SND_SOC_AMD_ACP_PDM=m
CONFIG_SND_SOC_AMD_ACP_I2S=m
CONFIG_SND_SOC_AMD_ACP_PCM=m
CONFIG_SND_SOC_AMD_ACP_PCI=m
CONFIG_SND_AMD_ASOC_RENOIR=m
CONFIG_SND_AMD_ASOC_REMBRANDT=m
CONFIG_SND_SOC_AMD_MACH_COMMON=m
CONFIG_SND_SOC_AMD_LEGACY_MACH=m
CONFIG_SND_SOC_AMD_SOF_MACH=m
CONFIG_SND_SOC_AMD_RPL_ACP6x=m
CONFIG_SND_SOC_AMD_PS=m
CONFIG_SND_SOC_AMD_PS_MACH=m
...
CONFIG_SND_HDA=m
CONFIG_SND_HDA_GENERIC_LEDS=y
CONFIG_SND_HDA_INTEL=m
CONFIG_SND_HDA_HWDEP=y
CONFIG_SND_HDA_RECONFIG=y


and the modules seems to be present according to this

Code:
find /lib/modules/6.5.7-gentoo/ -type f -iname '*.o' -or -iname '*.ko' | less | grep acp
/lib/modules/6.5.7-gentoo/kernel/sound/soc/amd/raven/snd-acp3x-i2s.ko
/lib/modules/6.5.7-gentoo/kernel/sound/soc/amd/raven/snd-acp3x-pcm-dma.ko
/lib/modules/6.5.7-gentoo/kernel/sound/soc/amd/raven/snd-pci-acp3x.ko
/lib/modules/6.5.7-gentoo/kernel/sound/soc/amd/snd-soc-acp-rt5645-mach.ko
/lib/modules/6.5.7-gentoo/kernel/sound/soc/amd/acp_audio_dma.ko
/lib/modules/6.5.7-gentoo/kernel/sound/soc/amd/yc/snd-pci-acp6x.ko
/lib/modules/6.5.7-gentoo/kernel/sound/soc/amd/yc/snd-soc-acp6x-mach.ko
/lib/modules/6.5.7-gentoo/kernel/sound/soc/amd/yc/snd-acp6x-pdm-dma.ko
/lib/modules/6.5.7-gentoo/kernel/sound/soc/amd/rpl/snd-rpl-pci-acp6x.ko
/lib/modules/6.5.7-gentoo/kernel/sound/soc/amd/snd-soc-acp-es8336-mach.ko
/lib/modules/6.5.7-gentoo/kernel/sound/soc/amd/renoir/snd-rn-pci-acp3x.ko
/lib/modules/6.5.7-gentoo/kernel/sound/soc/amd/renoir/snd-acp3x-pdm-dma.ko
/lib/modules/6.5.7-gentoo/kernel/sound/soc/amd/acp/snd-acp-i2s.ko
/lib/modules/6.5.7-gentoo/kernel/sound/soc/amd/acp/snd-acp-pdm.ko
/lib/modules/6.5.7-gentoo/kernel/sound/soc/amd/acp/snd-acp-rembrandt.ko
/lib/modules/6.5.7-gentoo/kernel/sound/soc/amd/acp/snd-acp-sof-mach.ko
/lib/modules/6.5.7-gentoo/kernel/sound/soc/amd/acp/snd-acp-legacy-mach.ko
/lib/modules/6.5.7-gentoo/kernel/sound/soc/amd/acp/snd-acp-renoir.ko
/lib/modules/6.5.7-gentoo/kernel/sound/soc/amd/acp/snd-acp-pci.ko
/lib/modules/6.5.7-gentoo/kernel/sound/soc/amd/acp/snd-acp-pcm.ko
/lib/modules/6.5.7-gentoo/kernel/sound/soc/amd/acp/snd-acp-mach.ko
/lib/modules/6.5.7-gentoo/kernel/sound/soc/amd/vangogh/snd-pci-acp5x.ko
/lib/modules/6.5.7-gentoo/kernel/sound/soc/amd/vangogh/snd-acp5x-i2s.ko
/lib/modules/6.5.7-gentoo/kernel/sound/soc/amd/vangogh/snd-acp5x-pcm-dma.ko
/lib/modules/6.5.7-gentoo/kernel/sound/soc/sof/amd/snd-sof-amd-acp.ko
/lib/modules/6.5.7-gentoo/kernel/sound/soc/intel/atom/sst/snd-intel-sst-acpi.ko
/lib/modules/6.5.7-gentoo/kernel/sound/soc/intel/common/snd-soc-acpi-intel-match.ko
/lib/modules/6.5.7-gentoo/kernel/sound/hda/snd-intel-sdw-acpi.ko


and i have also no soundcard apparently

Code:
aplay -l
aplay: device_list:277: no soundcards found...


This is a very weird issue ...

@garrison this lowercase stuff is solved by itself

Thanks

Edit : Added precision
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum