You are not logged in.

#1 2020-03-30 12:56:55

lapsio
Member
From: Warsaw
Registered: 2015-09-30
Posts: 50

How to patch ALSA snd modules source and recompile kernel?

Hi, I'm trying to patch snd_usb_audio module on Arch.

On OpenSUSE I could just edit /usr/src/linux-x.x.x/sound/usb/pcm.c and recompile kernel using make oldconfig. However on Arch I don't see any files in /usr/src/linux-lts/sound. Why is that? Does it require some other package than linux-headers to be installed? Or does Arch do ALSA different way?

Last edited by lapsio (2020-03-30 12:57:24)

Offline

#2 2020-03-30 13:10:31

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 13,554
Website

Re: How to patch ALSA snd modules source and recompile kernel?


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#3 2020-03-30 13:30:38

lapsio
Member
From: Warsaw
Registered: 2015-09-30
Posts: 50

Re: How to patch ALSA snd modules source and recompile kernel?

Thank you. Wiki says that I should download source of the same kernel I have. Current Arch LTS kernel is 5.4.28-1-lts.

Is it the same as 5.4.28 kernel from www.kernel.org? (I mean is this ...-1 significant?)

Last edited by lapsio (2020-03-30 13:31:22)

Offline

#4 2020-03-30 13:34:10

2ManyDogs
Forum Fellow
Registered: 2012-01-15
Posts: 4,648

Re: How to patch ALSA snd modules source and recompile kernel?

If you look at the PKGBUILD for linux-lts, you will see that it downloads the 5.4.28 kernel from kernel.org.

https://git.archlinux.org/svntogit/pack … /linux-lts

Offline

#5 2020-03-30 19:34:59

lapsio
Member
From: Warsaw
Registered: 2015-09-30
Posts: 50

Re: How to patch ALSA snd modules source and recompile kernel?

I managed to compile kernel but now DKMS modules don't compile and system cannot mount VirtualBox shared directory. I copied kernel source to /usr/src/ but it didn't help.

Offline

#6 2020-03-30 19:47:30

loqs
Member
Registered: 2014-03-06
Posts: 18,928

Re: How to patch ALSA snd modules source and recompile kernel?

lapsio wrote:

I managed to compile kernel but now DKMS modules don't compile and system cannot mount VirtualBox shared directory. I copied kernel source to /usr/src/ but it didn't help.

What kernel did you build?  How did you install it?  What was the output from DKMS when it failed?
https://bbs.archlinux.org/viewtopic.php?id=57855

Offline

Board footer

Powered by FluxBB