[alsa-devel] [alsa-lib][PATCH 4/4] pcm: fix wrong comments for some cases of linear interpolation of PCM samples

Takashi Sakamoto o-takashi at sakamocchi.jp
Wed Dec 20 18:17:03 CET 2017


A commit 16b3bf447c28 ('Enhanced bitmasks in PCM - added support for more
formats by Takashi and me') adds support for some cases of linear
interpolation of PCM samples, however some of added comments are not
proper. This commit fixes them.
---
 src/pcm/plugin_ops.h | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

diff --git a/src/pcm/plugin_ops.h b/src/pcm/plugin_ops.h
index 63e3c827..6392073c 100644
--- a/src/pcm/plugin_ops.h
+++ b/src/pcm/plugin_ops.h
@@ -593,14 +593,14 @@ static void *const put32_labels[5 * 2 * 2 + 4 * 3] = {
 	&&put32_1234_923,	 /* 32h ^> 24h */
 	&&put32_1234_321,	 /* 32h -> 24s */
 	&&put32_1234_329,	 /* 32h ^> 24s */
-	&&put32_1234_123_20,	 /* 32h -> 24h */
-	&&put32_1234_923_20,	 /* 32h ^> 24h */
-	&&put32_1234_321_20,	 /* 32h -> 24s */
-	&&put32_1234_329_20,	 /* 32h ^> 24s */
-	&&put32_1234_123_18,	 /* 32h -> 24h */
-	&&put32_1234_923_18,	 /* 32h ^> 24h */
-	&&put32_1234_321_18,	 /* 32h -> 24s */
-	&&put32_1234_329_18,	 /* 32h ^> 24s */
+	&&put32_1234_123_20,	 /* 32h -> 20h */
+	&&put32_1234_923_20,	 /* 32h ^> 20h */
+	&&put32_1234_321_20,	 /* 32h -> 20s */
+	&&put32_1234_329_20,	 /* 32h ^> 20s */
+	&&put32_1234_123_18,	 /* 32h -> 18h */
+	&&put32_1234_923_18,	 /* 32h ^> 18h */
+	&&put32_1234_321_18,	 /* 32h -> 18s */
+	&&put32_1234_329_18,	 /* 32h ^> 18s */
 };
 #endif
 
-- 
2.14.1



More information about the Alsa-devel mailing list