View source for Neo Freerunner audio subsystem
From Openmoko
You do not have permission to edit this page, for the following reasons:
You can view and copy the source of this page:
Return to Neo Freerunner audio subsystem.
You do not have permission to edit this page, for the following reasons:
You can view and copy the source of this page:
Return to Neo Freerunner audio subsystem.
The Neo Freerunner (GTA02) inherited the audio subsystem from its older brother the Neo 1973 (GTA01). However, there are a few small differences. This page tries to show and explain the differences and points you to the Neo 1973 page whenever it touches the common points (but there may be overlaps for the sake of usability). As wiki pages are, errors and omissions are likely, and your help is welcomed.
- | CPU | GSM | Bluetooth |
---|---|---|---|
GSM | Yes | ||
Bluetooth | ? | Yes | |
Wired Speaker | Yes | Yes | ? |
Wired Mic | Yes | Yes | ? |
Body Earpiece | Should | Yes | ? |
Body Speaker | Yes | Should | ? |
Body Mic | Should | Yes | ? |
The ALSA state files are installed by default, and belong to package "openmoko-alsa-scenarios". To see where the files reside, do "opkg files openmoko-alsa-scenarios". Currently they are in "/usr/share/openmoko/scenarios/". Recommended statefile for phone usage is http://docs.openmoko.org/trac/attachment/ticket/2121/gsmhandset.state.new
For mic settings please refer also to http://wiki.openmoko.org/wiki/Neo_1973_and_Neo_FreeRunner_gsm_modem#AT.25Nxxxx
user should set volume according to own preferences:
for mic the (full, true) procedure is as follows: reduce #5 by some 15..30 steps do testcall: you get very low volume at far end. but tone should be clear, no clipping (sharp agressive noise) if there is clipping: reduce #48 by one step (i.e. to "2") then adjust #5 to your preferences and taste (do `alsactrl store -f gsmhandset.state` to save the changes if you used a mixer to adjust the levels)
for earpiece(-speaker):
level up modem to full volume (AT+CLVL cmd used by framework), level up #6 to full volume, adjust by #4 if you get clipping when #4 is at moderate level (same as above): reduce #6 (or even AT+CLVL) until clipping vanishes (very unlikely to occur for earpiece playback)
--Femto 12:39, 24 September 2008 (UTC) I've updated above values. Must be checked.
-- I created another state file (voip-handsfree.state) for CPU Handsfree, mixed and matched voip-handset and stereoout. You can find it here. Feel free to make a change to it if there are errors. I don't see any, though.
Angus Ainslie has written a simple python volume control (which is getting more and more sophisticated) using some of these settings.
Installing the GUI mixer
wget http://handheldshell.com/pymixer.py wget http://handheldshell.com/volume.desktop cp pymixer.py /usr/bin chmod u+x /usr/bin/pymixer.py cp volume.desktop /usr/share/applications opkg install python-pygtk opkg install http://handheldshell.com/python-pyalsaaudio_0.3-ml0_armv4t.ipk
If the python script aborts unexpectedly then look here for a fix