Commit graph

93 commits

Author SHA1 Message Date
Ken Yang
95db2df53b Merge "WLC: Include the wireless_charger from gs-common" 2022-12-21 08:36:15 +00: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
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
Jay
010c154953 powerhint: disable PMU for Zuma
Zuma's PMU porting is not completed so disable PMU for now.

Bug: 259144954
Test: GCA video recording
Change-Id: I96b16b486342d95df28813b63fe7d95a9d9e2aeb
2022-12-12 19:11:46 +00:00
Ted Wang
0b2e0595fb Disable Accelerated BT ON feature for ripcurrent
Bug: 262181537
Test: make
Change-Id: Ifc109da72052130f225271c87f75e44f9318da41
2022-12-12 14:35:58 +08:00
kensun
5a7aa6ccd2 wifi: Move PixelWifiOverlay2023
PixelWifiOverlay2023 was originally added in device-XXX.mk file, and lead to overlay parsing failure on aosp/factory build.
Referring to other existing Pixel projects, move PixelWifiOverlay2023 to product.mk files.

Bug: 260594276
Test: Overlay can be read correctly.
Change-Id: I739504ee9ded6f232e438ce5830ca168ed1f4675
2022-12-12 03:33:11 +00:00
Cheng Chang
d63e841415 Merge "gps: update rf configuration" 2022-12-12 01:53:29 +00:00
TreeHugger Robot
c2724b2380 Merge "battery: disable wireless for pts battery test" 2022-12-11 06:42:58 +00:00
Ken Yang
10fe580b45 WLC: Include the wireless_charger from gs-common
Bug: 237600973
Change-Id: I5bcd35ca016a2012f9887ce15e8c88a342f288e6
Signed-off-by: Ken Yang <yangken@google.com>
2022-12-10 14:39:40 +00:00
Roshan Pius
976b66e6f8 Merge "uwb(hk3): Add UWB framework overlays rro app" 2022-12-09 22:44:54 +00:00
Ken Tsou
0983124386 battery: disable wireless for pts battery test
Disable wireless charging during drain, usb charging,
and charger stress test
  - vendor.disable.wlc 1
If device is placed onto dreamliner and shutdwon(drain out),
it would boot up by DC_CHG and keep shutdown(0%)-boot up
(by DC_CHG) continuously. To avoid this symptom, limit wireless
current_max as 75000 after device boot up
  - persist.vendor.limit.wlc.current=1

How to verify:
  adb shell setprop vendor.disable.wlc 1
  adb shell cat /sys/class/power_supply/wireless/online >>>> 0

  adb shell setprop persist.vendor.limit.wlc.current 1
  adb shell cat /sys/class/power_supply/dc/current_max >>>> 75000

Bug: 261948834
Test: set the property manually and query the result from file node.
Change-Id: I5bcf9baeb2818b439520167b518b2e5c5224d7e2
Signed-off-by: Ken Tsou <kentsou@google.com>
(synced from commit 4c821c04fc25b026f5fc8e9301758bf87dbb4a3e)
2022-12-09 09:10:08 +00:00
George Chang
d73a435119 Merge "Remove legacy nfc/se settings" 2022-12-09 07:28:02 +00:00
Roshan Pius
8e73113deb uwb(hk3): Add UWB framework overlays rro app
Bug: 261908320
Test: Compiles
Change-Id: I369abe1ea668b4db2d50c065c7f53915c569c2e5
2022-12-09 04:36:33 +00:00
Cheng Chang
327642af77 gps: update rf configuration
Bug: 258306663
Test: Verify parameter at b/258306663
Change-Id: I9f948694ecaf77f08d9aa5d8fe25b75c1f2109d0
2022-12-09 03:47:10 +00:00
Linyu He
63f66a8701 [Zuma 8k] Revert ag/20294157: add 8k encoder profiles for P23 devices (2nd attempt)
Per b/259732944#comment2, using CamcorderProfile.QUALITY_HIGH will
request an 8k stream if 8k is present in media_profiles. This is because
QUALITY_HIGH is the "quality level corresponding to the highest
available resolution".

(https://developer.android.com/reference/android/media/CamcorderProfile#QUALITY_HIGH)

However, the 8k support in camera HAL isn't ready, so we have to remove
8k from media_profiles to avoid breaking apps using QUALITY_HIGH.

Bug: 232811715
Bug: 259732944
Test: build
Test: boot & check GCA video recording
Change-Id: I52a2b6c577acfff1d871cc038916d1490abd0fd6
2022-12-08 20:48:49 +00:00
Mike McTernan
888a711cd0 shusky: trigger trusty_apploader when trusty storage is ready.
Bug: 260942157
Test: manual; booted on ripcurrent and checked start logs
Change-Id: Icee4f1f044e072fbd3d508fa007ef4b9689ac7ab
2022-12-08 14:08:47 +00:00
More Kuo
dc1d599cd9 Merge "Enable OPUS codec by sysprop" 2022-12-07 06:49:08 +00:00
More Kuo
14cbb7eaab Enable OPUS codec by sysprop
Test: Build pass
Bug: 257887850
Bug: 254771189
Change-Id: I5fbd21a8ef4819fe793fc4bef11973bc3ba63d32
2022-12-07 12:48:23 +08:00
George Chang
c2b999c7d9 Remove legacy nfc/se settings
Bug: 240125555
Test: manual
Change-Id: I1a263ec0403fc5dae8bfecc44b05d8222212d0d6
2022-12-06 22:06:34 +08:00
TreeHugger Robot
d556489130 Merge "cs40l26: remove alwaysOn support" 2022-12-06 09:53:33 +00:00
Tai Kuo
bf5a2f2c4b cs40l26: remove alwaysOn support
Bug: 246772422
Test: atest PtsVibratorHalTestSuite
Test: atest VibratorHalCs40l26TestSuite
Change-Id: I1513da7f51f380227742200baf5ec0b41da2f374
2022-12-06 15:56:13 +08:00
TreeHugger Robot
56dcc48479 Merge "Enable the spatial audio function" 2022-12-06 02:40:36 +00:00
Neo Yu
3927dd44f8 Merge "Add property to set initial svn as 1" 2022-12-05 09:53:41 +00:00
Yung Ti Su
082d1b6417 Enable the spatial audio function
Bug: 254771189
Test: manual

Change-Id: I8fa9864103879efc10362695254e887629c46e10
Signed-off-by: Yung Ti Su <andysu@google.com>
2022-12-05 05:57:51 +00:00
Neo Yu
098eab4699 Add property to set initial svn as 1
Bug: 261280256
Test: manual
Change-Id: I4744b153939b7dc529d9d95c852d07e73c4f1198
2022-12-04 16:13:03 +00:00
TreeHugger Robot
6818dd02b8 Merge "audio: update tuning bin files" 2022-12-02 03:36:19 +00:00
Robert Lee
9ae501aea5 Merge "audio: update tuning bin files" 2022-12-02 02:17:29 +00:00
Robert Lee
1593b2d848 Merge "cs35l41: add new path for crus_ap_cal" 2022-12-01 01:48:27 +00:00
Robert Lee
5b6a16bc64 audio: update tuning bin files
Change list:
- 1st PICL tuning for top / bot speaker

Bug: 243626704
Test: builds
Change-Id: Id013a90875d23ff30fa110902581088d301595be
Signed-off-by: Robert Lee <lerobert@google.com>
2022-11-29 08:23:11 +00:00
Robert Lee
cb06fa32c9 audio: update tuning bin files
Change list:
- 1st proto PICL model 2.8V/3A for both top and bottom spks

Bug: 243497194
Test: builds
Change-Id: I260ebfe55ffc67530d4348d2d76d5fb627880d1c
Signed-off-by: Robert Lee <lerobert@google.com>
2022-11-29 11:44:10 +08:00
Adam Shih
8ed4549f8f use stm dump from gs-common
Bug: 256521567
Test: adb bugreport
Change-Id: I7e8e95d639932468a4f41a298f33d5c5bdc9c950
2022-11-28 16:16:45 +08:00
Adam Shih
5cb3c985e7 use stm dump from gs-common
Bug: 256521567
Test: adb bugreport
Change-Id: I6bf0c2c66bd4252dfe117d473ac3c9ecc1184fc1
2022-11-28 11:23:00 +08:00