Add CH0 audio capture and customer runtime diagnostics
Extend the internal driver ABI and public GVFG API for combined CH0 video/audio capture, PCM format discovery, blocking copy-out reads, extra-frame wake events, and coordinated teardown of video and audio readers. Update the Qt sample with optional CH0 audio playback on a dedicated thread, customer-visible copy/zero-copy timing telemetry, mutually exclusive CH0/CH1 Y210 selection, and a refresh-safe temporary hide for the unsupported CH1 panel. Harden Win32 error text conversion, document the new stream and ownership contracts, and package giga_ioctl plus the VC143 runtime in customer Debug/Release bundles. Validation: git diff --check passed before commit. No build, package execution, runtime, audio-device, or capture-hardware test was run.
This commit is contained in:
@@ -14,3 +14,21 @@ When adding a driver operation:
|
||||
for invalid caller output pointers.
|
||||
|
||||
The header is an internal dependency of `gvfg`; it is not a customer SDK API.
|
||||
|
||||
## Current audio ABI
|
||||
|
||||
The implemented audio path is copy-out, not zero-copy:
|
||||
|
||||
- Register `GIGA_IOCTL_EVENT_AUDIO_DMA` and
|
||||
`GIGA_IOCTL_EVENT_EXTRA_AUDIO_FRAME` as wake-up notifications.
|
||||
- Start and stop capture with `giga_ioctl_start_video_audio()` and
|
||||
`giga_ioctl_stop_video_audio()`.
|
||||
- Query the PCM layout and driver frame size with
|
||||
`giga_ioctl_get_audio_info()`.
|
||||
- Read the next available driver frame with `giga_ioctl_get_audio_frame()` and
|
||||
`frame_index == UINT32_MAX`. The returned byte count is the valid copy size.
|
||||
|
||||
The extra-frame events mean that more frames are ready and the consumer should
|
||||
drain promptly. They do not transfer ownership of a frame. Audio zero-copy is a
|
||||
future driver capability and is intentionally not exposed here until its
|
||||
acquire/release ABI is complete.
|
||||
|
||||
Reference in New Issue
Block a user