Skip to content

Commit 0651a5f

Browse files
committed
ASoC: SOF: Add min_fragment_size member to struct sof_compr_stream
The minimum fragment size for a compressed stream cannot be static since we can have different sized host DMA buffer, which means that the DMA can burst in higher steps than the decoder/encoder's processing block size. The new member in sof_compr_stream can be used to store this limit at runtime and be used to configure and validate the buffer setup. Signed-off-by: Peter Ujfalusi <peter.ujfalusi@linux.intel.com>
1 parent aa5dc47 commit 0651a5f

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

sound/soc/sof/sof-priv.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@ struct sof_compr_stream {
115115
u32 sampling_rate;
116116
u16 channels;
117117
u16 sample_container_bytes;
118+
u32 min_fragment_size;
118119
size_t posn_offset;
119120
};
120121

0 commit comments

Comments
 (0)