From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Apparently-From: Message-ID: <005901c0acdd$65199860$d801a8c0@coxhome> From: "Murat H. Dymov" To: References: <342766838.19980314175335@crosswinds.net> Subject: Re: [mdk-re] Bug -- sound configuration Organization: University of Rhode Island MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_NextPart_000_0057_01C0ACBB.DD70E880" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Sender: mandrake-russian-admin@linuxteam.iplabs.ru Errors-To: mandrake-russian-admin@linuxteam.iplabs.ru X-BeenThere: mandrake-russian@linuxteam.iplabs.ru X-Mailman-Version: 2.0 Precedence: bulk Reply-To: mandrake-russian@linuxteam.iplabs.ru X-Reply-To: "Murat H. Dymov" List-Help: List-Post: List-Subscribe: , List-Id: Mandrake/RE discussion list List-Unsubscribe: , List-Archive: Date: Thu Mar 15 03:18:15 2001 X-Original-Date: Wed, 14 Mar 2001 19:20:43 -0400 Archived-At: List-Archive: This is a multi-part message in MIME format. ------=_NextPart_000_0057_01C0ACBB.DD70E880 Content-Type: text/plain; charset="koi8-r" Content-Transfer-Encoding: quoted-printable =F0=D2=C9=D7=C5=D4, =F5 =CD=C5=CE=D1 BlackCat 6.2 =CE=C1 =CE=CF=D5=D4=C2=D5=CB=C5, = =D4=CF=D6=C5 =CD=D5=DE=C1=CC=D3=D1 =D3=CF =DA=D7=D5=CB=CF=CD =CE=C1 = Crystal Sound. =F4=D5=D4 =CD=CF=C9 modules.conf =C9 sound.conf =C9 = /etc/rc.d/initd/alsasound.=20 =CB=D3=D4=C1=D4=C9, =D0=D2=C9=DB=CC=CF=D3=D8 =C9 = /etc/rc.d/initd/alsasound =D4=CF=D6=C5 =D0=CF=C4=D0=D2=C1=D7=C9=D4=D8, = =C2=C5=DA =CE=C5=C7=CF =CF=CE =D3=C9=D3=D4=C5=CD=CE=D9=CA = =CD=C9=CB=D3=C5=D2 =CE=C5 =C7=D2=D5=DA=C9=CC.... =F0=CF=D0=D2=CF=C2=D5=CA, =CD=CF=D6=C5=D4 =D0=D2=C9=C7=CF=C4=C9=D4=D3=D1 = =F5=C4=C1=DE=C9 =ED=D5=D2=C1=D4 ----- Original Message -----=20 From: "remark" To: "Sergey S. Skulachenko" Cc: Sent: Saturday, March 14, 1998 10:53 AM Subject: Re: [mdk-re] Bug -- sound configuration > > =E1 =C2=D9=CC =CC=C9 =D4=C1=CA=CE=D9=CA =C7=CC=D5=C2=CF=CB=C9=CA = =D3=CD=D9=D3=CC =CD=C5=CE=D1=D4=D8 sndconfig =CE=C1 =DE=D4=CF-=D4=CF = =C5=DD=C5? > >=F7=D3=D0=CF=CD=C9=CE=C1=C0, =CB=C1=CB =CC=C5=C7=CB=CF =CF=CE = =D2=C1=D3=D0=D2=C1=D7=CC=D1=CC=D3=D1 =D3 AWE32. > >-- > >=F3 =D5=D7=C1=D6=C5=CE=C9=C5=CD, > >=F3.=F3.=F3=CB=D5=CC=C1=DE=C5=CE=CB=CF > =F7=C5=D2=CE=CF-=D7=C5=D2=CE=CF... =D7 =D3 =CB=C1=D2=D4=C1=CD=C9 = =D4=C1=CB=CF=C7=CF =CB=CC=C1=D3=D3=C1 =CC=C5=C7=CB=CF... > =C1 =CB=C1=CB =C2=D9=D4=D8 =CD=CE=C5 =D5 =CB=CF=D4=CF=D2=CF=C7=CF = Genius 32X =D3 =DE=C9=D0=CF=CD Crystal 4281? > =D1 =DA=C1=CD=CF=D4=C1=CC=D3=D1 =D2=CF=C7=C1=CD=C9 = =D3=D4=D5=DE=C1=D4=D8 =CF =CD=C1=DB=C9=CE=D5, =DE=D4=CF =C2=D9 = =DA=C1=D3=D4=C1=D7=C9=D4=D8 =D2=C1=C2=CF=D4=C1=D4=D8 =DA=D7=D5=CB. >=20 > =CE=C1 =D1=C4=D2=C5 2.2.* alsa =CF=D4=CB=C1=DA=D9=D7=C1=C5=D4=D3=D1 = =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=D7=D5=C5=D4? > =D7 =CD=C1=D3=D4=C4=C1=CA =D1 =CC=C0=C2=CF=CA =C4=D2=C1=CA=D7=C5=D2 = =D5=D3=D4=C1=CE=C1=D7=CC=C9=D7=C1=C0, =CB=C1=CB =C2=D9 =C5=A3 =CE=C5 = =C8=C1=D1=CC=C9. > =D2=C1=DA=D5=CD=C5=C5=D4=D3=D1 =C5=D3=CC=C9 =CE=C5=D4 = =C1=D0=D0=C1=D2=C1=D4=CE=D9=C8 =CB=CF=CE=C6=CC=C9=CB=D4=CF=D7, =CE=CF = =D3=C9=C5 =D0=CF=CE=D1=D4=C9=C5 =D7=C5=D3=D8=CD=C1 > =D2=C1=D3=D4=D1=D6=C9=CD=CF=C5... > --=20 > Best regards, > remark mailto:remark@crosswinds.net >=20 >=20 >=20 > _______________________________________________ > Mandrake-russian mailing list > Mandrake-russian@linuxteam.iplabs.ru > http://altlinux.ru/mailman/listinfo/mandrake-russian ------=_NextPart_000_0057_01C0ACBB.DD70E880 Content-Type: application/octet-stream; name="alsasound" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="alsasound" #!/bin/bash=0A= #=0A= # alsasound This shell script takes care of starting and stopping=0A= # the ALSA sound driver.=0A= #=0A= # This script requires /usr/sbin/alsactl program from alsa-utils package.=0A= #=0A= # Copyright (c) by Jaroslav Kysela =0A= #=0A= #=0A= # This program is free software; you can redistribute it and/or modify=0A= # it under the terms of the GNU General Public License as published by=0A= # the Free Software Foundation; either version 2 of the License, or=0A= # (at your option) any later version.=0A= #=0A= # This program is distributed in the hope that it will be useful,=0A= # but WITHOUT ANY WARRANTY; without even the implied warranty of=0A= # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the=0A= # GNU General Public License for more details.=0A= #=0A= # You should have received a copy of the GNU General Public License=0A= # along with this program; if not, write to the Free Software=0A= # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.=0A= #=0A= #=0A= # For RedHat 5.0+:=0A= # chkconfig: 2345 87 14=0A= # description: ALSA driver=0A= #=0A= # modified to visually fit into SuSE 6.0+ by Philipp Thomas = =0A= # further improvements by Bernd Kaindl, Olaf Hering and Takashi Iwai.=0A= # =0A= ### BEGIN INIT INFO=0A= # Provides: alsasound=0A= # Required-Start:=0A= # Required-Stop:=0A= # Default-Start: 2 3 5=0A= # Default-Stop:=0A= # Description: Loading ALSA drivers and store/restore the current = setting=0A= ### END INIT INFO=0A= =0A= if [ -r /etc/rc.config ]; then=0A= . /etc/rc.config=0A= rc_warning=3D"\033[m33m\033[1m"=0A= else=0A= rc_done=3D"done"=0A= rc_warning=3D""=0A= rc_reset=3D""=0A= fi=0A= =0A= if [ x$START_ALSA !=3D xno ]; then=0A= START_ALSA=3Dyes=0A= fi=0A= if [ x$START_ALSA_SEQ !=3D xno ]; then=0A= START_ALSA_SEQ=3Dyes=0A= fi=0A= =0A= # Determine the base and follow a runlevel link name.=0A= base=3D${0##*/}=0A= link=3D${base#*[SK][0-9][0-9]}=0A= =0A= # Force execution if not called by a runlevel directory.=0A= test $link =3D $base && START_ALSA=3Dyes=0A= test "$START_ALSA" =3D yes || exit 0=0A= =0A= alsactl=3D/usr/sbin/alsactl=0A= asoundcfg=3D/etc/asound.conf=0A= aconnect=3D/usr/bin/aconnect=0A= =0A= function start() {=0A= #=0A= # insert all sound modules=0A= #=0A= /sbin/modprobe -c | \=0A= grep -E "^alias( |\t)+snd-card-[[:digit:]]" | \=0A= awk '{print $3}' | \=0A= while read line; do \=0A= echo -n "Starting sound driver: $line "; \=0A= /sbin/modprobe $line; \=0A= echo -e "$rc_done"; \=0A= echo -n "Loading OSS pcm module:"; \=0A= /sbin/modprobe snd-pcm-oss; \=0A= echo -e "$rc_done"; \=0A= done=0A= #=0A= # insert sequencer modules=0A= #=0A= if [ x"$START_ALSA_SEQ" =3D xyes -a -r /proc/asound/seq/drivers ]; then=0A= t=3D`cut -d , -f 1 /proc/asound/seq/drivers`=0A= if [ "x$t" !=3D "x" ]; then=0A= /sbin/modprobe $t=0A= fi=0A= fi=0A= #=0A= # restore driver settings=0A= #=0A= if [ -d /proc/asound ]; then=0A= if [ ! -r /etc/asound.conf ]; then=0A= echo "No mixer config in /etc/asound.conf, you have to unmute your = card!"=0A= else=0A= if [ -x $alsactl ]; then=0A= $alsactl restore=0A= else=0A= echo -e "${rc_warning}ERROR: alsactl not found${rc_reset}"=0A= fi=0A= fi=0A= fi=0A= }=0A= =0A= function terminate() {=0A= #=0A= # Kill processes holding open sound devices=0A= #=0A= DEVS=3D`find /dev/ -follow -type c -maxdepth 1 -ls 2>/dev/null | grep = "1*1[46]," | cut -d: -f2 | cut -d" " -f2; echo /proc/asound/dev/*`=0A= fuser -k $DEVS 2> /dev/null 1>/dev/null=0A= #=0A= # remove all sequencer connections if any=0A= #=0A= if [ -f /proc/asound/seq/clients -a -x $aconnect ]; then=0A= $aconnect --removeall=0A= fi=0A= }=0A= =0A= function stop() {=0A= #=0A= # store driver settings=0A= #=0A= if [ -x $alsactl ]; then=0A= $alsactl store=0A= else=0A= echo -n -e "${rc_warning}!!!alsactl not found!!!${rc_reset} "=0A= fi=0A= #=0A= # remove all sound modules=0A= #=0A= /sbin/lsmod | grep -E "^snd" | grep -v "snd-rme9652_mem" | while read = line; do \=0A= /sbin/rmmod `echo $line | cut -d ' ' -f 1`; \=0A= done=0A= # remove the 2.2 soundcore module (if possible)=0A= /sbin/rmmod soundcore 2> /dev/null=0A= }=0A= =0A= # See how we were called.=0A= case "$1" in=0A= start)=0A= # Start driver if it isn't already up.=0A= if [ ! -d /proc/asound ]; then=0A= start=0A= # if [ -d /proc/asound ] && [ -d /var/lock/subsys ]; then=0A= # touch /var/lock/subsys/alsasound=0A= # fi=0A= else=0A= echo "ALSA driver is already running."=0A= fi=0A= ;;=0A= stop)=0A= # Stop daemons.=0A= if [ -d /proc/asound ]; then=0A= echo -n "Shutting down sound driver: "=0A= terminate=0A= stop=0A= # if [ -d /var/lock/subsys ]; then=0A= # rm -f /var/lock/subsys/alsasound=0A= # fi=0A= echo -e "$rc_done"=0A= fi=0A= ;;=0A= restart|reload)=0A= $0 stop=0A= $0 start=0A= ;;=0A= status)=0A= if [ -d /proc/asound ]; then=0A= echo -n "ALSA sound driver loaded."=0A= # if [ -e /var/lock/subsys/alsasound ]; then=0A= # echo -n "ALSA sound driver not locked!"=0A= # fi=0A= else=0A= echo -n "ALSA sound driver not loaded."=0A= # if [ -e /var/lock/subsys/alsasound ]; then=0A= # echo -n "but (strangely) locked."=0A= # else=0A= # echo -n "and not locked either."=0A= # fi=0A= fi=0A= echo=0A= ;;=0A= *)=0A= echo "Usage: alsasound {start|stop|restart|status}"=0A= exit 1=0A= esac=0A= =0A= exit 0=0A= ------=_NextPart_000_0057_01C0ACBB.DD70E880 Content-Type: application/octet-stream; name="asound.conf" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="asound.conf" # ALSA driver configuration=0A= # This configuration is generated with the alsactl program.=0A= =0A= soundcard("card1") {=0A= mixer("Cirrus Logic CS4297") {=0A= ; The type is 'bool'.=0A= switch("AC97 Mono Output Select", false)=0A= ; The type is 'bool'.=0A= switch("AC97 Second MIC", false)=0A= ; The type is 'bool'.=0A= switch("ADC/DAC Loopback", false)=0A= element("Input Gain Switch",0,101,Switch2(off))=0A= ; Voice 0 : Min 0 Max 15=0A= ; Voice 1 : Min 0 Max 15=0A= element("Input Gain Volume",0,200,Volume1(0,0))=0A= element("Master Mono Switch",0,101,Switch2(off))=0A= ; Voice 0 : Min 0 Max 63=0A= element("Master Mono Volume",0,200,Volume1(61))=0A= element("Headphone Switch",0,101,Switch2(off))=0A= ; Voice 0 : Min 0 Max 63=0A= ; Voice 1 : Min 0 Max 63=0A= element("Headphone Volume",0,200,Volume1(63,63))=0A= element("Master Switch",0,101,Switch2(on))=0A= ; Voice 0 : Min 0 Max 63=0A= ; Voice 1 : Min 0 Max 63=0A= element("Master Volume",0,200,Volume1(63,63))=0A= element("Aux Switch",0,101,Switch2(off))=0A= ; Voice 0 : Min 0 Max 31=0A= ; Voice 1 : Min 0 Max 31=0A= element("Aux Volume",0,200,Volume1(0,0))=0A= element("Video Switch",0,101,Switch2(off))=0A= ; Voice 0 : Min 0 Max 31=0A= ; Voice 1 : Min 0 Max 31=0A= element("Video Volume",0,200,Volume1(30,30))=0A= element("CD Switch",0,101,Switch2(on))=0A= ; Voice 0 : Min 0 Max 31=0A= ; Voice 1 : Min 0 Max 31=0A= element("CD Volume",0,200,Volume1(31,31))=0A= element("Line Switch",0,101,Switch2(off))=0A= ; Voice 0 : Min 0 Max 31=0A= ; Voice 1 : Min 0 Max 31=0A= element("Line Volume",0,200,Volume1(18,18))=0A= element("MIC Switch",0,101,Switch2(off))=0A= ; Voice 0 : Min 0 Max 31=0A= element("MIC Volume",0,200,Volume1(17))=0A= ; Voice 0 : Min 0 Max 1=0A= element("MIC Boost",0,200,Volume1(0))=0A= element("Phone Switch",0,101,Switch2(off))=0A= ; Voice 0 : Min 0 Max 31=0A= element("Phone Volume",0,200,Volume1(0))=0A= element("PC Speaker Switch",0,101,Switch2(off))=0A= ; Voice 0 : Min 0 Max 15=0A= element("PC Speaker Volume",0,200,Volume1(0))=0A= element("PCM Switch",0,101,Switch2(on))=0A= ; Voice 0 : Min 0 Max 31=0A= ; Voice 1 : Min 0 Max 31=0A= element("PCM Volume",0,200,Volume1(31,31))=0A= element("Mono Output MUX",0,401,Mux2(element("Mono-Out = Accumulator",0,301)))=0A= element("Input MUX",0,400,Mux1(element("MIC = Boost",0,200),element("MIC Boost",0,200)))=0A= }=0A= }=0A= ------=_NextPart_000_0057_01C0ACBB.DD70E880 Content-Type: application/octet-stream; name="modules.conf" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="modules.conf" alias parport_lowlevel parport_pc=0A= #ALSA portion=0A= alias char-major-116 snd=0A= options snd snd_major=3D116 snd_cards_limit=3D1=0A= #OSS/Free portion=0A= alias char-major-14 soundcore=0A= alias snd-card-0 snd-card-cs461x=0A= alias sound-slot-0 snd-card-0=0A= alias sound-service-0-0 snd-mixer-oss=0A= alias sound-service-0-1 snd-seq-oss=0A= alias sound-service-0-3 snd-pcm-oss=0A= alias sound-service-0-8 snd-seq-oss=0A= alias sound-service-0-12 snd-pcm-oss=0A= options snd_dac_frame_size=3D128kb=0A= options snd_adc_frame_size=3D128kb=0A= #ALSA section end=0A= =0A= =0A= ------=_NextPart_000_0057_01C0ACBB.DD70E880-- _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com