audio_utils: Add support for one more format conversion

Support conversion from packed 24 bit to padded 24 bit (8_24)

Change-Id: Ibc6535f6e2bf7d53900edcb45b0056c02597f727
diff --git a/audio_utils/primitives.c b/audio_utils/primitives.c
index fb4df97..f3a5a50 100644
--- a/audio_utils/primitives.c
+++ b/audio_utils/primitives.c
@@ -173,6 +173,18 @@
     }
 }
 
+void memcpy_to_q8_23_from_p24(int32_t *dst, const uint8_t *src, size_t count)
+{
+    while (count--) {
+#ifdef HAVE_BIG_ENDIAN
+        *dst++ = (int8_t)src[0] << 16 | src[1] << 8 | src[2];
+#else
+        *dst++ = (int8_t)src[2] << 16 | src[1] << 8 | src[0];
+#endif
+        src += 3;
+    }
+}
+
 void memcpy_to_q4_27_from_float(int32_t *dst, const float *src, size_t count)
 {
     while (count--) {