USB Sound

Post Reply
Xeli
Posts: 2
Joined: Sun Jan 31, 2010 10:50 pm

USB Sound

Post by Xeli » Sun Jan 31, 2010 10:56 pm

Hey people!

I've recently bought a Network Space 500gb and being found of linux myself i could not keep it unrooted and untweaked ofcourse :)

I'm lost on the following problem though:

I've got an usb sound stick/card, which works out of the box on my desktop linux box.

I'm unsure how to get the propper modules for the kernel though, can i get them via ipkg or do i have to cross-compile them myself? if so which and where could i find those? or documentation about it?

Thanks for any answers! ;)

Mijzelf
Posts: 6194
Joined: Mon Jun 16, 2008 10:45 am

Re: USB Sound

Post by Mijzelf » Mon Feb 01, 2010 10:11 am

Kernel modules needs to build for exact your kernel, and as possible the same compiler. So I don't think there are 3th party packets outside providing your modules. So you'll have to compile them yourself.
It seems the GPL sources of the Networkspace don't provide a toolchain, but seeing the size of the NS2 sources, maybe it has a (the?) toolchain provided.

I once builded sound modules for another NAS, and I needed these: soundcore.ko snd-page-alloc.ko snd.ko snd-hwdep.ko snd-timer.ko snd-pcm.ko snd-mixer-oss.ko snd-pcm-oss.ko audio.ko snd-seq-device.ko snd-rawmidi.ko snd-usb-lib.ko snd-usb-audio.ko.
They can be loaded in this sequence.
Further you'll have to create device nodes:
mknod -m 660 /dev/aloadC0 c 14 0; chgrp audio /dev/aloadC0

For alsa:
mkdir /dev/snd

# load some missing sound stuff:
mknod -m 666 /dev/snd/controlC0 c 116 0
mknod -m 666 /dev/snd/hwC0D0 c 116 4
mknod -m 666 /dev/snd/hwC0D1 c 116 5
mknod -m 666 /dev/snd/hwC0D2 c 116 6
mknod -m 666 /dev/snd/hwC0D3 c 116 7
mknod -m 666 /dev/snd/midiC0D0 c 116 8
mknod -m 666 /dev/snd/midiC0D1 c 116 9
mknod -m 666 /dev/snd/midiC0D2 c 116 10
mknod -m 666 /dev/snd/midiC0D3 c 116 11
mknod -m 666 /dev/snd/midiC0D4 c 116 12
mknod -m 666 /dev/snd/midiC0D5 c 116 13
mknod -m 666 /dev/snd/midiC0D6 c 116 14
mknod -m 666 /dev/snd/midiC0D7 c 116 15
mknod -m 666 /dev/snd/pcmC0D0c c 116 24
mknod -m 666 /dev/snd/pcmC0D0p c 116 16
mknod -m 666 /dev/snd/pcmC0D1c c 116 25
mknod -m 666 /dev/snd/pcmC0D1p c 116 17
mknod -m 666 /dev/snd/pcmC0D2c c 116 26
mknod -m 666 /dev/snd/pcmC0D2p c 116 18
mknod -m 666 /dev/snd/pcmC0D3p c 116 19
mknod -m 666 /dev/snd/pcmC0D3c c 116 27
mknod -m 666 /dev/snd/pcmC0D4c c 116 28
mknod -m 666 /dev/snd/pcmC0D4p c 116 20
mknod -m 666 /dev/snd/pcmC0D5c c 116 29
mknod -m 666 /dev/snd/pcmC0D5p c 116 21
mknod -m 666 /dev/snd/pcmC0D6c c 116 30
mknod -m 666 /dev/snd/pcmC0D6p c 116 22
mknod -m 666 /dev/snd/pcmC0D7c c 116 31
mknod -m 666 /dev/snd/pcmC0D7p c 116 23
mknod -m 666 /dev/snd/seq c 116 1
mknod -m 666 /dev/snd/timer c 116 33
chown root:audio /dev/snd/*
mknod -m 666 /dev/admmidi0 c 14 14
mknod -m 666 /dev/admmidi1 c 14 30
mknod -m 666 /dev/admmidi2 c 14 46
mknod -m 666 /dev/admmidi3 c 14 62
chown root:audio /dev/admmidi*
mknod -m 666 /dev/adsp0 c 14 12
mknod -m 666 /dev/adsp1 c 14 28
mknod -m 666 /dev/adsp2 c 14 44
mknod -m 666 /dev/adsp3 c 14 60
chown root:audio /dev/adsp*
mknod -m 666 /dev/amidi0 c 14 13
mknod -m 666 /dev/amidi1 c 14 29
mknod -m 666 /dev/amidi2 c 14 45
mknod -m 666 /dev/amidi3 c 14 61
chown root:audio /dev/amidi*
mknod -m 666 /dev/amixer0 c 14 11
mknod -m 666 /dev/amixer1 c 14 27
mknod -m 666 /dev/amixer2 c 14 43
mknod -m 666 /dev/amixer3 c 14 59
chown root:audio /dev/amixer*
mknod -m 666 /dev/dmfm0 c 14 10
mknod -m 666 /dev/dmfm1 c 14 26
mknod -m 666 /dev/dmfm2 c 14 42
mknod -m 666 /dev/dmfm3 c 14 58
chown root:audio /dev/dmfm*
mknod -m 666 /dev/dmmidi0 c 14 9
mknod -m 666 /dev/dmmidi1 c 14 25
mknod -m 666 /dev/dmmidi2 c 14 41
mknod -m 666 /dev/dmmidi3 c 14 57
chown root:audio /dev/dmmidi*
mknod -m 666 /dev/mixer0 c 14 0
mknod -m 666 /dev/mixer1 c 14 16
mknod -m 666 /dev/mixer2 c 14 32
mknod -m 666 /dev/mixer3 c 14 48
chown root:audio /dev/mixer*
mknod -m 666 /dev/music c 14 8
chown root:audio /dev/music

ln -s /dev/adsp0 /dev/adsp
ln -s /dev/amidi0 /dev/amidi
ln -s /dev/midi0 /dev/midi
ln -s /dev/music /dev/sequencer2

For oss:
mknod -m 660 /dev/mixer c 14 0; chgrp audio /dev/mixer
mknod -m 660 /dev/mixer1 c 14 16; chgrp audio /dev/mixer1
mknod -m 660 /dev/dsp c 14 3; chgrp audio /dev/dsp
mknod -m 660 /dev/dsp1 c 14 19; chgrp audio /dev/dsp1

Xeli
Posts: 2
Joined: Sun Jan 31, 2010 10:50 pm

Re: USB Sound

Post by Xeli » Mon Feb 01, 2010 8:13 pm

Oh that's some nice detailed info right there! :)

Thanks a bunch ill have a go at it and see if i can get it to cross-compile properly!

assetman
Posts: 26
Joined: Sun May 02, 2010 5:16 am

Re: USB Sound

Post by assetman » Sun May 02, 2010 5:25 am

Any luck getting USB sound working? NS2 would make a great music player with mpd-server.

assetman
Posts: 26
Joined: Sun May 02, 2010 5:16 am

Re: USB Sound

Post by assetman » Sat Jan 29, 2011 9:53 am


Post Reply