You are not logged in.

#1 2010-08-20 16:10:24

yossarianuk
Member
Registered: 2007-05-02
Posts: 103

(solved) Can't install snd-aloop on kernel 2.6.35

Hi

On my hda-intel soundcard I have no mixing option to record my soundcard's output.

I got round this by using the snd-aloop module as advised - https://bbs.archlinux.org/viewtopic.php?id=97598

To install the snd-aloop module you have to get the alsa-driver source file and compile with

./configure --with-cards=loopback
make

This worked fine on kernel 2.6.32/33/34

But on the latest kernel (.35) I get an error:-

--------------
make -C /lib/modules/2.6.35-ARCH/build SUBDIRS=/usr/src/alsa-driver-1.0.23  CPP="gcc -E" CC="gcc" modules
make[1]: Entering directory `/usr/src/linux-2.6.35-ARCH'
  CC [M]  /usr/src/alsa-driver-1.0.23/acore/memory_wrapper.o
  CC [M]  /usr/src/alsa-driver-1.0.23/acore/memalloc.o
  CC [M]  /usr/src/alsa-driver-1.0.23/acore/sgbuf.o
  CC [M]  /usr/src/alsa-driver-1.0.23/acore/pcm.o
  CC [M]  /usr/src/alsa-driver-1.0.23/acore/pcm_native.o
/usr/src/alsa-driver-1.0.23/acore/pcm_native.c: In function 'snd_pcm_hw_params':
/usr/src/alsa-driver-1.0.23/acore/pcm_native.c:489:2: error: implicit declaration of function 'pm_qos_remove_requirement'
/usr/src/alsa-driver-1.0.23/acore/pcm_native.c:492:3: error: implicit declaration of function 'pm_qos_add_requirement'
make[3]: *** [/usr/src/alsa-driver-1.0.23/acore/pcm_native.o] Error 1
make[2]: *** [/usr/src/alsa-driver-1.0.23/acore] Error 2
make[1]: *** [_module_/usr/src/alsa-driver-1.0.23] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.35-ARCH'
make: *** [compile] Error 2
--------------

I am using alsa-driiver 1.0.23 - does anyone have any hints ?

Thanks

Last edited by yossarianuk (2010-08-20 23:14:01)

Offline

#2 2010-08-20 16:43:01

DIDI2002
Member
Registered: 2009-08-06
Posts: 66

Re: (solved) Can't install snd-aloop on kernel 2.6.35

Hi,

you could add

static inline void remove_acceptable_latency(char *name)
{
}

static inline void set_acceptable_latency(char *name, s32 value)
{
}

to the beginning of include/pm_qos_params_compat.h

#include <pm_qos_params_compat.h>

to the includes of acore/pcm_native.c

and touch /include/linux/latency.h

It compiles, but I can't say if it works, seems to be broken;)
Real fixes have been commited to git (git clone git://git.alsa-project.org/alsa-driver.git alsa-driver)

Last edited by DIDI2002 (2010-08-20 16:46:55)

Offline

#3 2010-08-20 23:11:58

yossarianuk
Member
Registered: 2007-05-02
Posts: 103

Re: (solved) Can't install snd-aloop on kernel 2.6.35

Hi.

Thank you for the response.

I posted in the alsa-user mailing list also, the updated alsa-driver works fine.

For more info see :-

http://www.mail-archive.com/alsa-user@l … 26832.html

Cheers

Offline

#4 2010-09-07 20:58:47

omerglr
Member
From: istanbul
Registered: 2010-07-13
Posts: 4

Re: (solved) Can't install snd-aloop on kernel 2.6.35

you could add

static inline void remove_acceptable_latency(char *name)
{
}

static inline void set_acceptable_latency(char *name, s32 value)
{
}

to the beginning of include/pm_qos_params_compat.h

#include <pm_qos_params_compat.h>

to the includes of acore/pcm_native.c

and touch /include/linux/latency.h

This was solve my alsa compile with linuxant alsa patch which needed for hsf modem driver. Patch does not apply the git driver.  Works for 3 hours. I think my problem is solved. only problem is linuxant patch's own high cpu usage bug. now its too little too. No more use of 2.6.34 for faxing.    Thanks.

Offline

Board footer

Powered by FluxBB