mt6735 工厂模式(factory mode)如何添加WavePlayback测试项
时间:10-02
整理:3721RD
点击:
[DESCRIPTION]
工厂模式默认没有WavePlayback测试项,不过可以添加,该测试项可以播放wave格式文件来检测HW
[SOLUTION]
1.Factory.c中自己定义宏
#defineFEATURE_FTM_WAVE_PLAYBACK
2.android.mk(\alps\mediatek\source\factory\)中要注释掉2行代码,具体如下:
/----------------------------------------------------------------------
#ifeq($(mtk_PLATFORM),MT6573)#注释位置1
LOCAL_PATH:=$(CUSTOM_PATH)
include$(CLEAR_VARS)
#copyresourcestorootfs/resfortestpattern
DIRS:=$(TARGET_OUT)/res/sound
$(DIRS):
echoDirectory@
mkdir-p$@
ALL_PREBUILT+=$(DIRS)
copy_fROM:=\
res/sound/testpattern1.wav
copy_to:=$(addprefix$(TARGET_OUT)/,$(copy_from))
copy_from:=$(addprefix$(LOCAL_PATH)/,$(copy_from))
$(copy_to):$(TARGET_OUT)/%:$(LOCAL_PATH)/%|$(ACP)
@if[!-h$(TARGET_ROOT_OUT)/res];thenmkdir-p$(TARGET_ROOT_OUT);ln-
s/system/res$(TARGET_ROOT_OUT)/res||echo"Makelinkfailed!";fi
$(transform-prebuilt-to-target)
ALL_PREBUILT+=$(copy_to)
#endif#注释位置2
----------------------------------------------------------------------/
3.factory.ini(\alps\mediatek\custom\工程名\factory\)中修改位置如下:
/----------------------------------------------------------------------
//AUDIO
Audio.Ringtone=5;
Audio.Receiver=5;
//AudioWavePlayFile
/res/sound/testpattern1.wav
----------------------------------------------------------------------/
4.请将您希望用来测试的"wave格式"的文件放在如下目录中:
\alps\mediatek\custom\工程名\factory\res\sound
注意将其命名为testpattern1.wav
5.修改完后remake整个工程
./mk 工程名 remake
工厂模式默认没有WavePlayback测试项,不过可以添加,该测试项可以播放wave格式文件来检测HW
[SOLUTION]
1.Factory.c中自己定义宏
#defineFEATURE_FTM_WAVE_PLAYBACK
2.android.mk(\alps\mediatek\source\factory\)中要注释掉2行代码,具体如下:
/----------------------------------------------------------------------
#ifeq($(mtk_PLATFORM),MT6573)#注释位置1
LOCAL_PATH:=$(CUSTOM_PATH)
include$(CLEAR_VARS)
#copyresourcestorootfs/resfortestpattern
DIRS:=$(TARGET_OUT)/res/sound
$(DIRS):
echoDirectory@
mkdir-p$@
ALL_PREBUILT+=$(DIRS)
copy_fROM:=\
res/sound/testpattern1.wav
copy_to:=$(addprefix$(TARGET_OUT)/,$(copy_from))
copy_from:=$(addprefix$(LOCAL_PATH)/,$(copy_from))
$(copy_to):$(TARGET_OUT)/%:$(LOCAL_PATH)/%|$(ACP)
@if[!-h$(TARGET_ROOT_OUT)/res];thenmkdir-p$(TARGET_ROOT_OUT);ln-
s/system/res$(TARGET_ROOT_OUT)/res||echo"Makelinkfailed!";fi
$(transform-prebuilt-to-target)
ALL_PREBUILT+=$(copy_to)
#endif#注释位置2
----------------------------------------------------------------------/
3.factory.ini(\alps\mediatek\custom\工程名\factory\)中修改位置如下:
/----------------------------------------------------------------------
//AUDIO
Audio.Ringtone=5;
Audio.Receiver=5;
//AudioWavePlayFile
/res/sound/testpattern1.wav
----------------------------------------------------------------------/
4.请将您希望用来测试的"wave格式"的文件放在如下目录中:
\alps\mediatek\custom\工程名\factory\res\sound
注意将其命名为testpattern1.wav
5.修改完后remake整个工程
./mk 工程名 remake