Commit graph

568 commits

Author SHA1 Message Date
Robert Lee
aa6183145d audio: update speaker protection bins am: 6bbee7d292
Original change: https://googleplex-android-review.googlesource.com/c/device/google/raviole/+/14730728

Change-Id: I2258ec10aace063b9c5c58f4c6c638d518252722
2021-05-31 02:31:31 +00:00
Robert Lee
cfd3523009 audio: update speaker protection bins
Bug: 181874512
Test: verified by hw
Change-Id: I94c343679d9b6b807025d0fbfe65a1593cdbe062
Signed-off-by: Robert Lee <lerobert@google.com>
2021-05-31 02:09:47 +00:00
Robert Lee
08b011f282 audio: update speaker protection bins
Bug: 179534284
Test: Manual verify speaker basic function work
Change-Id: Iaef4940f8c7500ff56dccf5de26ac29a2a875260
Signed-off-by: Robert Lee <lerobert@google.com>
2021-05-31 02:09:47 +00:00
Michael Ayoubi
380e184679 Add DCK eligibility property am: 4dc2ccec57
Original change: https://googleplex-android-review.googlesource.com/c/device/google/raviole/+/14707880

Change-Id: I6851c6c87e5517802178a3ce5d0cb3eccf896e2e
2021-05-27 17:42:45 +00:00
Michael Ayoubi
ca6b352f10 Add DCK eligibility property
Add ro.gms.dck.eligible_wcc system property to
P21 devices.

Usage of ro.gms.dck.eligible_wcc is as follows:
1: NFC only
2: NFC and Bluetooth LE (NFC + RKE Functions)
3: NFC, Bluetooth LE, and UWB (NFC + RKE Functions + Passive/Location-based
   Functions)

Bug: 186488185

Test: Build and flash on R4.
Confirm GMSCore can access the properties.

Signed-off-by: Michael Ayoubi <mayoubi@google.com>
Change-Id: I6641270ede1ac49b517775ce3444306c50bcd78a
2021-05-27 05:35:26 +00:00
Cyan_Hsieh
e5583090d6 Change system property of Raven to add 11 dp side padding for keyboard am: 450675e713
Original change: https://googleplex-android-review.googlesource.com/c/device/google/raviole/+/14715995

Change-Id: I6b560f6abf1eb5dd2c3bfe00a97ab52f2a6d59ad
2021-05-27 02:43:14 +00:00
Cyan_Hsieh
a327e42b54 Change system property of Raven to add 11 dp side padding for keyboard
Test: flash rom, start keyboard to check on the padding
Bug: 189265397
Change-Id: I63aba89350246864435dc10e4d198f0202375fb8
2021-05-27 02:11:23 +00:00
wenchangliu
f67547d8c0 media_profiles_raven.xml: Fix typo about front camera 1080p bitrate am: e72c504b9b
Original change: https://googleplex-android-review.googlesource.com/c/device/google/raviole/+/14731890

Change-Id: I8dc4b994a3bce519ec78901147b397676ac27512
2021-05-26 12:05:25 +00:00
wenchangliu
b3ab5ce213 media_profiles_raven.xml: Fix typo about front camera 1080p bitrate
Bug: 187717263
Test: front camera recording
Change-Id: I93c7fdebcb932f0525fbe9fa4624dfca5f568c6d
2021-05-26 11:43:12 +00:00
George Chang
7dbd28a77f Update NFC Settings am: 3add6d4eda
Original change: https://googleplex-android-review.googlesource.com/c/device/google/raviole/+/14715211

Change-Id: I3ddac7906068505bc878993cec871f68b149859b
2021-05-25 15:31:54 +00:00
George Chang
af48a48907 Update NFC Settings
Enable HCE Type B support

Bug: 189189874
Test: manual
Change-Id: I031b1da0f95ba442cd54796cfc91f3e43ac39998
2021-05-25 18:12:26 +08:00
Gil
7f54940579 [Display] Modify the AOD Brightness am: ff731b500e
Original change: https://googleplex-android-review.googlesource.com/c/device/google/raviole/+/14515926

Change-Id: I3eca4a96980f0df42e4a788ae7063a972293353b
2021-05-25 06:44:08 +00:00
Gil
d9ff8cb3c5 [Display] Modify the AOD Brightness
Set night/low as 2 nits, sun/high as 50 nits

Bug: 184728677
Test: Boot test and check AOD brightness
Change-Id: I0e6f5fda297f3e57f21a1d45e2f70b0dcccf04d1
2021-05-25 06:16:20 +00:00
Bob Badour
b88b921428 [LSC] Add LOCAL_LICENSE_KINDS to device/google/raviole am: 11d76a07e9
Original change: https://googleplex-android-review.googlesource.com/c/device/google/raviole/+/14650810

Change-Id: I0b407e258c5e36d847fbf821a1413e6e40a9439b
2021-05-24 19:40:29 +00:00
Bob Badour
b1ce532c3d [LSC] Add LOCAL_LICENSE_KINDS to device/google/raviole
Added SPDX-license-identifier-Apache-2.0 to:
  self-extractors_oriole/google_devices/staging/Android.mk

Bug: 68860345
Bug: 151177513
Bug: 151953481

Test: m all

Exempt-From-Owner-Approval: janitorial work
Change-Id: If3a7caf60368f498c08b7950353aa86ae75bc2f9
2021-05-24 19:16:08 +00:00
Joey Poomarin Phloyphisut
43694533b0 USB Audio: Enable HIFI Playback on the audio HAL part on Raviole. am: 8b1b884d50
Original change: https://googleplex-android-review.googlesource.com/c/device/google/raviole/+/14692504

Change-Id: I9ebe72205dc758f2fb18ec97ae33b44e2fc85bc4
2021-05-24 10:25:04 +00:00
Joey Poomarin Phloyphisut
3375ea9045 USB Audio: Enable HIFI Playback on the audio HAL part on Raviole.
Test: Test: local build test. If use highspeed usb + capture. AOC crash. otherwise, everything is normal
Bug: 182996456
Change-Id: I48958acf8dfc77fa90096fc72cd6912c460e1db2
2021-05-24 08:53:27 +00:00
TeYuan Wang
ad742078d4 thermal: Update raviole thermal config am: df6670a5ac
Original change: https://googleplex-android-review.googlesource.com/c/device/google/raviole/+/14186136

Change-Id: I02cd5677fbc7bf474f4321ac526f0f4229a8d5b0
2021-05-21 17:53:52 +00:00
TeYuan Wang
dc760c40dd thermal: Update raviole thermal config
1. Update virtual skin sensor formula based on PD's proposal.
2. Adjust cellular throttling threshold
3. Add CPU thermal sensor - BIG

Bug: 184592229
Bug: 186585171
Test: 1. check thermalhal logging for virtual sensor temperature reading
      2. boot with maxcpus=4
      3. adb shell lshal debug android.hardware.thermal@2.0::IThermal/default
Change-Id: I01b74169afda56ae59f318d9ad23ccc222192550
2021-05-21 17:30:52 +00:00
Ted Wang
ac3f783494 Change Timesync nodes owner to be Bluetooth am: 7dc55b6a93
Original change: https://googleplex-android-review.googlesource.com/c/device/google/raviole/+/14185024

Change-Id: I34dfed42901f3ac2c9d01b7bde7a000dfef096de
2021-05-21 06:59:15 +00:00
Ted Wang
866b981755 Change Timesync nodes owner to be Bluetooth
This patch change owner of Bluetooth Timesync node to be Bluetooth to
allow Bluetooth HAL to read controller timestamp data via this node.
And also enable timesync for raven.

Bug: 172616898
Test: ccc_test
Change-Id: Id3663f058415cc3f5b50d88b7c70844a53bc9f0f
2021-05-21 06:41:18 +00:00
Ilya Matyukhin
483fafbbeb raven: include factory/shipping UDFPS based on target am: 203d7c0b61
Original change: https://googleplex-android-review.googlesource.com/c/device/google/raviole/+/14618977

Change-Id: Ie64630005d251b9e88b53f3fabded934ae194073
2021-05-19 17:33:16 +00:00
Ilya Matyukhin
617f573fea oriole: include factory/shipping UDFPS based on target am: a2a205ae94
Original change: https://googleplex-android-review.googlesource.com/c/device/google/raviole/+/14618976

Change-Id: Id6adca6f64adb9f883b6f4ee382a8a36e0507c8b
2021-05-19 17:33:15 +00:00
Ilya Matyukhin
1d5482518b raven: include factory/shipping UDFPS based on target
This CL transitions the regular build to the AIDL fingerprint HAL, while
keeping the factory build on HIDL.

AuthService reports "Registering HIDL ID: 0 Modality: 2 Strength: 15"
only for the factory build.

Bug: 188193467
Test: build raven-userdebug
Test: build factory_raven-userdebug
Test: adb logcat | grep AuthService
Change-Id: I3d02e560e5e624aa85f1c3d14d52d7bb5070ee4d
2021-05-19 17:11:58 +00:00
Ilya Matyukhin
99725eb3ea oriole: include factory/shipping UDFPS based on target
This CL transitions the regular build to the AIDL fingerprint HAL, while
keeping the factory build on HIDL.

AuthService reports "Registering HIDL ID: 0 Modality: 2 Strength: 15"
only for the factory build.

Bug: 188193467
Test: build oriole-userdebug
Test: build factory_oriole-userdebug
Test: adb logcat | grep AuthService
Change-Id: I2c10239b93f9c8025607643385304b16f24f5dc6
2021-05-19 17:11:58 +00:00
Ilya Matyukhin
399d2cca1f slider, whitefin: add fingerprint HIDL HAL config
Bug: 188588725
Test: build
Change-Id: I7c59b4cbbe1cc3d0bb101c86bd793be46ad21293
2021-05-18 17:40:37 -07:00
Vince Leung
0a6e699f51 Revert "Remove audio-coupled-haptics support"
This reverts commit fd3f417352.

Reason for revert: functional implementation of audio coupled haptics feature working again

Bug: 178431048
Test: manually verify audio-coupled-haptics is working for Pixel
ringtones on P21 devices

Change-Id: Ibda582e6b4f95dcf9bd5497dbc3580eb1569f9a2
2021-05-17 18:42:34 +00:00
Vince Leung
bbc1857804 audio: route haptic EP to haptic backend
Bug: 178431048
Test: manually verify audio-coupled-haptics is working for Pixel
ringtones on P21 devices

Change-Id: I54a7dbe713e03af031036534f2dba388903ea81e
2021-05-17 18:42:34 +00:00
Kris Chen
665398800b Disable ASP only on PROTO1.0 devices
Bug: 188193525
Test: ASP is disabled on PROTO1.0.
Test: ASP is enabled on PROTO1.1 and newer.
Change-Id: Ib01547cdf27431f3c475cff3830f077b044fcea5
2021-05-17 17:06:00 +00:00
Carter Hsu
572019b626 audio: update camcorder tuning
tuning table: 2021/05/14

R4:
Change list:
Tuning parameters were updated in gatf file
Bluenote parameters for camcorder were updated in template.xml

O6:
Change the parameters on IIR_2.

Bug: 181869495
Bug: 186721091
Test: build pass
Signed-off-by: Carter Hsu <carterhsu@google.com>
Change-Id: I42eca1ab5dd39fce0d0a5feeb5599a22ad4378f3
2021-05-14 11:46:31 +00:00
Manish Varma
9aa69ffde7 powerstats: Modify file path for nfc devices
Bug: 188084950
Test: dumpsys android.hardware.power.stats.IPowerStats/default

Signed-off-by: Manish Varma <varmam@google.com>
Change-Id: Ib0a937499b7192a2a93caa03003c52b9460ea51e
2021-05-14 05:24:54 +00:00
Bob Badour
4af08f11f4 [LSC] Add LOCAL_LICENSE_KINDS to device/google/raviole
Added SPDX-license-identifier-Apache-2.0 to:
  self-extractors_raven/google_devices/staging/Android.mk

Bug: 68860345
Bug: 151177513
Bug: 151953481

Test: m all

Exempt-From-Owner-Approval: janitorial work
Change-Id: I4465b9b338826419cbfb2f961ccb2f6dbaffcea1
2021-05-13 19:45:06 -07:00
Evan Laird
106bc09824 Exclude as package from camera cutout protection
com.google.android.as is the attention detection package and does not
need the extra light leakage protection.

Test: manual
Fixes: 187917679
Change-Id: I9f8092c278c4799e9c1db52e64592bfa9494062d
2021-05-13 20:04:13 -04:00
Bill Yi
c003dbb164 Add scripts for generating raven/oriole vendor blobs
TEST:generated blobs from artifacts. Flashed device

BUG: 182332166
Change-Id: Id30463bdcad7a8e9818bc1db187c4e6f945d4d49
2021-05-13 18:50:29 +00:00
Kris Chen
74dfc0cf92 Add property for UDFPS antispoof
Bug: 187394838
Bug: 187562932
Test: Antispoof is disabled by default.
Test: Use the following adb command to manully turn on antispoof.
      "setprop persist.vendor.fingerprint.disable.fake.override 0"
Change-Id: I56d1129af7e73a901ea5f3258517e68545c38894
2021-05-12 21:45:43 +00:00
Jason Lee
30e3d9a5f1 Cap VideoEncoderCap maxFrameRate to 30
Fixes CTS without affecting GCA

Bug: 175830757
Test: GCA, CTS
Change-Id: Ia2569f1fffa556bfcf494351b2b75275863a9cea
2021-05-12 01:33:30 +00:00
Carter Hsu
4101e82133 audio: separate the spatial audio and WNR block
Bug: 186801118
Test: build pass
Signed-off-by: Carter Hsu <carterhsu@google.com>
Change-Id: I38be2bfd58e864e7f17bc58109d5b4a77df5704b
2021-05-12 01:09:43 +00:00
Carter Hsu
7870ae25e9 audio: update camcorder tuning for refactor
tuning 2021/05/11

Bug: 186801118
Bug: 181869495
Bug: 186721091
Test: build pass
Signed-off-by: Carter Hsu <carterhsu@google.com>
Change-Id: I97da52d76a69606243ca516057a9c09bb337d259
2021-05-12 01:09:43 +00:00
Bill Lin
ccd6d2ba9f Adjust R4 rounded corner & punch hole anti-aliasing
1) Adjust the position of punch hole to match the H/W display

2) Previously, there wasn't rounded corner drawable for raven,
   R4 adapted with gs101 customization by default.

Test: make and flash ROM
Test: Observe rounded corner and punch hole
Bug: 179171408
Change-Id: Ib68797c870fb5ee1208c844a9863090856ad8ee7
2021-05-11 20:06:22 +00:00
Long Ling
82756614b2 display: add device specific adaptive calibration file
Bug: 184096624
Change-Id: I813b9310291f33c81ace8e82ebf1a71284c7e795
2021-05-11 18:54:35 +00:00
Jasmine Cha
b794f75763 audio: waves: support handset device
Bug: 165776638
Test: VOIP / voice/ playback/ record

Signed-off-by: Jasmine Cha <chajasmine@google.com>
Change-Id: I2133cedac1cf718e3632df5f292a2688fc009428
2021-05-11 11:37:39 +00:00
millerliang
cdeb65a6c2 audio: remove bt path for raw and mmap playback
In AOC, ULL support requires the sink to be ULL
Speaker, Analog HP and USB are ULL Sinks,
Modem and BT are LL

Bug: 165737390
Test: OboeTester --> TEST OUTPUT
Change-Id: I23da02a52586e2f5d017142b5947dd082cdc2c62
2021-05-10 22:11:38 +08:00
Carter Hsu
c35126b2ef audio: update Raven/Oriole mixer path to V2.0
<Change List>
For mixer_paths.xml to both O6 & R4,
1. Update path name "voice-speaker" to choose VMON of bottom speaker AMP as EC reference under telephony HH mode.
2. Add the "boost peak current limit" control of cirrus speaker amps for initial value(3.50A) and below paths name.
    - "speaker" for stereo speaker playback, top amp with 1.70A, bottom amp with 1.90A
    - "speaker-safe" for mono speaker playback(ringtone, alarm, notification), bottom amp with 3.50A
    - "voice-handset" for telephony HA mode, top amp with 3.50A
    - "voice-speaker" for telephone HH mode, bottom amp with 3.50A
Bug: 174448901
Test: build pass
Signed-off-by: Carter Hsu <carterhsu@google.com>
Change-Id: I8bb847fbf1fc8632edf7a4f27b22184a4dd828d4
2021-05-10 04:03:07 +00:00
millerliang
9c06c83aa3 audio: add to support low-latency-record(fast intput)
AudioRecord not support PCM_FLOAT on FAST path yet.(b/77913243)
Use 16-bit format for low-latency-record.

Bug: 175673727
Test: OboeTester
Change-Id: I450d161cd1b236717ad01287b95f56a284443040
2021-05-07 16:58:11 +08:00
Jasmine Cha
8cebbe53c6 audio: update FM tuning (20210506)
- R4O6
  1. HA NB/WB/SWB/FB : EPD_Offset = 0x000
  2. HA NB/WB/SWB/FB : TX Mic dead parameter implented (includ HA-HAC TX)
    =>TX_MAINMIC_BLKFACTOR
    =>TX_REFMIC_BLKFACTOR
    =>DTD_THR1_7
    =>DTD_THE2_8
  3. HH NB/WB/SWB/FB : TX Mic dead parameter implented
    =>TX_MAINMIC_BLKFACTOR
    =>TX_REFMIC_BLKFACTOR
    =>DTD_THR1_7
    =>DTD_THE2_8
  4. Adding [EC off] / [NS off] / [ECNS off] on HAFB and HHFB

Bug: 174635995
Test: manual test

Signed-off-by: Jasmine Cha <chajasmine@google.com>
Change-Id: I23f6ad50ef42b3c6875cda54cb5179f5df423cfc
2021-05-07 02:27:00 +00:00
Labib
68270de177 Add BT SAR Tx Power Cap table to P21 devices
Bug: 187257485
Change-Id: Ia97fafe9e1fcf6b3e980d8af7718094307c36aff
2021-05-07 00:53:15 +00:00
Chris Fries
4791bdabe3 power_profile.xml: Fix typo "volatage"
Bug: 135906639
Change-Id: I7457ba49170d59cf88ffcb4ef8fedd980f391a05
2021-05-06 17:26:11 +00:00
millerliang
80c7d2ef11 audio: add to support mmap record
Add to support mmap-record

Bug: 175673727
Test: OboeTester
Change-Id: Ib3dc9b5df969e972b6a1155a216eeb4e5e353b3f
Signed-off-by: millerliang <millerliang@google.com>
2021-05-06 13:59:32 +00:00
Robin Peng
7cc6cca546 raviole: fix $(ro.hardware) not works in "on property:"
use ro.vendor.factory to replace ro.build.flavor

Bug: 187391068
Change-Id: I85f880bd4ada673655afd91cd092dbd2f1f0fec3
2021-05-06 20:09:29 +08:00
David Li
a10a9d85f2 audio: replace audio_pre_process with offload_effect and remove audio_pre_process
Move AEC and NS to the liboffloadeffect

Bug: 187153996
Test: make -j128
Test: run cts --include-filter "CtsMediaTestCases android.media.cts.AudioPreProcessingTest"
Change-Id: Ic4b7260b483b776ca917dc3694b7d66ba7eefde7
2021-05-06 02:28:43 +00:00