[oe-commits] org.oe.dev Adding mamona-sound-n800 package.
rodrigo.vivi commit
oe at amethyst.openembedded.net
Tue Mar 25 06:27:22 UTC 2008
Adding mamona-sound-n800 package.
Used by mamona to configure sound system on nokia N8*0 using dsp.
Author: rodrigo.vivi at openembedded.org
Branch: org.openembedded.dev
Revision: 77b913cdbd1e6b7cdd8d8ba2343e2d69caf1de14
ViewMTN: http://monotone.openembedded.org/revision/info/77b913cdbd1e6b7cdd8d8ba2343e2d69caf1de14
Files:
1
packages/mamona/mamona-sound-n800
packages/mamona/mamona-sound-n800/asound.conf
packages/mamona/mamona-sound-n800/asound.state
packages/mamona/mamona-sound-n800/dsp-n800.rules
packages/mamona/mamona-sound-n800_0.1.0.bb
Diffs:
#
# mt diff -r6ec6766bb83059c513c49fb1e82a42322a46ab36 -r77b913cdbd1e6b7cdd8d8ba2343e2d69caf1de14
#
#
#
# add_dir "packages/mamona/mamona-sound-n800"
#
# add_file "packages/mamona/mamona-sound-n800/asound.conf"
# content [4c3a80721a75c72a021764b5b66270324c7e84ff]
#
# add_file "packages/mamona/mamona-sound-n800/asound.state"
# content [b52d1e3b20ac77cb38dc4c188831aad27ddc6349]
#
# add_file "packages/mamona/mamona-sound-n800/dsp-n800.rules"
# content [088e823b2de1c88cff0c7087a50244e848c1c5a5]
#
# add_file "packages/mamona/mamona-sound-n800_0.1.0.bb"
# content [8faec36ac452ef13d528516a9db23e4bb19ef065]
#
============================================================
--- packages/mamona/mamona-sound-n800/asound.conf 4c3a80721a75c72a021764b5b66270324c7e84ff
+++ packages/mamona/mamona-sound-n800/asound.conf 4c3a80721a75c72a021764b5b66270324c7e84ff
@@ -0,0 +1,22 @@
+# PCM
+pcm.!default {
+ type alsa_dsp
+ playback_device_file ["/dev/dsptask/pcm3"]
+ recording_device_file ["/dev/dsptask/pcm_rec1"]
+}
+
+# Mixer
+ctl.!master {
+ type hw
+ card 0
+}
+
+ctl.!default {
+ type dsp_ctl
+ playback_devices ["/dev/dsptask/pcm3"]
+ recording_devices ["/dev/dsptask/pcm_rec1"]
+}
+
+# OSS emulation
+pcm.dsp0 pcm.default
+ctl.mixer0 mixer.default
============================================================
--- packages/mamona/mamona-sound-n800/asound.state b52d1e3b20ac77cb38dc4c188831aad27ddc6349
+++ packages/mamona/mamona-sound-n800/asound.state b52d1e3b20ac77cb38dc4c188831aad27ddc6349
@@ -0,0 +1,105 @@
+state.EAC {
+ control.1 {
+ comment.access 'read write'
+ comment.type BOOLEAN
+ comment.count 2
+ iface MIXER
+ name 'Capture Switch'
+ value.0 false
+ value.1 false
+ }
+ control.2 {
+ comment.access 'read write'
+ comment.type INTEGER
+ comment.count 2
+ comment.range '6 - 127'
+ iface MIXER
+ name 'Capture Volume'
+ value.0 87
+ value.1 87
+ }
+ control.3 {
+ comment.access 'read write'
+ comment.type BOOLEAN
+ comment.count 2
+ iface MIXER
+ name 'PCM Playback Switch'
+ value.0 true
+ value.1 true
+ }
+ control.4 {
+ comment.access 'read write'
+ comment.type INTEGER
+ comment.count 2
+ comment.range '0 - 127'
+ iface MIXER
+ name 'PCM Playback Volume'
+ value.0 103
+ value.1 103
+ }
+ control.5 {
+ comment.access 'read write'
+ comment.type BOOLEAN
+ comment.count 2
+ iface MIXER
+ name 'Line Playback Switch'
+ value.0 false
+ value.1 false
+ }
+ control.6 {
+ comment.access 'read write'
+ comment.type INTEGER
+ comment.count 2
+ comment.range '31 - 127'
+ iface MIXER
+ name 'Line Playback Volume'
+ value.0 103
+ value.1 103
+ }
+ control.7 {
+ comment.access 'read write'
+ comment.type INTEGER
+ comment.count 1
+ comment.range '1 - 3'
+ iface MIXER
+ name 'Mic Boost'
+ value 0
+ }
+ control.8 {
+ comment.access 'read write'
+ comment.type ENUMERATED
+ comment.count 2
+ comment.item.0 Mic
+ comment.item.1 Line
+ comment.item.2 'Line swapped'
+ comment.item.3 'Line mono'
+ iface MIXER
+ name 'Capture Source'
+ value.0 Mic
+ value.1 Mic
+ }
+ control.9 {
+ comment.access 'read write'
+ comment.type BOOLEAN
+ comment.count 1
+ iface MIXER
+ name 'Headset Amplifier'
+ value false
+ }
+ control.10 {
+ comment.access 'read write'
+ comment.type BOOLEAN
+ comment.count 1
+ iface MIXER
+ name 'Speaker Amplifier'
+ value true
+ }
+ control.11 {
+ comment.access 'read write'
+ comment.type BOOLEAN
+ comment.count 1
+ iface MIXER
+ name 'Headset Mic Select'
+ value false
+ }
+}
============================================================
--- packages/mamona/mamona-sound-n800/dsp-n800.rules 088e823b2de1c88cff0c7087a50244e848c1c5a5
+++ packages/mamona/mamona-sound-n800/dsp-n800.rules 088e823b2de1c88cff0c7087a50244e848c1c5a5
@@ -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"
============================================================
--- packages/mamona/mamona-sound-n800_0.1.0.bb 8faec36ac452ef13d528516a9db23e4bb19ef065
+++ packages/mamona/mamona-sound-n800_0.1.0.bb 8faec36ac452ef13d528516a9db23e4bb19ef065
@@ -0,0 +1,36 @@
+DESCRIPTION = "Mamona's sound configuration for Nokia N800"
+HOMEPAGE = "http://dev.openbossa.org/trac/mamona/"
+#SECTION = "console/utils"
+LICENSE = "GPL"
+RDEPENDS = "dspgw-utils udev alsa-lib alsa-utils-alsactl alsa-state"
+PR = "r1"
+
+PACKAGES = "${PN}"
+
+SRC_URI = "file://dsp-n800.rules \
+ file://asound.conf \
+ file://asound.state \
+ "
+
+# 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}/
+
+ install -d ${D}${sysconfdir}
+ install -m 0644 ${WORKDIR}/asound.state ${D}${sysconfdir}/
+}
More information about the Openembedded-commits
mailing list