Commit graph

242 commits

Author SHA1 Message Date
YiHo Cheng
6acf60f157 thermal: Update gpu pid control loop parameters
Adjust to smooth the curve for gfxbench improvement

Bug: 178178393
Test: run gfxbench safety certification
Change-Id: Idb3c7f77aa4e60ba914fa6abd25e2ccd0758507a
2021-07-20 05:44:49 +00:00
Carter Hsu
3c11dab0d8 audio: update camcorder tuning 20210716
Update IIR2, MBDRC, spatial audio parameters

Bug: 193873738
Bug: 193872138
Test: build pass
Signed-off-by: Carter Hsu <carterhsu@google.com>
Change-Id: Id3be3729b19f66d88634d4ca6a0dd1dd8bb991e8
2021-07-20 04:10:40 +00:00
Jie Song
6b68ff7396 Update latest MIPI CoEX config files
Bug: 193733956
Test: b/193733956
Change-Id: I7e4ad6c6035e352de6835f5fb71b1ac66cbc12cf
2021-07-20 02:00:59 +00:00
Andrew LeCain
b40e3550aa raviole: allow UDFPS to read mfg_data blk device
Bug: 189135413
Test: fastboot stage cal_file; fastboot oem udfps update-cal; HAL sends CAL
Change-Id: Ib9f236bb49d3aa961edcc113c6e6aaa94927f454
2021-07-19 17:46:17 +00:00
Joey Poomarin Phloyphisut
96b58c1c6f audio_usb: Updating mixer_paths.xml to use V2 command to send config to AoC to support USB behind HUB.
This V2 command is from this patch:
https://partner-android-review.googlesource.com/c/kernel/private/google-modules/aoc/+/1962494

Bug: 181296179
Test: Local build
Change-Id: Ia95886ed22519f4da70e2a4880f7fb0eb9900660
2021-07-19 11:33:51 +00:00
Joey Poomarin Phloyphisut
895e3d3808 audio_usb: Add unsupported pcm format for USB accessory on Raviole.
This patch need ag/15270810 to work.

Test: N/A
Bug: 193477495
Change-Id: Ied9317fed60f1fae5a0de76ed12aec723c20a0c2
2021-07-19 07:33:28 +00:00
Ted Wang
34a89635a9 Bluetooth: Add sar_test in userdebug build
Bug: 193757202
Test: make
Change-Id: Ie940b6e770d2682cc3fff7fbc79a5bcc43645efd
2021-07-16 06:01:46 +00:00
Jia-yi Chen
ec0d43627b thermal: Update thermal table
1) Adjust dc_icl settings due to one more level 100000 in dts
2) Change fcc ODPM-lo at MODERATE from 0 back to 1
3) Adjust wlc_fcc settings due to one more level in dts

Bug: 193785535
Test: Boot
Change-Id: If8b6a1439d4464968589f1ed8f6234fac6991977
2021-07-15 21:12:56 +00:00
millerliang
eff4e0db3d audio: adjust the latency for USB Headphone
Adjust the latency for OUT_USB_HEADSET_BE_CFG

Bug: 174992590
Test: Test av sync for video playback
Change-Id: Idc1dedbbc21290106d417905832810b1ebd1c576
2021-07-14 21:27:00 +08:00
Jia-yi Chen
78fd4977a9 thermal: Update thermal table
Change CdevFloorWithPowerLink for fcc at MODERATE from 1 to 0 to avoid
unwanted throttling from fcc when wlc_fcc is set to 0 with ODPM-lo.

Bug: 192281595
Test: Boot & check log
Change-Id: I718eeb1c3c325a34345a24de90669f349addc972
2021-07-14 00:56:00 +00:00
Jasmine Cha
1c4b6056e4 audio: waves: update O6/R4 MPS (20210713)
O6:
  1. significantly reduces distortion artefacts at high volumes
  2. introduces bass management to balance low frequency response
     across the volume curve
  3. improved tonal balance at nominal volumes
  4. improved landscape stereo image across the volume curve

R4:
  1. This tuning improves the stereo balance between left and right
     in landscape orientation, and removes the pop artefact when
     rotating between portrait and landscape.

Bug: 179089856
Bug: 179089765
Test: playback, mute on/off, bypass on/off, lr swap/mixed

Signed-off-by: Jasmine Cha <chajasmine@google.com>
Change-Id: I732742524ddbdd787ae86520141fb464ab01ca5a
2021-07-13 14:42:12 +08:00
Carter Hsu
f8a04fb6d9 audio: add BT path back to the haptic output
Bug: 192910606
Test: build pass
Signed-off-by: Carter Hsu <carterhsu@google.com>
Change-Id: Iccfb65d568a640c01177d81f8c96d2103b9fda49
2021-07-13 04:11:46 +00:00
YiHo Cheng
1a261f8b30 thermal: Update thermal table
Update power link settings for o6 proto to resolve thermalhal crash.

Bug: 193373779
Test: use emul_temp to check cpu throttling work
Change-Id: Iff6b16458c717c6a8aba0b82ecb7f78535ffe5e8
2021-07-12 15:25:37 +00:00
Long Ling
3d09e38a82 display: update O6 display color data
Bug: 187763532
Change-Id: If2dbb6c4ffb55d7408212280839e89af8d9996f4
2021-07-12 15:14:59 +00:00
millerliang
d2db8a5541 audio: apply RAW path for raw playback
Apply the entry point of raw path which writes data through
pcm mmap from user space to DRAM ring buffer.

Bug: 190775545
Test: OboeTester
Change-Id: I3f61126f323fcebc0a2b53c06d564b9e9e64f823
2021-07-12 13:22:54 +00:00
YiHo Cheng
f7427b0974 thermal: Remove PPVAR_VSYS_PWR_DISP power rail
PPVAR_VSYS_PWR_DISP only exists for those devices before evt1.0. Remove
them to avoid thermalhal crash.

Bug: 193373779
Test: boot
Change-Id: I2c6ba85e9d80d851bfa45430d65fd3361e655e53
2021-07-12 11:27:07 +00:00
Carter Hsu
63defab2f3 audio: update Camcorder tuning
IIR Tuning parameters for surround module were
updated in gatf file

Bug: 186721091
Bug: 181869495
Test: build pass
Signed-off-by: Carter Hsu <carterhsu@google.com>
Change-Id: I323cfc4ca3c6e73cf621aadd3ff7e9b99482353a
2021-07-12 11:10:38 +00:00
Joey Poomarin Phloyphisut
6def5fe520 USB Audio: Add USB HiFi routing
Let USB HiFi BE as a standalone bind/src command to AoC.
And fix that USB HiFi Rx no audio after the other touch
sound's UC and BE is closed.

On top of the change of pa/1959717
(pa/Ib82ff06986ebe97d472f4518aa136f32da30da66)

Test: Local test
Bug: 191222376
Change-Id: I1017aab232bd2e929dc4caa9939f0613ba937f86
2021-07-12 10:10:40 +00:00
Jasmine Cha
09e81d3bfd audio: update FM table (20210708_v540)
//R4
1. HH FB EPD offset set to 0x0000
2. HH SWB TX fine tuning (FdEQ only)
3. HA TMUS settings NB/WB/SWB (RX+TX)
4. mute time from 200ms -> 10ms (all modes)
5. HA BVE NB/WB (Generic)
6. HA NB/WB/SWB/FB FFP on
7. HE TTY VCO: sync the latest of HH TX
8. HE TTY HCO: sync the latest of HH RX
9. HE Headphone : sync the latest of HH TX
10. BT HAC : sync the latest of HH TX
11. HA NB/WB/FB BVE off
12  Headset-USB_Blackbrid-Voice_Generic
    - FB TX EQ
    - FB RX EQ
13. Set //RX_FENS_RESRV_0 to be 0x000A for all scenarios on Bluetooth and Headset

//O6
1. HH FB EPD offset set to 0x0000
2. HH EVT1.1 Tuning
=> Mic design change: PreEQ NB/WB/SWB , FdEQ SWB
=> RX FR fine tuning: FdEQ NB/WB/SWB
=> Volume curve fine tuning : SPK_VOL WB (vol3 only)
3. HA EVT 1.1 Tuning
=> NB/WB/SWB/FB (Pre-EQ / TX_FDEQ / RX_TDDRC / VOL / RX_FDEQ)
4. mute time from 200ms -> 10ms (all modes)
5. HA BVE NB/WB (Generic)
6. HA NB/WB/SWB/FB FFP on
7. HE TTY VCO: sync the latest of HH TX
8. HE TTY HCO: sync the latest of HH RX
9. HE Headphone : sync the latest of HH TX
10. BT HAC : sync the latest of HH TX
11. HA NB/WB/FB BVE off
12  Headset-USB_Blackbrid-Voice_Generic
    - FB TX EQ
    - FB RX EQ
13. Set //RX_FENS_RESRV_0 to be 0x000A for all scenarios on Bluetooth and Headset

Bug: 174635995
Test: manual test by acoustic team

Signed-off-by: Jasmine Cha <chajasmine@google.com>
Change-Id: Ic76c1c9c7e9255565f5ee75e92f604723fd4c943
2021-07-12 08:56:04 +00:00
TeYuan Wang
fef56f3d2d thermal: thermal table update
1. Update raven virtual sensor formula
2. Add power link settings for charging throttling reference
3. Support cdev_ceiling and cdev_weight for each severity

Bug: 192281595
Bug: 182970733
Bug: 183559513
Bug: 190809187
Bug: 184582287

Test: verified by emul temp
Change-Id: I4d51f60cb970e0f9d82273243cbd3aed16f8997b
2021-07-10 02:19:34 +00:00
Zhijun He
59a3061df5 Enable camera exif model/make reporting
Test: Camera CTS
Bug: 183506665
Change-Id: I5c42891d8b6e925a4ee6f410ad8814f4cf127372
2021-07-09 11:33:45 -07:00
Beverly
ed682fcdcd By default, set raven face-auth to non-bypass
Test: manual
Fixes: 192406240
Change-Id: I49e918a0de60062b331ace502390541992492e7d
2021-07-08 21:33:49 +00:00
Brian Carlstrom
a9519d276f Remove parenthesis from PRODUCT_MODEL which breaks some User-Agent parsing
Bug: 192583022
Test: Confirm passwords.google.com does not think browser is unsupported
Change-Id: I8db55ab873ee6e4f66058ddf33edb79d964ccda9
2021-07-02 11:48:55 -07:00
lbill
84fd199468 Adjust status bar rounded corner and display cutout region
- Customize status_bar_height_portrait/landscape/keyguard
- Adjust punch hole display cutout region
- Adjust rounded radius for window corner

Test: atest SystemUITests
Test: atest android.systemui.cts.WindowInsetsBehaviorTests
Test: manual check visual
Bug: 190381022
Change-Id: If98f721f3e20270c5edfdc3b2f34ff8b8af41de4
Merged-In: If98f721f3e20270c5edfdc3b2f34ff8b8af41de4
2021-07-02 17:30:42 +00:00
Frank Luo
b0c9a1ae1b Set config_suspendWhenScreenOffDueToProximity true
This config indicate whether to allow the device to suspend
when the screen is off due to the proximity sensor.  This
resource should only be set to true if the sensor HAL correctly
handles the proximity sensor as a wake-up source. Otherwise,
the device may fail to wake out of suspend reliably.

Bug: 192324731
Test: 1. Unplug USB. 2. make a phone call.
Test: 3. Cover p-sensor, the screen turns off for 10 seconds
Test: 4. Uncover p-sensor. 5. Plug USB.
Test: 6. 'adb shell dmesg | grep suspend' to check if AP ever suspend in calls.
Change-Id: I90c0ef56211908b5a211d9f887bbfc6693a3be40
2021-07-02 15:40:40 +00:00
Lais Andrade
3dbd9530be Set vibrator ramp down duration
Bug: 188431691
Test: manual
Change-Id: Id029afe5c0d6fa59425c4407da56fed69f083bc1
2021-07-02 13:08:39 +00:00
Jasmine Cha
7d716fef59 audio: waves: update R4 tuning table (20210701)
+ Bass management improves the frequency response at
  volume steps 23 and below.
+ Improved gain staging for clarity, dynamics and removal
  of distortion artefacts
+ Improved stereo balance and bass in landscape
+ Removes tuning bug that applied too much gain correction
  on quiet audio.

The portrait and landscape stereo tunings are retuned, but there
is no change to the speaker-safe tuning for notifications and
ringtones which are performing well.

Bug: 179089856
Test: playback mute on/off, bypass on/off, lr swap/mixed.

Signed-off-by: Jasmine Cha <chajasmine@google.com>
Change-Id: I85c9347435a5baa43c20b4eb5dbd630efb502a4c
2021-07-02 09:10:44 +00:00
George Chang
8af3cb55f4 Update NFC Settings
Enable HAL clock control

Bug: 187007386
Test: manual
Change-Id: Idb89c72a41e9f56ea7952e6a28048510df6d4ae3
2021-07-01 11:37:06 +00:00
Cheney Ni
ab9201613b Bluetooth: Enable AAC VBR by default
AAC VBR is more preferred than CBR for A2DP playback.

Bug: 192203000
Test: dumpsys bluetooth_manager
Change-Id: I8f758c102164da9936de7ddc0bb46e0a99279359
2021-06-30 04:24:42 +00:00
Michael Ayoubi
ea3372d22e Update ro.gms.dck.eligible_wcc Property for R4.
Bug: 191415586
Test: Build

Signed-off-by: Michael Ayoubi <mayoubi@google.com>
Change-Id: Iaa7e6fa3ff96bcb794afd7ee908e40f559614aa5
2021-06-30 02:54:06 +00:00
Long Ling
5f50ac9ca0 display: update device color data
Bug: 191467644
Change-Id: I6d1aea14b458c4dfedade2949d765e0e79faf339
2021-06-30 00:18:55 +00:00
Ken Huang
876864edfe raven: control panel_idle via kernel idle property
Bug: 190572787
Test: force refresh rate to peak or 60Hz
Change-Id: I5f25e2e8a79420bbcc74d047aa9234ad21911255
2021-06-28 06:04:49 +00:00
millerliang
0d481528c0 audio: adjust the latency for output and input
Change the period size to 20 for audio record.
Otherwise it will apply fast capture.
Fast capture timestamps are not supported yet.

Bug: 190453606
Bug: 189793417
Test: Test av sync for camera recording
Test: Test av sync for video playback
Change-Id: Ic7225979a411f6fdef1e5869df7f816bd49003b1
2021-06-25 13:44:27 +00:00
Peter_Liang
55f8b7c6de Update the latest voice packs of Text-To-Speech and configs for
Oriole and Raven.

Bug: 177494787
Test: manual test
Change-Id: Ic764e003ddeddb10a9f807be04ed8a3761b6eef9
2021-06-25 08:26:35 +00:00
Robert Lee
12a5e8f467 audio: update audio table
<Change List>
For audio_platform_configuration.xml to both O6 & R4,
1. Add below devices for input_backend_cfg_mic_mapping to fix b/188696633.
     - <backend_cfg in_cfg="IN_CAMCORDER_INVERT_LANDSCAPE_BE_CFG">
     - <backend_cfg in_cfg="IN_CAMCORDER_PORTRAIT_BE_CFG">
     - <backend_cfg in_cfg="IN_CAMCORDER_SELFIE_LANDSCAPE_BE_CFG">
     - <backend_cfg in_cfg="IN_CAMCORDER_SELFIE_INVERT_LANDSCAPE_BE_CFG">
     - <backend_cfg in_cfg="IN_CAMCORDER_SELFIE_PORTRAIT_BE_CFG">
     - <backend_cfg in_cfg="IN_VOICE_RECOGN_MIC_BE_CFG">
     - <backend_cfg in_cfg="IN_UNPROCESSED_MIC_BE_CFG">
     - <backend_cfg in_cfg="IN_UNPROCESSED_DUAL_MIC_BE_CFG">
     - <backend_cfg in_cfg="IN_UNPROCESSED_TRIPLE_MIC_BE_CFG">

<Validation Results>
All the regression are positive, which is validated based on SD1A.210614.001 build.
1. Fix freeze issue when running Diagnostic Tool for microphone test.
2. Built-in mic capturing with expected gain setup and active mic numbers in different mic source(mic/VR/unprocessed/camcorder).
3. Built-in speaker playout with expected gain setup in speaker & speaker-safe mode.
4. Both uplink & downlink for telephony works in HA/HH mode.

Bug: 174448901
Test: Builds pass and verified by hardware
Change-Id: Ifb14911eb25ef2b0f42d29b609ae6f9b74ddaa44
Signed-off-by: Robert Lee <lerobert@google.com>
2021-06-25 07:41:20 +00:00
Jasmine Cha
fbdf38a954 audio: update FM tuning tables (20210624_v540)
Changlist:
R4
1. Handset NB/WB/SWB/FB EVT tuning
2. Add HA ECNS_off-FB / EC_off-FB / NS_off-FB
3. Add HH ECNS_off-FB / EC_off-FB / NS_off-FB
4. Handsfree NB/WB/SWB/FB EVT tuning
5. TTY VCO: sync the latest of HH TX
6. TTY HCO: sync the latest of HH RX
7. Headphone : sync the latest of HH TX
8. USB_BlackBird: fine tuned
9. Google_Condor: sync tuning

O6
1. Handset NS optimization: NB/WB/SWB
2. Add HA ECNS_off-FB / EC_off-FB / NS_off-FB
3. Add HH ECNS_off-FB / EC_off-FB / NS_off-FB
4. Handsfree NS optimization: NB/SWB
5. TTY VCO: sync the latest of HH TX
6. Headphone : sync the latest of HH TX
7. USB_BlackBird: fine tuned

Bug:174635995
Test: voice /voip call

Signed-off-by: Jasmine Cha <chajasmine@google.com>
Change-Id: I5cc0bec1131e5cf3c921a832e9a9211af9704fda
2021-06-25 06:18:17 +00:00
Calvin Pan
0baeebd8f5 Update ./DevInfo/Mod model name
Bug: 191961582
Test: Build pass
Change-Id: I60fb9d0d4487a3b7ccfc2152cb90cc9df808a4a9
2021-06-25 02:12:11 +00:00
Ilya Matyukhin
a8f6e24b37 Remove access to the LHBM node from SystemUI
Bug: 183223359
Test: on device
Change-Id: I56cdc5ab4654ac523b4a80f270d5567aac16cdc7
2021-06-25 01:12:52 +00:00
TeYuan Wang
bf198b780e thermal: optimize trigger sensor settings
1. Reduce the polling time to 60s to reduce the lantancy when ThermalHAL
miss the trigger sensor's notification.
2. Adjust the trigger sensor's threshold to lower temperature.

Bug: 191971470
Bug: 191795038
Test: adb shell lshal debug android.hardware.thermal@2.0::IThermal/default

Change-Id: I2559944dfdef684ee93867a15dea257ee5f435b9
2021-06-24 23:52:31 +00:00
Chris Kuiper
dab5283046 auto-brightness: Change light debounce for R4/O6
This reduces the brightening and darkening light debounce
configuration to match R3 and earlier Pixel devices.

Bug: 185770517
Test: Verified "dumpsys display" shows correct config values.
      Verified brightness transitions are similar to R3 now.

Change-Id: I6bd47cb52c28c63ece6b5247344a6cf062eb31ea
2021-06-23 22:52:45 -07:00
TeYuan Wang
be012113bb thermal: update thermal table
1. Update charging throttling policy according to the new kernel change
2. Adjust the virtual sensor formula for 5G cases.

Bug: 182970733
Bug: 183559513
Bug: 190449889
Bug: 190450703
Test: Verified by emul temp
      adb shell lshal debug android.hardware.thermal@2.0::IThermal/default
Change-Id: Ieb859c93cdfa7486ad199af21b57db0732c24006
2021-06-23 23:09:44 +00:00
Gil
9dd59a9dda [Display] Re-mapping the Default Brightness
Update the Default brightenss to 0.17429718 for mapping to 140 nits

Bug: 187917731
Test: Dump the display log and check mScreenBrightness
Change-Id: I9836a2dd0127c881b0eceb4d2c908bb52ea709e7
2021-06-23 07:41:19 +00:00
Long Ling
aaf6f6360a display: add O6 golden calibration profile
Bug: 189988531
Change-Id: I9e502c3927cd3f686e3ca8e4b52f867cef900b2e
2021-06-23 02:18:35 +00:00
Lais Andrade
354c1e7fad Set audio haptic channel amplitude limit
Bug: 188025353
Test: manual
Change-Id: I9609d812c11f08990c68d73cff20bc1a738f4174
2021-06-22 17:02:18 +00:00
Carter Hsu
12f1ede6b1 audio: add echo reference input
Bug: 188005303
Test: capture the echo reference
Signed-off-by: Carter Hsu <carterhsu@google.com>
Change-Id: I28c6ceb2e3f719bbd7d24e4301704742933042a4
2021-06-22 12:13:19 +00:00
Carter Hsu
fb03700852 audio: add echo reference input
Bug: 188005303
Test: capture the echo reference
Signed-off-by: Carter Hsu <carterhsu@google.com>
Change-Id: Ie7e69b7c56801395e03280dd2415842b7f22f898
2021-06-22 12:13:19 +00:00
YB Chiu
8ae9e16235 FBF:mixer_table: mic soft gain config for O6/R4/W3/Slider
Add mic1 ~ mic4 soft gain configuration

    <path name="mic1-sw-gain">
        <ctl name="MIC Record Soft Gain (dB)" />
    </path>
            :
            :
    <path name="mic4-sw-gain">
        <ctl name="MIC Record Soft Gain (dB)" />
    </path>

Bug: 190822301

Test: build pass

Change-Id: Ia5f35fff6cea22d6dfafa8c76e50d3e16cacbbcf
2021-06-22 08:29:42 +00:00
Jimmy Shiu
7700cf01b9 adpf: set adpf.rate to device max refresh rate
For raven, set the set vendor.powerhal.adpf.rate to 8.3ms
For oriole, set the set vendor.powerhal.adpf.rate to 11.1ms

Bug: 177493042
Test: build
Change-Id: I1f535105f66d6bf34025f3c11d94c83d69c730da
2021-06-19 04:00:51 +00:00
Ilya Matyukhin
de356bd0af raven, oriole: overlay UDFPS illumination transition time
Bug: 189130534
Test: perfetto
Change-Id: Iec7fe726197a2b23547739a8e96824362aa76fc4
2021-06-18 19:52:48 +00:00
Carter Hsu
d138225fcf audio: update R4 camcorder tuning 06/17
Change list:
Tuning parameters for surround module were updated in gatf file

Bug: 186721091
Test: build pass
Signed-off-by: Carter Hsu <carterhsu@google.com>
Change-Id: I2e86c2e95d603fa3adcf500423734fc7f8f5837f
2021-06-18 07:48:23 +00:00