[Voyage-linux] compiling kernel module for Hiface 1 drivers

Roberto Grossi (spam-protected)
Mon Nov 5 12:15:13 HKT 2012


Edit:

after
make modules_prepare...

change the content of
   /usr/src/linux-source-3.2.17-voyage/include/generated/utsrelease.h
as
   #define UTS_RELEASE "3.2.17-voyage"

make modules
cd /root/snd-usb-asyncaudio.git/
make

now modprobe (or insmod) works

modprob snd-usb-asyncaudio

The hiface is seen

*** List of PLAYBACK Hardware Devices ****
card 0: hiFace [hiFace], device 0: hiFace [AsyncAudio USB]
  Subdevices: 0/1
  Subdevice #0: subdevice #0

but no sound comes out with mpd (which starts getting 97% CPU at a certain
point)

aplay -v -D hw:0,0 file.wav

gives

aplay: set_params:1053: Sample format non available
Available formats:
- S32_LE

but giving

aplay -v -f S32_LE -D hw:0,0 file.wav

does not help....


On Mon, Nov 5, 2012 at 12:00 AM, Roberto Grossi <grossi at di.unipi.it> wrote:

> Hello, I apparently succeded to compile the drivers for Hiface 1 (see
> https://github.com/panicking/snd-usb-asyncaudio/wiki). FYI, I did the
> same on ubuntu.
>
> I gave up voyage-mpd 0.9rc1 since there are no linux header.
>
> So I tried with voyage-mpd 0.85
>
> apt-get install linux-source-3.2.17-voyage 11.0-1
> cd /usr/src/
> tar xvjf linux-source-3.2.17-voyage.tar.bz2
> ln -s linux-source-3.2.17-voyage linux-headers-3.2.17-voyage
> cd /lib/modules/3.2.17-voyage/
> ln -s /usr/src/linux-source-3.2.17-voyage build
> cd /usr/src/linux-source-3.2.17-voyage
> make oldconfig
> make prepare
> make modules_prepare
> cd /root/snd-usb-asyncaudio.git/
> make
>
> Here, I modified the Makefile by adding EXTRAVERSION:
>
> EXTRAVERSION := "-voyage"
> snd-usb-asyncaudio-objs += chip.o control.o pcm.o
> obj-m += snd-usb-asyncaudio.o
>
> KDIR := /lib/modules/$(shell uname -r)/build
> PWD := $(shell pwd)
> default:
> $(MAKE) -C $(KDIR) SUBDIRS=$(PWD) modules
>
> clean:
>
> $(MAKE) -C $(KDIR) SUBDIRS=$(PWD) clean
>
>
> I copied snd-usb-asyncaudio.ko
> in /lib/modules/3.2.17-voyage/kernel/sound/usb/
>
> But then modprobe -v  -f snd-usb-asyncaudio   fails and returns
>
> insmod /lib/modules/3.2.17-voyage/kernel/sound/usb/snd-usb-asyncaudio.ko
> FATAL: Error inserting snd_usb_asyncaudio
> (/lib/modules/3.2.17-voyage/kernel/sound/usb/snd-usb-asyncaudio.ko):
> Invalid module format
>
> Any help please?
> Thanks
> Roberto
>
>
>


-- 
Roberto Grossi, Dipartimento di Informatica, Università di Pisa
Largo Bruno Pontecorvo 3, 56127 Pisa, Italy
http://www.di.unipi.it/~grossi, tel (+39)0502212793, fax (+39)0502212726
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.voyage.hk/pipermail/voyage-linux/attachments/20121105/9f38bcf9/attachment.html>


More information about the Voyage-linux mailing list