diff options
| -rw-r--r-- | BoardConfig.mk | 5 | ||||
| -rw-r--r-- | bluetooth/vnd_t0lte.txt | 14 | ||||
| -rw-r--r-- | configs/default_gain.conf | 197 |
3 files changed, 56 insertions, 160 deletions
diff --git a/BoardConfig.mk b/BoardConfig.mk index 9ee7477..197cf52 100644 --- a/BoardConfig.mk +++ b/BoardConfig.mk @@ -19,8 +19,11 @@ -include device/samsung/smdk4412-common/BoardCommonConfig.mk +LOCAL_PATH := device/samsung/t0lte + # Bluetooth -BOARD_BLUETOOTH_BDROID_BUILDCFG_INCLUDE_DIR := device/samsung/t0lte/bluetooth +BOARD_BLUETOOTH_BDROID_BUILDCFG_INCLUDE_DIR := $(LOCAL_PATH)/bluetooth +BOARD_BLUEDROID_VENDOR_CONF := $(LOCAL_PATH)/bluetooth/vnd_t0lte.txt # RIL COMMON_GLOBAL_CFLAGS += -DPROPERTY_PERMS_APPEND='{ "ril.ks.status", AID_SYSTEM, 0 },' diff --git a/bluetooth/vnd_t0lte.txt b/bluetooth/vnd_t0lte.txt new file mode 100644 index 0000000..670fbc7 --- /dev/null +++ b/bluetooth/vnd_t0lte.txt @@ -0,0 +1,14 @@ +BLUETOOTH_UART_DEVICE_PORT = "/dev/ttySAC0" +FW_PATCHFILE_LOCATION = "/system/bin" +LPM_IDLE_TIMEOUT_MULTIPLE = 5 +BTVND_DBG = FALSE +BTHW_DBG = TRUE +VNDUSERIAL_DBG = FALSE +UPIO_DBG = FALSE +UART_TARGET_BAUD_RATE = 3000000 +FW_PATCH_SETTLEMENT_DELAY_MS = 50 +SCO_USE_I2S_INTERFACE = TRUE +SCO_I2SPCM_IF_MODE = 1 +SCO_I2SPCM_IF_ROLE = 0 +SCO_I2SPCM_IF_SAMPLE_RATE = 0 +SCO_I2SPCM_IF_CLOCK_RATE = 1 diff --git a/configs/default_gain.conf b/configs/default_gain.conf index 07a2556..cbfb958 100644 --- a/configs/default_gain.conf +++ b/configs/default_gain.conf @@ -10,10 +10,10 @@ Modifier "Normal" { Enable { { "AIF1DAC1 Volume", 96 }, { "AIF1 Boost Volume", 0 }, - { "DAC1 Volume", 96 }, + { "DAC1 Volume", 89 }, { "Left Output Mixer DAC Volume", 7 }, { "Right Output Mixer DAC Volume", 7 }, - { "Output Volume", 51 }, + { "Output Volume", 57 }, { "Earpiece Volume", 1 }, } Disable { @@ -64,7 +64,7 @@ Modifier "Normal" { { "DAC1 Volume", 96 }, { "Left Output Mixer DAC Volume", 7 }, { "Right Output Mixer DAC Volume", 7 }, - { "Headphone Volume", 56 }, + { "Headphone Volume", 49 }, } Disable { { "Headphone ZC Switch", 0 }, @@ -86,7 +86,7 @@ Modifier "Normal" { { "DAC1 Volume", 96 }, { "Left Output Mixer DAC Volume", 7 }, { "Right Output Mixer DAC Volume", 7 }, - { "Headphone Volume", 56 }, + { "Headphone Volume", 49 }, } Disable { { "Headphone ZC Switch", 0 }, @@ -204,25 +204,25 @@ Modifier "Incall" { { "AIF2DAC2R Mixer AIF2 Switch", 0 }, { "AIF2ADC HPF Mode", 1 }, { "AIF2ADC HPF Switch", 1 }, - { "AIF1DAC1 Volume", 100 }, - { "AIF2DAC Volume", 100 }, + { "AIF1DAC1 Volume", 96 }, + { "AIF2DAC Volume", 96 }, { "AIF1 Boost Volume", 0 }, { "AIF2 Boost Volume", 0 }, - { "DAC1 Volume", 100 }, + { "DAC1 Volume", 96 }, { "Left Output Mixer DAC Volume", 7 }, { "Right Output Mixer DAC Volume", 7 }, - { "Output Volume", 63 }, + { "Output Volume", 57 }, { "Earpiece Volume", 1 }, } Disable { - { "AIF1DAC1 Volume", 100 }, - { "AIF2DAC Volume", 100 }, + { "AIF1DAC1 Volume", 96 }, + { "AIF2DAC Volume", 96 }, { "AIF1 Boost Volume", 0 }, { "AIF2 Boost Volume", 0 }, - { "DAC1 Volume", 100 }, + { "DAC1 Volume", 96 }, { "Left Output Mixer DAC Volume", 7 }, { "Right Output Mixer DAC Volume", 7 }, - { "Output Volume", 70 }, + { "Output Volume", 61 }, { "Earpiece Volume", 1 }, } } @@ -236,7 +236,7 @@ Modifier "Incall" { { "AIF2DAC2R Mixer AIF2 Switch", 0 }, { "AIF2ADC HPF Mode", 1 }, { "AIF2ADC HPF Switch", 1 }, - { "AIF1DAC1 Volume", 96 }, + { "AIF1DAC1 Volume", 90 }, { "AIF2DAC Volume", 96 }, { "AIF1 Boost Volume", 0 }, { "AIF2 Boost Volume", 0 }, @@ -244,8 +244,8 @@ Modifier "Incall" { { "SPKL DAC1 Volume", 1 }, { "SPKR DAC1 Volume", 1 }, { "Speaker Mixer Volume", 3 }, - { "Speaker Boost Volume", 3 }, - { "Speaker Volume", 62 }, + { "Speaker Boost Volume", 5 }, + { "Speaker Volume", 57 }, } Disable { { "AIF2DAC Volume", 96 }, @@ -267,8 +267,8 @@ Modifier "Incall" { { "AIF2DAC2L Mixer AIF2 Switch", 0 }, { "AIF2DAC2R Mixer AIF2 Switch", 0 }, { "Headphone ZC Switch", 0 }, - { "AIF2ADC HPF Mode", 0 }, - { "AIF2ADC HPF Switch", 0 }, + { "AIF2ADC HPF Mode", 1 }, + { "AIF2ADC HPF Switch", 1 }, { "AIF1DAC1 Volume", 96 }, { "AIF2DAC Volume", 96 }, { "AIF1 Boost Volume", 0 }, @@ -276,7 +276,7 @@ Modifier "Incall" { { "DAC1 Volume", 96 }, { "Left Output Mixer DAC Volume", 7 }, { "Right Output Mixer DAC Volume", 7 }, - { "Headphone Volume", 57 }, + { "Headphone Volume", 49 }, } Disable { { "Headphone ZC Switch", 0 }, @@ -308,7 +308,7 @@ Modifier "Incall" { { "DAC1 Volume", 96 }, { "Left Output Mixer DAC Volume", 7 }, { "Right Output Mixer DAC Volume", 7 }, - { "Headphone Volume", 57 }, + { "Headphone Volume", 49 }, } Disable { { "Headphone ZC Switch", 0 }, @@ -383,70 +383,6 @@ Modifier "Incall" { } } -Modifier "TTY Mode Out" { - SupportedDevice { - "Headset Out" - } - Enable { - { "AIF2DAC2L Mixer AIF2 Switch", 0 }, - { "AIF2DAC2R Mixer AIF2 Switch", 0 }, - { "Headphone ZC Switch", 0 }, - { "AIF2ADC HPF Mode", 0 }, - { "AIF2ADC HPF Switch", 0 }, - { "AIF1DAC1 Volume", 96 }, - { "AIF2DAC Volume", 96 }, - { "AIF1 Boost Volume", 0 }, - { "AIF2 Boost Volume", 0 }, - { "DAC1 Volume", 96 }, - { "Left Output Mixer DAC Volume", 7 }, - { "Right Output Mixer DAC Volume", 7 }, - { "Headphone Volume", 57 }, - } - Disable { - { "Headphone ZC Switch", 0 }, - { "AIF1DAC1 Volume", 96 }, - { "AIF2DAC Volume", 96 }, - { "AIF1 Boost Volume", 0 }, - { "AIF2 Boost Volume", 0 }, - { "DAC1 Volume", 96 }, - { "Left Output Mixer DAC Volume", 7 }, - { "Right Output Mixer DAC Volume", 7 }, - { "Headphone Volume", 45 }, - } -} - -Modifier "TTY Mode Out" { - SupportedDevice { - "Speaker" - } - Enable { - { "AIF2DAC2L Mixer AIF2 Switch", 0 }, - { "AIF2DAC2R Mixer AIF2 Switch", 0 }, - { "AIF2ADC HPF Mode", 1 }, - { "AIF2ADC HPF Switch", 1 }, - { "AIF1DAC1 Volume", 96 }, - { "AIF2DAC Volume", 96 }, - { "AIF1 Boost Volume", 0 }, - { "AIF2 Boost Volume", 0 }, - { "DAC1 Volume", 96 }, - { "SPKL DAC1 Volume", 1 }, - { "SPKR DAC1 Volume", 1 }, - { "Speaker Mixer Volume", 3 }, - { "Speaker Boost Volume", 6 }, - { "Speaker Volume", 60 }, - } - Disable { - { "AIF2DAC Volume", 96 }, - { "AIF2 Boost Volume", 0 }, - { "DAC1 Volume", 96 }, - { "SPKL DAC1 Volume", 0 }, - { "SPKR DAC1 Volume", 0 }, - { "Speaker Mixer Volume", 0 }, - { "Speaker Volume", 57 }, - { "Speaker Boost Volume", 0 }, - } -} - #Modifier: Ringtone Modifier "Ringtone" { SupportedDevice { @@ -661,7 +597,7 @@ Modifier "Dual Normal" { { "DAC1 Volume", 96 }, { "Left Output Mixer DAC Volume", 7 }, { "Right Output Mixer DAC Volume", 7 }, - { "Headphone Volume", 22 }, + { "Headphone Volume", 25 }, } Disable { { "Headphone ZC Switch", 0 }, @@ -685,7 +621,7 @@ Modifier "Dual Normal" { { "DAC1 Volume", 96 }, { "Left Output Mixer DAC Volume", 7 }, { "Right Output Mixer DAC Volume", 7 }, - { "Headphone Volume", 22 }, + { "Headphone Volume", 25 }, } Disable { { "Headphone ZC Switch", 0 }, @@ -735,7 +671,7 @@ Modifier "Dual Ringtone" { { "DAC1 Volume", 96 }, { "Left Output Mixer DAC Volume", 7 }, { "Right Output Mixer DAC Volume", 7 }, - { "Headphone Volume", 22 }, + { "Headphone Volume", 25 }, } Disable { { "Headphone ZC Switch", 0 }, @@ -759,7 +695,7 @@ Modifier "Dual Ringtone" { { "DAC1 Volume", 96 }, { "Left Output Mixer DAC Volume", 7 }, { "Right Output Mixer DAC Volume", 7 }, - { "Headphone Volume", 22 }, + { "Headphone Volume", 25 }, } Disable { { "Headphone ZC Switch", 0 }, @@ -782,7 +718,7 @@ Modifier "Incommunication" { { "DAC1 Volume", 96 }, { "Left Output Mixer DAC Volume", 7 }, { "Right Output Mixer DAC Volume", 7 }, - { "Output Volume", 54 }, + { "Output Volume", 51 }, { "Earpiece Volume", 1 }, } Disable { @@ -875,16 +811,12 @@ Modifier "Incommunication" { "SCO" } Enable { - { "AIF1ADC1 HPF Mode", 1 }, - { "AIF1ADC1 HPF Switch", 1 }, { "AIF1DAC1 Volume", 96 }, { "AIF1 Boost Volume", 0 }, { "DAC2 Volume", 96 }, { "AIF2ADC Volume", 96 }, } Disable { - { "AIF1ADC1 HPF Mode", 0 }, - { "AIF1ADC1 HPF Switch", 0 }, { "AIF1DAC1 Volume", 96 }, { "AIF1 Boost Volume", 0 }, { "DAC2 Volume", 96 }, @@ -897,16 +829,12 @@ Modifier "Incommunication" { "SCO Headset Out" } Enable { - { "AIF1ADC1 HPF Mode", 1 }, - { "AIF1ADC1 HPF Switch", 1 }, { "AIF1DAC1 Volume", 96 }, { "AIF1 Boost Volume", 0 }, { "DAC2 Volume", 96 }, { "AIF2ADC Volume", 96 }, } Disable { - { "AIF1ADC1 HPF Mode", 0 }, - { "AIF1ADC1 HPF Switch", 0 }, { "AIF1DAC1 Volume", 96 }, { "AIF1 Boost Volume", 0 }, { "DAC2 Volume", 96 }, @@ -919,16 +847,12 @@ Modifier "Incommunication" { "SCO Carkit" } Enable { - { "AIF1ADC1 HPF Mode", 1 }, - { "AIF1ADC1 HPF Switch", 1 }, { "AIF1DAC1 Volume", 96 }, { "AIF1 Boost Volume", 0 }, { "DAC2 Volume", 96 }, { "AIF2ADC Volume", 96 }, } Disable { - { "AIF1ADC1 HPF Mode", 0 }, - { "AIF1ADC1 HPF Switch", 0 }, { "AIF1DAC1 Volume", 96 }, { "AIF1 Boost Volume", 0 }, { "DAC2 Volume", 96 }, @@ -971,7 +895,7 @@ Modifier "Voipout" { { "DAC1 Volume", 96 }, { "Left Output Mixer DAC Volume", 7 }, { "Right Output Mixer DAC Volume", 7 }, - { "Output Volume", 52 }, + { "Output Volume", 48 }, { "Earpiece Volume", 1 }, } Disable { @@ -2366,7 +2290,7 @@ Modifier "Communication" { Enable { { "AIF1ADC1 HPF Mode", 1 }, { "AIF1ADC1 HPF Switch", 1 }, - { "IN1L Volume", 15 }, + { "IN1L Volume", 11 }, { "MIXINL IN1L Volume", 1 }, { "AIF1ADC1 Volume", 96 }, } @@ -2384,7 +2308,7 @@ Modifier "Communication" { "SCO Headset In" } Enable { - { "AIF1ADC1 Volume", 99 }, + { "AIF1ADC1 Volume", 90 }, { "AIF2DAC Volume", 96 }, } Disable { @@ -2612,7 +2536,7 @@ Modifier "Voipin" { Enable { { "AIF1ADC1 HPF Mode", 1 }, { "AIF1ADC1 HPF Switch", 1 }, - { "IN1L Volume", 15 }, + { "IN1L Volume", 11 }, { "MIXINL IN1L Volume", 1 }, { "AIF1ADC1 Volume", 96 }, } @@ -2704,7 +2628,7 @@ Modifier "IncallIn" { { "MIXINR IN1R Volume", 0 }, { "DAC2 Right Sidetone Volume", 12 }, { "DAC2 Volume", 96 }, - { "AIF2ADC Volume", 100 }, + { "AIF2ADC Volume", 110 }, } Disable { { "IN1R Volume", 7 }, @@ -2747,7 +2671,7 @@ Modifier "IncallIn" { Enable { { "AIF2DAC2L Mixer Left Sidetone Switch", 1 }, { "AIF2DAC2L Mixer Right Sidetone Switch", 0 }, - { "IN1L Volume", 23 }, + { "IN1L Volume", 28 }, { "MIXINL IN1L Volume", 0 }, { "DAC2 Left Sidetone Volume", 12 }, { "DAC2 Volume", 96 }, @@ -2776,51 +2700,6 @@ Modifier "IncallIn" { } } -Modifier "TTY Mode In" { - SupportedDevice { - "Headset In" - } - Enable { - { "AIF2DAC2L Mixer Left Sidetone Switch", 1 }, - { "AIF2DAC2L Mixer Right Sidetone Switch", 0 }, - { "IN1L Volume", 23 }, - { "MIXINL IN1L Volume", 0 }, - { "DAC2 Left Sidetone Volume", 12 }, - { "DAC2 Volume", 96 }, - { "AIF2ADC Volume", 96 }, - } - Disable { - { "IN1L Volume", 11 }, - { "MIXINL IN1L Volume", 0 }, - { "DAC2 Left Sidetone Volume", 12 }, - { "DAC2 Volume", 96 }, - { "AIF2ADC Volume", 96 }, - } -} - -Modifier "TTY Mode In" { - SupportedDevice { - "Builtin Mic" - } - Enable { - { "AIF2DAC2L Mixer Left Sidetone Switch", 1 }, - { "AIF2DAC2L Mixer Right Sidetone Switch", 0 }, - { "IN2L Volume", 25}, - { "MIXINL IN2L Volume", 0 }, - { "DAC2 Left Sidetone Volume", 12 }, - { "DAC2 Volume", 96 }, - { "AIF2ADC Volume", 96 }, - } - Disable { - { "IN2L Volume", 7 }, - { "MIXINL IN2L Volume", 0 }, - { "DAC2 Left Sidetone Volume", 0 }, - { "DAC2 Left Sidetone Volume", 12 }, - { "DAC2 Volume", 96 }, - { "AIF2ADC Volume", 96 }, - } -} - #LoopbackIn-Capture Modifier Modifier "LoopbackIn" { SupportedDevice { @@ -3319,14 +3198,14 @@ Modifier "VoicecallRec" { } } -#Modifier "CodecRxMute" { -# Enable { -# { "AIF2 digital mute", 1 }, -# } -# Disable { -# { "AIF2 digital mute", 0 }, -# } -#} +Modifier "CodecRxMute" { + Enable { + { "AIF2 digital mute", 1 }, + } + Disable { + { "AIF2 digital mute", 0 }, + } +} Modifier "ForceVoIPMic" { Enable { |
