summaryrefslogtreecommitdiff
path: root/src/class/audio/audio_device.h
diff options
context:
space:
mode:
authorhathach <[email protected]>2022-05-27 23:11:25 +0700
committerhathach <[email protected]>2022-05-27 23:11:25 +0700
commitdce2ad4ffb33fe884429e0c241b1957b3cd6c453 (patch)
tree58b5ae8afe0e18922b18d97ed36a2f67c631ec7c /src/class/audio/audio_device.h
parent15aa593790311d6e279f01ba764a1a96d282a78b (diff)
adding feedback fifo count (WIP)
Diffstat (limited to 'src/class/audio/audio_device.h')
-rw-r--r--src/class/audio/audio_device.h9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/class/audio/audio_device.h b/src/class/audio/audio_device.h
index 09de8e9a8..c44b4cc30 100644
--- a/src/class/audio/audio_device.h
+++ b/src/class/audio/audio_device.h
@@ -504,16 +504,15 @@ enum {
typedef struct {
uint8_t method;
+ uint32_t sample_freq; // sample frequency in Hz
+
union {
struct {
- uint32_t sample_freq; // sample frequency in Hz
- uint32_t mclk_freq; // Main clock frequency in Hz i.e. master clock to which sample clock is based on
+ uint32_t mclk_freq; // Main clock frequency in Hz i.e. master clock to which sample clock is based on
}frequency;
struct {
- uint32_t nominal;
- uint32_t threshold;
- // variation etc ..
+ uint32_t threshold_bytes; // minimum number of bytes received to be considered as filled/ready
}fifo_count;
};
}audio_feedback_params_t;