bondagit / ravenna-alsa-lkm

RAVENNA ALSA LKM
20 stars 9 forks source link

Unknown symbol errors preventing loading kernel module #2

Closed cortices closed 3 years ago

cortices commented 3 years ago

I have compiled the Merging driver, and added it to the appropriate modules directory, but when trying to insert it, I get the following errors in dmesg. I'm using Alpine Linux, kernel 5.10.27-lts.

It seems likely that the issue is a lack of some kind of kernel ALSA support. But I can't find any useful info towards fixing this; as far as I can tell Alpine should work just fine with sound.

[  347.614066] MergingRavennaALSA: Unknown symbol snd_ctl_add (err -2)
[  347.614076] MergingRavennaALSA: Unknown symbol snd_pcm_lib_free_vmalloc_buffer (err -2)
[  347.614084] MergingRavennaALSA: Unknown symbol snd_pcm_new (err -2)
[  347.614091] MergingRavennaALSA: Unknown symbol snd_pcm_add_chmap_ctls (err -2)
[  347.614097] MergingRavennaALSA: Unknown symbol snd_card_register (err -2)
[  347.614102] MergingRavennaALSA: Unknown symbol snd_card_free (err -2)
[  347.614184] MergingRavennaALSA: Unknown symbol snd_interval_refine (err -2)
[  347.614218] MergingRavennaALSA: Unknown symbol snd_pcm_format_physical_width (err -2)
[  347.614241] MergingRavennaALSA: Unknown symbol snd_ctl_new1 (err -2)
[  347.614255] MergingRavennaALSA: Unknown symbol _snd_pcm_lib_alloc_vmalloc_buffer (err -2)
[  347.614266] MergingRavennaALSA: Unknown symbol snd_pcm_hw_rule_add (err -2)
[  347.614274] MergingRavennaALSA: Unknown symbol snd_card_new (err -2)
[  347.614284] MergingRavennaALSA: Unknown symbol snd_interval_list (err -2)
[  347.614292] MergingRavennaALSA: Unknown symbol snd_pcm_lib_ioctl (err -2)
[  347.614303] MergingRavennaALSA: Unknown symbol snd_pcm_lib_get_vmalloc_page (err -2)
[  347.614311] MergingRavennaALSA: Unknown symbol snd_ctl_notify (err -2)
[  347.614319] MergingRavennaALSA: Unknown symbol snd_pcm_set_ops (err -2)
[  347.614326] MergingRavennaALSA: Unknown symbol snd_pcm_hw_constraint_list (err -2)
[  347.614404] MergingRavennaALSA: Unknown symbol snd_pcm_period_elapsed (err -2)
[  347.614476] MergingRavennaALSA: Unknown symbol snd_pcm_hw_constraint_step (err -2)
[  347.614491] MergingRavennaALSA: Unknown symbol snd_pcm_format_width (err -2)
[  660.693682] MergingRavennaALSA: Unknown symbol snd_ctl_add (err -2)
[  660.693690] MergingRavennaALSA: Unknown symbol snd_pcm_lib_free_vmalloc_buffer (err -2)
[  660.693696] MergingRavennaALSA: Unknown symbol snd_pcm_new (err -2)
[  660.693702] MergingRavennaALSA: Unknown symbol snd_pcm_add_chmap_ctls (err -2)
[  660.693706] MergingRavennaALSA: Unknown symbol snd_card_register (err -2)
[  660.693711] MergingRavennaALSA: Unknown symbol snd_card_free (err -2)
[  660.693721] MergingRavennaALSA: Unknown symbol snd_interval_refine (err -2)
[  660.693727] MergingRavennaALSA: Unknown symbol snd_pcm_format_physical_width (err -2)
[  660.693744] MergingRavennaALSA: Unknown symbol snd_ctl_new1 (err -2)
[  660.693757] MergingRavennaALSA: Unknown symbol _snd_pcm_lib_alloc_vmalloc_buffer (err -2)
[  660.693764] MergingRavennaALSA: Unknown symbol snd_pcm_hw_rule_add (err -2)
[  660.693770] MergingRavennaALSA: Unknown symbol snd_card_new (err -2)
[  660.693779] MergingRavennaALSA: Unknown symbol snd_interval_list (err -2)
[  660.693785] MergingRavennaALSA: Unknown symbol snd_pcm_lib_ioctl (err -2)
[  660.693793] MergingRavennaALSA: Unknown symbol snd_pcm_lib_get_vmalloc_page (err -2)
[  660.693799] MergingRavennaALSA: Unknown symbol snd_ctl_notify (err -2)
[  660.693878] MergingRavennaALSA: Unknown symbol snd_pcm_set_ops (err -2)
[  660.693958] MergingRavennaALSA: Unknown symbol snd_pcm_hw_constraint_list (err -2)
[  660.693989] MergingRavennaALSA: Unknown symbol snd_pcm_period_elapsed (err -2)
[  660.693995] MergingRavennaALSA: Unknown symbol snd_pcm_hw_constraint_step (err -2)
[  660.694005] MergingRavennaALSA: Unknown symbol snd_pcm_format_width (err -2)

This is the output of apk list --installed | grep alsa:

alsa-utils-openrc-1.2.4-r0 x86_64 {alsa-utils} (GPL-2.0-or-later) [installed]
alsa-lib-dev-1.2.4-r2 x86_64 {alsa-lib} (LGPL-2.1-or-later) [installed]
alsa-lib-1.2.4-r2 x86_64 {alsa-lib} (LGPL-2.1-or-later) [installed]
alsa-utils-1.2.4-r0 x86_64 {alsa-utils} (GPL-2.0-or-later) [installed]
alsa-tools-1.2.2-r0 x86_64 {alsa-tools} (GPL-2.0-or-later) [installed]
bondagit commented 3 years ago

I have forked the Ravenna driver and added patches to the aes67-daemon branch only for using it with the AES67 Linux Daemon project. Please make sure you have basic Linux sound subsystem support enabled in the Linux kernel, option CONFIG_SOUND.

bondagit commented 3 years ago

Any news about this ? Can you compile and install the driver in the aes67-daemon branch on this repo ?

cortices commented 3 years ago

Yes the issue seems to have been that I had kernel headers installed for a full kernel, but the actual running kernel was one without sound support. It seems to work now after ensuring that I am running the regular linux kernel version.