[oe-commits] org.oe.dev add openmoko-sound-system2
mickeyl commit
openembedded-commits at lists.openembedded.org
Sun Sep 16 11:55:57 UTC 2007
add openmoko-sound-system2
Author: mickeyl at openembedded.org
Branch: org.openembedded.dev
Revision: 2b94d08f32fa7755d1ad4782bbf89354d47b69d2
ViewMTN: http://monotone.openembedded.org/revision/info/2b94d08f32fa7755d1ad4782bbf89354d47b69d2
Files:
1
packages/openmoko2/openmoko-sound-system2
packages/openmoko2/openmoko-sound-system2/pulseaudio
packages/openmoko2/openmoko-sound-system2/session
packages/openmoko2/openmoko-sound-system2_0.1.0.bb
packages/tasks/task-openmoko.bb
mtn:execute
true
Diffs:
#
# mt diff -r076fedc85ec09ffa953ecefcb964c5f13c4ff70f -r2b94d08f32fa7755d1ad4782bbf89354d47b69d2
#
#
#
# add_dir "packages/openmoko2/openmoko-sound-system2"
#
# add_file "packages/openmoko2/openmoko-sound-system2/pulseaudio"
# content [d433451e55cb5437d6d11869506ebab909fc386b]
#
# add_file "packages/openmoko2/openmoko-sound-system2/session"
# content [440f08023fd2111ebd3ab7b3914fba30c36e0d59]
#
# add_file "packages/openmoko2/openmoko-sound-system2_0.1.0.bb"
# content [d2d7385073d2de3086a6fc7137fa76d25390a2c1]
#
# patch "packages/tasks/task-openmoko.bb"
# from [1f4ed45915bb563be9bd8113847b5c0b090ec159]
# to [c8527c9bada246974a8da5467941abc86bf3d4d2]
#
# set "packages/openmoko2/openmoko-sound-system2/pulseaudio"
# attr "mtn:execute"
# value "true"
#
============================================================
--- packages/openmoko2/openmoko-sound-system2/pulseaudio d433451e55cb5437d6d11869506ebab909fc386b
+++ packages/openmoko2/openmoko-sound-system2/pulseaudio d433451e55cb5437d6d11869506ebab909fc386b
@@ -0,0 +1,46 @@
+#!/bin/sh
+#
+# pulseaudio This shell script starts and stops pulseaudio.
+#
+# chkconfig: 345 90 40
+# description: Pulseaudio manages the sound input/output
+# processname: pulseaudio
+
+# Source function library.
+#. /etc/rc.d/init.d/functions
+
+RETVAL=0
+prog="pulseaudio"
+
+start() {
+ echo -n "Starting the audio server..."
+ # FIXME once alsa/shm permissions have been fixed, supply --system
+ pulseaudio --resample-method=trivial -D -nF /etc/pulse/session
+ echo $prog
+}
+
+stop() {
+ # Stop daemons.
+ echo -n "Shutting down $prog: "
+ killall pulseaudio
+ echo "done"
+}
+
+# See how we were called.
+case "$1" in
+ start)
+ start
+ ;;
+ stop)
+ stop
+ ;;
+ restart|reload)
+ stop
+ start
+ ;;
+ *)
+ echo "Usage: $0 {start|stop|restart}"
+ exit 1
+esac
+
+exit $RETVAL
============================================================
--- packages/openmoko2/openmoko-sound-system2/session 440f08023fd2111ebd3ab7b3914fba30c36e0d59
+++ packages/openmoko2/openmoko-sound-system2/session 440f08023fd2111ebd3ab7b3914fba30c36e0d59
@@ -0,0 +1,28 @@
+#!/usr/bin/pulseaudio -nF
+
+# Create autoload entries for the device drivers
+add-autoload-sink output module-alsa-sink fragment_size=2048 sink_name=output
+add-autoload-source input module-alsa-source source_name=input
+
+# Load several protocols
+load-module module-esound-protocol-unix
+load-module module-simple-protocol-tcp
+load-module module-native-protocol-unix
+load-module module-cli-protocol-unix
+
+# Make some devices default
+set-default-sink output
+set-default-source input
+
+# Don't fail if the audio files referred to below don't exist
+.nofail
+
+# Load an audio to the sample cache for usage with module-x11-bell
+load-sample-lazy x11-bell /usr/share/openmoko/sounds/notify_doorbell.wav
+load-module module-x11-bell sample=x11-bell
+
+# Load samples
+load-sample startup /usr/share/openmoko/sounds/startup_openmoko.wav
+load-sample touchscreen /usr/share/openmoko/sounds/touchscreen_click.wav
+load-sample ringtone /usr/share/openmoko/sounds/ringtone_classy.wav
+
============================================================
--- packages/openmoko2/openmoko-sound-system2_0.1.0.bb d2d7385073d2de3086a6fc7137fa76d25390a2c1
+++ packages/openmoko2/openmoko-sound-system2_0.1.0.bb d2d7385073d2de3086a6fc7137fa76d25390a2c1
@@ -0,0 +1,31 @@
+DESCRIPTION = "OpenMoko Sound System"
+SECTION = "openmoko/base"
+RDEPENDS = "\
+ pulseaudio-server \
+ pulseaudio-module-alsa-sink \
+ pulseaudio-module-alsa-source \
+ pulseaudio-module-cli \
+ pulseaudio-module-esound-protocol-unix \
+ pulseaudio-module-simple-protocol-tcp \
+ pulseaudio-module-native-protocol-unix \
+ pulseaudio-module-cli-protocol-unix \
+"
+PR = "r0"
+
+inherit openmoko-base update-rc.d
+
+INITSCRIPT_NAME = "pulseaudio"
+INITSCRIPT_PARAMS = "defaults 35"
+
+SRC_URI = "file://pulseaudio \
+ file://session"
+S = "${WORKDIR}"
+
+do_install() {
+ install -d ${D}/${sysconfdir}/init.d
+ install -m 0755 ${WORKDIR}/pulseaudio ${D}/${sysconfdir}/init.d/
+ install -d ${D}/${sysconfdir}/pulse
+ install -m 0755 ${WORKDIR}/session ${D}/${sysconfdir}/pulse/session
+}
+
+PACKAGE_ARCH = "all"
============================================================
--- packages/tasks/task-openmoko.bb 1f4ed45915bb563be9bd8113847b5c0b090ec159
+++ packages/tasks/task-openmoko.bb c8527c9bada246974a8da5467941abc86bf3d4d2
@@ -1,8 +1,8 @@ PROVIDES = "task-openmoko-everything"
DESCRIPTION = "OpenMoko: Tasks for the OpenMoko Linux Distribution"
SECTION = "openmoko/base"
LICENSE = "MIT"
PROVIDES = "task-openmoko-everything"
-PR = "r63"
+PR = "r64"
inherit task
@@ -68,22 +68,22 @@ RDEPENDS_task-openmoko-ui = "\
settings-daemon \
\
openmoko-session2 \
- openmoko-sound-system \
+ openmoko-sound-system2 \
openmoko-sound-theme-standard2 \
neod \
gpe-scap \
"
-# handle theming. FIXME: properly use machine database in a smart way,
+# Handle theming. FIXME: properly use machine database in a smart way,
# taking into account not only size but also PPI! Ultimately this might
# need recomputing some theme files and images on-the-fly :/ SVG and logical
# theme description anyone? Or simply Edje to the rescue! :D
-THEMES = "openmoko-icon-theme-standard2 openmoko-theme-standard2"
-THEMES_a780 = "openmoko-icon-theme-standard2-qvga openmoko-theme-standard2-qvga"
-THEMES_e680 = "openmoko-icon-theme-standard2-qvga openmoko-theme-standard2-qvga"
-THEMES_a1200 = "openmoko-icon-theme-standard2-qvga openmoko-theme-standard2-qvga"
-THEMES_rokre2 = "openmoko-icon-theme-standard2-qvga openmoko-theme-standard2-qvga"
-THEMES_rokre6 = "openmoko-icon-theme-standard2-qvga openmoko-theme-standard2-qvga"
+THEMES = "openmoko-icon-theme-standard2 openmoko-theme-standard2"
+THEMES_a780 = "openmoko-icon-theme-standard2-qvga openmoko-theme-standard2-qvga"
+THEMES_e680 = "openmoko-icon-theme-standard2-qvga openmoko-theme-standard2-qvga"
+THEMES_a1200 = "openmoko-icon-theme-standard2-qvga openmoko-theme-standard2-qvga"
+THEMES_rokre2 = "openmoko-icon-theme-standard2-qvga openmoko-theme-standard2-qvga"
+THEMES_rokre6 = "openmoko-icon-theme-standard2-qvga openmoko-theme-standard2-qvga"
THEMES_magician = "openmoko-icon-theme-standard2-qvga openmoko-theme-standard2-qvga"
RDEPENDS_task-openmoko-ui += "${THEMES}"
More information about the Openembedded-commits
mailing list