Commit graph

26 commits

Author SHA1 Message Date
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
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
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
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
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
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
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
Carter Hsu
04d918b2bb Merge "audio: change primary output to float" 2021-12-23 08:02:31 +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
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
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
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
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
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