Commit graph

45 commits

Author SHA1 Message Date
vincenttew
1c8de77d5d 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
(cherry picked from commit 5ed43b8558)
2022-06-17 07:59:56 +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
vincenttew
47f2b58124 audio: Add command to set PCM steam wait time for voice and audio.
This control is from this patch: https://partner-android-review.googlesource.com/c/kernel/private/google-modules/aoc/+/1962616/

Bug: 194454077
Test: Playing a music then removing the USB headset
Signed-off-by: vincenttew <vincenttew@google.com>
Change-Id: I113e6292eaabf10b3960e399a3fdbd672fa49e78
2021-12-03 17:43:44 +08:00
vincenttew
556ecac778 audio: update audio table
Update recording.gatf, templete file for modifying parameters to fit
the change of dynamic range compressor(DRC)(b/200794903), the DRC has
been changed from 1 band to 3 band.

Bug: 208931006
Test: build pass
Signed-off-by: vincenttew <vincenttew@google.com>
Change-Id: Ie65b68eefc50ad537e7a9a3b071a0c2cb68ff50f
2021-12-03 08:33:12 +00:00
Yung Ti Su
abcaad48dc audio: change format of deep-buffer to float
Bug: 201236470
Test: build pass
Signed-off-by: Yung Ti Su <andysu@google.com>
Change-Id: Ib02c410c2b571e6170923f815c48d4ee2a0ad4d6
2021-11-29 16:56:47 +08:00
vincenttew
bbd51b23f5 audio: update voice tuning table am: c4bea84129 am: 4d0f13f909
Original change: https://googleplex-android-review.googlesource.com/c/device/google/bluejay/+/16324241

Change-Id: I6798f00c1008342c96034566007728f34d6465a3
2021-11-23 06:53:51 +00:00
vincenttew
c4bea84129 audio: update voice tuning table
change list:
1. HA
Enable RX FFP for NB, WB and SWB
Refine volume curve on NB, WB, SWB
Modify RX TDDRC
Modify RX Vol gain
Modify BVE
Sync HA RX setting to TMOUS

2. HH:
Enable RX FFP for NB, WB and SWB
Refine volume curve on NB, WB, SWB
Modify RX TDDRC (max to max-2)
Modify RX Vol gain
Sync HH RX setting to HCO

3. HE blackbird:
Enable RX FFP for NB, WB and SWB
Refine volume curve on NB, WB, SWB and FB
Modify RX TDDRC
Modify RX Vol gain

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

Bug: 192810349
Test: voice call, playback, capture
Signed-off-by: vincenttew <vincenttew@google.com>
Change-Id: I785cddd215ee1138b2efd159d6518d1598d8a021
2021-11-23 10:09:27 +08:00
Robin Peng
aed7239a71 [DO NOT MERGE] Move bluejay source code into bluejay device folders
from: f44cabba6aef5b4a4a138d33448734a2f7d511ae

Bug: 206553389
Change-Id: I1bc1f02cf1f8d5e2d93a033737048930d7d3d062
2021-11-22 11:54:30 +08:00
Robin Peng
d84122a508 Move bluejay source code into bluejay device folders
from: f220743932f0dac2bbf2a7e07906c4a2db4fe243

Bug: 206553389
Change-Id: I1bc1f02cf1f8d5e2d93a033737048930d7d3d062
2021-11-22 11:49:00 +08:00