From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Fri, 26 Sep 2003 12:28:32 +0400 From: Stanislav Ievlev To: sisyphus@altlinux.ru Subject: Re: [sisyphus] /etc/rc.d/init.d/sound, aumix, alsa, oss Message-ID: <20030926082832.GA30444@basalt.office.altlinux.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=koi8-r Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-BeenThere: sisyphus@altlinux.ru X-Mailman-Version: 2.1.2 Precedence: list Reply-To: sisyphus@altlinux.ru List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 26 Sep 2003 08:28:33 -0000 Archived-At: List-Archive: Занесите это всё в BTS, пожайлуста, дабы не потерялось. On Thu, Sep 25, 2003 at 12:52:40PM +0300, Serge Ryabchun wrote: > Здравствуйте, > > Сначала про aumix. В RedHat начиная где-то c 5.0 есть /bin/aumix-minimal: > > $ ldd /bin/aumix-minimal > libc.so.6 => /lib/libc.so.6 (0x40022000) > /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000) > > в отличии от нашего: > # ldd /usr/bin/aumix > libgpm.so.1 => /usr/lib/libgpm.so.1 (0x4000d000) > libncurses.so.5 => /usr/lib/libncurses.so.5 (0x40013000) > libgtk-1.2.so.0 => /usr/lib/libgtk-1.2.so.0 (0x4002f000) > libgdk-1.2.so.0 => /usr/lib/libgdk-1.2.so.0 (0x4018b000) > libgmodule-1.2.so.0 => /lib/libgmodule-1.2.so.0 (0x401c4000) > libglib-1.2.so.0 => /lib/libglib-1.2.so.0 (0x401c7000) > libdl.so.2 => /lib/libdl.so.2 (0x401ee000) > libXi.so.6 => /usr/X11R6/lib/libXi.so.6 (0x401f1000) > libXext.so.6 => /usr/X11R6/lib/libXext.so.6 (0x401f9000) > libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0x40207000) > libm.so.6 => /lib/libm.so.6 (0x402cf000) > libc.so.6 => /lib/libc.so.6 (0x402f2000) > libtinfo.so.5 => /lib/libtinfo.so.5 (0x4040d000) > /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x80000000) > > libX11.so и остальные у меня на многих серверах никогда не появится, > в тоже время aumix там нужен - помимо емыла, на матюгальник выдаются > сообщения о том-сём. Приходится собирать и ставить красношляпный. > Посему вопрос, будет ли у нас aumix-minimal? > > Не совсем понятна наша политика со звуком: > Если есть ALSA, грузим ALSA, иначе грузим OSS. IMHO, очень жесткая > завязка. У меня 3 источника звука - es1371, на ней висят колонки, в > зависимости от задачи грузятся alsa или oss; via8235, воткнут в > телевизор вместе с tvout, грузится alsa; и tvtuner, но этим за > последний год я не пользовался, хотя он таки есть. Те меня совершенно > не устраивает имеющийся стартовый скрипт, пришлось заменить своим: > > cat /adm/sound >>>>>>>>>>>>--- > > #!/bin/bash > > function rm_sound_modules() { > > [ -f /etc/sysconfig/sound-0.alsa -o -f /etc/sysconfig/sound-0.oss ] && modprobe -r sound-slot-0 > [ -f /etc/sysconfig/sound-1.alsa -o -f /etc/sysconfig/sound-1.oss ] && modprobe -r sound-slot-1 > [ -f /etc/sysconfig/sound-2.alsa -o -f /etc/sysconfig/sound-2.oss ] && modprobe -r sound-slot-2 > } > > function probe_sound_modules() { > > [ -f /etc/sysconfig/sound-0.alsa -o -f /etc/sysconfig/sound-0.oss ] && modprobe sound-slot-0 > [ -f /etc/sysconfig/sound-1.alsa -o -f /etc/sysconfig/sound-1.oss ] && modprobe sound-slot-1 > [ -f /etc/sysconfig/sound-2.alsa -o -f /etc/sysconfig/sound-2.oss ] && modprobe sound-slot-2 > } > > case "$1" in > start|restart|reload) > rm_sound_modules > probe_sound_modules > ;; > stop) > rm_sound_modules > ;; > set) > case "$2" in > 0|1|2) > case "$3" in > alsa|oss) > rm_sound_modules > rm -f /etc/sysconfig/sound-$2.* 2> /dev/null > touch /etc/sysconfig/sound-$2.$3 > probe_sound_modules > ;; > esac > ;; > *) > ;; > esac > ;; > *) > ;; > esac > exit 0 > > <<<<<<<<<<<<--- > > в quake3 зовется "sudo /adm/sound set 0 oss", а в winex "sudo /adm/sound set 0 alsa" > > В modules.conf прописано: > > alias char-major-116 snd > post-install sound-slot-0 /usr/bin/aumix -d /dev/mixer -f /etc/.aumixrc -L >/dev/null 2>&1 || : > pre-remove sound-slot-0 /usr/bin/aumix -d /dev/mixer -f /etc/.aumixrc -S >/dev/null 2>&1 || : > post-install sound-slot-1 /usr/bin/aumix -d /dev/mixer1 -f /etc/.aumixrc1 -L >/dev/null 2>&1 || : > pre-remove sound-slot-1 /usr/bin/aumix -d /dev/mixer1 -f /etc/.aumixrc1 -S >/dev/null 2>&1 || : > > if -f /etc/sysconfig/sound-0.oss > alias sound-slot-0 es1371 > alias sound-service-0-0 es1371 > elseif -f /etc/sysconfig/sound-0.alsa > alias snd-card-0 snd-ens1371 > below snd-card-0 snd-pcm-oss > alias sound-slot-0 snd-card-0 > alias sound-service-0-0 snd-mixer-oss > alias sound-service-0-1 snd-seq-oss > alias sound-service-0-3 snd-pcm-oss > alias sound-service-0-8 snd-seq-oss > alias sound-service-0-12 snd-pcm-oss > endif > > if -f /etc/sysconfig/sound-1.oss > alias sound-slot-1 via82cxxx_audio > alias sound-service-1-0 via82cxxx_audio > elseif -f /etc/sysconfig/sound-1.alsa > alias snd-card-1 snd-via82xx > below snd-card-1 snd-pcm-oss > alias sound-slot-1 snd-card-1 > alias sound-service-1-0 snd-mixer-oss > alias sound-service-1-1 snd-seq-oss > alias sound-service-1-3 snd-pcm-oss > alias sound-service-1-8 snd-seq-oss > alias sound-service-1-12 snd-pcm-oss > endif > > -- > Serge Ryabchun sr@osdn.org.ua > > _______________________________________________ > Sisyphus mailing list > Sisyphus@altlinux.ru > http://altlinux.ru/mailman/listinfo/sisyphus