|
|
08-08-2008
, 01:58 PM
|
|
Posts: 1,935 |
Thanked: 1,006 times |
Joined on Jul 2008
|
#2
|
|
|
08-09-2008
, 05:04 AM
|
|
|
Posts: 3,506 |
Thanked: 3,515 times |
Joined on Sep 2007
@ The crackhouse
|
#3
|
# 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"
# 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
#
audio_output {
type "ao"
name "default ao output"
# driver "alsa"
write_size "4096"
}
#audio_output {
# type "alsa"
# name "tablet sound"
# device "pcm.default" # optional
#
# format "44100:16:2" # optional
# use_mmap "yes"
#}
#...
(define devices '(alsa))
(define alsa-out-device "default")
#!/bin/sh
#
# modprobe post-install script for alsa
udev_is_active()
{
test -e /dev/.udev || test -d /dev/.udevdb || return 1
return 0
}
if udev_is_active ; then
# Stuff is done in a udev-run script instead
exit 0
fi
case "$1" in
snd-*-synth)
# module is not a sound card driver with a mixer
:
;;
*)
# module is a sound card driver with a mixer
exec /etc/init.d/alsa-utils start
;;
esac
#!/bin/sh
# DSP Gateway init script
# Copyright (C) 2007 INdT.
# @author Abner Jose de Faria Silva <abner.silva@indt.org.br>
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
# version 2.1 of the License, or (at your option) any later version.
#
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public
# License along with this library; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
set -e
DESC="DSP Gateway"
DAEMON=/usr/sbin/dsp_dld
DSPCTL=/usr/sbin/dspctl
DSPCONF=/lib/dsp/dsp_dld_avs.conf
DAEMONPARAM="-p --disable-restart -c $DSPCONF"
KMEMRESERVE=360000
PIDDIR=/var/run/dsp
PIDFILE=$PIDDIR/pid
test -x "$DAEMON" || exit 0
test -x "$DSPCTL" || exit 0
test -e "$DSPCONF" || exit 0
start_dsp()
{
if [ ! -d "$PIDDIR" ]; then
mkdir -p "$PIDDIR"
fi
if [ -e "$PIDFILE" ]; then
TMP=/proc/$(cat $PIDFILE)
if [ -d "$TMP" -a "$(readlink -f $TMP/exe)" = "$DAEMON" ]; then
echo "$DESC is already running."
return
else
echo "Removing old PID file $PIDFILE."
rm -f "$PIDFILE"
fi
fi
echo -n "Starting $DESC: "
chroot /mnt/initfs $DSPCTL kmem_reserve $KMEMRESERVE
start-stop-daemon --start --quiet -b --make-pidfile --pidfile "$PIDFILE" \
--exec "$DAEMON" -- $DAEMONPARAM
echo "done."
}
stop_dsp()
{
echo -n "Stopping $DESC: "
$DSPCTL kmem_release
start-stop-daemon --stop --quiet --name $(basename "$DAEMON") \
--pidfile "$PIDFILE"
rm -f "$PIDFILE"
echo "done."
}
case "$1" in
start)
start_dsp
;;
stop)
stop_dsp
;;
restart|force-reload)
stop_dsp
start_dsp
;;
*)
echo "Usage: $(basename $0) {start|stop|restart|force-reload}" >&2
exit 1
;;
esac
echo ""
exit 0
if [ ! -e /lib/modules/`uname -r` ]; then
mkdir -p /lib/modules/`uname -r`
ln -s /mnt/initfs/lib/modules/`uname -r` /lib/modules/`uname -r`/kernel
depmod -a
| The Following 3 Users Say Thank You to qwerty12 For This Useful Post: | ||
|
|
08-09-2008
, 06:16 AM
|
|
|
Posts: 754 |
Thanked: 2,233 times |
Joined on Jun 2008
@ Warsaw, Poland
|
#4
|
| The Following 3 Users Say Thank You to Stskeeps For This Useful Post: | ||
|
|
08-09-2008
, 03:23 PM
|
|
Posts: 1,935 |
Thanked: 1,006 times |
Joined on Jul 2008
|
#5
|
|
|
08-10-2008
, 06:16 AM
|
|
|
Moderator |
Posts: 5,831 |
Thanked: 5,036 times |
Joined on Oct 2007
@ Vancouver, BC, Canada
|
#6
|
http://physik.de/770/ARMEL-Install.txt <- from dschmicker's lenny debootstrap
|
|
08-15-2008
, 01:51 PM
|
|
|
Posts: 112 |
Thanked: 7 times |
Joined on Mar 2008
|
#7
|
|
|
08-15-2008
, 02:19 PM
|
|
|
Moderator |
Posts: 5,831 |
Thanked: 5,036 times |
Joined on Oct 2007
@ Vancouver, BC, Canada
|
#8
|
|
|
08-15-2008
, 05:53 PM
|
|
|
Posts: 112 |
Thanked: 7 times |
Joined on Mar 2008
|
#9
|
|
|
08-17-2008
, 04:49 PM
|
|
|
Posts: 112 |
Thanked: 7 times |
Joined on Mar 2008
|
#10
|
![]() |
| Tags |
| debian, deblet |
| Thread Tools | |
|
OK here goes a log of what I did (/media/maemo is where I mount my SD maemo partition):
vi /etc/udev/rules.d/50-udev.rules
I added them AFTER the section that says ALSA devices.. therefore it looks similar to this:
# ALSA devices KERNEL=="controlC[0-9]*", NAME="snd/%k" KERNEL=="hwC[D0-9]*", NAME="snd/%k" KERNEL=="pcmC[D0-9cp]*", NAME="snd/%k" KERNEL=="midiC[D0-9]*", NAME="snd/%k" KERNEL=="timer", NAME="snd/%k" KERNEL=="seq", NAME="snd/%k" KERNEL=="snd", SUBSYSTEM=="module", ACTION=="add", \ RUN+="/bin/ln -sf /proc/asound/oss/sndstat $root/sndstat" # 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"audio_output { type "ao" name "default ao output" # driver "alsa" write_size "4096" }I have NO idea if any of that can be packaged without breaking license agreements..
N810 - Diablo/Mer
Desktop/Netbook/Laptop/Gaming System - Ubuntu 9.10
If I've helped you or you use any of my packages feel free to help me buy an N900 so I can help further.
Maintaining:
Pianobar (Pandora Radio)
pyPianobar - pianobar GUI.
Last edited by fatalsaint; 08-21-2008 at 01:45 PM.