Commit Graph

1240 Commits

Author SHA1 Message Date
TreeHugger Robot 1878ad827d Merge "vibrator: Update property naming rule" into rvc-d1-dev 2020-06-18 03:18:35 +00:00
Jack Yu 349b2e5dae Allow to disable NFC polling in redfin am: 724a37a542
Original change: https://googleplex-android-review.googlesource.com/c/device/google/redfin/+/11807221

Change-Id: If6cb889cbaa4bc170b0ac7f944b4f5efd8296ca8
2020-06-17 15:52:48 +00:00
chasewu 46d645318c vibrator: Update property naming rule
Bug: 158802146
Test: manual check properies value
Signed-off-by: chasewu <chasewu@google.com>
Change-Id: I2a092f79ca8105dc175ba026561234ce553da933
2020-06-17 16:37:47 +08:00
Jason Hsu 54ea660f52 audio: update acdb table
change list:
1. De-vibration tuning in Handset NB/WB/SWB
2. Align TMUS Handset VoIP tuning to Generic

Bug: 159178918
Test: verified by H/W
Signed-off-by: Jason Hsu <jasonchhsu@google.com>
Change-Id: I9d3b5714b3dd7b133be854a157e168efc022148d
2020-06-17 12:15:02 +08:00
TreeHugger Robot a61b972515 Merge "Exclude unavailable features from AOSP build" into rvc-d1-dev 2020-06-17 02:19:03 +00:00
Ken Tsou 2fb7619cfd dumpstate: add battery eeprom to dumpstate
sync ag/10382199

Bug: 149979769
Test: trigger dumpstate and check battery eeprom data
Change-Id: I390bcf599fd232371963b8a3b2cfb282dca05808
Signed-off-by: Wasb Liu <wasbliu@google.com>
Signed-off-by: Ken Tsou <kentsou@google.com>
2020-06-16 09:40:20 +00:00
Chungjui Fan 737730c4a2 Exclude unavailable features from AOSP build
Failed Items:
testDelegatedCertInstallerDeviceIdAttestation
testDeviceIdAttestationForProfileOwner
testLocationFeatures

Bug: 155943720
Bug: 159095429
Test: Tests pass for these failed items
Change-Id: I332c38b612fc136c0ec1b3fe0d35f3e96b1cd8fd
Signed-off-by: Chungjui Fan <chungjuifan@google.com>
2020-06-16 15:14:16 +08:00
Jason Hsu b19567794e audio: update audio table
audio_platform_info.xml:
Modify Record acdb id path
<device name="SND_DEVICE_IN_USB_HEADSET_MIC" acdb_id="44"/> => From 4 to 44
<device name="SND_DEVICE_IN_VOICE_RECOG_USB_HEADSET_MIC" acdb_id="143"/> => New add

ACDB:
1. HAC FB fine tune from Annie
2. HE Recording (acdb id :44) modify
 - Change Recording topology to AUDIO_TX_MONO_COPP_MBDRC_V4
 - Apply parameter, 18dB gain in Audio Mic gain , and pre-gain set to 0x1 in IIR

Bug: 158717246
Test: Verified by H/W
Signed-off-by: Jason Hsu <jasonchhsu@google.com>
Change-Id: I2fd20bdccd344807b4b98ec389088318345ff5b9
2020-06-16 01:37:34 +08:00
Jack Yu 724a37a542 Allow to disable NFC polling in redfin
Config overlay in redfin to allow disable Nfc polling with
setReaderMode().

Bug: 157173627
Test: build pass
Change-Id: Iffdef5bd3582c8fb7a983dccce0fb66b6caa6c47
2020-06-15 09:27:36 +00:00
More Kuo 28fda48381 Add the default Bluetooth SAR table for ROW
1. Add the new Bluetooth SAR table as default table for ROW (default fall
   back version when there is no SKU+RegDomain match in other csvs).
2. Rename bluetooth_power_limits_redfin_ce.csv to
   bluetooth_power_limits_redfin_eu.csv

Bug: 158774295
Test: Manual
Change-Id: Ib3f43978ee2ac86d46ab4e66635039d7ec66b9f2
2020-06-12 10:55:22 +08:00
Jason Hsu 3b13583bb5 audio: update audio tables
1. acdb's change list is as below
  - Handset NB/WB/SWB/FB EPD-Offset to fine tune EC performance
  - Handheld WB EPD-offset to fine tune EC performance
  - Ringback tone: MBDRC modification
  - Handheld FB: update tuning for DT & EC
  - Handheld NB/WB: optimize BVE parameters

2. mixer's changelist
  *** The mixer modification was based on b/145244105 comment #63.
  - change the EC reference from TDM-RX to TDM-TX (align with B5S5) in Handheld voice call & VoIP. Details is as below.

    <ctl name="ASPTX1 Slot Position" value="1" />
    <ctl name="R ASPTX1 Slot Position" value="0" />

    <path name="echo-reference">
        <ctl name="AUDIO_REF_EC_UL1 MUX" value="QUIN_TDM_TX_0" />
        <ctl name="EC Reference Channels" value="Two"/>

    <path name="echo-reference speaker">
        <ctl name="AUDIO_REF_EC_UL10 MUX" value="QUIN_TDM_TX_0"/>
        <ctl name="EC Reference Channels" value="Two"/>

    <path name="voicemmode1-call speaker">
        <ctl name="VOC_EXT_EC MUX" value="QUIN_TDM_TX" />
        <ctl name="QUIN_TDM_RX_0_Voice Mixer VoiceMMode1" value="1"/>
        <ctl name="VoiceMMode1_Tx Mixer PRI_TDM_TX_0_MMode1" value="1"/>
    </path>

Bug: 158623210
Bug: 156513851
Test: Verified by H/W
Signed-off-by: Jason Hsu <jasonchhsu@google.com>
Change-Id: I3ddd419a1d7da76841dd58889de36769e48c1f74
2020-06-10 09:42:57 +00:00
Jason Hsu 445011aaad audio: update audio table
1. For mixer_paths_noextcodec_snd.xml,
    a. Change gain setup from 0dB(value 23) to 22dB(value 52) of path name "voice-rec-mic".
    b. Add strings for gain visibility of path name "handset-stereo-dmic-ef".
    c. Change gain setup from 13dB(value 40) to 22dB(value 52) and add strings for gain visibility of path name "voice-rec-dmic-ef".
    d. Change gain setup from 0dB(value 23) to 22dB(value 52) of path name "three-mic".
    e. Change gain setup from 0dB(value 23) to 5dB(value 30) and add strings for gain visibility of path name "unprocessed-mic".
    f.  Change gain setup from 13dB(value 40) to 5dB(value 30) and add strings for gain visibility of path name "unprocessed-stereo-mic".
    g. Change gain setup from 0dB(value 23) to 5dB(value 30) and add strings for gain visibility of path name "unprocessed-three-mic".

2. For audio_platform_info_noextcodec_snd.xml,
    a. Apply acdb id_144 for SND_DEVICE_IN_VOICE_REC_DMIC_STEREO.
    b. Update "microphone_characteristics" and "input_snd_device_mic_mapping" to fit R3 configurations.

Bug: 145244105
Test: Verified by H/W
Signed-off-by: Jason Hsu <jasonchhsu@google.com>
Change-Id: I5cc6c87c0a4cf100e993fce1906a253966bc564c
2020-06-10 15:15:56 +08:00
Super Liu ac3ffc70ec dumpstate: change touch output data format
Bug: 144326854
Test: check bugreport output data
Signed-off-by: Super Liu <supercjliu@google.com>
Change-Id: I0b240e1488a8319c9472a68bf82476b71614c881
2020-06-10 15:15:50 +08:00
chasewu 9f4c9b3752 vibrator: Dynamically support different HW stage device
Since EVT and DVT devices were applied different target G values,
we have to add a workaround to support this condition.

Bug: 157610908
Bug: 157714236
Bug: 154788092
Test: manual check logs
Signed-off-by: chasewu <chasewu@google.com>
Change-Id: I5d534d44a6f765250f16a13cc7bb9ccecc120f99
2020-06-10 15:15:15 +08:00
Willy Hu a42dffa999 [R3] ril: Add null check when strtok_r return
Symptom:
We meet the issue about the incomplete log, when we
process covert to pcap file, it will cause to crash
due to strtok_r return null pointer.

Log:
2020-05-27 20:48:33.058 0000 00 0e b6 00 00 02 00 0e b6 00 00 01 86 DD 60 03 22 0a 00 28 06 40 20 01 b4 00 e3 06 1b 5b a3 67 54 1f b6 41 76 ac 20 01 b0 00 01 68 00 00 00 00 00 00 00 00 00 02 bf d0 03 55 d3 ec 6a 8f 00 00 00 00 a0 02 ff ff 0c b5 00 00 02 04 05 a0 04 02 08 0a 36 45 3b 33 00 00 00 00 01 03 03 08
// it's incomplete log as below
2020-05-27 20:48:33.

Bug: 157973383
Test: 1. We can reproduce this issue by using incomplete log as above
         description.
      2. Manual trigger bugreport with incomplete log and the symptom
         of crash is gone.
Change-Id: I9a69104a1d354da8e732b6c6d7fbe675d2863ed3
2020-06-08 17:19:35 +08:00
Leo Liou 363bcf7857 redfin: dumpstate: add UFS err_stats dump
dumpstate_board.txt:
------ UFS err_stats (/vendor/bin/sh ... ------
err_clear_pend_xfer_tm:0
err_eh:0
err_hibern8_enter:0
err_hibern8_exit:0
err_int_fatal_error:0
err_int_uic_error:0
err_linkstartup:0
err_power_mode_change:0
err_resume:0
err_suspend:0
err_task_abort:0
err_vops_suspend:0

Bug: 137150088
Bug: 151790553
Test: run bugreport and capture dumpstate_board
Change-Id: I519d4d751028e127abffcd0230d0e7664aa13386
Signed-off-by: Leo Liou <leoliou@google.com>
2020-06-08 17:19:28 +08:00
Jason Hsu bbd22edaf1 audio: update acdb file
The change list is as below:
1. Enable BVE at HANB/WB/SWB
2. Adjust HASWB Nom FDEQ for RFR
3. Adjust HAC FB
4. Recording (HA_Tri_Mic id46)
    - disable all effect
5.Camcorder
   - Import the WNR module into ACDB.
   - Add the WNR module in the camcorder use case ID 61~66.
6. optimize PTL MPPS  in id 513

Bug: 158043299
Test: Verified by H/W
Signed-off-by: Jason Hsu <jasonchhsu@google.com>
Change-Id: Ia3bb5766e216419090b15549b140c3372a7178ed
2020-06-08 17:19:22 +08:00
Mark Salyzyn 4507caba1c fastboot/recovery: wait for display
With GKI we find in certain situations the timing of the drivers
loading is delayed as compared to a monolithic kernel.  This
introduces a race where during second stage init, the attributes
inside /sys/bus/platform/drivers/drm_dsi_ctrl might not be set by
the time the menu is painted on the screen.

To address this, we wait for /sys/class/drm/card0 to instantiate.

Signed-off-by: Mark Salyzyn <salyzyn@google.com>
Bug: 151950334
Test: make sure user space fastbootd comes up reliably for a GKI kernel
Change-Id: I64c21529c21cdd8c8ad9908c8a57e933549986a5
2020-06-02 18:49:44 +08:00
Mark Salyzyn 3cbff385c0 Insmod script configuration use modules.blacklist
Load all modules except those listed in the modules.blacklist file.
Then load device specific modules that are members of the blacklist.

Signed-off-by: Mark Salyzyn <salyzyn@google.com>
Bug: 151950334
Test: fastboot flashall & boot
Change-Id: I88b3f9fa5eb21ae8dfb66bc24ca485ea214914a8
2020-06-02 18:49:39 +08:00
Mark Salyzyn df454bf83c Refactor BoardConfig to simplify maintenance
Move common operations to redbull.

Uses TARGET_BOOTLOADER_BOARD_NAME set here where ever product or
device specific directories are referenced in stanzas move to redbull.

Signed-off-by: Mark Salyzyn <salyzyn@google.com>
Bug: 151950334
Test: fastboot flashall & boot
Change-Id: I4df013924a7566807063bc410fb879d9546f9b6b
2020-06-02 18:49:33 +08:00
Bill Lin 38205c0473 Tuning Redfin rounded anti aliasing corner curve
Test: adb root; adb shell setprop debug.screenshot_rounded_corners true;
      adb shell pidof com.android.systemui |xargs -i adb shell kill -9 {}
Test: manual check visual
Bug: 155372020
Change-Id: Icfa805de1dcc8915e0245ba785d1336fc7a89513
2020-06-02 18:49:28 +08:00
Cyan_Hsieh ee61f152d0 Merge branch 'rvc-dev' into rvc-d1-dev
Change-Id: I6ec66f04fee0d2fd8a1a78b7dad67af40e9f1c62
2020-06-02 18:48:49 +08:00
Yan Wang 6871a58d9f iorap: Enable pinner for camera on redfin
Bug: 157667363
Test: Make
Change-Id: Id2f4c00e77c562ed78ed99b42715acd12f4a0c8f
2020-06-02 18:39:24 +08:00
JJ Lee 1ab04aed6c audio: add mixer paths for call screen mode
Bug: 140384450
Test: build pass, call screen mode functions
Change-Id: Iec1740df2a9b507dc31839a45410cd5e34a2838a
Signed-off-by: JJ Lee <leejj@google.com>
2020-06-02 18:39:17 +08:00
Cyan_Hsieh 9858ca09aa Merge branch 'rvc-dev' into rvc-d1-dev
Change-Id: Id52b0c1a0c7f3c8d1226ead31c543da63c8fd505
2020-05-29 22:05:53 +08:00
JJ Lee 4cd460e1eb audio: update acdb files
Changelist:
  1. Adjust HASWB TX
     - SFR optimize
     - Noise Suppression high band optimize
  2. Modify HAWB
     - The adapt len: 0x000 for response stability

Bug: 157618341
Test: verified by H/W
Change-Id: Ice4d15a5eb032ff1fd50336f25bffe67845d27b5
Signed-off-by: JJ Lee <leejj@google.com>
2020-05-29 21:25:22 +08:00
TreeHugger Robot 4069a166f0 Merge "vibrator: Use interpolation method for non-motion voltage" into rvc-d1-dev
Change-Id: Ibb99217da92f2441eea28fb414839201d5bc5401
Change-Id: I39b057caaa429187080a1490b867581bc62bf2f0
Change-Id: Id09b3a6278aaa96382cc64297a954c583de95a01
Change-Id: Ie3d69a576e518bbc98874fb0adf474d91d93311a
Change-Id: I2c27afbe0b475dd96c0de9482daefcce26b282f1
2020-05-29 21:22:49 +08:00
Ken Huang f188002378 redfin: enable peak refresh rate (90hz)
Enables default setting to 90hz mode, this can be disabled through
Settings app

Bug: 155011573
Test: wipe user settings and check default peak refresh rate enabled
Change-Id: Ieccb820c9bc19e00aa20e3b9dfbe5401c44a88d7
2020-05-29 21:22:49 +08:00
chasewu 0808fdb6df vibrator: Use interpolation method for non-motion voltage
Bug: 156428459
Test: manual check the ol_clamp
Signed-off-by: chasewu <chasewu@google.com>
Change-Id: I3ef918098391a08d4ed36e057f6ce093a702d924
2020-05-29 21:22:49 +08:00
TreeHugger Robot abe7c51aec Merge "vibrator: Add an initial value for non-motion vibration intensity" into rvc-d1-dev
Change-Id: I07fa931e44e316e7a1511a5a3cc5f38f7032a0e9
Change-Id: I545530b3d98b8f0c81dc3b2d925e423e27e72dfb
Change-Id: I4f4874d92fbecf338a4f15b526e98d1423d96436
Change-Id: Iee4bcc97fb8f22841dd5762c04bc8a1a3e9db756
Change-Id: I622e02c9d21d563d6337d129aed3920dddc12415
2020-05-29 21:22:48 +08:00
chasewu 6b2456b0d7 vibrator: Add an initial value for non-motion vibration intensity
Bug: 155709426
Test: remove cal file and trigger vibration
Signed-off-by: chasewu <chasewu@google.com>
Change-Id: I07e63dc8106a2f5d875b6be665e67e6f8dda9239
2020-05-29 21:22:48 +08:00
Robin Peng 03e0e3863d Merge "audio: update pcmid on speaker calib tx and rx usecase" into rvc-d1-dev
Change-Id: I86d8196d34b54b0d9540df57f7f32a20690e783f
Change-Id: Ic396acbda81fc597fd7d14ab080e3f737f494ca7
Change-Id: I2c8a4ac59d4855e2708e2b742d53dc0af74fe705
Change-Id: If6dda0625f905e011355ec42596669301a2266c7
Change-Id: Ia2ec814158b5542ae439995620bb465fc2c5f16a
2020-05-29 21:22:47 +08:00
yixuanjiang 5ea7630e9c audio: update pcmid on speaker calib tx and rx usecase
Bug: 156714478
Signed-off-by: yixuanjiang <yixuanjiang@google.com>
Change-Id: Ic1b54057154e0dbef4f7be065682b42af1760df0
2020-05-29 21:22:47 +08:00
More Kuo f45238fb50 Merge "Add the Bluetooth SAR table for EU" into rvc-d1-dev
Change-Id: Iefe830f56e343ef331f29c27659640913b02cbd3
Change-Id: I154525967b02f7cd0e0f376a394e486f15730e43
Change-Id: Ib657b1ba04906f1e9535623bb1900448c233bd1f
Change-Id: Ib6204277ec18a536ddfd0ad9b70eaea3fb3ffbc1
Change-Id: I23774e059fb2ad0a2e258bd248ce9848b49faf4f
2020-05-29 21:22:46 +08:00
TeYuan Wang 9bbc47208d thermal: update init.hardware.chamber.rc.userdebug
To align with the latest thermal policy

Bug: 157109068
Test: thermal throttling can be disabled
Change-Id: I8ddf8ead4e025dd9526a7d789494b25a23fb7e44
Signed-off-by: TeYuan Wang <kamewang@google.com>
2020-05-29 21:22:46 +08:00
More Kuo 426b2479d0 Add the Bluetooth SAR table for EU
Add the Bluetooth SAR table for EU and the default table

Bug: 157267001
Test: Manual
Change-Id: I630ce0f24c2484094e4bd35155ac92c50fffb6f0
2020-05-29 21:22:46 +08:00
Willy Hu 372c141ed7 Merge "ril: [R3] Support traffic stats log convert tp pcap" into rvc-dev am: c44943d8d0
Change-Id: I0f1b9681bcb7052586ff4adbc79d4005749cde39
2020-05-29 21:22:45 +08:00
More Kuo 91f0712b1a Rename the Bluetooth SAR table for US
Rename the Bluetooth SAR table file name according to the Regulatory
domain.

Bug: 156994868
Test: Manual
Change-Id: I1f3ac204f8932c0e497943e092b74e279ac9246a
2020-05-29 21:22:45 +08:00
Willy Hu 0beb733c2b Merge "ril: [R3] Support traffic stats log convert tp pcap" into rvc-dev
Change-Id: I4668eaa18d996e73302d09c051318a4fab997271
Change-Id: I8fa8aa91b022aac9153f19cbce838ae0de0e4170
Change-Id: I1bbaac24e21033fc94b799a49c00511845add28f
Change-Id: I6d68c4558670652c73232db31d2b902c2fbd18ca
2020-05-29 21:22:44 +08:00
Willy Hu fd23ca34b5 ril: [R3] Support traffic stats log convert tp pcap
convert traffic stats log(extended_log_datastall_pkt.txt) to pcap
when dump bugreport.

Bug: 154492175
Test: 1. I do see extended_log_datastall.pcap file
      in dumstate_board.bin when I trigger bugreport.
      (data/vendor/radio/extended_logs/extended_log_datastall.txt)
      2. I have do the test about incomplete/truncated logs, pcap just
      can parse to wrong information but not impact the dumpstate
      process.
Change-Id: Iea892bc66bbce8d7f219ca1cde3701cebb35ff80
2020-05-29 21:22:44 +08:00
TreeHugger Robot cffb4007ce Merge "audio: update acdb table" into rvc-d1-dev
Change-Id: Ia8eadc0e4bd2063d94396a7272a2ee2849c71097
Change-Id: I30e5c3373f1c10c716b6c95328659c78393fe7f1
Change-Id: If293c9add4dbed69c08e7fdbe282b66c5e14a9a4
Change-Id: I149c8854f97f71196af2d268addae645aee70001
Change-Id: Ie696036735ecb4e89f4f1b505230b1972c745017
2020-05-29 21:22:43 +08:00
Jason Hsu 207f444255 audio: update acdb table
Changelist:
- update the IIR parameters for ACDB ID 61~66
- update Mic gain for ACDB 61~63
- update the MBDRC parameters for ACDB ID 61~66

Bug: 157112078
Test: Verified by H/W

Signed-off-by: Jason Hsu <jasonchhsu@google.com>
Change-Id: Ib38e5eeb06460df326df88d771e00bd5b59dd34b
2020-05-29 21:22:43 +08:00
More Kuo 97897780b6 Merge "Add the Bluetooth SAR table for US" into rvc-d1-dev
Change-Id: I090bce84a3bf94b24abc81773bb29a55cd6f8f91
Change-Id: I8558477b5c24e439bc39c898d56344d448ca7d93
Change-Id: I0029e16cc599f5c4ce3e61138da38a7c267cc447
Change-Id: Ifc882f969302ea9954a23b24c1e0ba94de146c89
Change-Id: Id790edf5d4dcd1d1646985a614d49d149c2b5903
2020-05-29 21:22:42 +08:00
Ken Huang cd6613117b redfin: Set brightness threshold for peak refresh rate
Set 90Hz as default refresh rate in the blocking zone

Bug: 156462520
Test: no fps transition in the blocking zone
Change-Id: Iac4c8ef6a36e4d3a108bb9a17716c7c729e513db
2020-05-29 21:22:42 +08:00
More Kuo 1c9e4fd89b Add the Bluetooth SAR table for US
This Bluetooth SAR table is tuned by the Antenna and RF teams
and is used for the certification test.

Bug: 156994868
Test: Manual
Change-Id: Ied2ac2185ffb62c468327e48339f070f5bf2c51d
2020-05-29 21:22:42 +08:00
Lucas Wei cca0ae7a80 Merge "Create gki lunch target for ABI monitoring" into rvc-d1-dev
Change-Id: I5d99b0da401e7f9e15b8de2178daad6dccf46f7f
Change-Id: I5b36a5e734b759144b0fdfbe1b65621972590915
Change-Id: If1979027cefaea93802cf8b59a05172a353eca1f
Change-Id: I32b899d75dc4687d6f960365a25b59e11eea59b3
Change-Id: Ibdd6290c9a03ea8af85a4aceffe974d824980140
2020-05-29 21:22:41 +08:00
lucaswei fa94d1cfbf Create gki lunch target for ABI monitoring
This abi lunch target couple with special abi kernel which
compliance with ABI enforcement for defconfig.

Bug: 156356140
Signed-off-by: lucaswei <lucaswei@google.com>
Change-Id: I680a792d095eaadc4cef9906102ae8a007315015
2020-05-29 21:22:41 +08:00
Yuncheol Heo d1fedd523d Adjust the paddings of Status Bar in landscape.
Bug: 153488559
Test: Checks the clock in the status bar has the appropriate space in landscape.
Change-Id: I1b66e1919917a1a13148d79dac8656bddaaec8be
2020-05-29 21:22:40 +08:00
Yuncheol Heo 63b7bff995 Adjust the paddings of Status Bar in landscape. am: fbd40791aa
Change-Id: I0c455a1e8e117f12674b844d68cb3b5d8286a874
2020-05-29 21:22:40 +08:00
TreeHugger Robot a2d0b79cfb Merge "battery: disable wireless for pts battery test" into rvc-d1-dev
Change-Id: I4121069c41ca0e87fa06bf99909751320485d41b
Change-Id: I5d2a0b4bef6e02e5e0646b00e4428fd1851ba0c8
Change-Id: I4a6f17d4e5964e9a985a9f39940ea67e89dcb39b
Change-Id: Id1909ecd8e9a9ae3d52caff7513575fd3898c7c7
Change-Id: Idb5288c116016520b31abcb382629be661df4a48
2020-05-29 21:22:39 +08:00