commit | 1b55fbec5e55e943c567d120323ec02c7eb46039 | [log] [tgz] |
---|---|---|
author | Andres Oportus <andresoportus@google.com> | Wed Jun 26 18:26:06 2024 +0000 |
committer | CQ Bot <fuchsia-internal-scoped@luci-project-accounts.iam.gserviceaccount.com> | Wed Jun 26 18:26:06 2024 +0000 |
tree | a79719032d197dfd48a0f88cfb6030f375ad09f8 | |
parent | 47f218095846309b22a04256715f262d1bef4553 [diff] |
[audio][aml-g12-tdm] Add support for configurations used by Bluetooth For the VIM3 composite driver we add mono and a custom DAI format. For non-composite drivers we remove the capability of modifying sclk on top of a standard format in favor of custom support as specified in the audio drivers APIs FIDL. We also update the DAI drivers configuration in the board drivers to using the custom format. Bug: 321293746 Test: fx test aml-g12-composite-test Test: fx test aml-g12-tdm-dai-test Test: fx test aml-g12-tdm-test Test: HFP call in Sherlock Test: Loopback test in VIM3's GPIO header with: ffx audio device set dai-format --element-id 2 16000,1ch,0x1,pcm_signed,16in16,custom:"left_justified;raising_sclk;1;1" played and recorded with a hacked version of audio-driver-ctl (fxrev.dev/1067305) for now. This because of an ffx plugin issue (b/42082252), samples are corrupted/dropped with: ffx audio gen sine --frequency 420 --format 16000,int16,1ch --duration 10s | ffx audio device play --element-id 5 ffx audio device record --element-id 8 --format 16000,int16,1ch > ~/tmp/t.wav Change-Id: I7fac63dbfba305ed98199fafb0a7874088b248ca Reviewed-on: https://fuchsia-review.googlesource.com/c/fuchsia/+/1067307 Commit-Queue: Andres Oportus <andresoportus@google.com> Reviewed-by: Braden Kell <bradenkell@google.com>
Fuchsia is an open source, general purpose operating system supporting modern 64-bit Intel and ARM processors.
We expect everyone interacting with our project to respect our code of conduct.
Read more about Fuchsia's principles.
See Getting Started.
See fuchsia.dev.