请教关于HDMI in声音可调问题
现在3399J的hdmi in声音是用了声卡的录音接口,声音大小是不可以调节的!只能调节信号源!板子也用了tinysalsa;我试了下用 tinymix -D 1 18 2这指令可以调节hdmi in过来的声音大小,我想做成跟系统声音大小调节,有哪些高手做过,研究了一个多礼拜没有眉目! 问题现在是这样子解决,可以利用 tinymix修改录音大小,只有8级调节,可以跟谁系统声音大小调节了!静音还没修改!修改好可以@我Firefly-rk3399-7.1.2/frameworks/base/services/core/java/com/android/server/audio/AudioService.java
---------------------3980行--------------------------
public void applyDeviceVolume_syncVSS(int device) {
int index;
if (mIsMuted) {
index = 0;
} else if ((device & AudioSystem.DEVICE_OUT_ALL_A2DP) != 0 && mAvrcpAbsVolSupported) {
index = getAbsoluteVolumeIndex((getIndex(device) + 5)/10);
} else if ((device & mFullVolumeDevices) != 0) {
index = (mIndexMax + 5)/10;
} else {
index = (getIndex(device) + 5)/10;
}
try{
Runtime runtime = Runtime.getRuntime();
runtime.exec("tinymix -D 1 11 " + (index/2));
}catch(Exception e){
// Log.e("yufei",e.getMessge());
}
//Log.d("yufei", " setDeviceVolume-->applyDeviceVolume_syncVSS mStreamType:"+mStreamType+", index:"+index+", mRingerModeMutedStreams:"+mRingerModeMutedStreams);
AudioSystem.setStreamVolumeIndex(mStreamType, index, device);
}
页:
[1]