diff options
-rw-r--r-- | packages/mamona/mamona-sound-n770/asound.conf | 22 | ||||
-rw-r--r-- | packages/mamona/mamona-sound-n770/dsp-n800.rules | 6 | ||||
-rw-r--r-- | packages/mamona/mamona-sound-n770_0.1.0.bb | 32 |
3 files changed, 60 insertions, 0 deletions
diff --git a/packages/mamona/mamona-sound-n770/asound.conf b/packages/mamona/mamona-sound-n770/asound.conf new file mode 100644 index 0000000000..e7f73cec87 --- /dev/null +++ b/packages/mamona/mamona-sound-n770/asound.conf @@ -0,0 +1,22 @@ +# PCM +pcm.!default { + type alsa_dsp + playback_device_file ["/dev/dsptask/pcm1"] + recording_device_file ["/dev/dsptask/pcm_rec"] +} + +# Mixer +ctl.!master { + type hw + card 0 +} + +ctl.!default { + type dsp_ctl + playback_devices ["/dev/dsptask/pcm1"] + recording_devices ["/dev/dsptask/pcm_rec"] +} + +# OSS emulation +pcm.dsp0 pcm.default +ctl.mixer0 mixer.default diff --git a/packages/mamona/mamona-sound-n770/dsp-n800.rules b/packages/mamona/mamona-sound-n770/dsp-n800.rules new file mode 100644 index 0000000000..ae01361899 --- /dev/null +++ b/packages/mamona/mamona-sound-n770/dsp-n800.rules @@ -0,0 +1,6 @@ +# dsp dev +KERNEL=="dspctl", NAME="dspctl/ctl" +KERNEL=="dspmem", NAME="dspctl/mem", MODE="0640", GROUP="kmem" +KERNEL=="dsptwch", NAME="dspctl/twch", MODE="0640" +KERNEL=="dsperr", NAME="dspctl/err", MODE="0440" +KERNEL=="dsptask[0-9]*", MODE="0666" diff --git a/packages/mamona/mamona-sound-n770_0.1.0.bb b/packages/mamona/mamona-sound-n770_0.1.0.bb new file mode 100644 index 0000000000..c0bea6a634 --- /dev/null +++ b/packages/mamona/mamona-sound-n770_0.1.0.bb @@ -0,0 +1,32 @@ +DESCRIPTION = "Mamona's sound configuration for Nokia N770" +HOMEPAGE = "http://dev.openbossa.org/trac/mamona/" +#SECTION = "console/utils" +LICENSE = "GPL" +RDEPENDS = "dspgw-utils udev alsa-lib alsa-utils-alsactl" +PR = "r1" + +PACKAGES = "${PN}" + +SRC_URI = "file://dsp-n800.rules \ + file://asound.conf \ + " + +# Skipping... +do_configure () { +} + +# Skipping... +do_stage () { +} + +# Skipping... +do_compile () { +} + +do_install () { + install -d ${D}${sysconfdir}/udev/rules.d + install -m 0755 ${WORKDIR}/dsp-n800.rules ${D}${sysconfdir}/udev/rules.d/ + + install -d ${D}${sysconfdir} + install -m 0644 ${WORKDIR}/asound.conf ${D}${sysconfdir}/ +} |