Commit graph

490 commits

Author SHA1 Message Date
Joey Poomarin Phloyphisut
68f602729f 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: Ia154066fb57321546c82591399339728ba35cb1c
2021-05-24 10:21:43 +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
b032142035 thermal: Update raviole thermal config am: df6670a5ac
Original change: https://googleplex-android-review.googlesource.com/c/device/google/raviole/+/14186136

Change-Id: I1a41a9f47b7f17d9d79a4e0676b6e47c667a3c64
2021-05-21 17:51:43 +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
21f71ff420 Change Timesync nodes owner to be Bluetooth am: 7dc55b6a93
Original change: https://googleplex-android-review.googlesource.com/c/device/google/raviole/+/14185024

Change-Id: Ic98433234a9389fa1207f3498d33172a87c42c4f
2021-05-21 06:57:16 +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
c6d3dc94f3 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: I0809747470a3924a6f63ed7c9999b79ce0985afc
2021-05-19 17:30:50 +00:00
Ilya Matyukhin
d545009a93 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: I5732b8de1758533b99e023b99b6717f58a738722
2021-05-19 17:30:49 +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
9fab6fd728 slider, whitefin: add fingerprint HIDL HAL config am: 2d747c3d4e
Original change: https://googleplex-android-review.googlesource.com/c/device/google/raviole/+/14631304

Change-Id: I2a7d31bd4fcb37ab1d12432b552708da66fc1694
2021-05-19 04:44:01 +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
d5306d8864 Revert "Remove audio-coupled-haptics support" am: d1e7669bbb
Original change: https://googleplex-android-review.googlesource.com/c/device/google/raviole/+/14541258

Change-Id: I5604d08a545a80f360180d320bc30cbe64ba16b3
2021-05-17 18:59:36 +00:00
Vince Leung
2e35879eea audio: route haptic EP to haptic backend am: 9492abc5f2
Original change: https://googleplex-android-review.googlesource.com/c/device/google/raviole/+/14536533

Change-Id: I99f215ebb4f8e094d59a1cd86eea6bc48fa7d6e5
2021-05-17 18:59:35 +00:00
Kris Chen
b12112b233 Disable ASP only on PROTO1.0 devices am: cfbcfee88b
Original change: https://googleplex-android-review.googlesource.com/c/device/google/raviole/+/14515933

Change-Id: Iaceadd5a4ae76703526c6e6710f435fa93d19050
2021-05-17 18:59:27 +00: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
2f51a57dcb audio: update camcorder tuning am: efe83d40ff
Original change: https://googleplex-android-review.googlesource.com/c/device/google/raviole/+/14540970

Change-Id: I53b235a0aedf87633f1b6dd531e9736db5e35e32
2021-05-14 12:02:57 +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
cc558c77d0 powerstats: Modify file path for nfc devices am: f849ce0944
Original change: https://googleplex-android-review.googlesource.com/c/device/google/raviole/+/14536868

Change-Id: Id1926feacbb83f95f265950fcfbaca06a9b4a9ab
2021-05-14 05:54:52 +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
b458fb6f19 [LSC] Add LOCAL_LICENSE_KINDS to device/google/raviole am: fd537cda5e
Original change: https://googleplex-android-review.googlesource.com/c/device/google/raviole/+/14541760

Change-Id: Iad878985f79470707217d884c5b9c6ce5b84996f
2021-05-14 04:45:30 +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
8397478f94 Exclude as package from camera cutout protection am: 3aff17cd21
Original change: https://googleplex-android-review.googlesource.com/c/device/google/raviole/+/14537985

Change-Id: Ie4faa9d7c16e42f59781186d451cdd2a8cb41d9f
2021-05-14 02:39:17 +00: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
12c491bcdd Add scripts for generating raven/oriole vendor blobs am: 43331a3191
Original change: https://googleplex-android-review.googlesource.com/c/device/google/raviole/+/14472614

Change-Id: I3a119399a91192782ebccedcb5bb546a7e7b31b4
2021-05-13 19:52:30 +00: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
50f014b0af Add property for UDFPS antispoof am: 74dfc0cf92
Original change: https://googleplex-android-review.googlesource.com/c/device/google/raviole/+/14461327

Change-Id: I3d08794ddee5331367f8329e81d8b6b7fd6733ac
2021-05-12 22:21:39 +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
4ecddda0b5 Cap VideoEncoderCap maxFrameRate to 30 am: 30e3d9a5f1
Original change: https://googleplex-android-review.googlesource.com/c/device/google/raviole/+/14494378

Change-Id: I9a985ff4a8c6ff35c4aefda8e4aefc66dc169cce
2021-05-12 01:39:18 +00:00
Carter Hsu
019433f6b1 audio: separate the spatial audio and WNR block am: 4101e82133
Original change: https://googleplex-android-review.googlesource.com/c/device/google/raviole/+/14227306

Change-Id: If84d807c09994156db9c8a1748c7db5e7bc49718
2021-05-12 01:38:51 +00:00
Carter Hsu
3bc6112813 audio: update camcorder tuning for refactor am: 7870ae25e9
Original change: https://googleplex-android-review.googlesource.com/c/device/google/raviole/+/14352370

Change-Id: Ib0058a884c5918d8a204dbb8f9c3ddbe89bbfc39
2021-05-12 01:38:48 +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
8ff69ba0fe Adjust R4 rounded corner & punch hole anti-aliasing am: ccd6d2ba9f
Original change: https://googleplex-android-review.googlesource.com/c/device/google/raviole/+/14494392

Change-Id: I72f72519d6ea38a452eefe1f1d731fd406db4b86
2021-05-11 20:24:36 +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
c8de2d475b display: add device specific adaptive calibration file am: 82756614b2
Original change: https://googleplex-android-review.googlesource.com/c/device/google/raviole/+/14396795

Change-Id: I75645b6e7bda66f67d4e3a6274c534ca2b310a1f
2021-05-11 19:45:43 +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
578914b7f1 audio: waves: support handset device am: b794f75763
Original change: https://googleplex-android-review.googlesource.com/c/device/google/raviole/+/14494385

Change-Id: I30df1db2f98d0095055b215260476812af2d5635
2021-05-11 11:48:07 +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
8b448d9362 audio: remove bt path for raw and mmap playback am: cdeb65a6c2
Original change: https://googleplex-android-review.googlesource.com/c/device/google/raviole/+/14486299

Change-Id: Iec2f3e247cd77b6130bf921571aa1e3a8f6eb825
2021-05-11 08:16:08 +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
a63a3e9487 audio: update Raven/Oriole mixer path to V2.0 am: c35126b2ef
Original change: https://googleplex-android-review.googlesource.com/c/device/google/raviole/+/14484420

Change-Id: Ia761dcb9017027339a0dffb85111b2e4813d488c
2021-05-10 11:32:03 +00: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
9f0468a55b audio: add to support low-latency-record(fast intput) am: 9c06c83aa3
Original change: https://googleplex-android-review.googlesource.com/c/device/google/raviole/+/14461322

Change-Id: I828ea05c3dc0e0207c8b9324c772dd74dcd17093
2021-05-07 11:09:32 +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
1d63038938 audio: update FM tuning (20210506) am: 8cebbe53c6
Original change: https://googleplex-android-review.googlesource.com/c/device/google/raviole/+/14439572

Change-Id: Iea97d2a6dce91bf471d1281660d528eacf12745e
2021-05-07 03:10:19 +00: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