[Sound-open-firmware] [PATCH] comp: buffer: Align trace buffer output on 2 * 16 bit shorts.

Liam Girdwood liam.r.girdwood at linux.intel.com
Wed Sep 6 00:54:02 CEST 2017


Align on shorts now that rmbox supports 32bit values in trace.

Signed-off-by: Liam Girdwood <liam.r.girdwood at linux.intel.com>
---
 src/include/reef/audio/buffer.h | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/src/include/reef/audio/buffer.h b/src/include/reef/audio/buffer.h
index 9394d29..54978a8 100644
--- a/src/include/reef/audio/buffer.h
+++ b/src/include/reef/audio/buffer.h
@@ -107,7 +107,7 @@ static inline void comp_update_buffer_produce(struct comp_buffer *buffer,
 	buffer->free = buffer->size - buffer->avail;
 
 	tracev_buffer("pro");
-	tracev_value((buffer->avail << 12) | buffer->free);
+	tracev_value((buffer->avail << 16) | buffer->free);
 	tracev_value((buffer->ipc_buffer.comp.id << 16) | buffer->size);
 }
 
@@ -141,7 +141,7 @@ static inline void comp_update_buffer_consume(struct comp_buffer *buffer,
 	buffer->free = buffer->size - buffer->avail;
 
 	tracev_buffer("con");
-	tracev_value((buffer->avail << 12) | buffer->free);
+	tracev_value((buffer->avail << 16) | buffer->free);
 	tracev_value((buffer->ipc_buffer.comp.id << 16) | buffer->size);
 }
 
@@ -154,7 +154,6 @@ static inline uint32_t comp_buffer_get_copy_bytes(struct comp_dev *dev,
 	/* Check that source has enough frames available and sink enough
 	 * frames free.
 	 */
-	/* Run EQ if buffers have enough room */
 	if (source->avail > sink->free)
 		copy_bytes = sink->free;
 	else
-- 
2.11.0



More information about the Sound-open-firmware mailing list