Commit graph

316 commits

Author SHA1 Message Date
Jasmine Cha
c7dfda1d57 audio: update waves preset tables (20210603)
O6:
+ improves loudness
+ improves clarity
+ incorporates landscape tuning with good left-right balance

Tuning work will continue to improve transient performance at max volume,
and incorporate feedback from UTD and PAE tests.

R4:
+ Improves loudness
+ Improves clarity and reduces bass distortion
+ Incorporates a landscape tuning that balances left and right speakers.

Further tuning work will improve bass response at lower volume steps and
improve tonal balance to reduce sibilance. We will also incorporate
feedback from UTD and PAE subjective studies.

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

Signed-off-by: Jasmine Cha <chajasmine@google.com>
Change-Id: I85599edfd87c4c96f1486ea68f49006bf5a871fb
2021-06-03 16:49:42 +08:00
Yu-Bin Chiu
18a9190963 [MFG_API] [audio] USB headset loopback functions don't work on ROM SD1A.210602.005
Need to add a new control "USB Config To AoC" in mixer table

Bug: 190002718

Test: verify it with a new mixer table, and it works on O6
Change-Id: Ibcb43d50d0185d8b5249aa2a5620c69871b97de5
2021-06-03 08:42:02 +00:00
Andrew LeCain
21159fdf01 Move fp app-loading to same stage as storageproxyd
Bug: 189911666
Test: R4 boot, unlock.
Change-Id: I88ec478bec27070d7d2ceb2ab7fcfe9a98fd423d
2021-06-02 19:13:22 -07:00
linpeter
428dbc7c07 oriole: update thresholds for 90hz
Add zone condition for 90Hz

Bug: 187929149
Test: no refresh rate chagne in the blocking zone
Change-Id: Ia7f5be2464da8ea4ed2c8d370bb6baa0f5be3cc9
2021-06-02 10:09:06 +00:00
Jasmine Cha
8baf515669 audio: update FM tuning table (20210531)
//O6
1. HH NB/WB/SWB EVT modification :
=> Volume curve: NB/WB/SWB SPK_VOL
=> Distortion: NB/WB/SWB RX FdEQ, NB RX TdDRC
=> Mic design change : NB/WB/SWB TX Pre-FdEQ , WB/SWB TX FdEQ

2. HA NB/WB/SEB EVT modification
3. HE TTY HCO: sync the latest of HH RX
4. HE TTY VCO: sync the latest of HH TX
5. HE Headphone : sync the latest of HH TX

Bug: 174635995
Test: manual audio test / voip

Signed-off-by: Jasmine Cha <chajasmine@google.com>
Change-Id: I30d6540eacfcf2eef3caf33af58727d990646853
2021-06-02 02:14:50 +00:00
George Lee
156e8f1afe thermal: add soc to thermal HAL monitoring
Bug: 188365095
Test: Confirm throttling based on criteria matched
Signed-off-by: George Lee <geolee@google.com>
Change-Id: I417ced61da6fe2bf44927878676bee877789fd23
2021-06-01 13:33:39 -07:00
George Lee
d8ab4ebb49 thermal: update threshold level for OCP
Bug: 184739333
Test: Local boot up test
Signed-off-by: George Lee <geolee@google.com>
Change-Id: I2a0b14d96516c91844cc5f49e61e1cc7ab7518f2
2021-06-01 18:28:45 +00:00
Robin Peng
6e4640b81b raviole: add PRODUCT_SOONG_NAMESPACES for trusty liboemcrypto.so
Bug: 179364089
Change-Id: Id7f8c243743badbd29f1c2e3b74baecec049180e
2021-06-01 18:11:38 +08:00
Ching-Sung Li
fb5e389143 Build Raven default CMF color wallpaper
Bug: 169538195
Test: Build pass; manual
Change-Id: I3b20252eed0bf1fa2d5b36ffe7008c9e14d1b657
2021-05-31 12:31:55 +00:00
Yanting Yang
3b1f8ef524 Add initial MIC e-label for JP SKU of Raven
Bug: 182865172
Test: visual
Change-Id: I4691936b2d0af6a82db84dad61c85b98e8913b8a
2021-05-31 02:57:39 +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
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
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
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
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
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
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
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
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
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
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
Vince Leung
fd3f417352 Remove audio-coupled-haptics support
Temporarily remove haptics support so that Telecom fallback mechanism of
default vibration will play whenever audio coupled haptics is not
supported.

Bug: 186720581
Test: manually verify on raviole that default vibration plays for
ringtone

Change-Id: I77e4a4a7ff19e6665434d9318271d20cd64e6c1d
Signed-off-by: Vince Leung <leungv@google.com>
2021-05-06 01:11:50 +00:00
JohnCH Tsai
c6f7d94f22 slider: Enable 60fps for Raven front camera
Change Raven front camera video recording to 60fps

Bug: 174339205
Test: go/slider-camera-test-checklist
Change-Id: Ieda8477b32754c0a9da7ff3c9cf59b11159cbad6
2021-05-05 09:19:12 +00:00