Commit e6e82a37 authored by Rob Shannon's avatar Rob Shannon

adding gps libs and other stuff

parent 3727e174
This diff is collapsed.
File added
#
# ALSA library configuration file
#
pcm.!default {
type plug
slave {
pcm "hw:tegraaic3008,0"
channels 2
rate 48000
}
}
ctl.!default {
type hw
card tegraaic3008
}
pcm.music {
type plug
slave {
pcm "hw:tegraaic3008,0"
channels 2
rate 48000
}
}
pcm.sample_rate_48k {
type plug
slave {
pcm "hw:tegraaic3008,0"
channels 2
rate 48000
}
}
pcm.sample_rate_16k {
type plug
slave {
pcm "hw:tegraaic3008,0"
channels 2
rate 16000
}
}
pcm.sample_rate_8k {
type plug
slave {
pcm "hw:tegraaic3008,0"
channels 2
rate 8000
}
}
pcm.aux {
type hw
card "Tegra"
device 3
}
pcm.aux_plug {
type plug
slave.pcm "aux"
}
pcm.voice {
type plug
slave {
pcm "hw:tegraaic3008,2"
channels 1
rate 8000
}
}
pcm.voice_call {
type plug
slave {
pcm "hw:tegraaic3008,3"
channels 2
rate 48000
}
}
pcm.bt_voice_call {
type plug
slave {
pcm "hw:tegraaic3008,4"
}
}
pcm.music_and_voice {
type asym
playback.pcm {
type plug
slave.pcm {
type multi
slaves.a.pcm music
slaves.b.pcm voice
slaves.a.channels 2
slaves.b.channels 1
bindings.0.slave a
bindings.0.channel 0
bindings.1.slave a
bindings.1.channel 1
bindings.2.slave b
bindings.2.channel 0
}
route_policy duplicate
}
capture.pcm "voice"
}
pcm.music_and_aux {
type asym
playback.pcm {
type plug
slave.pcm {
type multi
slaves.a.pcm music
slaves.b.pcm aux
slaves.a.channels 2
slaves.b.channels 2
bindings.0.slave a
bindings.0.channel 0
bindings.1.slave a
bindings.1.channel 1
bindings.2.slave b
bindings.2.channel 0
bindings.3.slave b
bindings.3.channel 1
}
route_policy duplicate
}
capture.pcm "music"
}
pcm.voice_and_aux {
type asym
playback.pcm {
type plug
slave.pcm {
type multi
slaves.a.pcm voice
slaves.b.pcm aux
slaves.a.channels 1
slaves.b.channels 2
bindings.0.slave a
bindings.0.channel 0
bindings.1.slave b
bindings.1.channel 0
bindings.2.slave b
bindings.2.channel 1
}
route_policy duplicate
}
capture.pcm "voice"
}
pcm.music_and_voice_and_aux {
type asym
playback.pcm {
type plug
slave.pcm {
type multi
slaves.a.pcm music
slaves.b.pcm music
slaves.c.pcm aux
slaves.a.channels 2
slaves.b.channels 1
slaves.c.channels 2
bindings.0.slave a
bindings.0.channel 0
bindings.1.slave a
bindings.1.channel 1
bindings.2.slave b
bindings.2.channel 0
bindings.3.slave c
bindings.3.channel 0
bindings.4.slave c
bindings.4.channel 1
}
route_policy duplicate
}
capture.pcm "voice"
}
##################################################
### NTP IS NETWORK TIME PROTOCOL AND PROVIDES ###
### A TIME-HACK TO DEVICES THAT HAVE SYNCING ###
### MADE READLIY POSSIBLE. MANY XDA PATCHES ###
### MISINTERPRET WHAT NTP IS AND IMPORTANCE. ###
### NTP PACKETS HAVE BUILT-IN MECHANISMS FOR ###
### TRANSMISSION LOSS. NTP PACKETS ARE VERY ###
### SMALL. LASTLY, NTP MATTERS FOR PARSING ###
### THE XTRA.BIN. BUT, IT ONLY MATTERS WHEN ###
### YOUR DEVICE HAS ITS TIME EXTREMELY OFFSET ###
### COMPARED TO REALITY. THUS, I BUILD THIS ###
### PATCH FOR WORLDWIDE OPERATION. RARELY ###
### WOULD LOCAL NTP SERVERS BE REQUIRED. ###
##################################################
NTP_SERVER=ntp.derekgordon.com
###
##################################################
### AGPS AND XTRA TELL THE AGPS DAEMON WHERE ###
### IT MAY LOCATE THE AGPS DATA. THE DATA ###
### OPERATES AS AN ALMANAC WITH THE LOCATION ###
### OF GPS SATS STORED WITHIN IT. THIS DATA ###
### IS ONLY VALID FOR 24 HOURS. IT WILL BE ###
### DOWNLOADED AND CACHED. IT IS NO LONGER ###
### KEPT IN THE /DATA/ PARTITION PERMANTENTLY. ###
### THERE IS NO POINT TO KEEP IT THERE! ###
##################################################
### MY SERVER PROCESSES THE XTRA.BIN EVERY 30 ###
### MINUTES. TYPICALLY IT UPDATES EVERY HOUR ###
### WHEN NEW DATA IS AVAILABLE. ###
### SHOULD MY SERVER BECOME OVERLOADED, I WILL ###
### NEED DONATIONS TO KEEP THIS SUCKER STORED ###
### AT MORE LOCATIONS. ###
##################################################
AGPS=http://derekgordon.com/gps-files/bin/xtra.bin
XTRA_SERVER_1=http://derekgordon.com/gps-files/bin/xtra.bin
XTRA_SERVER_2=http://xtra3.gpsonextra.net/xtra.bin
XTRA_SERVER_3=http://xtra2.gpsonextra.net/xtra.bin
###
##################################################
### NOT GOING TO GO INTO DETAIL HERE. THESE ###
### NEED TO BE CALLED FIRST IN GPS DAEMON ###
### STARTUP. RELATES TO AGPS AND SUPL. ###
##################################################
DEFAULT_AGPS_ENABLE=TRUE
DEFAULT_USER_PLANE=TRUE
DEFAULT_SSL_ENABLE=FALSE
###
##################################################
### INTERMEDIATEPOS RELATES TO USING GPS DATA ###
### FROM SATS THAT ARE NOT FULLY LOCKED. ###
### THE ACCURACY VARIABLE IS A THRESHOLD MAX ###
### ON DEVIATIONS FROM THE ASSUMED LOCATION ###
### WHERE THE DEVICE WILL DISCARD DATA. ###
### THIS VARIABLE IS =0 IN ALTERNATE BUILDS ###
##################################################
INTERMEDIATE_POS=1
ACCURACY_THRES=3000
###
##################################################
### THIS IS QUALITY OF SERVICE INFORMATION FOR ###
### PROCESSING THE GPS DATA. MOST SHOULD BE ###
### SELF-EXPLANATORY. GPS DATA OUTSIDE THE ###
### ACCURACY AND THRESHOLD RANGE WILL NOT BE ###
### USED WHEN POSITIONING DATA. ###
##################################################
QOS_ACCURACY=50
QOS_TIME_OUT_AGPS=95
QOS_TIME_OUT_STANDALONE=80
QosHorizontalThreshold=1000
QosVerticalThreshold=500
###
##################################################
### THESE VARIABLES RELATE TO AGPS. IT SAYS TO ###
### USE AGPS. THIS WILL NOT BE USED IF YOUR ###
### ROM HAS AGPS DISABLED IN THE CODE. ###
### THE SERVER IP IS FOR AN INTERNAL IP FOR ###
### ACCESSING THE AGPS DAEMONS DATA WHEN IT ###
### IS OPERATIONAL. ###
##################################################
AssistMethodType=1
AgpsUse=1
AgpsServerType=1
AgpsServerIp=3232235555
AgpsMtConf=0
AgpsMtResponseType=1
###
##################################################
### THIS SUPL DATA IS TO MATCH THE SUPLROOTCERT ##
### IF IT IS REQUIRED BY THE SUPL SERVER. ###
##################################################
SUPL_HOST=supl.google.com
SUPL_PORT=7276
#SUPL_SECURE_PORT=7275
SUPL_NO_SECURE_PORT=3425
#SUPL_TLS_HOST=FQDN
#SUPL_TLS_CERT=/etc/SuplRootCert
REPORT_POSITION_USE_SUPL_REFLOC=1
###
####################################################
### Carrier tags used univesrally in GPS configs ###
####################################################
CURRENT_CARRIER=common
PHONE_TYPE=UMTS
###
NTP_SERVER=north-america.pool.ntp.org
XTRA_SERVER_1=http://xtra1.gpsonextra.net/xtra2.bin
XTRA_SERVER_2=http://xtra2.gpsonextra.net/xtra2.bin
XTRA_SERVER_3=http://xtra3.gpsonextra.net/xtra2.bin
SUPL_HOST=FQDN
SUPL_PORT=7275
SUPL_TLS_HOST=FQDN
SUPL_TLS_CERT=/etc/SuplRootCert
PHONE_TYPE=UMTS
SUPL_VER=0x20000
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment