diff options
author | kristof.petho <kristof.petho@gmail.com> | 2013-01-10 09:37:52 +0100 |
---|---|---|
committer | kristof.petho <kristof.petho@gmail.com> | 2013-01-10 09:37:52 +0100 |
commit | 95c92c08a3fb9ba3931ff0dc5391a157aef616c3 (patch) | |
tree | bdc66fa4ff12d748b100c436225ab7a7a73913bc /audio/audio_hw.h | |
parent | b90dde22b557eb7a0cd1e33042460984158f45b0 (diff) | |
download | device_samsung_n7100-95c92c08a3fb9ba3931ff0dc5391a157aef616c3.zip device_samsung_n7100-95c92c08a3fb9ba3931ff0dc5391a157aef616c3.tar.gz device_samsung_n7100-95c92c08a3fb9ba3931ff0dc5391a157aef616c3.tar.bz2 |
N7100: Fix incall BT audio and cleanup
- Fixes incall bluetooth audio (thanks to codeworkx for idea)
- Cleanup audio routing
- Cleanup audio volumes
- Cleanup power_profile to match stock values
Change-Id: I40e8f5df5e892475e73f7eae3e4418824385cc52
Diffstat (limited to 'audio/audio_hw.h')
-rw-r--r-- | audio/audio_hw.h | 43 |
1 files changed, 17 insertions, 26 deletions
diff --git a/audio/audio_hw.h b/audio/audio_hw.h index ba9b9d1..d909104 100644 --- a/audio/audio_hw.h +++ b/audio/audio_hw.h @@ -119,8 +119,6 @@ struct route_setting struct route_setting voicecall_default[] = { { .ctl_name = "AIF2 Mode", .intval = 0, }, - { .ctl_name = "MainMicBias Mode", .intval = 3, }, - { .ctl_name = "SubMicBias Mode", .intval = 3, }, { .ctl_name = "DAC1L Mixer AIF1.1 Switch", .intval = 1, }, { .ctl_name = "DAC1R Mixer AIF1.1 Switch", .intval = 1, }, { .ctl_name = "DAC1L Mixer AIF2 Switch", .intval = 1, }, @@ -134,10 +132,8 @@ struct route_setting voicecall_default_disable[] = { { .ctl_name = "DAC1L Mixer AIF2 Switch", .intval = 0, }, { .ctl_name = "DAC1R Mixer AIF2 Switch", .intval = 0, }, { .ctl_name = "AIF2DAC Mux", .strval = "AIF3DACDAT", }, - { .ctl_name = "MainMicBias Mode", .intval = 2, }, - { .ctl_name = "SubMicBias Mode", .intval = 2, }, { .ctl_name = "Main Mic Switch", .intval = 0, }, - { .ctl_name = "MIXINL IN1L Switch", .intval = 0, }, + { .ctl_name = "MIXINL IN2L Switch", .intval = 0, }, { .ctl_name = "Sub Mic Switch", .intval = 0, }, { .ctl_name = "MIXINR IN1R Switch", .intval = 0, }, { .ctl_name = NULL, }, @@ -149,17 +145,15 @@ struct route_setting default_input[] = { { .ctl_name = "IN2L Volume", .intval = 28, }, { .ctl_name = "MIXINL IN2L Switch", .intval = 1, }, { .ctl_name = "MIXINL IN2L Volume", .intval = 0, }, - { .ctl_name = "AIF1ADC1 HPF Mode", .intval = 1, }, + { .ctl_name = "AIF1ADC1 HPF Mode", .intval = 0, }, { .ctl_name = "AIF1ADC1 HPF Switch", .intval = 1, }, { .ctl_name = NULL, }, }; struct route_setting default_input_disable[] = { { .ctl_name = "Main Mic Switch", .intval = 0, }, - { .ctl_name = "MainMicBias Mode", .intval = 0, }, { .ctl_name = "IN2L Volume", .intval = 4, }, { .ctl_name = "MIXINL IN2L Switch", .intval = 0, }, - { .ctl_name = "MIXINL IN2L Volume", .intval = 0, }, { .ctl_name = "AIF1ADC1 HPF Switch", .intval = 0, }, { .ctl_name = NULL, }, }; @@ -183,9 +177,9 @@ struct route_setting noise_suppression_disable[] = { struct route_setting headset_input[] = { { .ctl_name = "MIXINL IN2L Switch", .intval = 0, }, - { .ctl_name = "MIXINR IN1R Switch", .intval = 0, }, + { .ctl_name = "MIXINR IN1R Switch", .intval = 0, }, { .ctl_name = "Headset Mic Switch", .intval = 1, }, - { .ctl_name = "IN1L Volume", .intval = 24, }, + { .ctl_name = "IN1L Volume", .intval = 18, }, { .ctl_name = "MIXINL IN1L Switch", .intval = 1, }, { .ctl_name = "MIXINL IN1L Volume", .intval = 0, }, { .ctl_name = "AIF1ADC1 HPF Mode", .intval = 1, }, @@ -198,28 +192,26 @@ struct route_setting headset_input[] = { struct route_setting headset_input_disable[] = { { .ctl_name = "Headset Mic Switch", .intval = 0, }, - { .ctl_name = "IN1L Volume", .intval = 11, }, { .ctl_name = "MIXINL IN1L Switch", .intval = 0, }, - { .ctl_name = "MIXINL IN1L Volume", .intval = 0, }, { .ctl_name = "AIF1ADC1 HPF Mode", .intval = 0, }, { .ctl_name = "AIF1ADC1 HPF Switch", .intval = 0, }, { .ctl_name = NULL, }, }; struct route_setting bt_output[] = { + { .ctl_name = "AIF1DAC1 Volume", .intval = 96, }, + { .ctl_name = "AIF1 Boost Volume", .intval = 0, }, + { .ctl_name = "DAC2 Volume", .intval = 96, }, + { .ctl_name = "AIF2ADC Volume", .intval = 96, }, { .ctl_name = "DAC1L Mixer AIF1.1 Switch", .intval = 1, }, { .ctl_name = "DAC1R Mixer AIF1.1 Switch", .intval = 1, }, { .ctl_name = "AIF3ADC Mux", .intval = 1, }, { .ctl_name = "AIF2DAC2L Mixer AIF1.1 Switch", .intval = 1, }, { .ctl_name = "AIF2DAC2R Mixer AIF1.1 Switch", .intval = 1, }, - { .ctl_name = "AIF1DAC1 Volume", .intval = 96, }, - { .ctl_name = "DAC2 Volume", .intval = 96, }, - { .ctl_name = "AIF2ADC Volume", .intval = 96, }, { .ctl_name = "AIF2DAC Volume", .intval = 96, }, - { .ctl_name = "MIXINL IN2L Volume", .intval = 1, }, - { .ctl_name = "IN1L Volume", .intval = 25, }, - { .ctl_name = "IN1R Volume", .intval = 25, }, - { .ctl_name = "AIF1 Boost Volume", .intval = 0, }, + { .ctl_name = "MIXINL IN1L Volume", .intval = 1, }, + { .ctl_name = "IN2L Volume", .intval = 25, }, + { .ctl_name = "IN1R Volume", .intval = 25, }, { .ctl_name = "LINEOUT1N Switch", .intval = 0, }, { .ctl_name = "LINEOUT1P Switch", .intval = 0, }, { .ctl_name = "AIF1ADC1 HPF Switch", .intval = 0, }, @@ -245,8 +237,12 @@ struct route_setting bt_input[] = { }; struct route_setting bt_disable[] = { + { .ctl_name = "AIF1DAC1 Volume", .intval = 96, }, + { .ctl_name = "AIF1 Boost Volume", .intval = 0, }, + { .ctl_name = "DAC2 Volume", .intval = 96, }, + { .ctl_name = "AIF2ADC Volume", .intval = 96, }, { .ctl_name = "AIF2ADC Mux", .intval = 0, }, - { .ctl_name = "MIXINL IN2L Volume", .intval = 0, }, + { .ctl_name = "MIXINL IN1L Volume", .intval = 0, }, { .ctl_name = "LINEOUT1N Switch", .intval = 1, }, { .ctl_name = "LINEOUT1P Switch", .intval = 1, }, { .ctl_name = "AIF2ADC HPF Mode", .intval = 0, }, @@ -255,10 +251,5 @@ struct route_setting bt_disable[] = { { .ctl_name = "AIF2DAC2L Mixer AIF2 Switch", .intval = 0, }, { .ctl_name = "AIF1ADC1R Mixer AIF2 Switch", .intval = 0, }, { .ctl_name = "AIF1ADC1L Mixer AIF2 Switch", .intval = 0, }, - { .ctl_name = "AIF1DAC1 Volume", .intval = 96, }, - { .ctl_name = "AIF1 Boost Volume", .intval = 0, }, - { .ctl_name = "DAC2 Volume", .intval = 96, }, - { .ctl_name = "AIF2DAC Volume", .intval = 96, }, - { .ctl_name = "AIF2ADC Volume", .intval = 96, }, { .ctl_name = NULL, }, -};
\ No newline at end of file +}; |