View previous topic :: View next topic |
Author |
Message |
ETeria n00b
Joined: 22 May 2008 Posts: 37 Location: Monza
|
Posted: Sat Sep 18, 2021 8:26 pm Post subject: gentoo-sources hdsp module |
|
|
Bonjur! I have an RME Hammerfall Multiface II . It is a great sound card that i use for my music production. Last mix i made with it is in june with a gentoo-sources-5.12.8 than i did not produce for one month and than in august i needed to restore an other sound card, because jack with the Multiface II did not works.
Code: | ~ $ jackd -d alsa -d hw:1
jackd 0.125.0
Copyright 2001-2009 Paul Davis, Stephane Letz, Jack O'Quinn, Torben Hohn and others.
jackd comes with ABSOLUTELY NO WARRANTY
This is free software, and you are welcome to redistribute it
under certain conditions; see the file COPYING for details
JACK compiled with System V SHM support.
loading driver ..
creating alsa driver ... hw:1|hw:1|1024|2|48000|0|0|nomon|swmeter|-|32bit
configuring for 48000Hz, period = 1024 frames (21.3 ms), buffer = 2 periods
ALSA: mmap-based access is not possible for the capture stream of this audio interface
ALSA: cannot configure capture channel
cannot load driver module alsa |
With goggle i found this:
https://www.spinics.net/lists/stable/msg491133.html
It speaks about something wrong in the latests kernels, so i recompiled a 5.12.8 and now my Multiface II with jack works perfectly again (the sound card is not broken and is not a bad configuration problem).
Can you please correct this problem in the module hdsp of the next gentoo-source? In the link there is something that looks like a patch, i am not able to modify the kernel, but you should be able to do it. If you need a tester, i am available for help to make tests. If you do not correct this problem, i am forced to not update my system, because i need to work with this sound card. _________________ Perchè tanto odio?! |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54806 Location: 56N 3W
|
Posted: Sat Sep 18, 2021 9:15 pm Post subject: |
|
|
ETeria,
Portage can apply the patch for you if you want to test. The WiKi tells how.
Its actually a one word change at line 254 in sound/core/pcm_native.c.
The present code reads
Code: |
switch (substream->dma_buffer.dev.type) {
case SNDRV_DMA_TYPE_UNKNOWN:
return false;
case SNDRV_DMA_TYPE_CONTINUOUS:
case SNDRV_DMA_TYPE_VMALLOC:
return true; |
That's a blank line at the start.
The patch adds a comment and changes the word false in return false; to true.
You can do that with your favourite text editor as the comment does nothing for the binary code.
That patch is in my 5.14.4.
Code: | static bool hw_support_mmap(struct snd_pcm_substream *substream)
{
if (!(substream->runtime->hw.info & SNDRV_PCM_INFO_MMAP))
return false;
if (substream->ops->mmap || substream->ops->page)
return true;
switch (substream->dma_buffer.dev.type) {
case SNDRV_DMA_TYPE_UNKNOWN:
/* we can't know the device, so just assume that the driver does <------
* everything right
*/
return true;
case SNDRV_DMA_TYPE_CONTINUOUS:
case SNDRV_DMA_TYPE_VMALLOC:
return true;
default:
return dma_can_mmap(substream->dma_buffer.dev.dev);
}
} |
_________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
ETeria n00b
Joined: 22 May 2008 Posts: 37 Location: Monza
|
Posted: Sat Sep 18, 2021 9:40 pm Post subject: |
|
|
Ah i have the same code in my 5.14.4 and in 5.14.5 but this does not cure the problem. Jack does not start with the Multiface II .
I am looking for a gentoo-sources-5.12.8 but it seems to have disappeared from the portage offering. In this moment i am using a vanilla kernel from www.kernel.org . _________________ Perchè tanto odio?! |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54806 Location: 56N 3W
|
Posted: Sun Sep 19, 2021 2:29 pm Post subject: |
|
|
ETeria,
You can get the old ebuild from git and add it to your overlay if you want. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
ETeria n00b
Joined: 22 May 2008 Posts: 37 Location: Monza
|
Posted: Sun Sep 19, 2021 8:33 pm Post subject: |
|
|
Hello, i am not familiar with git, but just searching on github it gives me this answer:
We couldn’t find any repositories matching 'gentoo-sources-5.12.8'
Is there a different way to search it? _________________ Perchè tanto odio?! |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54806 Location: 56N 3W
|
Posted: Sun Sep 19, 2021 9:19 pm Post subject: |
|
|
ETeria,
emerge git.
As your normal user, do Code: | git clone https://github.com/gentoo/gentoo.git |
This will get you a copy of all the ebuilds that were ever in the ::gentoo repo since 2015.
Its about 2GB, so don't do it on a pay for data used link.
With your own git clone, cd into it, probably
Ask the git log to show you the changes to sys-kernel/gentoo-sources
Code: | git log -- sys-kernel/gentoo-sources |
There will be lots. This one looks interesting
Code: | commit 8e4efab498f3811d02dc220a4518209083e5459d
Author: Mike Pagano <mpagano@gentoo.org>
Date: Tue Jul 20 16:08:33 2021 -0400
sys-kernel/gentoo-sources: Linux patch updates
Linux 5.13.4
Linux 5.12.19
Package-Manager: Portage-3.0.20, Repoman-3.0.2
Signed-off-by: Mike Pagano <mpagano@gentoo.org> |
To see a copy of the repo as it was then
Code: | git checkout commit 8e4efab498f3811d02dc220a4518209083e5459d | and you will have the entire ::gentoo repo as it was at that commit.
That command won't download anything, it just changes the content of your git clone, using everything that is already downloaded.
Having found a checkout that suits your purpose, copy the bits you need to your local overlay. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
ETeria n00b
Joined: 22 May 2008 Posts: 37 Location: Monza
|
Posted: Sun Sep 19, 2021 10:52 pm Post subject: |
|
|
I made all your steps, but at the end when i use the "git checkout commit ..." command, it says that it does not match any file known to git.
When i make "git log -- sys-kernel/gentoo-sources" it open something like a log, very interesting, with many different kernel versions, with different "commit", but even trying with several, at the end it says that does not match any file. _________________ Perchè tanto odio?! |
|
Back to top |
|
|
Hu Administrator
Joined: 06 Mar 2007 Posts: 23064
|
Posted: Sun Sep 19, 2021 11:21 pm Post subject: |
|
|
git checkout expects a commit; the literal word commit is not required, and would be interpreted as a request for a tag or branch named commit. Use Code: | git checkout 8e4efab498f3811d02dc220a4518209083e5459d | That is copied from Neddy's command, and edited to be what I think he meant. I did not check that the commit-id itself is sensible, though from his post, I would expect it is. |
|
Back to top |
|
|
ETeria n00b
Joined: 22 May 2008 Posts: 37 Location: Monza
|
Posted: Mon Sep 20, 2021 11:46 am Post subject: |
|
|
Ah sorry! I wrote "git checkout commit 8e4efab498f3811d02dc220a4518209083e5459d".
Now i have the ebuilds! Many thanks!!! _________________ Perchè tanto odio?! |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54806 Location: 56N 3W
|
Posted: Mon Sep 20, 2021 12:16 pm Post subject: |
|
|
ETeria,
My git knowledge isn't good either. Sorry about that.
Thank you for the correction Hu. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
Hu Administrator
Joined: 06 Mar 2007 Posts: 23064
|
Posted: Mon Sep 20, 2021 5:54 pm Post subject: |
|
|
ETeria wrote: | Ah sorry! I wrote "git checkout commit 8e4efab498f3811d02dc220a4518209083e5459d". | You wrote it because that's what Neddy's post showed. That is why I thought I should respond with an explanation, since anyone else trying to follow Neddy's instructions would encounter the same error. NeddySeagoon wrote: | My git knowledge isn't good either. Sorry about that. | Mine gets used almost daily, so I get a lot of practice, and helping others lets me see and analyze a variety of errors. It's especially fun when, as in this thread, the error message is missing. NeddySeagoon wrote: | Thank you for the correction Hu. | Happy to help. |
|
Back to top |
|
|
ETeria n00b
Joined: 22 May 2008 Posts: 37 Location: Monza
|
Posted: Mon Sep 20, 2021 6:14 pm Post subject: |
|
|
Using this help i made the last step.
https://wiki.gentoo.org/wiki/Custom_ebuild_repository
Now i have my gentoo-sources:
/usr/src/linux-5.12.19-gentoo
Many thanks to all, i am a donkey on Gentoo, i use it by 2006 for produce music, but i am not able to use git, and this is the first time i use a custom ebuild. Now i have what i need. In future, i hope that in the next kernels will be correct this problem with my sound card. In the last week i tested 3 kernels: 5.14.4 , 5.14.5 and 5.14.6 , but all are giving the same results with jack on my machine.
Many thanks! Ciao _________________ Perchè tanto odio?! |
|
Back to top |
|
|
|