View previous topic :: View next topic |
Author |
Message |
Dominique_71 Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
![](images/avatars/8878940535065700927c31.jpg)
Joined: 17 Aug 2005 Posts: 1923 Location: Switzerland (Romandie)
|
Posted: Sat Jun 17, 2023 10:10 am Post subject: ALSA Soc audio support configuration. |
|
|
I am a bit lost with the configuration of the ALSA Soc audio support. This is for that Lenovo IdeaPadFlex 5 16ALC7 machine: https://linux-hardware.org/?probe=c956e9cbab That test was made with the gentoo-kernel-bin and I am now using the gentoo-souces, and slowly removing the non needed stuffs.
I have 2 working kernel with that difference:
Code: | # scripts/diffconfig .config.old .config
-SND_DMAENGINE_PCM m
-SND_SOC_ADI_AXI_I2S m
-SND_SOC_ADI_AXI_SPDIF m
-SND_SOC_GENERIC_DMAENGINE_PCM y
SND_SOC_ADI m -> n
SND_SOC_TOPOLOGY_KUNIT_TEST m -> n
SND_SOC_UTILS_KUNIT_TEST m -> n |
The only difference of the loaded modules is:
Code: | -snd_pcm 131072 14 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_hda_core,snd_pci_ps,snd_pcm_dmaengine
-snd_pcm_dmaengine 16384 1 snd_soc_core
+snd_pcm 131072 13 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_hda_core,snd_pci_ps
...
-snd_soc_core 294912 1 snd_sof
+snd_soc_core 286720 1 snd_sof |
If I am right, as the snd-soc-adi-axi-i2s and snd-soc-adi-axi-spdif modules are not loaded by the kernel when they are installed, that imply I have no use for them. So, to use a kernel without them, and without the snd_pcm_dmaengine module (which depends/ is selected, only by SND_SOC_ADI), should be safe.
In that case, is it enough to think like that, or some other testing/investigation are needed? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
NeddySeagoon Administrator
![Administrator Administrator](/images/ranks/rank-admin.gif)
![](images/avatars/3946266373f47d606a2db3.jpg)
Joined: 05 Jul 2003 Posts: 54838 Location: 56N 3W
|
Posted: Sun Jun 18, 2023 10:30 am Post subject: |
|
|
Dominique_71,
You need CONFIG_SND_SOC_AMD_ACP6x: AMD Audio Coprocessor-v6.x Yellow Carp support for your Audio Coprocessor and ordinary everyday snd-hda-intel for your other two sound cards.
They are the kernel hardware drivers. You also need codecs and the rest of the audio stack. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Dominique_71 Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
![](images/avatars/8878940535065700927c31.jpg)
Joined: 17 Aug 2005 Posts: 1923 Location: Switzerland (Romandie)
|
Posted: Mon Jun 19, 2023 6:57 pm Post subject: |
|
|
NeddySeagoon
Thank you. What you write confirm than I don't need these snd-soc-adi-axi-i2s and snd-soc-adi-axi-spdif modules. Wjich imply I have no use for the snd_pcm_dmaengine either.
It is 2 audio related hardware in this machine:
Code: | $ lspci -knn
...
04: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:384b]
Kernel modules: snd_pci_acp3x, snd_rn_pci_acp3x, snd_pci_acp5x, snd_pci_acp6x, snd_rpl_pci_acp6x, snd_pci_ps, snd_sof_amd_renoir, snd_sof_amd_rembrandt
04: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:384a]
Kernel driver in use: snd_hda_intel
Kernel modules: snd_hda_intel |
The HD Audio (snd_hda_intel) is the real sound card and, for what I have found, the [AMD] ACP/ACP3X/ACP6x Audio Coprocessor is a DSP co-processor that is intended for calculations of computationally expensive advanced audio signal processing. Good to know this is supported by the linux kernel, but due to the interfaces and layers, it look like to me, if I am not wrong, than in order to take advantage of this DSP, its use must be implemented into the source code of the user's audio software. Or maybe ALSA know how to use it internally for its software plugins. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|
|
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
|
|