Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

[rbp] added raspberrypi guisetting tweaks

  • Loading branch information...
commit 05cee69024062a5312ba20eb00bcf891b8d1737a 1 parent b144fd2
@huceke huceke authored
View
18 xbmc/settings/GUISettings.cpp
@@ -380,7 +380,7 @@ void CGUISettings::Initialize()
// this setting would ideally not be saved, as its value is systematically derived from videoscreen.screenmode.
// contains a DISPLAYMODE
-#if !defined(TARGET_DARWIN_IOS_ATV2)
+#if !defined(TARGET_DARWIN_IOS_ATV2) && !defined(TARGET_RASPBERRY_PI)
AddInt(vs, "videoscreen.screen", 240, 0, -1, 1, 32, SPIN_CONTROL_TEXT);
#endif
// this setting would ideally not be saved, as its value is systematically derived from videoscreen.screenmode.
@@ -443,9 +443,15 @@ void CGUISettings::Initialize()
map<int,int> audiomode;
audiomode.insert(make_pair(338,AUDIO_ANALOG));
+#if !defined(TARGET_RASPBERRY_PI)
audiomode.insert(make_pair(339,AUDIO_IEC958));
+#endif
audiomode.insert(make_pair(420,AUDIO_HDMI ));
+#if defined(TARGET_RASPBERRY_PI)
+ AddInt(ao, "audiooutput.mode", 337, AUDIO_HDMI, audiomode, SPIN_CONTROL_TEXT);
+#else
AddInt(ao, "audiooutput.mode", 337, AUDIO_ANALOG, audiomode, SPIN_CONTROL_TEXT);
+#endif
map<int,int> channelLayout;
for(int layout = AE_CH_LAYOUT_2_0; layout < AE_CH_LAYOUT_MAX; ++layout)
@@ -464,13 +470,13 @@ void CGUISettings::Initialize()
AddBool(aocat, "audiooutput.dtspassthrough" , 254, true);
-#if !defined(TARGET_DARWIN)
+#if !defined(TARGET_DARWIN) && !defined(TARGET_RASPBERRY_PI)
AddBool(aocat, "audiooutput.passthroughaac" , 299, false);
#endif
-#if !defined(TARGET_DARWIN_IOS)
+#if !defined(TARGET_DARWIN_IOS) && !defined(TARGET_RASPBERRY_PI)
AddBool(aocat, "audiooutput.multichannellpcm" , 348, true );
#endif
-#if !defined(TARGET_DARWIN)
+#if !defined(TARGET_DARWIN) && !defined(TARGET_RASPBERRY_PI)
AddBool(aocat, "audiooutput.truehdpassthrough", 349, true );
AddBool(aocat, "audiooutput.dtshdpassthrough" , 347, true );
#endif
@@ -690,7 +696,11 @@ void CGUISettings::Initialize()
adjustTypes.insert(make_pair(36036, ADJUST_REFRESHRATE_ON_STARTSTOP));
#if !defined(TARGET_DARWIN_IOS)
+#if defined(TARGET_RASPBERRY_PI)
+ AddBool(vp, "videoplayer.adjustrefreshrate", 170, true);
+#else
AddInt(vp, "videoplayer.adjustrefreshrate", 170, ADJUST_REFRESHRATE_OFF, adjustTypes, SPIN_CONTROL_TEXT);
+#endif
// AddBool(vp, "videoplayer.adjustrefreshrate", 170, false);
AddInt(vp, "videoplayer.pauseafterrefreshchange", 13550, 0, 0, 1, MAXREFRESHCHANGEDELAY, SPIN_CONTROL_TEXT);
#else
View
4 xbmc/video/dialogs/GUIDialogVideoSettings.cpp
@@ -76,7 +76,9 @@ void CGUIDialogVideoSettings::CreateSettings()
{
vector<pair<int, int> > entries;
entries.push_back(make_pair(VS_DEINTERLACEMODE_OFF , 16039));
+#ifndef TARGET_RASPBERRY_PI
entries.push_back(make_pair(VS_DEINTERLACEMODE_AUTO , 16040));
+#endif
entries.push_back(make_pair(VS_DEINTERLACEMODE_FORCE , 16041));
/* remove unsupported methods */
@@ -90,6 +92,7 @@ void CGUIDialogVideoSettings::CreateSettings()
AddSpin(VIDEO_SETTINGS_DEINTERLACEMODE, 16037, (int*)&g_settings.m_currentVideoSettings.m_DeinterlaceMode, entries);
}
+#ifndef TARGET_RASPBERRY_PI
{
vector<pair<int, int> > entries;
entries.push_back(make_pair(VS_INTERLACEMETHOD_AUTO , 16019));
@@ -154,6 +157,7 @@ void CGUIDialogVideoSettings::CreateSettings()
AddSpin(VIDEO_SETTINGS_SCALINGMETHOD, 16300, (int*)&g_settings.m_currentVideoSettings.m_ScalingMethod, entries);
}
+#endif
AddBool(VIDEO_SETTINGS_CROP, 644, &g_settings.m_currentVideoSettings.m_Crop);
{
const int entries[] = {630, 631, 632, 633, 634, 635, 636 };
Please sign in to comment.
Something went wrong with that request. Please try again.