Commit 0189c431 authored by Rob Shannon's avatar Rob Shannon

up up up

parents
# Copyright (C) 2011 The CyanogenMod Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# This file is generated by device/htc/evitareul/setup-makefiles.sh
This diff is collapsed.
# Copyright (C) 2011 The CyanogenMod Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# This file is generated by device/htc/evitareul/setup-makefiles.sh
# Pick up overlay for features that depend on non-open-source files
DEVICE_PACKAGE_OVERLAYS := vendor/htc/evitareul/overlay
$(call inherit-product, vendor/htc/evitareul/evitareul-vendor-blobs.mk)
atdev_name=`getprop ril.nvmchannel1`
echo $atdev_name
bindev_name=`getprop ril.nvmchannel2`
echo $bindev_name
/system/bin/log -p i -t MODEM "Updating the NV data..."
/system/bin/nvm_client --shutdown --atdev $atdev_name --bindev $atdev_name --dir /data/modem_nvdata
sleep 10
sync
/system/bin/log -p i -t MODEM "Updating the NV data...Done"
#!/system/bin/sh
echo 0 > /sys/devices/platform/tegra-ehci.1/ehci_power
sleep 1
stop ril-daemon
stop nvm-server
stop gsm0710mux
killall gsm0710mux
rmmod raw_ip_net
rmmod cdc_acm
rmmod baseband_usb_chr
rmmod baseband_xmm_power2
echo 0 > /sys/devices/platform/baseband_xmm_power/xmm_onoff
sleep 1
#!/system/bin/sh
# 2/21 Ver: 1.0.2 Force CPU performance during IMCdownload
/system/bin/log -p e -t MODEM "Poweron_modem_fls.sh version: 1.0.2"
backup_dir=/system/etc/
work_dir=/data/modem_work/
Injected_dir=/data/modem_work/
mkdir ${work_dir} -p 2> /dev/null
echo main > /sys/power/wake_lock
malog_status=`getprop persist.radio.matrace.enable`
# Check if /rca mounted
if ls /rca 2>&1 /dev/null ; then
/system/bin/log -p e -t MODEM "/rca folder mounted."
NVM_cal_dir=/rca
else
/system/bin/log -p e -t MODEM "/rca folder doesn't mounted. Use /data/modem_nvdata instead."
NVM_cal_dir=/data/modem_nvdata
fi
if ls ${NVM_cal_dir}/calib.nvm 2>&1 /dev/null ; then
/system/bin/log -p e -t MODEM "cp calib.nvm to work folder"
cat ${NVM_cal_dir}/calib.nvm > ${work_dir}/calib.nvm
else
/system/bin/log -p e -t MODEM "no calib.nvm in RCA partition"
fi
# 2012 01/30 calib.nvm will not be changed in OS mode and put it in /data/modem_work/ folder
/system/bin/log -p e -t MODEM "setprop ril.nvm.cal.dir ${work_dir}"
setprop ril.nvm.cal.dir ${work_dir}
/system/bin/log -p e -t MODEM "setprop ril.nvm.work.dir ${work_dir}"
setprop ril.nvm.work.dir ${work_dir}
# Check if /rfs/sec.bin can be generated
sec_dir=/rfs/
/system/bin/make_sec_bin ${sec_dir}/sec.bin
if ls ${sec_dir}/sec.bin 2>&1 /dev/null ; then
/system/bin/log -p e -t MODEM "Gen. sec.bin SUCC in ${sec_dir}"
else
sec_dir=/data/modem_sec/
mkdir ${sec_dir} -p 2> /dev/null
/system/bin/make_sec_bin ${sec_dir}/sec.bin
/system/bin/log -p e -t MODEM "rfs seems not mounted, Gen. sec.bin SUCC in ${sec_dir}"
fi
sync
if ls ${sec_dir}/sec.bin 2>&1 /dev/null ; then
/system/bin/log -p e -t MODEM "Double confirm sec.bin is in ${sec_dir} and SUCC."
else
/system/bin/log -p e -t MODEM "Error: /data partition is full and no RFS mounted"
fi
/system/bin/log -p e -t MODEM "NVM Injecting file: new InjectionTool will generate empty nvm file if it doesn't exist"
/system/bin/InjectionTool -i ${backup_dir}/QUO_6260.fls.clean -o ${Injected_dir}/QUO_6260.fls -n ${work_dir} -s ${sec_dir}
/system/bin/log -p i -t MODEM "Delete sec.bin in ${sec_dir}"
rm ${sec_dir}/sec.bin
sync
#
# insmod cdc-acm, run IMCdownload
#
#set the different channel number when malog enabled.
/system/bin/log -p i -t MODEM "Checking malog_status $malog_status"
case $malog_status in
"1")
/system/bin/log -p i -t MODEM "insmod /system/lib/modules/cdc-acm.ko 2"
insmod /system/lib/modules/cdc-acm.ko max_intfs=2
;;
*)
/system/bin/log -p i -t MODEM "insmod /system/lib/modules/cdc-acm.ko 1"
insmod /system/lib/modules/cdc-acm.ko max_intfs=1
;;
esac
/system/bin/log -p e -t MODEM "IMCdownload -V0x1130 -X0 -x800 -y30 -z50"
cd ${work_dir}
IMCdownload -V0x1130 -X0 -x800 -y30 -z50
#
# loop until /dev/ttyACM0 is available (retry 20 seconds)
#
/system/bin/log -p e -t MODEM "try to find /dev/ttyACM0..."
count=0
for count in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
do
if ls /dev/ttyACM0 2>&1 > /dev/null ; then
echo "ttyACM0 found!!"
/system/bin/log -p e -t MODEM "ttyACM0 found!!"
echo main > /sys/power/wake_unlock
break
else
sleep 1
/system/bin/log -p e -t MODEM "Waiting for /dev/ttyACM0, before start gsmmux"
echo "$count Waiting for /dev/ttyACM0, before start gsmmux"
fi
done
# check if ttyACM0 is not found in 20 seconds
case $count in
"20")
echo "eq 20, ttyACM0 not found!!!"
echo main > /sys/power/wake_unlock
exit 1
;;
*)
echo "ttyACM0 found, continue"
;;
esac
# start gsm mux
/system/bin/log -p e -t MODEM "/dev/ttyACM0 found, start gsm0710mux"
echo "/dev/ttyACM0 found, start gsm0710mux"
start gsm0710mux
# raw ip net
/system/bin/log -p i -t MODEM "Checking malog_status for raw_ip_net $malog_status"
case $malog_status in
"1")
/system/bin/log -p e -t MODEM "insmod /system/lib/modules/raw_ip_net.ko 2"
insmod /system/lib/modules/raw_ip_net.ko max_intfs=2
;;
*)
/system/bin/log -p e -t MODEM "insmod /system/lib/modules/raw_ip_net.ko 3"
insmod /system/lib/modules/raw_ip_net.ko max_intfs=3
;;
esac
#!/system/bin/sh
# 2/15 Ver: 1.0.2 Force wake_lock in MFG kernel mode to prevent HSIC entering suspend
# 2/21 Ver: 1.0.3 Force CPU performance in MFG kernel
/system/bin/log -p e -t MODEM "Poweron_modem_hboot.sh version: 1.0.3"
/system/bin/log -p e -t MODEM "Change cpu to performance"
echo "performance" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
backup_dir=/system/etc/
work_dir=/data/modem_work/
Injected_dir=/data/modem_work/
mkdir ${work_dir} -p 2> /dev/null
echo main > /sys/power/wake_lock
# Check if /rca mounted
if ls /rca 2>&1 /dev/null ; then
/system/bin/log -p e -t MODEM "/rca folder mounted."
NVM_cal_dir=/rca
else
/system/bin/log -p e -t MODEM "/rca folder doesn't mounted. Use /data/modem_nvdata instead."
NVM_cal_dir=/data/modem_nvdata
fi
if ls ${NVM_cal_dir}/calib.nvm 2>&1 /dev/null ; then
/system/bin/log -p e -t MODEM "cp calib.nvm to work folder"
cat ${NVM_cal_dir}/calib.nvm > ${work_dir}/calib.nvm
else
/system/bin/log -p e -t MODEM "no calib.nvm in RCA partition"
fi
# Check if /rfs/sec.bin can be generated
sec_dir=/rfs/
/system/bin/make_sec_bin ${sec_dir}/sec.bin
if ls ${sec_dir}/sec.bin 2>&1 /dev/null ; then
/system/bin/log -p e -t MODEM "Gen. sec.bin SUCC in ${sec_dir}"
else
sec_dir=/data/modem_sec/
mkdir ${sec_dir} -p 2> /dev/null
/system/bin/make_sec_bin ${sec_dir}/sec.bin
/system/bin/log -p e -t MODEM "rfs seems not mounted, Gen. sec.bin SUCC in ${sec_dir}"
fi
sync
if ls ${sec_dir}/sec.bin 2>&1 /dev/null ; then
/system/bin/log -p e -t MODEM "Double confirm sec.bin is in ${sec_dir} and SUCC."
else
/system/bin/log -p e -t MODEM "/data partition is full and sec.bin is in ${sec_dir}"
fi
/system/bin/log -p e -t MODEM "NVM Injecting file: new InjectionTool will generate empty nvm file if it doesn't exist"
/system/bin/InjectionTool -i ${backup_dir}/QUO_6260.fls.clean -o ${Injected_dir}/QUO_6260.fls -n ${work_dir} -s ${sec_dir}
/system/bin/log -p i -t MODEM "Delete sec.bin in ${sec_dir}"
rm ${sec_dir}/sec.bin
sync
#
# insmod cdc-acm, run IMCdownload
#
/system/bin/log -p e -t MODEM "insmod /system/lib/modules/cdc-acm.ko"
insmod /system/lib/modules/cdc-acm.ko
/system/bin/log -p e -t MODEM "IMCdownload -V0x1130 -X0 -x800 -y30 -z50"
cd ${work_dir}
IMCdownload -V0x1130 -X0 -x800 -y30 -z50
#
# loop until /dev/ttyACM0 is available (retry 10 seconds)
#
/system/bin/log -p e -t MODEM "try to find /dev/ttyACM0..."
count=0
for count in 1 2 3 4 5 6 7 8 9 10
do
if ls /dev/ttyACM0 2>&1 > /dev/null ; then
/system/bin/log -p e -t MODEM "ttyACM0 found!!"
break
else
sleep 1
/system/bin/log -p e -t MODEM "Waiting for /dev/ttyACM0, before start gsmmux"
fi
done
# check if ttyACM0 is not found in 10 seconds
case $count in
"10")
/system/bin/log -p e -t MODEM "eq 10, ttyACM0 not found!!!"
exit 1
;;
*)
/system/bin/log -p e -t MODEM "ttyACM0 found, continue"
;;
esac
# start gsm mux
/system/bin/log -p e -t MODEM "/dev/ttyACM0 found, start gsm0710mux"
start gsm0710mux
/system/bin/log -p e -t MODEM "gsm0710mux finished..."
#start nvm updating
index=0
for index in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
do
atdev_name="/dev/pts/0"
if ls ${atdev_name} 2>&1 > /dev/null ; then
# echo -e ate1\\r > $atdev_name
/system/bin/log -p e -t MODEM "Start /system/bin/nvm_client time=$index, atdev_name=${atdev_name}"
/system/bin/log -p i -t MODEM "nvm_client --start"
/system/bin/nvm_client --start --atdev $atdev_name --bindev $atdev_name --dir ${work_dir} --cal ${NVM_cal_dir}
/system/bin/log -p i -t MODEM "Do modem initial update, wait..."
break
else
sleep 1
# check the nvm pts
case $index in
"25")
/system/bin/log -p e -t MODEM "2) Cannot find ${atdev_name}";
/system/bin/log -p e -t MODEM "2) Invoke /system/bin/nvm_client";
# just try it again
# echo -e ate1\\r > $atdev_name
/system/bin/log -p i -t MODEM "2) nvm_client --start"
/system/bin/nvm_client --start --atdev $atdev_name --bindev $atdev_name --dir ${work_dir} --cal ${NVM_cal_dir}
/system/bin/log -p i -t MODEM "2) Do modem initial update, wait..."
;;
*)
/system/bin/log -p i -t MODEM "retry=$index nvm pts not found, continue"
;;
esac
fi
done
/system/bin/log -p i -t MODEM "Starting record USB AT command channel in klog..."
echo 1 > /sys/devices/platform/baseband_xmm_power/host_dbg
index=0
for index in 1 2 3 4 5 6 7 8 9 10
do
if ls ${NVM_cal_dir}/calib.nvm 2>&1 > /dev/null ; then
/system/bin/log -p e -t MODEM "starting atpipe_plain...";
start atpipe_plain
break;
else
sleep 1
case $index in
"10")
/system/bin/log -p e -t MODEM "No calib.nvm = no atpipe_plain...";
#/system/bin/log -p e -t MODEM "still trying atpipe_plain...";
# start atpipe_plain
;;
*)
/system/bin/log -p e -t MODEM "calib.nvm not found, continue";
;;
esac
fi
done
This diff is collapsed.
record_codec 12
n_main_mic 42
n_handset_mic 37
n_headset_mic 43
#
# 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"
}
# List of effect libraries to load. Each library element must contain a "path" element
# giving the full path of the library .so file.
# libraries {
# <lib name> {
# path <lib path>
# }
# }
libraries {
bundle {
path /system/lib/soundfx/libbundlewrapper.so
}
reverb {
path /system/lib/soundfx/libreverbwrapper.so
}
visualizer {
path /system/lib/soundfx/libvisualizer.so
}
pre_processing {
path /system/lib/soundfx/libaudiopreprocessing.so
}
downmix {
path /system/lib/soundfx/libdownmix.so
}
SRS {
path /system/lib/soundfx/libsrsfx.so
}
}
# list of effects to load. Each effect element must contain a "library" and a "uuid" element.
# The value of the "library" element must correspond to the name of one library element in the
# "libraries" element.
# The name of the effect element is indicative, only the value of the "uuid" element
# designates the effect.
# The uuid is the implementation specific UUID as specified by the effect vendor. This is not the
# generic effect type UUID.
# effects {
# <fx name> {
# library <lib name>
# uuid <effect uuid>
# }
# ...
# }
effects {
dynamic_bass_boost {
library SRS
uuid f7a247b0-1a7b-11e0-bb0d-2a30dfd72085
}
srsgeq5 {
library SRS
uuid f7a247c2-1a7b-11e0-bb0d-2a30dfd72085
}
wowhd {
library SRS
uuid f7a247d2-1a7b-11e0-bb0d-2a30dfd72085
}
virtualizer {
library bundle
uuid 1d4033c0-8557-11df-9f2d-0002a5d5c51b
}
volume {
library bundle
uuid 119341a0-8469-11df-81f9-0002a5d5c51b
}
reverb_env_aux {
library reverb
uuid 4a387fc0-8ab3-11df-8bad-0002a5d5c51b