From 1702e13347bef848b9b3a70b50c9e6019148f250 Mon Sep 17 00:00:00 2001 From: KalimochoAz Date: Thu, 12 Jan 2012 21:21:06 +0100 Subject: Remove Sound settings from crespoparts Since we are moving them to DSPManager Change-Id: Ib40d45be59a7b5f17f49f50dc29ffdefe3abde69 --- .../settings/device/DeviceSettings.java | 2 - .../settings/device/SoundFragmentActivity.java | 98 ---------------------- .../com/cyanogenmod/settings/device/Startup.java | 1 - 3 files changed, 101 deletions(-) delete mode 100755 CrespoParts/src/com/cyanogenmod/settings/device/SoundFragmentActivity.java (limited to 'CrespoParts/src') diff --git a/CrespoParts/src/com/cyanogenmod/settings/device/DeviceSettings.java b/CrespoParts/src/com/cyanogenmod/settings/device/DeviceSettings.java index 00a6bb8..19e76e4 100644 --- a/CrespoParts/src/com/cyanogenmod/settings/device/DeviceSettings.java +++ b/CrespoParts/src/com/cyanogenmod/settings/device/DeviceSettings.java @@ -71,8 +71,6 @@ public class DeviceSettings extends Activity { GeneralFragmentActivity.class, null); mTabsAdapter.addTab(bar.newTab().setText(R.string.display_title), DisplayFragmentActivity.class, null); - mTabsAdapter.addTab(bar.newTab().setText(R.string.sound_title), - SoundFragmentActivity.class, null); if (savedInstanceState != null) { bar.setSelectedNavigationItem(savedInstanceState.getInt("tab", 0)); diff --git a/CrespoParts/src/com/cyanogenmod/settings/device/SoundFragmentActivity.java b/CrespoParts/src/com/cyanogenmod/settings/device/SoundFragmentActivity.java deleted file mode 100755 index 77b76e6..0000000 --- a/CrespoParts/src/com/cyanogenmod/settings/device/SoundFragmentActivity.java +++ /dev/null @@ -1,98 +0,0 @@ -/* - * Copyright (C) 2011 The CyanogenMod Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.cyanogenmod.settings.device; - -import android.content.Context; -import android.content.SharedPreferences; -import android.os.Bundle; -import android.preference.CheckBoxPreference; -import android.preference.Preference; -import android.preference.PreferenceActivity; -import android.preference.PreferenceFragment; -import android.preference.PreferenceManager; -import android.preference.PreferenceScreen; -import android.util.Log; - -import com.cyanogenmod.settings.device.R; - -public class SoundFragmentActivity extends PreferenceFragment { - - public static final String aOptionControl[][] = { - {"/sys/class/misc/voodoo_sound_control/enable","pref_wm8994_control_enable"}, - {"/sys/class/misc/voodoo_sound/speaker_tuning","pref_wm8994_speaker_tuning"}, - {"/sys/class/misc/voodoo_sound/mono_downmix","pref_wm8994_mono_downmix"}, - {"/sys/class/misc/voodoo_sound/stereo_expansion","pref_wm8994_stereo_expansion"}, - {"/sys/class/misc/voodoo_sound/dac_direct","pref_wm8994_dac_direct"}, - {"/sys/class/misc/voodoo_sound/dac_osr128","pref_wm8994_dac_osr128"}, - {"/sys/class/misc/voodoo_sound/adc_osr128","pref_wm8994_adc_osr128"}, - {"/sys/class/misc/voodoo_sound/fll_tuning","pref_wm8994_fll_tuning"} - }; - private static final Integer iTotalOptions = aOptionControl.length; - private CheckBoxPreference cbpStatus[] = new CheckBoxPreference[iTotalOptions]; - - // Misc - private static final String PREF_ENABLED = "1"; - private static final String TAG = "CrespoParts_WM8994ControlSound"; - - @Override - public void onCreate(Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - - addPreferencesFromResource(R.xml.sound_preferences); - - PreferenceScreen prefSet = getPreferenceScreen(); - - Integer iPosition; - for(iPosition=0;iPosition