Re: Alsa scenarios , mixer
Le 14126ième jour après Epoch, François TOURDE écrivait: Ooops... #!/usr/bin/python # jack.py - An application to read jack # # Version 0.1 # # Authors: Francois TOURDE [EMAIL PROTECTED] # # Copyright (c) 2008 Thomas Wood This is not Thomas, replace it with my name and my email, but so can I thanks Thomas, creator of gta02.py, a demo script in pygtk. Thanks to him I've been able to write my first python script :) ___ support mailing list support@lists.openmoko.org https://lists.openmoko.org/mailman/listinfo/support
Re: Alsa scenarios , mixer
Le 14117ième jour après Epoch, Dale Maggee écrivait: Armin ranjbar wrote: Dear all , i have two question regarding FR audio subsystem : 1 i need to when any of alsa scenario files are loading , i need to make modification but i really wonder when which will get loaded 2 i need to know exactly what each element of alsamixer doing ? I wrote a shell script which tells you which state is currently loaded, using this you can figure out what each state file is for: May I suggest a small update to your script, to check if multiple files are matching current alsa status? #!/bin/sh CS=/tmp/current.state alsactl -f $CS store Match=0 for F in `ls /usr/share/openmoko/scenarios/*.state`; do #echo Comparing with $F if [ `diff $CS $F` = ]; then echo Current statefile is: $F Match=1 fi done; [ $Match == 0 ] echo Current state matches no file! Anyway, this script is usefull when trying to check what's up with the sound, and that jack insertion do nothing on sound :( ___ support mailing list support@lists.openmoko.org https://lists.openmoko.org/mailman/listinfo/support
Re: Alsa scenarios , mixer
François TOURDE wrote: Le 14117ième jour après Epoch, Dale Maggee écrivait: SNIP! I wrote a shell script which tells you which state is currently loaded, using this you can figure out what each state file is for: May I suggest a small update to your script, to check if multiple files are matching current alsa status? SNIP! good point, I had it exiting for maximum speed, it never occured to me that there might be multiple identical statefiles. Thanks. Anyway, this script is usefull when trying to check what's up with the sound, and that jack insertion do nothing on sound :( it does for me: [EMAIL PROTECTED]:~# ./findstate Current statefile is: /usr/share/openmoko/scenarios/stereoout.state (plug in headset) [EMAIL PROTECTED]:~# ./findstate Current statefile is: /usr/share/openmoko/scenarios/headset.state [EMAIL PROTECTED]:~# also when I use the headset in a call it uses gsmheadset.state rather than gsmhandset.state (I'm using 2007.2) ___ support mailing list support@lists.openmoko.org https://lists.openmoko.org/mailman/listinfo/support
Alsa scenarios , mixer
Dear all , i have two question regarding FR audio subsystem : 1 i need to when any of alsa scenario files are loading , i need to make modification but i really wonder when which will get loaded 2 i need to know exactly what each element of alsamixer doing ? -- Armin ranjbar , System Administrator ___ support mailing list support@lists.openmoko.org https://lists.openmoko.org/mailman/listinfo/support
Re: Alsa scenarios , mixer
Armin ranjbar wrote: Dear all , i have two question regarding FR audio subsystem : 1 i need to when any of alsa scenario files are loading , i need to make modification but i really wonder when which will get loaded 2 i need to know exactly what each element of alsamixer doing ? I wrote a shell script which tells you which state is currently loaded, using this you can figure out what each state file is for: ---BEGIN--- #!/bin/sh CS=/tmp/current.state alsactl -f $CS store for F in `ls /usr/share/openmoko/scenarios/*.state`; do #echo Comparing with $F if [ `diff $CS $F` = ]; then echo Current statefile is: $F exit fi done; echo Current state matches no file! ---END--- As for knowing exactly what each mixer element does, I'd love to know this too! HTH, -Dale ___ support mailing list support@lists.openmoko.org https://lists.openmoko.org/mailman/listinfo/support