|
发表于 2024-4-26 13:43:42
1440 浏览 1 回复
T610 声音通道修改(从HP输出改成SPK输出)
需求:
XY610开发板的原始硬件设计的声音输出是HP_L和HP_R,需修改成PAOUT_P和PAOUT_R;
修改方法如下:
- +++ b/sprd/bsp/kernel/kernel4.14/arch/arm64/boot/dts/sprd/ums512-mach.dtsi
- @@ -923,8 +923,8 @@
- "MIC Pin", "Mic Jack",
- "MIC2 Pin", "Aux Mic Jack",
- "HeadPhone Jack", "HP Pin",
- - "Ext Spk", "HP Pin",
- - "Ext Spk1", "HP Pin",
- + "Ext Spk", "SPK Pin",
- + "Ext Spk1", "SPK Pin",
- "DMIC Pin", "DMic Jack",
- "DMIC1 Pin", "DMic1 Jack",
- "Ext Ear", "EAR Pin";
- diff --git a/sprd/device/sprd/mpool/module/audio/msoc/sharkl5Pro/system/etc/audio_params/audio_route.xml b/sprd/device/sprd/mpool/module/audio/msoc/sharkl5Pro/system/etc/audio_params/audio_rout
- index 28c8a8a..1c2468f 100755
- --- a/sprd/device/sprd/mpool/module/audio/msoc/sharkl5Pro/system/etc/audio_params/audio_route.xml
- +++ b/sprd/device/sprd/mpool/module/audio/msoc/sharkl5Pro/system/etc/audio_params/audio_route.xml
- @@ -78,24 +78,13 @@
- </headset-mic>
- <speaker device="0x2">
- <on>
- - <ctl name="HP mix mode" val="0" />
- - <ctl name="DAC LRCLK Select" val="invert"/>
- - <ctl name="HPL EAR Sel" val="HPL" />
- - <ctl name="HPR Pin Switch" val="1" />
- - <ctl name="HPL Mixer DACLHPL Switch" val="1" />
- - <ctl name="HPR Mixer DACRHPR Switch" val="1" />
- +
- + <ctl name="SPKL Mixer DACLSPKL Switch" val="1" />
- <ctl name="Speaker Function" val="1" />
- - <ctl name="Speaker1 Function" val="1" />
- </on>
- <off>
- - <ctl name="Speaker1 Function" val="0" />
- <ctl name="Speaker Function" val="0" />
- - <ctl name="DAC LRCLK Select" val="normal"/>
- - <ctl name="HPR Pin Switch" val="0" />
- - <ctl name="HPL Mixer DACLHPL Switch" val="0" />
- - <ctl name="HPR Mixer DACRHPR Switch" val="0" />
- - <ctl name="HPL EAR Sel" val="EAR" />
- - <ctl name="HP mix mode" val="1" />
- + <ctl name="SPKL Mixer DACLSPKL Switch" val="0" />
- </off>
- </speaker>
-
- diff --git a/sprd/device/sprd/mpool/module/audio/msoc/sharkl5Pro/system/etc/audio_params/sprd/audioparam_config.xml b/sprd/device/sprd/mpool/module/audio/msoc/sharkl5Pro/system/etc/audio_params
- index 010a76f..801b6b6 100755
- --- a/sprd/device/sprd/mpool/module/audio/msoc/sharkl5Pro/system/etc/audio_params/sprd/audioparam_config.xml
- +++ b/sprd/device/sprd/mpool/module/audio/msoc/sharkl5Pro/system/etc/audio_params/sprd/audioparam_config.xml
- @@ -8,13 +8,13 @@
- <audioparam name="Audio\Handset\SWB1" Path="Audio\RCV" Usecase="VOLTE_SWB" OutDevice="Earpiece" />
- <audioparam name="Audio\Handset\FB1" Path="Audio\RCV" Usecase="VOLTE_FB" OutDevice="Earpiece" />
- <audioparam name="Audio\Handset\VOIP1" Path="Audio\RCV" Usecase="VOIP" OutDevice="Earpiece" />
- - <audioparam name="Audio\Handsfree\NB1" Path="Audio\HP" Usecase="GSM,TD,CDMA2000,WCDMA_NB,VOLTE_NB,VOWIFI_NB" OutDevice="Speaker" />
- - <audioparam name="Audio\Handsfree\NB2" Path="Audio\HP" Usecase="NONE" OutDevice="Speaker" />
- - <audioparam name="Audio\Handsfree\WB1" Path="Audio\HP" Usecase="WCDMA_WB,VOLTE_WB,VOWIFI_WB" OutDevice="Speaker" />
- - <audioparam name="Audio\Handsfree\WB2" Path="Audio\HP" Usecase="NONE" OutDevice="Speaker" />
- - <audioparam name="Audio\Handsfree\SWB1" Path="Audio\HP" Usecase="VOLTE_SWB" OutDevice="Speaker" />
- - <audioparam name="Audio\Handsfree\FB1" Path="Audio\HP" Usecase="VOLTE_FB" OutDevice="Speaker" />
- - <audioparam name="Audio\Handsfree\VOIP1" Path="Audio\HP" Usecase="VOIP" OutDevice="Speaker" />
- + <audioparam name="Audio\Handsfree\NB1" Path="Audio\SPK" Usecase="GSM,TD,CDMA2000,WCDMA_NB,VOLTE_NB,VOWIFI_NB" OutDevice="Speaker" />
- + <audioparam name="Audio\Handsfree\NB2" Path="Audio\SPK" Usecase="NONE" OutDevice="Speaker" />
- + <audioparam name="Audio\Handsfree\WB1" Path="Audio\SPK" Usecase="WCDMA_WB,VOLTE_WB,VOWIFI_WB" OutDevice="Speaker" />
- + <audioparam name="Audio\Handsfree\WB2" Path="Audio\SPK" Usecase="NONE" OutDevice="Speaker" />
- + <audioparam name="Audio\Handsfree\SWB1" Path="Audio\SPK" Usecase="VOLTE_SWB" OutDevice="Speaker" />
- + <audioparam name="Audio\Handsfree\FB1" Path="Audio\SPK" Usecase="VOLTE_FB" OutDevice="Speaker" />
- + <audioparam name="Audio\Handsfree\VOIP1" Path="Audio\SPK" Usecase="VOIP" OutDevice="Speaker" />
- <audioparam name="Audio\Headset4P\NB1" Path="Audio\HP" Usecase="GSM,TD,CDMA2000,WCDMA_NB,VOLTE_NB,VOWIFI_NB" OutDevice="Headset4P" />
- <audioparam name="Audio\Headset4P\NB2" Path="Audio\HP" Usecase="NONE" OutDevice="Headset4P" />
- <audioparam name="Audio\Headset4P\WB1" Path="Audio\HP" Usecase="WCDMA_WB,VOLTE_WB,VOWIFI_WB" OutDevice="Headset4P" />
- @@ -62,7 +62,7 @@
- <audioparam name="Music\Headset\UnprocessRecord" Path="Music\HeadsetMic" Usecase="UnprocessRecord" InDevice="HeadsetMic" />
- <audioparam name="Music\Headset\VoiceRecognition" Path="Music\ApHeadsetMic" Usecase="VoiceRecognition" InDevice="HeadsetMic" />
- <audioparam name="Music\Headset\FM" Path="Music\HeadsetFm" Usecase="Fm" OutDevice="Headset3P,Headset4P" />
- - <audioparam name="Music\Handsfree\Playback" Path="Music\HP" Usecase="Playback" OutDevice="Speaker" />
- + <audioparam name="Music\Handsfree\Playback" Path="Music\SPK" Usecase="Playback" OutDevice="Speaker" />
- <audioparam name="Music\Handsfree\Record" Path="Music\MainMic,AuxMic" Usecase="Record" InDevice="MainMic,AuxMic" />
- <audioparam name="Music\Handsfree\UnprocessRecord" Path="Music\MainMic,AuxMic" Usecase="UnprocessRecord" InDevice="MainMic,AuxMic" />
- <audioparam name="Music\Handsfree\VideoRecord" Path="Music\MainMic,AuxMic" Usecase="VideoRecord" InDevice="MainMic,AuxMic" />
- @@ -74,10 +74,10 @@
- <audioparam name="Music\TypeC_Digital\VoiceRecognition" Path="Music\ApTypeC_DigitalRecord" Usecase="VoiceRecognition" InDevice="UsbHeadsetIn" />
- <audioparam name="Music\TypeC_Digital\FM" Path="Music\TypeC_DigitalFm" Usecase="Fm" OutDevice="UsbHeadset" />
- <audioparam name="Music\Handset\Playback" Path="Music\RCV" Usecase="Playback" OutDevice="Earpiece" />
- - <audioparam name="Music\Headfree\Playback" Path="Music\HP" Usecase="Playback" OutDevice="Speaker,Headset3P,Headset4P" />
- + <audioparam name="Music\Headfree\Playback" Path="Music\SPK" Usecase="Playback" OutDevice="Speaker,Headset3P,Headset4P" />
- <audioparam name="Music\Bluetooth\Record" Path="Music\BluetoothRecord" Usecase="Record" InDevice="Sco" />
- <audioparam name="Loopback\Handset\Loop1" Path="Loopback\RCV" Usecase="Loop" OutDevice="Earpiece" InDevice="AuxMic" />
- - <audioparam name="Loopback\Handsfree\Loop1" Path="Loopback\HP" Usecase="Loop" OutDevice="Speaker" InDevice="MainMic,AuxMic" />
- + <audioparam name="Loopback\Handsfree\Loop1" Path="Loopback\SPK" Usecase="Loop" OutDevice="Speaker" InDevice="MainMic,AuxMic" />
- <audioparam name="Loopback\Headset4P\Loop1" Path="Loopback\HP" Usecase="Loop" OutDevice="Headset4P,Headset3P" InDevice="HeadsetMic" />
- <audioparam name="Loopback\Headset3P\Loop1" Path="Loopback\HP" Usecase="Loop" OutDevice="Headset4P,Headset3P" InDevice="MainMic" />
- </common>
复制代码
编译方法:
- make -j24 2>&1 | tee build.log
- cp_sign && makepac
复制代码 打包完成后,全部重新烧录!
|
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
|