先把packages/apps/Settings/src/com/android/settings/notification/NotificationSettings.java中如下部分注释掉。Setting把UI打开。
mSoundDevices = findPreference(KEY_SOUND_DEVICES);
161 /*paul change if(!"box".equals(SystemProperties.get("ro.target.product","tablet"))){
162 // getPreferenceScreen().removePreference(mSoundDevices);
163 // getPreferenceScreen().removePreference(soundmange);
164 // soundmange = null;
165 // mSoundDevices = null;
166 // Log.d(TAG,"remove SoundDevices======");
167 */ //paul change }
168 /*$_rbox_$_modify_$_zhangxueguang_$_end_$_20120409_$*/
169 }
将如下补丁打入hardware/rockchip/audio/tinyalsa_hal/audio_hw.c文件中。
diff --git a/tinyalsa_hal/audio_hw.c b/tinyalsa_hal/audio_hw.c
index 6cc0a1c..3b38f9f 100755
--- a/tinyalsa_hal/audio_hw.c
+++ b/tinyalsa_hal/audio_hw.c
@@ -509,6 +509,10 @@ static int start_output_stream(struct stream_out *out)
/*BOX hdmi & codec use the same i2s,so only config the codec card*/
out->device &= ~AUDIO_DEVICE_OUT_SPEAKER;
}
index 6cc0a1c..3b38f9f 100755
--- a/tinyalsa_hal/audio_hw.c
+++ b/tinyalsa_hal/audio_hw.c
@@ -509,6 +509,10 @@ static int start_output_stream(struct stream_out *out)
/*BOX hdmi & codec use the same i2s,so only config the codec card*/
out->device &= ~AUDIO_DEVICE_OUT_SPEAKER;
}