Commit graph

473 commits

Author SHA1 Message Date
George Lee
cd7bac87ba thermal: Add BCL thermal zones
No cooling device is added yet.  The limits will be determined and added
once validation completes.

Bug: 244348786
Test: Confirm boot and IRQ triggered mitigation logger
Change-Id: I46c86d09d5b69620bc6c2f25bd6820507b168ca3
Signed-off-by: George Lee <geolee@google.com>
2023-01-05 13:34:36 -08:00
Shiyong Li
dddc66f845 device-husky.mk: set display LHBM peak brightness delay as 2 frames
Bug: 263775681
Change-Id: I0d00eb55293002e17839bdc71d9159bd4094ac9a
Signed-off-by: Shiyong Li <shiyongli@google.com>
2023-01-05 18:41:06 +00:00
David Li
a1a6b76c99 audio: First FM table check in (2023/01/05) for telephony.
//SB3
Handset: Duncan
1: Modify NB/WB/SWB gain setting and IIR setting to meet 3GPP requirements

HAC: Owen/Duncan
1. Modify NB/WB/SWB DL FDEQ slightly to meet Y-axis magnetic FR reqs of HAC v2019
2. Copy DL settings above to Handset_HAC TMOUS / RESERVE2

Handsfree: Ricky
1. All band first tuning release for Proto stage

BT:  Gene
1. Fine tune BT EL for NB WB SLR
2. BT HE table version from 1.3.1 to 1.3.3
3. Make HK BT LE EASSA to be same with SB (SB is correct originally)

Files from the latest attachment on b/264499596

Bug: 264499596
Test: verified by rickycheng@
Change-Id: I09730d343f27cec4ae4a285373f2b05daa6b2423
2023-01-05 16:19:47 +08:00
David Li
b4c69615bf audio: First FM table check in (2023/01/05) for telephony.
//HK3
Handset: Owen
1. Modify NB/WB/SWB DL FDEQ, TDDRC Gain, and SPK_Vol Gain(NB only) for 3GPP regs.
2. Modify NB/WB/SWB UL PreEQ MIC1 based on HK3 MIC Acoustic performance to match MIC0 FR
3. Modify MIC distance DIST2REF1 to 166mm based on HK3 MIC placement
4. Set NB/WB/SWB UL PGA_0/_1 gain as 20dB(from 6dB) to cover codec gain issue as a short term
5. Copy the settings above to Handset TMOUS / RESERVE2
6. Modify NB/WB/SWB Tx NS para from FM simulation to improve S-MOS(Handset Generic only)

HAC: Owen
1. Modify NB/WB/SWB DL FDEQ slightly to meet Y-axis magnetic FR reqs of HAC v2019
2. Copy DL settings above to Handset_HAC TMOUS / RESERVE2

Handsfree: Ricky
1. All band first tuning release for Proto stage

BT:  Gene
1. Fine tune BT EL for NB WB SLR
2. BT HE table version from 1.3.1 to 1.3.3
3. Make HK BT LE EASSA to be same with SB (SB is correct originally)

Files from the latest attachment on b/264499619

Bug: 264499619
Test: verified by rickycheng@
Change-Id: I709998c8aa108ef21211176b6e8c50b983b2e5a0
2023-01-05 16:17:10 +08:00
juyuchen
0bf430b32a audio: enable gapless offload
Bug: 264321094
Test: manual audio tests
Change-Id: Iddaa9a026e9fafea8d65a495e9bcd1ff716a55e9
Signed-off-by: juyuchen <juyuchen@google.com>
2023-01-05 15:21:00 +08:00
Kai Shi
9d1bd1a4e0 Enable DTIM multiplier config
Enable DTIM multiplier configuration in Pixel 23.

Bug: 259554744
Test: manual
Change-Id: I00567f0cf6f09495cffda8c86d1ec7907a6ab82c
2023-01-04 09:20:48 -08:00
Jay
9b2aeca4f0 powerhint: restrict Camera Daemon to small and mid cores
For all the use-cases, restrict camera daemon to use
4 small and 4 mid cores by default.

Bug: 261760700
Test: GCA video recording
Change-Id: Idf373a98f13e066361cc5144a14cbfefa27e7ca1
2023-01-03 17:49:37 +00:00
Edwin Tung
db55408f89 gps: Enable Vzw SUPL OTDOA
Bug: 263852801
Test: OTDOA pass
Change-Id: I132d615b84a7c728bc80463bb668372b2172bc6a
2022-12-29 14:51:18 +08:00
Cyril Lee
844976e05b Enable quick start for pixel device
Bug: 246218540
Test: build pass with `m -j` command
Change-Id: I4710b25e186452c357344931043b72e6cc86acc7
2022-12-28 01:16:55 +00:00
davidycchen
61dbdcfc42 Add GTI touch dump script
Bug: 243077990
Test: adb bugreport

Change-Id: I34fa88409e610622da0401f1f3f745fe308f316e
Signed-off-by: davidycchen <davidycchen@google.com>
2022-12-26 16:28:05 +08:00
TreeHugger Robot
258077f1d1 Merge "add support for BLE offload case in audio policy" 2022-12-26 05:13:00 +00:00
TreeHugger Robot
f72338e7bd Merge "Enable LE Audio unicast offload" 2022-12-26 05:12:52 +00:00
TreeHugger Robot
e34bd0f799 Merge "audio: 1st table release for Husky" 2022-12-23 09:16:12 +00:00
TreeHugger Robot
75a34e9c1b Merge "audio: 1st table release for Shiba" 2022-12-23 07:50:25 +00:00
TreeHugger Robot
e1d188ae49 Merge "powerstats: update state residency and energy consumer for Display" 2022-12-23 03:20:22 +00:00
David Li
3bdfceaadb audio: 1st table release for Shiba
There are recording.gatf and template.xml in the ZIP file.
for recording.gatf
Camcorder path : IIR1(high pass), SUR(calibrated filter), IIR2(high pass), AGC (-24 ideal RMS), MBDRC ( -44 threshold)
MIC path: correct MBDRC
for template.xml
correct SUR module ID

Files from the latest attachment on b/263448513

Bug: 263448513
Test: verified by wjacky@
Change-Id: I7d7dc2496ee3cf37b35b30f34b9f72febc512189
2022-12-23 10:00:30 +08:00
David Li
ca98913a34 audio: 1st table release for Husky
There are recording.gatf and template.xml in the ZIP file.

for recording.gatf
Camcorder path : IIR1(high pass), SUR(calibrated filter), IIR2(high pass), AGC (-24 ideal RMS), MBDRC ( -44 threshold)
MIC path: correct MBDRC

for template.xml
correct SUR module ID with AZ1.0 parameters

Files from the latest attachment on b/263449687

Bug: 263449687
Test: verified by darrenyen@
Change-Id: I5a31582ecf6b8f8b81be7e61079e172bddb09ba0
2022-12-23 09:41:06 +08:00
Robert Lee
a11f088032 audio: update tuning bin file and table for 48K playback
Bug: 261807510
Bug: 243626704
Bug: 243497194
Test: Builds
Change-Id: Idd50d9b5de0f183e9373e888cca3f93af03c428d
Signed-off-by: Robert Lee <lerobert@google.com>
2022-12-22 20:25:50 +08:00
Shawn Lin
b9ede6869b Merge "Update rounded corner, cutout and display shape configs" 2022-12-22 06:17:54 +00:00
Wendly Li
d5bcab2e05 init: start twoshay on boot.
Bug: 243079722
Test: Check if twoshay start successfully.
Change-Id: Iebcc9d87709277d26c95fb518d9b0075630bffff
Signed-off-by: Wendly Li <wendlyli@google.com>
2022-12-22 04:13:31 +00:00
Yen-Chao Chen
96e5e575c3 Merge "init: start twoshay on boot." 2022-12-22 02:09:38 +00:00
Sayanna Chandula
fbfe97b636 Merge changes from topic "hk3-vs-v2"
* changes:
  thermal: enable charging throttling
  thermal: update thermal config with v2 coefficients
2022-12-22 00:00:03 +00:00
Shawn Lin
2c7b9074f4 Update rounded corner, cutout and display shape configs
Bug: 243688044
Test: make
Change-Id: Ica71daf88ac7a115a84f8e603fbb49210d757b2c
2022-12-21 10:35:40 +00:00
Ken Yang
95db2df53b Merge "WLC: Include the wireless_charger from gs-common" 2022-12-21 08:36:15 +00:00
Cheng Chang
f1ff704845 gps: enable coex function
Bug: 257093529
Test: Verify at b/257093529
Change-Id: I5c7417368d1c754aa492db9304b7790049f68501
2022-12-21 07:12:46 +00:00
Darren Hsu
220f84cf79 powerstats: update state residency and energy consumer for Display
Bug: 262488285
Bug: 262492074
Test: dumpsys android.hardware.power.stats.IPowerStats/default
Change-Id: Ib000455c8f68789090bb37c8bc4117502fa65fa9
Signed-off-by: Darren Hsu <darrenhsu@google.com>
2022-12-21 13:32:05 +08:00
Sayanna Chandula
53ea1cd963 thermal: enable charging throttling
Bug: 259450323
Test: Build and boot on device. Check charging throttling

Change-Id: I5bc80faf9a04b499af59d069b7ed21a7fef75d64
Signed-off-by: Sayanna Chandula <sayanna@google.com>
2022-12-20 13:12:46 -08:00
Sayanna Chandula
b92b81e178 thermal: update thermal config with v2 coefficients
Update with v2 virtual coefficients
Update trigger sensors
Align hot thresholds with P22
Use VIRTUAL-SKIN as combination where applicable

Bug: 259450323
Test: Build and boot on device. Check thermal service
adb shell dumpsys thermalservice

Change-Id: I5f738a1cc1fe3735f5fae41dd42d27e6bd305e05
Signed-off-by: Sayanna Chandula <sayanna@google.com>
2022-12-20 13:11:59 -08:00
TreeHugger Robot
7a1a4b67f7 Merge "Remove UClampThreshold hint" 2022-12-20 06:38:58 +00:00
Linyu He
0753e2318f Merge "[Zuma 8k] Add 8k encoder profiles for P23 devices (3rd attempt)" 2022-12-19 19:35:15 +00:00
TreeHugger Robot
d37ec46ab6 Merge "powerstats: update state residency and energy consumer for Display" 2022-12-19 03:23:57 +00:00
Sayanna Chandula
a22891c9e1 thermal: update thermal powerhints thresholds
Align control temperature and switch on temperature thresholds
with current kernel configuration

Bug: 259450323
Test: Build and boot on device. Quick thermal check

Change-Id: I423a68762ae5b4df5b09b058322f40888aae8fce
Signed-off-by: Sayanna Chandula <sayanna@google.com>
2022-12-17 00:22:13 +00:00
Sayanna Chandula
2e4641fbbd Merge changes from topic "shusky-vs-v1"
* changes:
  thermal: enable PI loop for tskin mitigation
  thermal: update thermal configs with v1 virtual coefficients
2022-12-16 18:28:36 +00:00
Patty Huang
c0b6391624 Enable LE Audio unicast offload
1. Set the LE Audio unicast offload property
2. Add the offload capability file for unicast

Bug: 257377483
Test: Manual
Change-Id: If6233bfcefa8894f52d0a8c7799ffa5b6b786f53
2022-12-16 08:16:55 +00:00
Yung Ti Su
81f4134629 add support for BLE offload case in audio policy
Bug: 257377746
Test: manual

Change-Id: Id9a2c528fd51898d59c3234b05cd606d7ebd9dc2
Signed-off-by: Yung Ti Su <andysu@google.com>
2022-12-16 16:09:58 +08:00
Jasmine Cha
9b66a4e09d audio: update waves tuning
- Full tuning includes volume curve to match previous pixel
  at volume 18 to 1 perceived loudness.
- Passes all power targets
- Pass top speaker heat budget for 40C skin
- Fails bottom speaker heat budget for 40, 41, 42C skin.  Passes 43C skin.
- Test acoustics shows superior performance to past premium.

Bug: 262787252
Test: manual test

Change-Id: Iec4664f0f1ad7499caf5e3cde2158151ca849111
Signed-off-by: Jasmine Cha <chajasmine@google.com>
2022-12-16 09:00:20 +08:00
Linyu He
4cdc9d3fa2 [Zuma 8k] Add 8k encoder profiles for P23 devices (3rd attempt)
The 2nd attempt (ag/20294157) was reverted due to b/259732944. To avoid
the bug, we explicitly define the "high" quality encoder as a 4k
encoder. Note (1) below explains the reasons.

8k encoder specs:
  Codec: h264
  bitRate: 80000000 (80M); source: b/241178681#comment3
  Size: 7680x4320 (8K UHD)
  Frame rate: 30fps

Notes:

(1) Regarding b/259732944 (the bug caused by the 2nd attempt):

If CamcorderProfile.QUALITY_HIGH isn't explicitly specified, the highest
resolution available will be used.

Therefore, when the 8k profile was added, apps requesting QUALITY_HIGH
would ask HAL to perform 8k recording.

This created the following issues:
(a) As 8k support in HAL isn't ready, existing tests using QUALITY_HIGH
will fail (such as CTS, PTS, FATP, etc.).
(b) 3rd-party apps currently using QUALITY_HIGH will get 8k, which might
not be their intention.

So we chose to keep QUALITY_HIGH at 4k, which was the highest resolution
on P22 devices.

Detailed discussions are in b/259599407.

----------------

(2) Regarding the "quality" attribute in EncoderProfile:

It must match what's defined in MediaProfiles::sCamcorderQualityNameMap
(see frameworks/av/media/libmedia/MediaProfiles.cpp).

----------------

(3) Regarding the camera IDs:

The camera IDs in media_profiles_{device_name}.xml correspond to the
IDs inside vector ModelSpecificDataControllerBase::visible_camera_ids_.
The vector is populated in
lyric/silo/hardware/devices/{device_name}/data/model_specific_data_controller.cc

According to the documentation of "visible_camera_ids_", "the first ID
for each facing will be used as the default camera ID". As
visible_camera_ids_[0] is always the first (default) ID for the rear
camera, and only the rear camera supports 8k, we add 8k encoder
profiles for camera 0 in media_profiles.

The explanation above isn't obvious. You'll need to read
model_specific_data_controller.cc to understand it.

----------------

(4) Regarding tests:

We can't test the 8k encoder since we haven't brought up the 8k support
in ISP.

We can use CTS, PTS, and EECoexer to test this CL for existing use cases.

Note that RecordingTest#testBasicRecording currently fails at TOT due to
a different reason. For this CL, we only need to make sure no 8k stream
is requested by observing logs with the "GCH_HalUtils" tag.

Bug: 232811715
Bug: 262423942
Test: build & boot Android
Test: atest RecordingTest#testBasicRecording
Test: adb shell /data/sysval/scripts/eecoexer/eecoex.sh -s CAM,22,0,5,true,HIGH
Test: manually testing GCA video recording
Change-Id: Ie6c054e641810da9c231f3839961cbe8fcc16fdc
2022-12-15 22:50:37 +00:00
Sayanna Chandula
881a59faed thermal: enable PI loop for tskin mitigation
Bug: 259450323
Test: Build and boot on device. Checked video recording
and YT playback. Checked for thermal runaway with burn8
and gpubw workloads

Change-Id: If2e40383b31bf1ea64602484ff9c650a3ba0d1f8
Signed-off-by: Sayanna Chandula <sayanna@google.com>
2022-12-15 22:21:56 +00:00
TreeHugger Robot
eb2d1dec89 Merge "fix usb factory loopback/playback/capture fail" 2022-12-15 10:23:00 +00:00
vincenttew
5f962c00c0 fix usb factory loopback/playback/capture fail
Test: factory command, normal playback/capture
Bug: 245503800
Change-Id: I5f9aa710725f6e9869e7632f0c268e9e67f925c5
Signed-off-by: vincenttew <vincenttew@google.com>
2022-12-15 16:57:44 +08:00
Jasmine Cha
7023b26da0 audio: update volume curve for power budget
Bug: 262473484
Test: manual test

Change-Id: I98ea8ffa08a7d7fee3c48df936dee2640072c2b2
Signed-off-by: Jasmine Cha <chajasmine@google.com>
2022-12-15 01:55:12 +00:00
Sayanna Chandula
79098905c3 thermal: update thermal configs with v1 virtual coefficients
Bug: 259450323
Test: Build and boot on device

Change-Id: I95bf15965993b4b083eed765a8620c621cf53b57
Signed-off-by: Sayanna Chandula <sayanna@google.com>
2022-12-14 17:41:02 -08:00
Darren Hsu
7225af3349 powerstats: update state residency and energy consumer for Display
Bug: 262488433
Bug: 262491621
Test: dumpsys android.hardware.power.stats.IPowerStats/default
Change-Id: I77ff227d3c50b135c3085f19f088f57a3b274cce
Signed-off-by: Darren Hsu <darrenhsu@google.com>
2022-12-14 17:13:13 +08:00
Jasmine Cha
15548e038e audio: waves tuning table
- Full tuning includes volume curve to match previous project at
  volume 18 to 1 perceived loudness.
- Passes all power and skin thermal targets
  (for 40C skin temp sustained power)
- Test acoustics shows superior performance to past premium (R4, C10)

Bug: 262473484
Test: manual test

Change-Id: Icc1dee1782d9919195aa161bc5b99708c489fc66
Signed-off-by: Jasmine Cha <chajasmine@google.com>
2022-12-14 13:39:13 +08:00
Jia-yi Chen
8de6c2e009 Merge "powerhint: Add CPU MaxFreq cap for camera powerhints" 2022-12-14 02:11:44 +00:00
TreeHugger Robot
060bfd3165 Merge "wifi: Move PixelWifiOverlay2023" 2022-12-13 23:24:03 +00:00
Jia-yi Chen
45a5c648d6 powerhint: Add CPU MaxFreq cap for camera powerhints
Before PMU feature is ready, directly limit the CPU frequencies
via powerhint. Also update the value of CPU frequencies based on
the latest HW.

Bug: 261760700
Test: Boot & take traces
Change-Id: Ibc41c9decd866a37ec65201204f5a1b09798b72e
2022-12-13 13:43:36 -08:00
Chungkai Mei
09e38849c0 Remove UClampThreshold hint
the file node was removed so also remove these
dummy setting

Bug: 260806701
Change-Id: I23044f7f32cf4b2b2cc93205ec5751525f05ee7f
Signed-off-by: Chungkai Mei <chungkai@google.com>
2022-12-13 09:39:59 +00:00
Sayanna Chandula
6ec947dc44 Merge "thermal: implement basic tskin mitigation" 2022-12-13 04:27:33 +00:00
Sayanna Chandula
141142a118 thermal: implement basic tskin mitigation
cdev limit at CRITICAL severity and hard throttling at
EMERGENCY severity

Bug: 262304756
Test: Build and boot on device

Change-Id: Ic79ef7a38a8b64b25285d53581ce1613844a26c1
Signed-off-by: Sayanna Chandula <sayanna@google.com>
2022-12-12 17:27:58 -08:00