VS-RK3399在android下面把聲音放到最大時候,播放器自動退出問題
VS-RK3399 在android下面把聲音放到最大時候,播放器自動退出問題。使用系統(tǒng)自帶的Video.apk播放,當聲音放到最大時候,播放視頻過一會后自動退出,影響ADC采樣,干擾了物理鍵,返回一個back鍵出來,剛好Video.apk有處理返回鍵的相應(yīng),導(dǎo)致播放時候退出。
修改方法:
\kernel\arch\arm64\boot\dts\rockchip\rk3399-android.dtsi
rk_key: rockchip-key {
compatible = "rockchip,key";
status = "okay";
io-channels = <&saradc 1>;
vol-up-key {
linux,code = <115>;
label = "volume up";
rockchip,adc_value = <1>;
};
vol-down-key {
linux,code = <114>;
label = "volume down";
rockchip,adc_value = <170>;
};
power-key {
gpios = <&gpio0 5 GPIO_ACTIVE_LOW>;
linux,code = <116>;
label = "power";
gpio-key,wakeup;
};
#if 0
menu-key {
linux,code = <59>;
label = "menu";
rockchip,adc_value = <746>;
};
home-key {
linux,code = <102>;
label = "home";
rockchip,adc_value = <355>;
};
back-key {
linux,code = <158>;
label = "back";
rockchip,adc_value = <560>;
};
camera-key {
linux,code = <212>;
label = "camera";
rockchip,adc_value = <450>;
};
#endif
};
按上面操作,把back鍵去掉
|