Hi, this daemon should encapsulate a pack of alsa scenarios like gsmcall, datacall, general,... ATM it is a problem to use your GSM headset with you freerunner because the framework loads gsmheadset, which is hardcoded into the pythoncode. With oprofiled you can have a profile called btheadset and set the gsmcall scenario, which sets all the routes. As an addition you add the use of vibration and an optical alarm. Maybe we can even add a ringtone for calls and messages here.
Here a draft suggestion for the API: Generarl methods: [METHOD] string[] GetAvailableProfiles() [METHOD] string GetProfile() [METHOD] void ActivateProfile(string) [METHOD] void SetScenario(string) [METHOD] string GetScenrio() Settings for the none audio alarms: [METHOD] void SetVibrate (bool) [METHOD] bool GetVibrate () [METHOD] void SetVibrateTimer( int on, int off, int intesity) [METHOD] void GetVibrateTimer( out int on, out int off, out int intesity) [METHOD] void SetBlink (bool) [METHOD] bool GetBlink () [METHOD] void SetBlinkTimer( int on, int off, int intesity) [METHOD] void GetVibrateTimer( out int on, out int off, out int intesity) Settings for basic volumes. Anything missing? [METHOD] void SetMicVolume(int) [METHOD] int GetMicVolume() [METHOD] void SetSpeakerVolume(int) [METHOD] int GetSpeakerVolume() [METHOD] void SetExtern( bool ) [METHOD] void SetModemOutputVolume(int) [METHOD] int GetModeOutputVolume() [METHOD] void SetModemInputVolume(int) [METHOD] int GetModemInputVolume() Signals: [SIGNAL] void Scenario(string scenario) [SIGNAL] void Profile( string profile) [SIGNAL] void SpeakerVolume( int volume) [SIGNAL] void MicVolume(int volume) [SIGNAL] void ModemOutputVolume(int volume) [SIGNAL] void ModemInputVolume(int volume) Some error which could appear: [ERROR] UnknownScenario [ERROR] UnknownProfile DISCUSS! Regards, Frederik
signature.asc
Description: This is a digitally signed message part
_______________________________________________ smartphones-standards mailing list [email protected] http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/smartphones-standards
