Antoine Sidem 6e7de5a554 Fix wrong latency assignment in audio.c (#25)
* aaudio: fix wrong latency assignment

Due to (likely) copy-pasted code between input and output stream initialisation, the input stream latency was assigned to the output stream structure.

Input and output latency values are actually different, for example on my machine:
```
Latencies for device Digital Mic: in=40 out=42
Latencies for device Codec Output: in=6 out=41
Latencies for device Speaker: in=8 out=19
Latencies for device Bridge Loopback: in=13 out=30
Latencies for device Codec Input: in=47 out=0
```

This may or may not also fix the following, previously common error message: (e.g.)  `aaudio aaudio: invalid position: , pos = 53211761056, buffer size = 16640, period size = 1`. At least, it hasn't appeared since I applied this change. 

Also corrects typos in macro names and an error message.

* aaudio: apply typo corrections of 8d8e0f7 to audio.h
2026-02-26 01:47:32 -06:00
2024-07-10 11:36:57 -05:00
2025-06-19 12:19:02 -05:00
2025-05-08 06:28:43 -05:00
2019-08-04 12:24:30 +02:00
2019-07-13 19:51:36 +02:00
2025-10-25 13:36:49 +05:30
2019-08-28 22:07:36 +02:00

MacBook Bridge/T2 Linux Driver

A driver for MacBook models 2018 and newer, implementing the VHCI (required for mouse/keyboard/etc.) and audio functionality.

The project is divided into 3 main components:

  • BCE (Buffer Copy Engine) - this is what the files in the root directory are for. This estabilishes a basic communication channel with the T2. VHCI and Audio both require this component.
  • VHCI - this is a virtual USB host controller; keyboard, mouse and other system components are provided by this component (other drivers use this host controller to provide more functionality, however USB drivers are not in this project's scope).
  • Audio - a driver for the T2 audio interface, currently only audio output is supported.

Please note that the master branch does not currently support system suspend and resume.

If you want to support me, you can do so by donating to me on PayPal: https://paypal.me/mcmrarm

S
Description
No description provided
Readme 388 KiB
Languages
C 99.7%
Makefile 0.3%