![]() |
2008-08-08
, 16:58
|
Posts: 3,428 |
Thanked: 2,856 times |
Joined on Jul 2008
|
#2
|
The Following User Says Thank You to fatalsaint For This Useful Post: | ||
![]() |
2008-08-09
, 08:04
|
|
Posts: 4,274 |
Thanked: 5,358 times |
Joined on Sep 2007
@ Looking at y'all and sighing
|
#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: | ||
![]() |
2008-08-09
, 09:16
|
|
Posts: 1,671 |
Thanked: 11,478 times |
Joined on Jun 2008
@ Warsaw, Poland
|
#4
|
The Following 3 Users Say Thank You to Stskeeps For This Useful Post: | ||
![]() |
2008-08-09
, 18:23
|
Posts: 3,428 |
Thanked: 2,856 times |
Joined on Jul 2008
|
#5
|
The Following User Says Thank You to fatalsaint For This Useful Post: | ||
![]() |
2008-08-10
, 09:16
|
|
Moderator |
Posts: 7,109 |
Thanked: 8,820 times |
Joined on Oct 2007
@ Vancouver, BC, Canada
|
#6
|
http://physik.de/770/ARMEL-Install.txt <- from dschmicker's lenny debootstrap
![]() |
2008-08-15
, 16:51
|
|
Posts: 140 |
Thanked: 13 times |
Joined on Mar 2008
|
#7
|
![]() |
2008-08-15
, 17:19
|
|
Moderator |
Posts: 7,109 |
Thanked: 8,820 times |
Joined on Oct 2007
@ Vancouver, BC, Canada
|
#8
|
![]() |
2008-08-15
, 20:53
|
|
Posts: 140 |
Thanked: 13 times |
Joined on Mar 2008
|
#9
|
![]() |
2008-08-17
, 19:49
|
|
Posts: 140 |
Thanked: 13 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:
I have NO idea if any of that can be packaged without breaking license agreements..
If I've helped you or you use any of my packages feel free to help me out.
-----------------------------------------------------------------------------------
Maintaining:
pyRadio - Pandora Radio on your N900, N810 or N800!
Last edited by fatalsaint; 2008-08-21 at 16:45.