[LAU] Bridging alsa and jack midi

Tito Latini tito.01beta at gmail.com
Wed Oct 1 13:14:29 UTC 2014


On Wed, Oct 01, 2014 at 10:00:57AM +0200, Ralf Mardorf wrote:
> On Wed, 2014-10-01 at 09:19 +0200, Tito Latini wrote:
> > diff -ur linux~/sound/pci/ice1712/ice1712.c linux/sound/pci/ice1712/ice1712.c
> 
> Thank you :)
> 
> unfortunately I can't find the source of the driver.
> 
> [rocketmouse at archlinux ~]$ ls -hAl /usr/src/linux-3.10.47-rt50-1-rt-lts/sound/pci/
> total 32K
> drwxr-xr-x 2 root root 4.0K Jul 17 23:39 hda
> -rw-r--r-- 1 root root  25K Jul 17 23:39 Kconfig
> [rocketmouse at archlinux ~]$ ls -hAl /lib/modules/3.10.47-rt50-1-rt-lts/kernel/sound/pci/ice1712/
> total 100K
> -rw-r--r-- 1 root root  30K Jul 17 23:38 snd-ice1712.ko.gz
> -rw-r--r-- 1 root root  59K Jul 17 23:38 snd-ice1724.ko.gz
> -rw-r--r-- 1 root root 2.4K Jul 17 23:38 snd-ice17xx-ak4xxx.ko.gz
> 
> So I can't just rebuild the module? Do I have to build the complete
> kernel?

The kernel source code is incomplete. If you have a Makefile in

  ls /lib/modules/`uname -r`/build

you can follow these steps (*):

1) download the full source of your kernel

2) cd linux-...
   patch -p1 < ice1712_shortname.patch

3) cd sound/pci/ice1712/

4) replace the content of the Makefile (after copy-and-paste, remember
   one tab char and not spaces before "make -C") with

snd-ice1712-objs := ice1712.o delta.o hoontech.o ews.o
obj-m += snd-ice1712.o

all:                                             
	make -C /lib/modules/$(shell uname -r)/build M=$(PWD) modules


5) compile the module

   make
   ls snd-ice1712.ko


(*) More info in linux/Documentation/kbuild/modules.txt, in particular:

      NOTE: "modules_prepare" will not build Module.symvers even if
      CONFIG_MODVERSIONS is set; therefore, a full kernel build needs to be
      executed to make module versioning work.


More information about the Linux-audio-user mailing list