Commit graph

57 commits

Author SHA1 Message Date
Ethan Chen
8de98228d4
bluejay: Disable userdebug diagnostics
* We can't make use of most of the debug features on userdebug builds.

Change-Id: I31df2090b31243b742c4e82dc08cd8491dada54f
2024-10-19 23:02:24 +03:00
Jasmine Cha
2e1b99cdd2 waves: correct config to fix wrong tuning
- remove unused controls since the last version isn't expected multiple
  instance.

Bug: 341323676
Test: manual test

Signed-off-by: Jasmine Cha <chajasmine@google.com>
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:a7b7acea91c09d5fb5cc8aab983c0b0e32ad4a35)
Merged-In: I3a3c91ec742a46169cab8c57d32b5faef49603c6
Change-Id: I3a3c91ec742a46169cab8c57d32b5faef49603c6
2024-05-31 22:09:02 +00:00
Carter Hsu
7c1707228c audio: remove unused device
Bug: 337191827
Test: build pass
Change-Id: I6bc3d745dabe5ff8aeca6ad56d74d3c001e1087f
Signed-off-by: Carter Hsu <carterhsu@google.com>
2024-04-27 01:43:34 +08:00
Carter Hsu
0bf4352732 audio: support incall capture dl/ul concurrent recording
Bug: 317726514
Test: Verified by test build
Change-Id: I4fa12659797778810b37819bb71ba2b09b757b45
Signed-off-by: Carter Hsu <carterhsu@google.com>
2023-12-26 00:58:38 +00:00
Tai Kuo
c2b3df519d Revert "haptics: update hapitcs sink and slot setting"
This reverts commit 830adc99d1.

Bug: 278018625
Test: Check audio coupled haptics at the sound preview app.
Change-Id: I61dc4079a2eef206568b4e548794198485511f6c
2023-05-16 17:57:48 +08:00
Tai Kuo
830adc99d1 haptics: update hapitcs sink and slot setting
Bug: 270023634
Test: trigger audio coupled haptics via sound picker app
Change-Id: I56368f7a6a5097825ea89dfba3880cae1b92f1e7
2023-02-22 21:50:33 +08:00
millerliang
c4d6c5e19b audio:enable mmap and raw on BT
AoC can support mmap on BT both playback and recording
after gpar/322484.

Bug: 232205959
Test: OboeTester

Signed-off-by: millerliang <millerliang@google.com>
Change-Id: I558510a92f87fa39c792d51b9d463a8a9d92f523
2023-01-11 02:45:18 +00:00
millerliang
1df796b0cc audio: add missed camcorder be_cfg in dsp latency
Some 3rd party app may use one or three microhpne(s)
to do the camera recording.
Add these two configurations to UC_AUDIO_RECORD to sync
the audio and video of the recoreded video.

Bug: 260824124
Test: Reporter verified
Change-Id: Iaaf160070a26926a3cf6e18a184750d154abef6d
2022-12-06 15:29:39 +08:00
vincenttew
8a88005ee6 audio: update audio tuning table
Change List :
Optimize HH NB TX NS performance.

Hardware verification:
- Verified Handset/Speaker phone/USB-Headset function work well.

Bug: 252916530
Signed-off-by: vincenttew <vincenttew@google.com>
Change-Id: I3a35471fd649d5a94f326aae861f0c121de9dfa3
2022-10-11 02:59:13 +00:00
vincenttew
d9df6ed1b5 audio: extand the period number of hifi usecase
extend this to prevent alsa trigger stop playback
and causing pop

Bug: 238056484
Signed-off-by: vincenttew <vincenttew@google.com>
Change-Id: I1c4bf46a51893717b8d184a0919073eafcdc1e50
2022-09-20 07:23:23 +00:00
juyuchen
a94fab2d99 audio: enable gapless offload for trimming data
Bug: 233723867
Test: manual audio tests

Signed-off-by: juyuchen <juyuchen@google.com>
Change-Id: I98e477f00c731ecebcacc5d633192e20bc55c021
2022-08-31 12:36:09 +08:00
Robert Lee
9de33e4325 audio: enable gapless offload flag
Enable gapless support on compressed_offload w/o trimming delay and padding.

Bug: 236351705
Test: test with AOSP Music and MediaMonkey
Change-Id: I57d4a95b71bef75245590b787c0210c5f64fb842
2022-07-21 17:11:44 +08:00
vincenttew
5ed43b8558 audio: update audio tuning table
Change list:
[waves_preset.mps]
1. Reduce some high frequency noise.
2. Increase more bass.
3. Let vocal clear.
4. Improve sound quality in Portrait mode and Landscape mode

[audio_policy_volumes.xml]
1. it accompanies with waves_preset.mps to get linear volume step.
2. Improve linear volume step from min volume (1st volume) to max
volume (25th volume).

Bug: 234137091
Test: build pass, playback + volume
Signed-off-by: vincenttew <vincenttew@google.com>
Change-Id: I36eff063bd67fc39954c3fb1b44638ba1cda58d0
2022-05-31 06:43:01 +00:00
Jasmine Cha
e7a29cfa7f audio: improve mute duration
- redefine mute duration of primary output from 160ms to 40ms to avoid
  cutting of preview notification.

Bug: 233176336
Test: preview notification/voice end call tone

Signed-off-by: Jasmine Cha <chajasmine@google.com>
Change-Id: I3ed4bf801d31e93062f9a56bf96540793b760205
2022-05-24 06:36:29 +00:00
Carter Hsu
69f12cd99d audio: update Fortemedia VoIP condition to reserve2
Bug: 226869868
Test: build pass
Signed-off-by: Carter Hsu <carterhsu@google.com>
Change-Id: I8c5ef8e87de0c0b0419e7c2df5e284c8ae5192f6
2022-05-12 06:44:16 +00:00
Carter Hsu
5c569b70cf audio: allow mmap-record to set dsp volume
Bug: 231630423
Test: build pass
Signed-off-by: Carter Hsu <carterhsu@google.com>
Change-Id: I8e9b793a5e6e1330195c766e851a3abb5a2e2cac
2022-05-06 16:55:25 +08:00
Carter Hsu
6e2dd401a3 audio: adjust the digitial gain for speaker-mic
add mic gain on path "speaker-mic" from 0 to 22

Bug: 228224014
Test: audio record
Signed-off-by: Carter Hsu <carterhsu@google.com>
Change-Id: I0decedeb7f622b33b88b8b63061c95da6c52cfc9
2022-04-22 14:07:22 +08:00
Miller Liang
8a89451b36 Merge "audio: change format of mmap-playback to float" into tm-dev 2022-03-07 02:59:28 +00:00
vincenttew
c036e85f66 audio: update audio tuning table am: 1460360449 am: 1afa9960da
Original change: https://googleplex-android-review.googlesource.com/c/device/google/bluejay/+/17045648

Change-Id: Id628b2dfd20a0ffa26a8df71c3366552c53ef619
2022-03-03 10:30:19 +00:00
vincenttew
1460360449 audio: update audio tuning table
Change list:
1. Modify mic fallback detection parameter to 0x0000 for HA/HH NB/WB/SWB/FB
2. Sync same parameter for BT-HAC TX / TTY_VCO TX / HE_Headphone TX

Bug: 192810349
Test: voice call
Signed-off-by: vincenttew <vincenttew@google.com>
Change-Id: I9c1fa1c50dc93e73aacd501a8cb97e4a0e2b877c
2022-03-03 04:10:58 +00:00
millerliang
84aab6c32e audio: change format of mmap-playback to float
Bug: 201398105
Test: OboeTester
Test: atest CtsNativeMediaAAudioTestCases
Signed-off-by: millerliang <millerliang@google.com>
Change-Id: Iba5f241d3dd3dfac9eb12e9e4cadf07709b99c9e
2022-03-03 10:13:46 +08:00
TreeHugger Robot
7c37b02678 Merge "audio: remove 3 channel config for primary input" into sc-v2-dev am: f40642f16b am: 27dab32945
Original change: https://googleplex-android-review.googlesource.com/c/device/google/bluejay/+/16713100

Change-Id: Ied0dc662aef8fb0a9e4ad47d44c4476ca425faf2
2022-01-27 06:48:06 +00:00
vincenttew
d04a6a4238 audio: remove 3 channel config for primary input
Bug: 215405301
Test: solotester recording Mic/VR source
Signed-off-by: vincenttew <vincenttew@google.com>
Change-Id: Ie2c1e998a04eb0d2eeabb316ede64b7a4ed0b750
2022-01-25 23:20:31 +08:00
Carter Hsu
46d8c710bf audio: add Fortemedia mcps file
Bug: 213020870
Test: build pass
Signed-off-by: Carter Hsu <carterhsu@google.com>
Change-Id: I215594d57b247283248c9bcc7493eadea527bdbd
2022-01-25 18:11:03 +08:00
TreeHugger Robot
05f0bd364d Merge "audio: update audio tuning table" into sc-v2-dev am: 4951e41ba0 am: 808e883e89
Original change: https://googleplex-android-review.googlesource.com/c/device/google/bluejay/+/16660938

Change-Id: I33283764f78a492a3c5e5e6c77b98cf703813c0c
2022-01-20 10:56:45 +00:00
vincenttew
4c0d670b37 audio: update audio tuning table
change list:
1. modify EQ and DRC to increase bass & vocal.
2. Use 18kHz Low Pass Filter one order.
3. Smooth volume curve
4. modify DTMF quiet step a little quieter

Bug: 215311926
Test: build pass
Signed-off-by: vincenttew <vincenttew@google.com>
Change-Id: I3fdf930f3ae1bfdd8477dd7addb97fddd5f1eece
2022-01-19 12:57:38 +00:00
vincenttew
59eae85373 audio: update audio tuning table am: 156bdf9998 am: 2b16025bbd
Original change: https://googleplex-android-review.googlesource.com/c/device/google/bluejay/+/16661281

Change-Id: Ie6a7ef7b15eed1772eef96b335876b2e2fb06c4e
2022-01-19 11:55:05 +00:00
vincenttew
156bdf9998 audio: update audio tuning table
Change List :
HA NB/WB RX TDDRC gain for Orange
HA SWB RX FDEQ for Orange

Hardware verification:
- Verified Handset/Speaker phone/USB-Headset function work well.

Bug: 192810349
Test: build pass, voice call
Signed-off-by: vincenttew <vincenttew@google.com>
Change-Id: I8306780860365c8d1bf98239dc9f5dbc40171bfa
2022-01-18 11:52:39 +00:00
Jason CH Hsu
2e5e4192e0 Merge "audio: update audio tuning table" into sc-v2-dev am: 254c814489 am: fef646c7d3
Original change: https://googleplex-android-review.googlesource.com/c/device/google/bluejay/+/16635351

Change-Id: I315f488507128d1f8d3d279f97eb4468fe47250d
2022-01-15 08:24:55 +00:00
Jason Hsu
318acd4ccd audio: update audio tuning table
Change List :
HA WB/SWB RFR and RX TDDRC gain for Orange
HA NB RX TDDRC for TMOUS
HA WB/SWB RX/TX TDDRC for TMOUS

Bug: 192810349
Test: build pass

Signed-off-by: Jason Hsu <jasonchhsu@google.com>
Change-Id: I75602de7f29d58e546baa4d5ccd8b867270bb423
2022-01-14 16:26:15 +08:00
Yu-Bin Chiu
c41b188869 Merge "audio: add mfg_audio record for usb recording" into sc-v2-dev am: 7b5070a4bb am: 0fcc1a1112
Original change: https://googleplex-android-review.googlesource.com/c/device/google/bluejay/+/16561466

Change-Id: I5e889cd1bf123a5f6f4021bba50541aefce02ec3
2022-01-10 06:32:11 +00:00
Yu-Bin Chiu
7b5070a4bb Merge "audio: add mfg_audio record for usb recording" into sc-v2-dev 2022-01-10 05:50:47 +00:00
vincenttew
08cb900820 audio: update audio tuning table am: 09a484c4c8 am: dc504c772c
Original change: https://googleplex-android-review.googlesource.com/c/device/google/bluejay/+/16561922

Change-Id: I419fba20d57bb5183551bcfcc28558090e4b69dd
2022-01-04 14:32:22 +00:00
vincenttew
09a484c4c8 audio: update audio tuning table
Change List :
1. HA SWB
Modify RFR for PTCBR
2. HH NB/WB/SWB
Modify TX TDDRC for Orange SLR
Sync HH TX setting to Headphone/VCO/BT-HAC

Hardware verification:
- Verified Handset/Speaker phone/USB-Headset function work well.

Bug: 192810349
Test: voice call, volume, playback, capture, path switching
Signed-off-by: vincenttew <vincenttew@google.com>
Change-Id: Iae2dec76e8f236dbacb20507d067ea86acc7c526
2022-01-04 11:43:24 +00:00
vincenttew
4c3d864fe6 audio: update audio tuning table am: 9ec5a18e29 am: f545f25759
Original change: https://googleplex-android-review.googlesource.com/c/device/google/bluejay/+/16552143

Change-Id: I2aeb3d9495d627573dc3d9257f53bc9f0cce9f8b
2022-01-04 08:20:09 +00:00
vincenttew
9db71fc141 audio: add mfg_audio record for usb recording
currently mfg audio tool using audio-recordC usb-headset-mic
in mixer_paths.xml, add a new path for mfg usb recording to
switching the usb mic source

Bug: 213027646
Test: verify pass with mfg tool usb-record
Signed-off-by: vincenttew <vincenttew@google.com>
Change-Id: Ief5183b6d496c3ffe8234b59954cf9aa213eebe4
2022-01-04 07:56:40 +00:00
vincenttew
9ec5a18e29 audio: update audio tuning table
Change list:
Update recording.gatf file for
1.  Modifing SNS parameters in SA

Bug: 212642733
Test: build pass, camcorder recording, playback
Signed-off-by: vincenttew <vincenttew@google.com>
Change-Id: Ie4156c0c1f2228501f9d1e3a31761746ce021631
2021-12-30 08:50:08 +00:00
TreeHugger Robot
c2686b56cf Merge "audio: update audio table" into sc-v2-dev am: 03fa993547 am: ae6c6e294a
Original change: https://googleplex-android-review.googlesource.com/c/device/google/bluejay/+/16544736

Change-Id: I9925d9ba46e0897371d6959063c5387a23cd26f3
2021-12-29 16:10:12 +00:00
vincenttew
9fa2de1f9b audio: update audio table
Change list:
1. HEWB
 1 Modify TX HE_BB_WB_DT improvement TX_EAD_THR: 0x4500 --> 0x36B0
2. HA/HH  NB/WB/SWB (Generic/TMOUS)
 1 Enable mic blocked algorithm
 2 Sync HH TX setting to Headphone/VCO/BT-HAC

Hardware verification: telephony function is normal (HA/HH/HE)

Bug: 192810349
Test: build pass, voice call, playback, record
Signed-off-by: vincenttew <vincenttew@google.com>
Change-Id: I0ada7655207e54ee27bd9ef15e89a84e6199f21e
2021-12-29 10:00:19 +00:00
Carter Hsu
04d918b2bb Merge "audio: change primary output to float" 2021-12-23 08:02:31 +00:00
TreeHugger Robot
20ec48a55a Merge "audio: update audio tuning table" into sc-v2-dev am: 49fe55320b am: 9446d5dd58
Original change: https://googleplex-android-review.googlesource.com/c/device/google/bluejay/+/16518856

Change-Id: Ib5feb3957e2a3636cc5e356f034ab8047bf16023
2021-12-22 16:25:45 +00:00
vincenttew
54b24aac75 audio: update audio tuning table
this mps includes LinkLaw to let every volume step timbre consistency
and modify audio_policy.xml to let linear music playback volume step &
suitable Notification & DTMF.
1. Overall sound quality need to be improved on the landscape mode at
the maximum volume (b/208954824)
2. Overall sound quality need to be improved on the portrait mode at
the maximum volume (b/208954249)

Bug: 211725396
Test: build pass
Signed-off-by: vincenttew <vincenttew@google.com>
Change-Id: I1e5c48228d6abe18e8fa27d10f134e19984a491d
2021-12-22 18:10:41 +08:00
Carter Hsu
adfa34f117 audio: change primary output to float
Bug: 200293124
Test: build pass
Signed-off-by: Carter Hsu <carterhsu@google.com>
Change-Id: Iecba2b1b1faf977cb3135b8a49e689badffb1463
2021-12-22 14:38:01 +08:00
vincenttew
c003aab2c8 audio: add usb headset mic source to factory test am: 731a1b4441 am: 1da7ee60f3
Original change: https://googleplex-android-review.googlesource.com/c/device/google/bluejay/+/16500076

Change-Id: I5430696cd4077d323737eec3e8167b0e9219db2d
2021-12-21 13:55:31 +00:00
vincenttew
731a1b4441 audio: add usb headset mic source to factory test
Bug: 211528888
Test: loopback audio command, build pass
Signed-off-by: vincenttew <vincenttew@google.com>
Change-Id: I3a2a4c227a24fe87eb846f94851b9dc81df33f2a
2021-12-21 16:29:00 +08:00
TreeHugger Robot
c77651fde2 Merge "audio: update audio tuning table" into sc-v2-dev am: e41c606554 am: 0e05fec04b
Original change: https://googleplex-android-review.googlesource.com/c/device/google/bluejay/+/16378671

Change-Id: Idce3e219e68863697189a99efe10e9eca875e178
2021-12-07 13:20:29 +00:00
TreeHugger Robot
376580d361 Merge "audio: Add command to set PCM steam wait time for voice and audio." into sc-v2-dev am: 7732a823c8 am: 8ca720aa6d
Original change: https://googleplex-android-review.googlesource.com/c/device/google/bluejay/+/16373912

Change-Id: I99ff0a272176a39b006ced3257127730ac7a15f9
2021-12-07 09:49:36 +00:00
vincenttew
4b80986b23 audio: update audio tuning table
Change List :
[fortemedia tuning]
1. HA
Enable FB FFP
2. HH
Enable FB FFP
Modify TX TD-DRC gain
Sync HH TX setting to Headphone/VCO/BT-HAC
3. HE blackbird
Enable FB FFP
Reduce the clipping risk on RX path (SWB and FB RX)
Modify RX TD-DRC
Modify RX FD-EQ

[recording.gatf tuning]
1. Modifing IIR2 and SNS parameters in SA
2. Modifing IIR and MBDRC settings in SA-lite

Hardware verification:
- Verified Handset/Speaker phone/USB-Headset function work well.
- build in mic recording

Bug: 208745408
Bug: 192810349
Test: build pass, recording, playback, voice call
Signed-off-by: vincenttew <vincenttew@google.com>
Change-Id: I1fdb709a2fcdabdaf730c8b2e2e6ce2cf7d7097f
2021-12-07 09:31:25 +00:00
TreeHugger Robot
7732a823c8 Merge "audio: Add command to set PCM steam wait time for voice and audio." into sc-v2-dev 2021-12-07 09:06:37 +00:00
Yung Ti Su
be6101078d Merge "audio: change format of deep-buffer to float" into sc-v2-dev am: a7c9c6b264 am: cf55e2be6c
Original change: https://googleplex-android-review.googlesource.com/c/device/google/bluejay/+/16356979

Change-Id: I1fddb569ccdd46c371fb1d021d49dbcff97da392
2021-12-06 01:22:30 +00:00