[Sound-open-firmware] [PATCH 1/5] SRC: Remove old coefficient set with bug
This set prevented passtrough conversions to work, e.g. 48 kHz to 48 kHz due to a bug in table. This set is replaced with coefficients with a profile keyword to help selecting suitable set for a platform.
Signed-off-by: Seppo Ingalsuo seppo.ingalsuo@linux.intel.com --- .../coefficients/src/src_int16_1_3_4375_5000.h | 251 ----- .../coefficients/src/src_int16_20_21_4020_5000.h | 1066 -------------------- .../coefficients/src/src_int16_21_20_4020_5000.h | 1056 ------------------- .../coefficients/src/src_int16_3_1_4375_5000.h | 252 ----- .../coefficients/src/src_int16_7_8_4375_5000.h | 657 ------------ .../coefficients/src/src_int16_8_7_4375_5000.h | 662 ------------ .../reef/audio/coefficients/src/src_int16_define.h | 11 - .../reef/audio/coefficients/src/src_int16_table.h | 32 - 8 files changed, 3987 deletions(-) delete mode 100644 src/include/reef/audio/coefficients/src/src_int16_1_3_4375_5000.h delete mode 100644 src/include/reef/audio/coefficients/src/src_int16_20_21_4020_5000.h delete mode 100644 src/include/reef/audio/coefficients/src/src_int16_21_20_4020_5000.h delete mode 100644 src/include/reef/audio/coefficients/src/src_int16_3_1_4375_5000.h delete mode 100644 src/include/reef/audio/coefficients/src/src_int16_7_8_4375_5000.h delete mode 100644 src/include/reef/audio/coefficients/src/src_int16_8_7_4375_5000.h delete mode 100644 src/include/reef/audio/coefficients/src/src_int16_define.h delete mode 100644 src/include/reef/audio/coefficients/src/src_int16_table.h
diff --git a/src/include/reef/audio/coefficients/src/src_int16_1_3_4375_5000.h b/src/include/reef/audio/coefficients/src/src_int16_1_3_4375_5000.h deleted file mode 100644 index 34e177c..0000000 --- a/src/include/reef/audio/coefficients/src/src_int16_1_3_4375_5000.h +++ /dev/null @@ -1,251 +0,0 @@ -const int16_t src_int16_1_3_4375_5000_fir[245] = { - 0, - 0, - -1, - 0, - 1, - 1, - 1, - -1, - -2, - -1, - 1, - 3, - 2, - 0, - -4, - -4, - 0, - 4, - 6, - 2, - -5, - -8, - -4, - 5, - 11, - 7, - -4, - -13, - -12, - 1, - 16, - 17, - 2, - -17, - -23, - -8, - 17, - 30, - 16, - -15, - -37, - -26, - 10, - 42, - 39, - -2, - -46, - -52, - -10, - 47, - 67, - 26, - -44, - -82, - -47, - 36, - 95, - 72, - -21, - -104, - -100, - -1, - 109, - 129, - 31, - -106, - -159, - -69, - 94, - 187, - 115, - -71, - -210, - -167, - 35, - 225, - 225, - 16, - -228, - -284, - -82, - 216, - 342, - 163, - -184, - -395, - -259, - 130, - 437, - 368, - -49, - -463, - -489, - -62, - 467, - 616, - 208, - -439, - -748, - -393, - 372, - 880, - 624, - -252, - -1007, - -914, - 60, - 1125, - 1285, - 240, - -1228, - -1791, - -720, - 1313, - 2565, - 1582, - -1377, - -4078, - -3627, - 1416, - 9650, - 17303, - 20414, - 17303, - 9650, - 1416, - -3627, - -4078, - -1377, - 1582, - 2565, - 1313, - -720, - -1791, - -1228, - 240, - 1285, - 1125, - 60, - -914, - -1007, - -252, - 624, - 880, - 372, - -393, - -748, - -439, - 208, - 616, - 467, - -62, - -489, - -463, - -49, - 368, - 437, - 130, - -259, - -395, - -184, - 163, - 342, - 216, - -82, - -284, - -228, - 16, - 225, - 225, - 35, - -167, - -210, - -71, - 115, - 187, - 94, - -69, - -159, - -106, - 31, - 129, - 109, - -1, - -100, - -104, - -21, - 72, - 95, - 36, - -47, - -82, - -44, - 26, - 67, - 47, - -10, - -52, - -46, - -2, - 39, - 42, - 10, - -26, - -37, - -15, - 16, - 30, - 17, - -8, - -23, - -17, - 2, - 17, - 16, - 1, - -12, - -13, - -4, - 7, - 11, - 5, - -4, - -8, - -5, - 2, - 6, - 4, - 0, - -4, - -4, - 0, - 2, - 3, - 1, - -1, - -2, - -1, - 1, - 1, - 1, - 0, - -1, - 0, - 0 - -}; -struct src_stage src_int16_1_3_4375_5000 = { - 1, 0, 1, 245, 245, 3, 1, 0, 1, - src_int16_1_3_4375_5000_fir}; diff --git a/src/include/reef/audio/coefficients/src/src_int16_20_21_4020_5000.h b/src/include/reef/audio/coefficients/src/src_int16_20_21_4020_5000.h deleted file mode 100644 index 51aade7..0000000 --- a/src/include/reef/audio/coefficients/src/src_int16_20_21_4020_5000.h +++ /dev/null @@ -1,1066 +0,0 @@ -const int16_t src_int16_20_21_4020_5000_fir[1060] = { - 1, - -2, - 2, - 1, - -8, - 19, - -34, - 46, - -47, - 28, - 20, - -96, - 188, - -274, - 316, - -277, - 125, - 150, - -525, - 939, - -1288, - 1439, - -1233, - 472, - 1182, - -4843, - 21640, - 18847, - -5651, - 2095, - -277, - -717, - 1157, - -1205, - 997, - -663, - 311, - -18, - -175, - 261, - -260, - 203, - -125, - 51, - 3, - -31, - 38, - -32, - 21, - -10, - 3, - 0, - -1, - 1, - -2, - 2, - 0, - -6, - 18, - -34, - 49, - -54, - 40, - 3, - -78, - 175, - -273, - 336, - -323, - 197, - 61, - -439, - 882, - -1296, - 1547, - -1470, - 856, - 658, - -4253, - 22894, - 17336, - -5873, - 2472, - -629, - -447, - 989, - -1132, - 999, - -713, - 382, - -88, - -120, - 228, - -247, - 205, - -135, - 64, - -9, - -23, - 34, - -31, - 21, - -11, - 4, - 0, - -1, - 1, - -2, - 3, - -2, - -4, - 16, - -33, - 51, - -61, - 52, - -14, - -58, - 159, - -268, - 351, - -364, - 266, - -30, - -343, - 808, - -1280, - 1629, - -1687, - 1237, - 97, - -3539, - 24033, - 15769, - -5978, - 2790, - -960, - -177, - 807, - -1040, - 983, - -749, - 444, - -155, - -64, - 191, - -229, - 203, - -143, - 76, - -21, - -14, - 29, - -29, - 21, - -12, - 5, - -1, - -1, - 1, - -3, - 4, - -3, - -2, - 14, - -32, - 52, - -66, - 63, - -32, - -37, - 139, - -257, - 359, - -400, - 333, - -123, - -238, - 718, - -1241, - 1683, - -1879, - 1608, - -491, - -2701, - 25047, - 14163, - -5972, - 3046, - -1263, - 89, - 616, - -932, - 950, - -771, - 497, - -217, - -9, - 151, - -208, - 198, - -148, - 86, - -32, - -5, - 23, - -26, - 20, - -12, - 5, - -1, - 0, - 1, - -3, - 4, - -4, - 0, - 11, - -29, - 52, - -70, - 74, - -49, - -14, - 115, - -241, - 361, - -428, - 394, - -215, - -127, - 613, - -1178, - 1708, - -2042, - 1962, - -1097, - -1745, - 25925, - 12534, - -5861, - 3238, - -1534, - 347, - 417, - -810, - 900, - -778, - 540, - -274, - 46, - 109, - -183, - 189, - -151, - 95, - -41, - 3, - 18, - -23, - 19, - -12, - 6, - -2, - 0, - 1, - -3, - 5, - -6, - 2, - 8, - -27, - 51, - -74, - 83, - -66, - 10, - 90, - -221, - 356, - -450, - 450, - -306, - -11, - 494, - -1092, - 1703, - -2173, - 2293, - -1713, - -675, - 26656, - 10897, - -5655, - 3365, - -1770, - 591, - 216, - -676, - 836, - -771, - 573, - -326, - 98, - 67, - -156, - 177, - -150, - 101, - -50, - 11, - 12, - -20, - 18, - -12, - 6, - -2, - 0, - 1, - -3, - 5, - -7, - 4, - 5, - -23, - 49, - -76, - 92, - -82, - 33, - 62, - -196, - 344, - -464, - 498, - -393, - 108, - 364, - -984, - 1666, - -2267, - 2593, - -2327, - 502, - 27233, - 9269, - -5360, - 3428, - -1968, - 819, - 16, - -532, - 757, - -751, - 594, - -370, - 148, - 24, - -127, - 162, - -147, - 106, - -58, - 19, - 6, - -16, - 17, - -12, - 6, - -2, - 0, - 1, - -3, - 6, - -8, - 6, - 2, - -20, - 46, - -76, - 98, - -97, - 57, - 32, - -167, - 326, - -469, - 539, - -475, - 228, - 224, - -856, - 1597, - -2323, - 2856, - -2928, - 1779, - 27649, - 7665, - -4988, - 3428, - -2124, - 1027, - -180, - -383, - 667, - -718, - 604, - -406, - 194, - -18, - -96, - 145, - -142, - 108, - -64, - 26, - 0, - -13, - 15, - -12, - 7, - -3, - 1, - 1, - -3, - 6, - -9, - 9, - -2, - -15, - 42, - -75, - 104, - -111, - 81, - 0, - -134, - 302, - -466, - 570, - -550, - 345, - 76, - -709, - 1498, - -2337, - 3076, - -3506, - 3145, - 27901, - 6101, - -4547, - 3367, - -2238, - 1211, - -368, - -230, - 567, - -672, - 604, - -435, - 235, - -59, - -64, - 125, - -134, - 109, - -70, - 32, - -5, - -9, - 13, - -11, - 7, - -3, - 1, - 1, - -3, - 6, - -10, - 11, - -5, - -10, - 38, - -73, - 107, - -123, - 104, - -32, - -98, - 271, - -455, - 592, - -616, - 459, - -76, - -546, - 1368, - -2309, - 3248, - -4050, - 4589, - 27985, - 4589, - -4050, - 3248, - -2309, - 1368, - -546, - -76, - 459, - -616, - 592, - -455, - 271, - -98, - -32, - 104, - -123, - 107, - -73, - 38, - -10, - -5, - 11, - -10, - 6, - -3, - 1, - 1, - -3, - 7, - -11, - 13, - -9, - -5, - 32, - -70, - 109, - -134, - 125, - -64, - -59, - 235, - -435, - 604, - -672, - 567, - -230, - -368, - 1211, - -2238, - 3367, - -4547, - 6101, - 27901, - 3145, - -3506, - 3076, - -2337, - 1498, - -709, - 76, - 345, - -550, - 570, - -466, - 302, - -134, - 0, - 81, - -111, - 104, - -75, - 42, - -15, - -2, - 9, - -9, - 6, - -3, - 1, - 1, - -3, - 7, - -12, - 15, - -13, - 0, - 26, - -64, - 108, - -142, - 145, - -96, - -18, - 194, - -406, - 604, - -718, - 667, - -383, - -180, - 1027, - -2124, - 3428, - -4988, - 7665, - 27649, - 1779, - -2928, - 2856, - -2323, - 1597, - -856, - 224, - 228, - -475, - 539, - -469, - 326, - -167, - 32, - 57, - -97, - 98, - -76, - 46, - -20, - 2, - 6, - -8, - 6, - -3, - 1, - 0, - -2, - 6, - -12, - 17, - -16, - 6, - 19, - -58, - 106, - -147, - 162, - -127, - 24, - 148, - -370, - 594, - -751, - 757, - -532, - 16, - 819, - -1968, - 3428, - -5360, - 9269, - 27233, - 502, - -2327, - 2593, - -2267, - 1666, - -984, - 364, - 108, - -393, - 498, - -464, - 344, - -196, - 62, - 33, - -82, - 92, - -76, - 49, - -23, - 5, - 4, - -7, - 5, - -3, - 1, - 0, - -2, - 6, - -12, - 18, - -20, - 12, - 11, - -50, - 101, - -150, - 177, - -156, - 67, - 98, - -326, - 573, - -771, - 836, - -676, - 216, - 591, - -1770, - 3365, - -5655, - 10897, - 26656, - -675, - -1713, - 2293, - -2173, - 1703, - -1092, - 494, - -11, - -306, - 450, - -450, - 356, - -221, - 90, - 10, - -66, - 83, - -74, - 51, - -27, - 8, - 2, - -6, - 5, - -3, - 1, - 0, - -2, - 6, - -12, - 19, - -23, - 18, - 3, - -41, - 95, - -151, - 189, - -183, - 109, - 46, - -274, - 540, - -778, - 900, - -810, - 417, - 347, - -1534, - 3238, - -5861, - 12534, - 25925, - -1745, - -1097, - 1962, - -2042, - 1708, - -1178, - 613, - -127, - -215, - 394, - -428, - 361, - -241, - 115, - -14, - -49, - 74, - -70, - 52, - -29, - 11, - 0, - -4, - 4, - -3, - 1, - 0, - -1, - 5, - -12, - 20, - -26, - 23, - -5, - -32, - 86, - -148, - 198, - -208, - 151, - -9, - -217, - 497, - -771, - 950, - -932, - 616, - 89, - -1263, - 3046, - -5972, - 14163, - 25047, - -2701, - -491, - 1608, - -1879, - 1683, - -1241, - 718, - -238, - -123, - 333, - -400, - 359, - -257, - 139, - -37, - -32, - 63, - -66, - 52, - -32, - 14, - -2, - -3, - 4, - -3, - 1, - -1, - -1, - 5, - -12, - 21, - -29, - 29, - -14, - -21, - 76, - -143, - 203, - -229, - 191, - -64, - -155, - 444, - -749, - 983, - -1040, - 807, - -177, - -960, - 2790, - -5978, - 15769, - 24033, - -3539, - 97, - 1237, - -1687, - 1629, - -1280, - 808, - -343, - -30, - 266, - -364, - 351, - -268, - 159, - -58, - -14, - 52, - -61, - 51, - -33, - 16, - -4, - -2, - 3, - -2, - 1, - -1, - 0, - 4, - -11, - 21, - -31, - 34, - -23, - -9, - 64, - -135, - 205, - -247, - 228, - -120, - -88, - 382, - -713, - 999, - -1132, - 989, - -447, - -629, - 2472, - -5873, - 17336, - 22894, - -4253, - 658, - 856, - -1470, - 1547, - -1296, - 882, - -439, - 61, - 197, - -323, - 336, - -273, - 175, - -78, - 3, - 40, - -54, - 49, - -34, - 18, - -6, - 0, - 2, - -2, - 1, - -1, - 0, - 3, - -10, - 21, - -32, - 38, - -31, - 3, - 51, - -125, - 203, - -260, - 261, - -175, - -18, - 311, - -663, - 997, - -1205, - 1157, - -717, - -277, - 2095, - -5651, - 18847, - 21640, - -4843, - 1182, - 472, - -1233, - 1439, - -1288, - 939, - -525, - 150, - 125, - -277, - 316, - -274, - 188, - -96, - 20, - 28, - -47, - 46, - -34, - 19, - -8, - 1, - 2, - -2, - 1, - -1, - 1, - 2, - -9, - 20, - -33, - 43, - -39, - 15, - 36, - -111, - 198, - -269, - 291, - -228, - 53, - 233, - -600, - 977, - -1257, - 1308, - -980, - 93, - 1663, - -5309, - 20286, - 20286, - -5309, - 1663, - 93, - -980, - 1308, - -1257, - 977, - -600, - 233, - 53, - -228, - 291, - -269, - 198, - -111, - 36, - 15, - -39, - 43, - -33, - 20, - -9, - 2, - 1, - -1, - 0 - -}; -struct src_stage src_int16_20_21_4020_5000 = { - 1, 1, 20, 53, 1060, 21, 20, 0, 0, - src_int16_20_21_4020_5000_fir}; diff --git a/src/include/reef/audio/coefficients/src/src_int16_21_20_4020_5000.h b/src/include/reef/audio/coefficients/src/src_int16_21_20_4020_5000.h deleted file mode 100644 index 678ed4f..0000000 --- a/src/include/reef/audio/coefficients/src/src_int16_21_20_4020_5000.h +++ /dev/null @@ -1,1056 +0,0 @@ -const int16_t src_int16_21_20_4020_5000_fir[1050] = { - 1, - -3, - 5, - -9, - 11, - -9, - 0, - 19, - -51, - 96, - -151, - 208, - -253, - 270, - -235, - 130, - 64, - -357, - 750, - -1232, - 1783, - -2376, - 2996, - -3680, - 4818, - 29296, - 1867, - -2442, - 2405, - -2140, - 1762, - -1339, - 921, - -547, - 243, - -19, - -124, - 196, - -213, - 193, - -153, - 107, - -65, - 32, - -10, - -2, - 6, - -6, - 5, - -2, - 1, - -3, - 6, - -9, - 13, - -13, - 6, - 11, - -42, - 87, - -146, - 210, - -267, - 300, - -287, - 204, - -31, - -248, - 640, - -1142, - 1744, - -2434, - 3227, - -4251, - 6405, - 29032, - 527, - -1798, - 2058, - -1969, - 1705, - -1355, - 980, - -626, - 324, - -91, - -66, - 155, - -188, - 181, - -150, - 109, - -70, - 38, - -15, - 2, - 4, - -5, - 4, - -2, - 1, - -3, - 6, - -10, - 14, - -16, - 12, - 3, - -32, - 77, - -138, - 208, - -277, - 326, - -335, - 276, - -128, - -132, - 516, - -1030, - 1672, - -2450, - 3408, - -4773, - 8048, - 28594, - -709, - -1152, - 1686, - -1768, - 1619, - -1346, - 1020, - -691, - 397, - -160, - -9, - 113, - -160, - 166, - -144, - 110, - -73, - 42, - -19, - 5, - 2, - -4, - 3, - -2, - 1, - -3, - 6, - -11, - 16, - -20, - 17, - -5, - -21, - 65, - -127, - 202, - -281, - 347, - -377, - 345, - -224, - -11, - 380, - -895, - 1568, - -2421, - 3532, - -5235, - 9732, - 27989, - -1832, - -515, - 1297, - -1541, - 1506, - -1314, - 1041, - -743, - 462, - -225, - 47, - 69, - -130, - 148, - -136, - 108, - -76, - 46, - -23, - 8, - 0, - -3, - 3, - -2, - 1, - -3, - 6, - -11, - 18, - -23, - 23, - -14, - -9, - 51, - -113, - 193, - -281, - 362, - -414, - 409, - -318, - 113, - 233, - -742, - 1433, - -2346, - 3596, - -5626, - 11441, - 27221, - -2836, - 102, - 898, - -1292, - 1369, - -1259, - 1043, - -780, - 517, - -284, - 102, - 25, - -98, - 128, - -125, - 105, - -76, - 49, - -26, - 11, - -2, - -2, - 2, - -2, - 1, - -2, - 6, - -12, - 19, - -26, - 28, - -23, - 3, - 36, - -97, - 179, - -275, - 370, - -443, - 467, - -409, - 237, - 80, - -571, - 1268, - -2227, - 3596, - -5935, - 13160, - 26300, - -3715, - 690, - 495, - -1027, - 1211, - -1183, - 1026, - -802, - 561, - -337, - 153, - -18, - -66, - 106, - -113, - 99, - -76, - 51, - -29, - 13, - -4, - 0, - 2, - -1, - 0, - -2, - 6, - -12, - 20, - -28, - 34, - -31, - 15, - 20, - -79, - 162, - -264, - 372, - -466, - 517, - -494, - 360, - -79, - -385, - 1075, - -2063, - 3531, - -6153, - 14870, - 25235, - -4465, - 1240, - 97, - -751, - 1035, - -1087, - 991, - -810, - 595, - -383, - 200, - -60, - -32, - 83, - -99, - 93, - -74, - 51, - -31, - 16, - -6, - 1, - 1, - -1, - 0, - -2, - 5, - -12, - 20, - -30, - 38, - -39, - 28, - 3, - -59, - 142, - -248, - 367, - -480, - 559, - -572, - 479, - -240, - -189, - 858, - -1856, - 3397, - -6268, - 16557, - 24038, - -5085, - 1745, - -290, - -469, - 845, - -974, - 939, - -803, - 617, - -421, - 243, - -100, - 0, - 59, - -84, - 84, - -71, - 51, - -32, - 17, - -7, - 2, - 0, - -1, - 0, - -2, - 5, - -11, - 20, - -32, - 42, - -47, - 40, - -14, - -37, - 118, - -227, - 355, - -486, - 592, - -641, - 592, - -400, - 16, - 619, - -1609, - 3196, - -6275, - 18202, - 22722, - -5573, - 2198, - -660, - -186, - 644, - -846, - 872, - -782, - 628, - -450, - 280, - -138, - 32, - 34, - -67, - 75, - -66, - 50, - -33, - 19, - -9, - 3, - 0, - 0, - 0, - -1, - 4, - -11, - 20, - -33, - 46, - -54, - 52, - -32, - -14, - 92, - -201, - 337, - -483, - 615, - -700, - 696, - -556, - 226, - 363, - -1324, - 2927, - -6165, - 19788, - 21300, - -5932, - 2594, - -1006, - 93, - 437, - -706, - 790, - -747, - 627, - -471, - 312, - -172, - 63, - 10, - -50, - 64, - -61, - 48, - -33, - 20, - -10, - 4, - -1, - 0, - 0, - -1, - 4, - -10, - 20, - -33, - 48, - -61, - 64, - -50, - 10, - 63, - -172, - 312, - -471, - 627, - -747, - 790, - -706, - 437, - 93, - -1006, - 2594, - -5932, - 21300, - 19788, - -6165, - 2927, - -1324, - 363, - 226, - -556, - 696, - -700, - 615, - -483, - 337, - -201, - 92, - -14, - -32, - 52, - -54, - 46, - -33, - 20, - -11, - 4, - -1, - 0, - 0, - 0, - 3, - -9, - 19, - -33, - 50, - -66, - 75, - -67, - 34, - 32, - -138, - 280, - -450, - 628, - -782, - 872, - -846, - 644, - -186, - -660, - 2198, - -5573, - 22722, - 18202, - -6275, - 3196, - -1609, - 619, - 16, - -400, - 592, - -641, - 592, - -486, - 355, - -227, - 118, - -37, - -14, - 40, - -47, - 42, - -32, - 20, - -11, - 5, - -2, - 0, - -1, - 0, - 2, - -7, - 17, - -32, - 51, - -71, - 84, - -84, - 59, - 0, - -100, - 243, - -421, - 617, - -803, - 939, - -974, - 845, - -469, - -290, - 1745, - -5085, - 24038, - 16557, - -6268, - 3397, - -1856, - 858, - -189, - -240, - 479, - -572, - 559, - -480, - 367, - -248, - 142, - -59, - 3, - 28, - -39, - 38, - -30, - 20, - -12, - 5, - -2, - 0, - -1, - 1, - 1, - -6, - 16, - -31, - 51, - -74, - 93, - -99, - 83, - -32, - -60, - 200, - -383, - 595, - -810, - 991, - -1087, - 1035, - -751, - 97, - 1240, - -4465, - 25235, - 14870, - -6153, - 3531, - -2063, - 1075, - -385, - -79, - 360, - -494, - 517, - -466, - 372, - -264, - 162, - -79, - 20, - 15, - -31, - 34, - -28, - 20, - -12, - 6, - -2, - 0, - -1, - 2, - 0, - -4, - 13, - -29, - 51, - -76, - 99, - -113, - 106, - -66, - -18, - 153, - -337, - 561, - -802, - 1026, - -1183, - 1211, - -1027, - 495, - 690, - -3715, - 26300, - 13160, - -5935, - 3596, - -2227, - 1268, - -571, - 80, - 237, - -409, - 467, - -443, - 370, - -275, - 179, - -97, - 36, - 3, - -23, - 28, - -26, - 19, - -12, - 6, - -2, - 1, - -2, - 2, - -2, - -2, - 11, - -26, - 49, - -76, - 105, - -125, - 128, - -98, - 25, - 102, - -284, - 517, - -780, - 1043, - -1259, - 1369, - -1292, - 898, - 102, - -2836, - 27221, - 11441, - -5626, - 3596, - -2346, - 1433, - -742, - 233, - 113, - -318, - 409, - -414, - 362, - -281, - 193, - -113, - 51, - -9, - -14, - 23, - -23, - 18, - -11, - 6, - -3, - 1, - -2, - 3, - -3, - 0, - 8, - -23, - 46, - -76, - 108, - -136, - 148, - -130, - 69, - 47, - -225, - 462, - -743, - 1041, - -1314, - 1506, - -1541, - 1297, - -515, - -1832, - 27989, - 9732, - -5235, - 3532, - -2421, - 1568, - -895, - 380, - -11, - -224, - 345, - -377, - 347, - -281, - 202, - -127, - 65, - -21, - -5, - 17, - -20, - 16, - -11, - 6, - -3, - 1, - -2, - 3, - -4, - 2, - 5, - -19, - 42, - -73, - 110, - -144, - 166, - -160, - 113, - -9, - -160, - 397, - -691, - 1020, - -1346, - 1619, - -1768, - 1686, - -1152, - -709, - 28594, - 8048, - -4773, - 3408, - -2450, - 1672, - -1030, - 516, - -132, - -128, - 276, - -335, - 326, - -277, - 208, - -138, - 77, - -32, - 3, - 12, - -16, - 14, - -10, - 6, - -3, - 1, - -2, - 4, - -5, - 4, - 2, - -15, - 38, - -70, - 109, - -150, - 181, - -188, - 155, - -66, - -91, - 324, - -626, - 980, - -1355, - 1705, - -1969, - 2058, - -1798, - 527, - 29032, - 6405, - -4251, - 3227, - -2434, - 1744, - -1142, - 640, - -248, - -31, - 204, - -287, - 300, - -267, - 210, - -146, - 87, - -42, - 11, - 6, - -13, - 13, - -9, - 6, - -3, - 1, - -2, - 5, - -6, - 6, - -2, - -10, - 32, - -65, - 107, - -153, - 193, - -213, - 196, - -124, - -19, - 243, - -547, - 921, - -1339, - 1762, - -2140, - 2405, - -2442, - 1867, - 29296, - 4818, - -3680, - 2996, - -2376, - 1783, - -1232, - 750, - -357, - 64, - 130, - -235, - 270, - -253, - 208, - -151, - 96, - -51, - 19, - 0, - -9, - 11, - -9, - 5, - -3, - 1, - -3, - 5, - -8, - 8, - -5, - -5, - 26, - -58, - 102, - -153, - 202, - -235, - 235, - -181, - 55, - 156, - -457, - 844, - -1298, - 1788, - -2277, - 2720, - -3073, - 3302, - 29385, - 3302, - -3073, - 2720, - -2277, - 1788, - -1298, - 844, - -457, - 156, - 55, - -181, - 235, - -235, - 202, - -153, - 102, - -58, - 26, - -5, - -5, - 8, - -8, - 5, - -3, - 0 - -}; -struct src_stage src_int16_21_20_4020_5000 = { - 19, 20, 21, 50, 1050, 20, 21, 0, 0, - src_int16_21_20_4020_5000_fir}; diff --git a/src/include/reef/audio/coefficients/src/src_int16_3_1_4375_5000.h b/src/include/reef/audio/coefficients/src/src_int16_3_1_4375_5000.h deleted file mode 100644 index a8d5813..0000000 --- a/src/include/reef/audio/coefficients/src/src_int16_3_1_4375_5000.h +++ /dev/null @@ -1,252 +0,0 @@ -const int16_t src_int16_3_1_4375_5000_fir[246] = { - 0, - -1, - 2, - -3, - 4, - -7, - 9, - -11, - 13, - -15, - 14, - -12, - 7, - 2, - -15, - 33, - -55, - 82, - -112, - 143, - -175, - 204, - -226, - 239, - -237, - 218, - -176, - 108, - -11, - -118, - 281, - -478, - 711, - -979, - 1286, - -1636, - 2044, - -2544, - 3231, - -4424, - 8001, - 29412, - -2495, - 372, - 409, - -786, - 974, - -1051, - 1053, - -1004, - 919, - -810, - 688, - -560, - 434, - -316, - 209, - -117, - 41, - 18, - -61, - 90, - -106, - 111, - -107, - 98, - -85, - 70, - -55, - 41, - -28, - 18, - -10, - 4, - 0, - -2, - 3, - -3, - 3, - -2, - 2, - -1, - 0, - 0, - 0, - -1, - 2, - -4, - 7, - -11, - 16, - -22, - 29, - -35, - 41, - -44, - 45, - -40, - 30, - -13, - -12, - 46, - -89, - 140, - -198, - 260, - -323, - 384, - -436, - 473, - -489, - 477, - -428, - 333, - -183, - -36, - 339, - -755, - 1332, - -2180, - 3582, - -6592, - 20737, - 20737, - -6592, - 3582, - -2180, - 1332, - -755, - 339, - -36, - -183, - 333, - -428, - 477, - -489, - 473, - -436, - 384, - -323, - 260, - -198, - 140, - -89, - 46, - -12, - -13, - 30, - -40, - 45, - -44, - 41, - -35, - 29, - -22, - 16, - -11, - 7, - -4, - 2, - -1, - 0, - 0, - 0, - -1, - 2, - -2, - 3, - -3, - 3, - -2, - 0, - 4, - -10, - 18, - -28, - 41, - -55, - 70, - -85, - 98, - -107, - 111, - -106, - 90, - -61, - 18, - 41, - -117, - 209, - -316, - 434, - -560, - 688, - -810, - 919, - -1004, - 1053, - -1051, - 974, - -786, - 409, - 372, - -2495, - 29412, - 8001, - -4424, - 3231, - -2544, - 2044, - -1636, - 1286, - -979, - 711, - -478, - 281, - -118, - -11, - 108, - -176, - 218, - -237, - 239, - -226, - 204, - -175, - 143, - -112, - 82, - -55, - 33, - -15, - 2, - 7, - -12, - 14, - -15, - 13, - -11, - 9, - -7, - 4, - -3, - 2, - -1, - 0 - -}; -struct src_stage src_int16_3_1_4375_5000 = { - 0, 1, 3, 82, 246, 1, 3, 0, 0, - src_int16_3_1_4375_5000_fir}; diff --git a/src/include/reef/audio/coefficients/src/src_int16_7_8_4375_5000.h b/src/include/reef/audio/coefficients/src/src_int16_7_8_4375_5000.h deleted file mode 100644 index 4b0eb73..0000000 --- a/src/include/reef/audio/coefficients/src/src_int16_7_8_4375_5000.h +++ /dev/null @@ -1,657 +0,0 @@ -const int16_t src_int16_7_8_4375_5000_fir[651] = { - 0, - 0, - 0, - -2, - 4, - -5, - 4, - 0, - -7, - 14, - -19, - 16, - -5, - -14, - 36, - -50, - 49, - -25, - -17, - 68, - -108, - 117, - -81, - 0, - 106, - -200, - 242, - -199, - 66, - 130, - -329, - 452, - -431, - 235, - 106, - -502, - 816, - -902, - 656, - -61, - -786, - 1673, - -2295, - 2280, - -1124, - -2459, - 23097, - 16168, - -5503, - 1769, - 321, - -1397, - 1681, - -1391, - 780, - -103, - -434, - 711, - -708, - 489, - -168, - -135, - 332, - -384, - 307, - -151, - -18, - 144, - -198, - 178, - -108, - 20, - 52, - -91, - 91, - -63, - 23, - 13, - -35, - 39, - -30, - 15, - 0, - -10, - 13, - -11, - 6, - -1, - -2, - 3, - -2, - 1, - 0, - -1, - 1, - 0, - -1, - 3, - -5, - 6, - -3, - -3, - 12, - -19, - 22, - -15, - -2, - 26, - -48, - 59, - -48, - 13, - 41, - -96, - 130, - -121, - 61, - 43, - -160, - 247, - -260, - 174, - 4, - -229, - 425, - -508, - 414, - -132, - -282, - 706, - -980, - 952, - -531, - -271, - 1315, - -2341, - 2983, - -2730, - 328, - 25336, - 12012, - -5744, - 2742, - -665, - -691, - 1357, - -1419, - 1047, - -464, - -112, - 517, - -672, - 587, - -340, - 42, - 205, - -337, - 336, - -231, - 78, - 66, - -157, - 179, - -141, - 67, - 9, - -64, - 85, - -74, - 43, - -8, - -20, - 33, - -32, - 21, - -7, - -4, - 10, - -11, - 8, - -3, - 0, - 2, - -2, - 1, - -1, - -1, - 1, - -1, - 0, - 3, - -6, - 7, - -6, - 1, - 8, - -18, - 25, - -24, - 11, - 12, - -40, - 62, - -65, - 42, - 7, - -70, - 125, - -147, - 116, - -28, - -97, - 219, - -288, - 263, - -128, - -95, - 341, - -520, - 544, - -361, - -15, - 496, - -929, - 1132, - -951, - 308, - 756, - -2069, - 3342, - -4177, - 3814, - 26503, - 7795, - -5248, - 3273, - -1492, - 59, - 876, - -1263, - 1168, - -751, - 212, - 263, - -550, - 605, - -462, - 208, - 56, - -247, - 320, - -279, - 160, - -18, - -98, - 157, - -154, - 104, - -34, - -30, - 67, - -74, - 56, - -26, - -4, - 24, - -30, - 25, - -14, - 2, - 6, - -9, - 8, - -5, - 1, - 1, - -2, - 1, - -1, - -1, - 1, - -2, - 1, - 1, - -5, - 8, - -9, - 6, - 2, - -14, - 25, - -30, - 24, - -4, - -26, - 56, - -74, - 67, - -30, - -34, - 104, - -154, - 157, - -98, - -18, - 160, - -279, - 320, - -247, - 56, - 208, - -462, - 605, - -550, - 263, - 212, - -751, - 1168, - -1263, - 876, - 59, - -1492, - 3273, - -5248, - 7795, - 26503, - 3814, - -4177, - 3342, - -2069, - 756, - 308, - -951, - 1132, - -929, - 496, - -15, - -361, - 544, - -520, - 341, - -95, - -128, - 263, - -288, - 219, - -97, - -28, - 116, - -147, - 125, - -70, - 7, - 42, - -65, - 62, - -40, - 12, - 11, - -24, - 25, - -18, - 8, - 1, - -6, - 7, - -6, - 3, - 0, - -1, - 1, - -1, - -1, - 1, - -2, - 2, - 0, - -3, - 8, - -11, - 10, - -4, - -7, - 21, - -32, - 33, - -20, - -8, - 43, - -74, - 85, - -64, - 9, - 67, - -141, - 179, - -157, - 66, - 78, - -231, - 336, - -337, - 205, - 42, - -340, - 587, - -672, - 517, - -112, - -464, - 1047, - -1419, - 1357, - -691, - -665, - 2742, - -5744, - 12012, - 25336, - 328, - -2730, - 2983, - -2341, - 1315, - -271, - -531, - 952, - -980, - 706, - -282, - -132, - 414, - -508, - 425, - -229, - 4, - 174, - -260, - 247, - -160, - 43, - 61, - -121, - 130, - -96, - 41, - 13, - -48, - 59, - -48, - 26, - -2, - -15, - 22, - -19, - 12, - -3, - -3, - 6, - -5, - 3, - -1, - 0, - 1, - -1, - 0, - 1, - -2, - 3, - -2, - -1, - 6, - -11, - 13, - -10, - 0, - 15, - -30, - 39, - -35, - 13, - 23, - -63, - 91, - -91, - 52, - 20, - -108, - 178, - -198, - 144, - -18, - -151, - 307, - -384, - 332, - -135, - -168, - 489, - -708, - 711, - -434, - -103, - 780, - -1391, - 1681, - -1397, - 321, - 1769, - -5503, - 16168, - 23097, - -2459, - -1124, - 2280, - -2295, - 1673, - -786, - -61, - 656, - -902, - 816, - -502, - 106, - 235, - -431, - 452, - -329, - 130, - 66, - -199, - 242, - -200, - 106, - 0, - -81, - 117, - -108, - 68, - -17, - -25, - 49, - -50, - 36, - -14, - -5, - 16, - -19, - 14, - -7, - 0, - 4, - -5, - 4, - -2, - 0, - 0, - 0, - 0, - 1, - -2, - 4, - -3, - 1, - 4, - -10, - 15, - -15, - 9, - 6, - -24, - 40, - -45, - 32, - -1, - -44, - 86, - -106, - 90, - -31, - -59, - 153, - -213, - 206, - -114, - -48, - 236, - -382, - 418, - -300, - 32, - 322, - -650, - 816, - -710, - 288, - 395, - -1173, - 1796, - -1960, - 1348, - 436, - -4418, - 19959, - 19959, - -4418, - 436, - 1348, - -1960, - 1796, - -1173, - 395, - 288, - -710, - 816, - -650, - 322, - 32, - -300, - 418, - -382, - 236, - -48, - -114, - 206, - -213, - 153, - -59, - -31, - 90, - -106, - 86, - -44, - -1, - 32, - -45, - 40, - -24, - 6, - 9, - -15, - 15, - -10, - 4, - 1, - -3, - 4, - -2, - 1, - 0, - 0 - -}; -struct src_stage src_int16_7_8_4375_5000 = { - 1, 1, 7, 93, 651, 8, 7, 0, 0, - src_int16_7_8_4375_5000_fir}; diff --git a/src/include/reef/audio/coefficients/src/src_int16_8_7_4375_5000.h b/src/include/reef/audio/coefficients/src/src_int16_8_7_4375_5000.h deleted file mode 100644 index 1ad7797..0000000 --- a/src/include/reef/audio/coefficients/src/src_int16_8_7_4375_5000.h +++ /dev/null @@ -1,662 +0,0 @@ -const int16_t src_int16_8_7_4375_5000_fir[656] = { - 0, - 0, - 1, - -2, - 4, - -7, - 10, - -13, - 17, - -21, - 23, - -23, - 21, - -14, - 3, - 14, - -37, - 65, - -99, - 136, - -174, - 211, - -242, - 263, - -269, - 256, - -219, - 152, - -53, - -81, - 251, - -458, - 702, - -979, - 1290, - -1635, - 2021, - -2471, - 3050, - -3986, - 6580, - 29785, - -1328, - -372, - 958, - -1207, - 1295, - -1286, - 1212, - -1095, - 951, - -792, - 628, - -469, - 322, - -190, - 79, - 10, - -77, - 123, - -150, - 161, - -159, - 146, - -128, - 105, - -82, - 60, - -40, - 23, - -10, - 1, - 5, - -9, - 10, - -9, - 8, - -6, - 5, - -3, - 2, - -1, - 0, - 0, - 0, - -1, - 3, - -5, - 9, - -13, - 18, - -23, - 28, - -32, - 34, - -33, - 27, - -15, - -3, - 29, - -62, - 102, - -147, - 195, - -243, - 287, - -322, - 342, - -341, - 314, - -253, - 155, - -14, - -175, - 414, - -709, - 1065, - -1493, - 2018, - -2695, - 3672, - -5455, - 11305, - 27819, - -4054, - 1304, - -212, - -361, - 684, - -859, - 934, - -938, - 889, - -804, - 696, - -574, - 449, - -327, - 215, - -117, - 36, - 28, - -74, - 104, - -119, - 123, - -117, - 105, - -89, - 71, - -53, - 37, - -23, - 12, - -4, - -1, - 4, - -6, - 6, - -5, - 4, - -3, - 2, - -1, - -1, - 1, - -1, - 0, - 1, - -3, - 6, - -11, - 16, - -23, - 30, - -38, - 44, - -48, - 49, - -44, - 33, - -13, - -15, - 52, - -99, - 153, - -212, - 274, - -333, - 385, - -422, - 438, - -426, - 378, - -287, - 143, - 60, - -332, - 686, - -1143, - 1741, - -2566, - 3846, - -6377, - 16134, - 24716, - -5794, - 2637, - -1264, - 480, - 17, - -342, - 547, - -665, - 715, - -712, - 670, - -600, - 513, - -417, - 319, - -225, - 140, - -68, - 9, - 35, - -66, - 84, - -92, - 91, - -83, - 72, - -59, - 46, - -33, - 22, - -13, - 6, - -1, - -2, - 3, - -3, - 3, - -2, - 2, - -1, - -1, - 1, - -2, - 2, - -1, - 0, - 3, - -7, - 12, - -19, - 28, - -38, - 48, - -57, - 64, - -68, - 65, - -55, - 36, - -6, - -35, - 88, - -151, - 223, - -300, - 377, - -449, - 509, - -548, - 559, - -531, - 454, - -316, - 106, - 197, - -619, - 1209, - -2077, - 3504, - -6542, - 20718, - 20718, - -6542, - 3504, - -2077, - 1209, - -619, - 197, - 106, - -316, - 454, - -531, - 559, - -548, - 509, - -449, - 377, - -300, - 223, - -151, - 88, - -35, - -6, - 36, - -55, - 65, - -68, - 64, - -57, - 48, - -38, - 28, - -19, - 12, - -7, - 3, - 0, - -1, - 2, - -2, - 1, - -1, - -1, - 2, - -2, - 3, - -3, - 3, - -2, - -1, - 6, - -13, - 22, - -33, - 46, - -59, - 72, - -83, - 91, - -92, - 84, - -66, - 35, - 9, - -68, - 140, - -225, - 319, - -417, - 513, - -600, - 670, - -712, - 715, - -665, - 547, - -342, - 17, - 480, - -1264, - 2637, - -5794, - 24716, - 16134, - -6377, - 3846, - -2566, - 1741, - -1143, - 686, - -332, - 60, - 143, - -287, - 378, - -426, - 438, - -422, - 385, - -333, - 274, - -212, - 153, - -99, - 52, - -15, - -13, - 33, - -44, - 49, - -48, - 44, - -38, - 30, - -23, - 16, - -11, - 6, - -3, - 1, - 0, - -1, - 1, - -1, - -1, - 2, - -3, - 4, - -5, - 6, - -6, - 4, - -1, - -4, - 12, - -23, - 37, - -53, - 71, - -89, - 105, - -117, - 123, - -119, - 104, - -74, - 28, - 36, - -117, - 215, - -327, - 449, - -574, - 696, - -804, - 889, - -938, - 934, - -859, - 684, - -361, - -212, - 1304, - -4054, - 27819, - 11305, - -5455, - 3672, - -2695, - 2018, - -1493, - 1065, - -709, - 414, - -175, - -14, - 155, - -253, - 314, - -341, - 342, - -322, - 287, - -243, - 195, - -147, - 102, - -62, - 29, - -3, - -15, - 27, - -33, - 34, - -32, - 28, - -23, - 18, - -13, - 9, - -5, - 3, - -1, - 0, - 0, - 0, - -1, - 2, - -3, - 5, - -6, - 8, - -9, - 10, - -9, - 5, - 1, - -10, - 23, - -40, - 60, - -82, - 105, - -128, - 146, - -159, - 161, - -150, - 123, - -77, - 10, - 79, - -190, - 322, - -469, - 628, - -792, - 951, - -1095, - 1212, - -1286, - 1295, - -1207, - 958, - -372, - -1328, - 29785, - 6580, - -3986, - 3050, - -2471, - 2021, - -1635, - 1290, - -979, - 702, - -458, - 251, - -81, - -53, - 152, - -219, - 256, - -269, - 263, - -242, - 211, - -174, - 136, - -99, - 65, - -37, - 14, - 3, - -14, - 21, - -23, - 23, - -21, - 17, - -13, - 10, - -7, - 4, - -2, - 1, - 0, - 0, - -1, - 2, - -3, - 5, - -7, - 10, - -12, - 14, - -16, - 15, - -12, - 5, - 5, - -20, - 40, - -64, - 92, - -122, - 151, - -178, - 199, - -209, - 205, - -184, - 140, - -72, - -24, - 147, - -298, - 474, - -673, - 887, - -1112, - 1339, - -1559, - 1765, - -1947, - 2097, - -2210, - 2280, - 30458, - 2280, - -2210, - 2097, - -1947, - 1765, - -1559, - 1339, - -1112, - 887, - -673, - 474, - -298, - 147, - -24, - -72, - 140, - -184, - 205, - -209, - 199, - -178, - 151, - -122, - 92, - -64, - 40, - -20, - 5, - 5, - -12, - 15, - -16, - 14, - -12, - 10, - -7, - 5, - -3, - 2, - -1, - 0 - -}; -struct src_stage src_int16_8_7_4375_5000 = { - 6, 7, 8, 82, 656, 7, 8, 0, 0, - src_int16_8_7_4375_5000_fir}; diff --git a/src/include/reef/audio/coefficients/src/src_int16_define.h b/src/include/reef/audio/coefficients/src/src_int16_define.h deleted file mode 100644 index 65954b0..0000000 --- a/src/include/reef/audio/coefficients/src/src_int16_define.h +++ /dev/null @@ -1,11 +0,0 @@ -/* SRC constants */ -#define MAX_FIR_DELAY_SIZE 450 -#define MAX_OUT_DELAY_SIZE 401 -#define MAX_BLK_IN 21 -#define MAX_BLK_OUT 21 -#define NUM_IN_FS 3 -#define NUM_OUT_FS 3 -#define STAGE1_TIMES_MAX 21 -#define STAGE2_TIMES_MAX 21 -#define STAGE_BUF_SIZE 168 -#define NUM_ALL_COEFFICIENTS 3908 diff --git a/src/include/reef/audio/coefficients/src/src_int16_table.h b/src/include/reef/audio/coefficients/src/src_int16_table.h deleted file mode 100644 index e37dfae..0000000 --- a/src/include/reef/audio/coefficients/src/src_int16_table.h +++ /dev/null @@ -1,32 +0,0 @@ -/* SRC conversions */ -#include <reef/audio/coefficients/src/src_int16_1_3_4375_5000.h> -#include <reef/audio/coefficients/src/src_int16_3_1_4375_5000.h> -#include <reef/audio/coefficients/src/src_int16_7_8_4375_5000.h> -#include <reef/audio/coefficients/src/src_int16_8_7_4375_5000.h> -#include <reef/audio/coefficients/src/src_int16_20_21_4020_5000.h> -#include <reef/audio/coefficients/src/src_int16_21_20_4020_5000.h> - -/* SRC table */ -int16_t fir_one = 16384; -struct src_stage src_int16_1_1_0_0 = { 0, 0, 1, 1, 1, 1, 1, 0, -1, &fir_one }; -struct src_stage src_int16_0_0_0_0 = { 0, 0, 0, 0, 0, 0, 0, 0, 0, &fir_one }; -int src_in_fs[3] = { 16000, 44100, 48000}; -int src_out_fs[3] = { 16000, 44100, 48000}; -struct src_stage *src_table1[3][3] = { - { &src_int16_1_1_0_0, &src_int16_0_0_0_0, - &src_int16_1_3_4375_5000}, - { &src_int16_0_0_0_0, - &src_int16_1_1_0_0, &src_int16_21_20_4020_5000 - }, - { &src_int16_3_1_4375_5000, &src_int16_8_7_4375_5000, - &src_int16_1_1_0_0} -}; -struct src_stage *src_table2[3][3] = { - { &src_int16_1_1_0_0, &src_int16_0_0_0_0, - &src_int16_1_1_0_0}, - { &src_int16_0_0_0_0, - &src_int16_1_1_0_0, &src_int16_7_8_4375_5000 - }, - { &src_int16_1_1_0_0, &src_int16_20_21_4020_5000, - &src_int16_1_1_0_0} -};
This coefficient is suitable for BYT platform RAM. It provides conversions for 8/16/24/32/44.1/48 kHz to/from 48 kHz. Coefficients are 24 bit word length.
Signed-off-by: Seppo Ingalsuo seppo.ingalsuo@linux.intel.com --- .../src/src_small_int24_1_2_4375_5000.h | 156 ++++ .../src/src_small_int24_1_3_2188_5000.h | 58 ++ .../src/src_small_int24_1_3_4375_5000.h | 214 +++++ .../src/src_small_int24_20_21_4020_5000.h | 886 ++++++++++++++++++++ .../src/src_small_int24_21_20_4020_5000.h | 888 +++++++++++++++++++++ .../src/src_small_int24_2_1_4375_5000.h | 158 ++++ .../src/src_small_int24_2_3_4375_5000.h | 216 +++++ .../src/src_small_int24_3_1_2188_5000.h | 60 ++ .../src/src_small_int24_3_1_4375_5000.h | 228 ++++++ .../src/src_small_int24_3_2_4375_5000.h | 228 ++++++ .../src/src_small_int24_7_8_4375_5000.h | 566 +++++++++++++ .../src/src_small_int24_8_7_4375_5000.h | 566 +++++++++++++ .../coefficients/src/src_small_int24_define.h | 11 + .../audio/coefficients/src/src_small_int24_table.h | 72 ++ 14 files changed, 4307 insertions(+) create mode 100644 src/include/reef/audio/coefficients/src/src_small_int24_1_2_4375_5000.h create mode 100644 src/include/reef/audio/coefficients/src/src_small_int24_1_3_2188_5000.h create mode 100644 src/include/reef/audio/coefficients/src/src_small_int24_1_3_4375_5000.h create mode 100644 src/include/reef/audio/coefficients/src/src_small_int24_20_21_4020_5000.h create mode 100644 src/include/reef/audio/coefficients/src/src_small_int24_21_20_4020_5000.h create mode 100644 src/include/reef/audio/coefficients/src/src_small_int24_2_1_4375_5000.h create mode 100644 src/include/reef/audio/coefficients/src/src_small_int24_2_3_4375_5000.h create mode 100644 src/include/reef/audio/coefficients/src/src_small_int24_3_1_2188_5000.h create mode 100644 src/include/reef/audio/coefficients/src/src_small_int24_3_1_4375_5000.h create mode 100644 src/include/reef/audio/coefficients/src/src_small_int24_3_2_4375_5000.h create mode 100644 src/include/reef/audio/coefficients/src/src_small_int24_7_8_4375_5000.h create mode 100644 src/include/reef/audio/coefficients/src/src_small_int24_8_7_4375_5000.h create mode 100644 src/include/reef/audio/coefficients/src/src_small_int24_define.h create mode 100644 src/include/reef/audio/coefficients/src/src_small_int24_table.h
diff --git a/src/include/reef/audio/coefficients/src/src_small_int24_1_2_4375_5000.h b/src/include/reef/audio/coefficients/src/src_small_int24_1_2_4375_5000.h new file mode 100644 index 0000000..98cdb45 --- /dev/null +++ b/src/include/reef/audio/coefficients/src/src_small_int24_1_2_4375_5000.h @@ -0,0 +1,156 @@ +const int32_t src_int24_1_2_4375_5000_fir[150] = { + 272, + 739, + -275, + -1270, + 110, + 1932, + 309, + -2677, + -1067, + 3420, + 2242, + -4038, + -3887, + 4366, + 6016, + -4212, + -8588, + 3358, + 11494, + -1585, + -14545, + -1307, + 17471, + 5477, + -19914, + -11008, + 21448, + 17884, + -21587, + -25961, + 19820, + 34944, + -15641, + -44375, + 8592, + 53624, + 1689, + -61899, + -15421, + 68258, + 32635, + -71642, + -53128, + 70912, + 76433, + -64892, + -101791, + 52424, + 128136, + -32405, + -154093, + 3830, + 177970, + 34202, + -197759, + -82507, + 211105, + 141909, + -215220, + -213434, + 206676, + 298721, + -180918, + -400865, + 131120, + 526324, + -45320, + -689813, + -101885, + 929749, + 379936, + -1376416, + -1079984, + 2864712, + 7156901, + 7156901, + 2864712, + -1079984, + -1376416, + 379936, + 929749, + -101885, + -689813, + -45320, + 526324, + 131120, + -400865, + -180918, + 298721, + 206676, + -213434, + -215220, + 141909, + 211105, + -82507, + -197759, + 34202, + 177970, + 3830, + -154093, + -32405, + 128136, + 52424, + -101791, + -64892, + 76433, + 70912, + -53128, + -71642, + 32635, + 68258, + -15421, + -61899, + 1689, + 53624, + 8592, + -44375, + -15641, + 34944, + 19820, + -25961, + -21587, + 17884, + 21448, + -11008, + -19914, + 5477, + 17471, + -1307, + -14545, + -1585, + 11494, + 3358, + -8588, + -4212, + 6016, + 4366, + -3887, + -4038, + 2242, + 3420, + -1067, + -2677, + 309, + 1932, + 110, + -1270, + -275, + 739, + 272 + +}; +struct src_stage src_int24_1_2_4375_5000 = { + 1, 0, 1, 150, 150, 2, 1, 0, 1, + src_int24_1_2_4375_5000_fir}; diff --git a/src/include/reef/audio/coefficients/src/src_small_int24_1_3_2188_5000.h b/src/include/reef/audio/coefficients/src/src_small_int24_1_3_2188_5000.h new file mode 100644 index 0000000..e1a42d4 --- /dev/null +++ b/src/include/reef/audio/coefficients/src/src_small_int24_1_3_2188_5000.h @@ -0,0 +1,58 @@ +const int32_t src_int24_1_3_2188_5000_fir[52] = { + 903, + -3413, + -12329, + -19345, + -12729, + 15533, + 57662, + 85326, + 61757, + -30250, + -160604, + -248877, + -201466, + 21379, + 347455, + 591839, + 538344, + 78248, + -667021, + -1324952, + -1397110, + -494786, + 1425350, + 3957437, + 6352732, + 7808199, + 7808199, + 6352732, + 3957437, + 1425350, + -494786, + -1397110, + -1324952, + -667021, + 78248, + 538344, + 591839, + 347455, + 21379, + -201466, + -248877, + -160604, + -30250, + 61757, + 85326, + 57662, + 15533, + -12729, + -19345, + -12329, + -3413, + 903 + +}; +struct src_stage src_int24_1_3_2188_5000 = { + 1, 0, 1, 52, 52, 3, 1, 0, 2, + src_int24_1_3_2188_5000_fir}; diff --git a/src/include/reef/audio/coefficients/src/src_small_int24_1_3_4375_5000.h b/src/include/reef/audio/coefficients/src/src_small_int24_1_3_4375_5000.h new file mode 100644 index 0000000..123c9d4 --- /dev/null +++ b/src/include/reef/audio/coefficients/src/src_small_int24_1_3_4375_5000.h @@ -0,0 +1,214 @@ +const int32_t src_int24_1_3_4375_5000_fir[208] = { + 298, + -114, + -601, + -636, + 10, + 888, + 1133, + 273, + -1137, + -1793, + -803, + 1265, + 2588, + 1643, + -1166, + -3458, + -2835, + 716, + 4300, + 4395, + 216, + -4969, + -6290, + -1754, + 5278, + 8431, + 3997, + -5009, + -10664, + -6999, + 3925, + 12762, + 10751, + -1788, + -14429, + -15157, + -1613, + 15308, + 20020, + 6436, + -14995, + -25034, + -12756, + 13063, + 29774, + 20533, + -9099, + -33704, + -29588, + 2730, + 36195, + 39580, + 6325, + -36541, + -49990, + -18225, + 33997, + 60118, + 32960, + -27815, + -69087, + -50322, + 17289, + 75855, + 69877, + -1789, + -79231, + -90946, + -19200, + 77897, + 112595, + 46056, + -70412, + -133629, + -79026, + 55196, + 152582, + 118257, + -30459, + -167691, + -163888, + -5978, + 176807, + 216246, + 57090, + -177174, + -276237, + -127554, + 164890, + 346207, + 225925, + -133465, + -432086, + -370585, + 69540, + 549974, + 609992, + 63418, + -754042, + -1123841, + -425563, + 1364808, + 3537776, + 5018041, + 5018041, + 3537776, + 1364808, + -425563, + -1123841, + -754042, + 63418, + 609992, + 549974, + 69540, + -370585, + -432086, + -133465, + 225925, + 346207, + 164890, + -127554, + -276237, + -177174, + 57090, + 216246, + 176807, + -5978, + -163888, + -167691, + -30459, + 118257, + 152582, + 55196, + -79026, + -133629, + -70412, + 46056, + 112595, + 77897, + -19200, + -90946, + -79231, + -1789, + 69877, + 75855, + 17289, + -50322, + -69087, + -27815, + 32960, + 60118, + 33997, + -18225, + -49990, + -36541, + 6325, + 39580, + 36195, + 2730, + -29588, + -33704, + -9099, + 20533, + 29774, + 13063, + -12756, + -25034, + -14995, + 6436, + 20020, + 15308, + -1613, + -15157, + -14429, + -1788, + 10751, + 12762, + 3925, + -6999, + -10664, + -5009, + 3997, + 8431, + 5278, + -1754, + -6290, + -4969, + 216, + 4395, + 4300, + 716, + -2835, + -3458, + -1166, + 1643, + 2588, + 1265, + -803, + -1793, + -1137, + 273, + 1133, + 888, + 10, + -636, + -601, + -114, + 298 + +}; +struct src_stage src_int24_1_3_4375_5000 = { + 1, 0, 1, 208, 208, 3, 1, 0, 1, + src_int24_1_3_4375_5000_fir}; diff --git a/src/include/reef/audio/coefficients/src/src_small_int24_20_21_4020_5000.h b/src/include/reef/audio/coefficients/src/src_small_int24_20_21_4020_5000.h new file mode 100644 index 0000000..f78f905 --- /dev/null +++ b/src/include/reef/audio/coefficients/src/src_small_int24_20_21_4020_5000.h @@ -0,0 +1,886 @@ +const int32_t src_int24_20_21_4020_5000_fir[880] = { + 1328, + -2976, + 4011, + -2551, + -3276, + 14094, + -28009, + 39967, + -42410, + 27491, + 9458, + -66228, + 131221, + -183521, + 196275, + -143056, + 5666, + 219087, + -516425, + 857443, + -1216401, + 1659969, + 7016333, + 918820, + -976330, + 813808, + -569249, + 310812, + -87278, + -71253, + 154785, + -171190, + 140377, + -86708, + 31969, + 9300, + -31321, + 35753, + -28650, + 17081, + -6568, + -90, + 2656, + -2461, + 1345, + -3176, + 4638, + -3809, + -1421, + 12118, + -26906, + 41107, + -47096, + 36293, + -2579, + -53749, + 122930, + -185048, + 212674, + -176714, + 54106, + 165124, + -474723, + 857625, + -1314390, + 2049988, + 6955119, + 573913, + -839511, + 772115, + -580074, + 347287, + -130252, + -34410, + 130537, + -160735, + 141195, + -94425, + 42078, + 236, + -25142, + 32790, + -28211, + 18061, + -7958, + 1070, + 1956, + -2159, + 1334, + -3326, + 5212, + -5056, + 534, + 9850, + -25282, + 41544, + -51073, + 44680, + -14871, + -40019, + 112269, + -183335, + 225685, + -208027, + 102768, + 106805, + -423326, + 842555, + -1394319, + 2448451, + 6853812, + 249826, + -695080, + 718652, + -580606, + 376850, + -169969, + 2200, + 104569, + -147732, + 139548, + -100324, + 51209, + -8596, + -18697, + 29344, + -27293, + 18691, + -9153, + 2157, + 1259, + -1838, + 1293, + -3422, + 5719, + -6266, + 2559, + 7323, + -23150, + 41250, + -54248, + 52491, + -27205, + -25251, + 99372, + -178338, + 234998, + -236388, + 150801, + 45038, + -362832, + 811901, + -1453835, + 2851745, + 6713478, + -51033, + -545719, + 654725, + -571130, + 399168, + -205822, + 37948, + 77367, + -132460, + 135522, + -104345, + 59226, + -17049, + -12107, + 25491, + -25930, + 18971, + -10139, + 3157, + 578, + -1506, + 1220, + -3458, + 6147, + -7417, + 4618, + 4572, + -20533, + 40208, + -56543, + 59572, + -39362, + -9683, + 84417, + -170070, + 240367, + -261229, + 197343, + -19187, + -294013, + 765575, + -1490760, + 3256131, + 6535589, + -326583, + -394061, + 581765, + -552092, + 414041, + -237284, + 72239, + 49430, + -115236, + 129241, + -106462, + 66017, + -24985, + -5489, + 21309, + -24159, + 18909, + -10907, + 4054, + -75, + -1170, + 1113, + -3428, + 6481, + -8483, + 6675, + 1640, + -17461, + 38414, + -57893, + 65777, + -51120, + 6426, + 67621, + -158606, + 241607, + -282029, + 241539, + -84810, + -217808, + 703748, + -1503128, + 3657785, + 6322009, + -575093, + -242657, + 501302, + -524087, + 421402, + -263916, + 104513, + 21255, + -96402, + 120864, + -106684, + 71495, + -32280, + 1039, + 16883, + -22024, + 18519, + -11452, + 4837, + -691, + -836, + 972, + -3330, + 6712, + -9441, + 8692, + -1425, + -13975, + 35879, + -58246, + 70972, + -62261, + 22803, + 49241, + -144074, + 238601, + -298327, + 282554, + -150717, + -135312, + 626851, + -1489219, + 4052842, + 6074964, + -795190, + -93945, + 414938, + -487841, + 421310, + -285372, + 134257, + -6662, + -76319, + 110584, + -105051, + 75597, + -38822, + 7365, + 12296, + -19576, + 17818, + -11773, + 5497, + -1258, + -511, + 798, + -3160, + 6829, + -10268, + 10630, + -4572, + -10126, + 32626, + -57569, + 75039, + -72570, + 39163, + 29566, + -126663, + 231308, + -309732, + 319589, + -215760, + -47759, + 535580, + -1447585, + 4437445, + 5797018, + -985876, + 49785, + 324321, + -444200, + 413954, + -301402, + 161015, + -33847, + -55364, + 98625, + -101636, + 78285, + -44518, + 13386, + 7635, + -16867, + 16831, + -11873, + 6028, + -1771, + -202, + 591, + -2918, + 6824, + -10943, + 12450, + -7748, + -5972, + 28694, + -55846, + 77875, + -81844, + 55216, + 8915, + -106616, + 219757, + -315928, + 351891, + -278777, + 43488, + 430895, + -1377081, + 4807792, + 5491043, + -1146525, + 186412, + 231112, + -394112, + 399637, + -311856, + 184391, + -59843, + -33920, + 85231, + -96540, + 79547, + -49290, + 19003, + 2983, + -13954, + 15586, + -11761, + 6426, + -2221, + 88, + 354, + -2605, + 6691, + -11446, + 14114, + -10895, + -1579, + 24131, + -53079, + 79398, + -89892, + 70668, + -12368, + -84229, + 204058, + -316683, + 378777, + -338607, + 136962, + 314017, + -1276887, + 5160177, + 5160177, + -1276887, + 314017, + 136962, + -338607, + 378777, + -316683, + 204058, + -84229, + -12368, + 70668, + -89892, + 79398, + -53079, + 24131, + -1579, + -10895, + 14114, + -11446, + 6691, + -2605, + 354, + 88, + -2221, + 6426, + -11761, + 15586, + -13954, + 2983, + 19003, + -49290, + 79547, + -96540, + 85231, + -33920, + -59843, + 184391, + -311856, + 399637, + -394112, + 231112, + 186412, + -1146525, + 5491043, + 4807792, + -1377081, + 430895, + 43488, + -278777, + 351891, + -315928, + 219757, + -106616, + 8915, + 55216, + -81844, + 77875, + -55846, + 28694, + -5972, + -7748, + 12450, + -10943, + 6824, + -2918, + 591, + -202, + -1771, + 6028, + -11873, + 16831, + -16867, + 7635, + 13386, + -44518, + 78285, + -101636, + 98625, + -55364, + -33847, + 161015, + -301402, + 413954, + -444200, + 324321, + 49785, + -985876, + 5797018, + 4437445, + -1447585, + 535580, + -47759, + -215760, + 319589, + -309732, + 231308, + -126663, + 29566, + 39163, + -72570, + 75039, + -57569, + 32626, + -10126, + -4572, + 10630, + -10268, + 6829, + -3160, + 798, + -511, + -1258, + 5497, + -11773, + 17818, + -19576, + 12296, + 7365, + -38822, + 75597, + -105051, + 110584, + -76319, + -6662, + 134257, + -285372, + 421310, + -487841, + 414938, + -93945, + -795190, + 6074964, + 4052842, + -1489219, + 626851, + -135312, + -150717, + 282554, + -298327, + 238601, + -144074, + 49241, + 22803, + -62261, + 70972, + -58246, + 35879, + -13975, + -1425, + 8692, + -9441, + 6712, + -3330, + 972, + -836, + -691, + 4837, + -11452, + 18519, + -22024, + 16883, + 1039, + -32280, + 71495, + -106684, + 120864, + -96402, + 21255, + 104513, + -263916, + 421402, + -524087, + 501302, + -242657, + -575093, + 6322009, + 3657785, + -1503128, + 703748, + -217808, + -84810, + 241539, + -282029, + 241607, + -158606, + 67621, + 6426, + -51120, + 65777, + -57893, + 38414, + -17461, + 1640, + 6675, + -8483, + 6481, + -3428, + 1113, + -1170, + -75, + 4054, + -10907, + 18909, + -24159, + 21309, + -5489, + -24985, + 66017, + -106462, + 129241, + -115236, + 49430, + 72239, + -237284, + 414041, + -552092, + 581765, + -394061, + -326583, + 6535589, + 3256131, + -1490760, + 765575, + -294013, + -19187, + 197343, + -261229, + 240367, + -170070, + 84417, + -9683, + -39362, + 59572, + -56543, + 40208, + -20533, + 4572, + 4618, + -7417, + 6147, + -3458, + 1220, + -1506, + 578, + 3157, + -10139, + 18971, + -25930, + 25491, + -12107, + -17049, + 59226, + -104345, + 135522, + -132460, + 77367, + 37948, + -205822, + 399168, + -571130, + 654725, + -545719, + -51033, + 6713478, + 2851745, + -1453835, + 811901, + -362832, + 45038, + 150801, + -236388, + 234998, + -178338, + 99372, + -25251, + -27205, + 52491, + -54248, + 41250, + -23150, + 7323, + 2559, + -6266, + 5719, + -3422, + 1293, + -1838, + 1259, + 2157, + -9153, + 18691, + -27293, + 29344, + -18697, + -8596, + 51209, + -100324, + 139548, + -147732, + 104569, + 2200, + -169969, + 376850, + -580606, + 718652, + -695080, + 249826, + 6853812, + 2448451, + -1394319, + 842555, + -423326, + 106805, + 102768, + -208027, + 225685, + -183335, + 112269, + -40019, + -14871, + 44680, + -51073, + 41544, + -25282, + 9850, + 534, + -5056, + 5212, + -3326, + 1334, + -2159, + 1956, + 1070, + -7958, + 18061, + -28211, + 32790, + -25142, + 236, + 42078, + -94425, + 141195, + -160735, + 130537, + -34410, + -130252, + 347287, + -580074, + 772115, + -839511, + 573913, + 6955119, + 2049988, + -1314390, + 857625, + -474723, + 165124, + 54106, + -176714, + 212674, + -185048, + 122930, + -53749, + -2579, + 36293, + -47096, + 41107, + -26906, + 12118, + -1421, + -3809, + 4638, + -3176, + 1345, + -2461, + 2656, + -90, + -6568, + 17081, + -28650, + 35753, + -31321, + 9300, + 31969, + -86708, + 140377, + -171190, + 154785, + -71253, + -87278, + 310812, + -569249, + 813808, + -976330, + 918820, + 7016333, + 1659969, + -1216401, + 857443, + -516425, + 219087, + 5666, + -143056, + 196275, + -183521, + 131221, + -66228, + 9458, + 27491, + -42410, + 39967, + -28009, + 14094, + -3276, + -2551, + 4011, + -2976, + 1328, + -2736, + 3346, + -1304, + -5000, + 15754, + -28588, + 38166, + -37115, + 18439, + 21038, + -77267, + 137052, + -178851, + 176844, + -107686, + -41725, + 267883, + -548013, + 842577, + -1102848, + 1281835, + 7036810, + 1281835, + -1102848, + 842577, + -548013, + 267883, + -41725, + -107686, + 176844, + -178851, + 137052, + -77267, + 21038, + 18439, + -37115, + 38166, + -28588, + 15754, + -5000, + -1304, + 3346, + -2736, + 0 + +}; +struct src_stage src_int24_20_21_4020_5000 = { + 1, 1, 20, 44, 880, 21, 20, 0, 0, + src_int24_20_21_4020_5000_fir}; diff --git a/src/include/reef/audio/coefficients/src/src_small_int24_21_20_4020_5000.h b/src/include/reef/audio/coefficients/src/src_small_int24_21_20_4020_5000.h new file mode 100644 index 0000000..fe94599 --- /dev/null +++ b/src/include/reef/audio/coefficients/src/src_small_int24_21_20_4020_5000.h @@ -0,0 +1,888 @@ +const int32_t src_int24_21_20_4020_5000_fir[882] = { + 1420, + -3226, + 4985, + -5405, + 2726, + 4858, + -18513, + 37977, + -60849, + 82213, + -94802, + 89809, + -58295, + -7011, + 109915, + -249437, + 419458, + -609939, + 810940, + -1025262, + 1345954, + 7367084, + 602624, + -729925, + 687660, + -579999, + 442836, + -300000, + 169346, + -62974, + -13023, + 58186, + -76542, + 74934, + -61198, + 42565, + -24551, + 10468, + -1515, + -2729, + 3598, + -2670, + 1465, + -3440, + 5600, + -6698, + 4919, + 1743, + -14816, + 34532, + -59024, + 83816, + -101809, + 103918, + -80356, + 22366, + 75972, + -216360, + 395999, + -609373, + 854722, + -1158114, + 1742997, + 7302811, + 262325, + -573080, + 611036, + -550585, + 442748, + -316859, + 193937, + -88638, + 9388, + 41272, + -65671, + 69452, + -59776, + 43672, + -26814, + 12880, + -3491, + -1395, + 2857, + -2344, + 1482, + -3602, + 6143, + -7927, + 7109, + -1514, + -10735, + 30367, + -56096, + 83970, + -107178, + 116515, + -101498, + 52010, + 39908, + -178668, + 364929, + -597994, + 884930, + -1277350, + 2152519, + 7196442, + -53586, + -413821, + 526529, + -512513, + 435024, + -327856, + 214627, + -112201, + 31135, + 24031, + -53923, + 62904, + -57353, + 43987, + -28538, + 14982, + -5330, + -97, + 2105, + -1997, + 1468, + -3704, + 6600, + -9064, + 9256, + -4857, + -6331, + 25537, + -52088, + 82633, + -110775, + 127341, + -121324, + 81404, + 2313, + -136916, + 326595, + -575679, + 900535, + -1380241, + 2570904, + 7049096, + -342925, + -254827, + 435824, + -466671, + 419985, + -332937, + 231145, + -133302, + 51856, + 6772, + -41522, + 55430, + -53999, + 43527, + -29711, + 16749, + -7002, + 1145, + 1356, + -1638, + 1421, + -3740, + 6957, + -10086, + 11318, + -8229, + -1673, + 20109, + -47043, + 79791, + -112492, + 136162, + -139453, + 110022, + -36185, + -91741, + 281483, + -542489, + 900718, + -1464167, + 2994361, + 6862319, + -603871, + -98657, + 340649, + -414055, + 398070, + -332150, + 243300, + -151629, + 71215, + -10206, + -28699, + 47183, + -49798, + 42324, + -30328, + 18161, + -8486, + 2310, + 623, + -1273, + 1339, + -3706, + 7203, + -10968, + 13254, + -11569, + 3161, + 14163, + -41021, + 75458, + -112253, + 142775, + -155526, + 137340, + -74928, + -43858, + 230206, + -498677, + 884883, + -1526656, + 3418963, + 6638066, + -834986, + 52282, + 242749, + -355746, + 369821, + -325643, + 250978, + -166928, + 88906, + -26614, + -15689, + 38329, + -44846, + 40419, + -30397, + 19206, + -9762, + 3380, + -81, + -910, + 1220, + -3598, + 7326, + -11686, + 15024, + -14817, + 8091, + 7793, + -34106, + 69673, + -110016, + 147011, + -169210, + 162847, + -113238, + 5956, + 173502, + -444681, + 852682, + -1565423, + 3840694, + 6378677, + -1035219, + 195765, + 143861, + -292892, + 335878, + -313659, + 254145, + -178999, + 104660, + -42182, + -2721, + 29035, + -39250, + 37867, + -29934, + 19878, + -10815, + 4342, + -744, + -557, + 1065, + -3414, + 7319, + -12221, + 16589, + -17908, + 13030, + 1099, + -26398, + 62502, + -105772, + 148739, + -180210, + 186050, + -150427, + 56870, + 112222, + -381131, + 804024, + -1578402, + 4255497, + 6086842, + -1203914, + 329775, + 45679, + -226687, + 296961, + -296529, + 252848, + -187706, + 118247, + -56656, + 9979, + 19475, + -33124, + 34731, + -28963, + 20179, + -11636, + 5181, + -1356, + -220, + 873, + -3151, + 7175, + -12556, + 17912, + -20782, + 17888, + -5807, + -18012, + 54039, + -99549, + 147872, + -188270, + 206487, + -185816, + 108016, + 47321, + -308838, + 739085, + -1563789, + 4659324, + 5765577, + -1340807, + 452521, + -50166, + -158352, + 253859, + -274665, + 247207, + -192972, + 129480, + -69813, + 22198, + 9823, + -26592, + 31084, + -27519, + 20115, + -12219, + 5890, + -1909, + 96, + 646, + -2811, + 6889, + -12673, + 18960, + -23379, + 22576, + -12806, + -9081, + 44402, + -91409, + 144365, + -193179, + 223735, + -218736, + 158498, + -20160, + -228788, + 658322, + -1520063, + 5048180, + 5418176, + -1446023, + 562464, + -142132, + -89107, + 207412, + -248552, + 237415, + -194781, + 138218, + -81453, + 33733, + 250, + -19777, + 27004, + -25642, + 19702, + -12564, + 6460, + -2396, + 386, + 386, + -2396, + 6460, + -12564, + 19702, + -25642, + 27004, + -19777, + 250, + 33733, + -81453, + 138218, + -194781, + 237415, + -248552, + 207412, + -89107, + -142132, + 562464, + -1446023, + 5418176, + 5048180, + -1520063, + 658322, + -228788, + -20160, + 158498, + -218736, + 223735, + -193179, + 144365, + -91409, + 44402, + -9081, + -12806, + 22576, + -23379, + 18960, + -12673, + 6889, + -2811, + 646, + 96, + -1909, + 5890, + -12219, + 20115, + -27519, + 31084, + -26592, + 9823, + 22198, + -69813, + 129480, + -192972, + 247207, + -274665, + 253859, + -158352, + -50166, + 452521, + -1340807, + 5765577, + 4659324, + -1563789, + 739085, + -308838, + 47321, + 108016, + -185816, + 206487, + -188270, + 147872, + -99549, + 54039, + -18012, + -5807, + 17888, + -20782, + 17912, + -12556, + 7175, + -3151, + 873, + -220, + -1356, + 5181, + -11636, + 20179, + -28963, + 34731, + -33124, + 19475, + 9979, + -56656, + 118247, + -187706, + 252848, + -296529, + 296961, + -226687, + 45679, + 329775, + -1203914, + 6086842, + 4255497, + -1578402, + 804024, + -381131, + 112222, + 56870, + -150427, + 186050, + -180210, + 148739, + -105772, + 62502, + -26398, + 1099, + 13030, + -17908, + 16589, + -12221, + 7319, + -3414, + 1065, + -557, + -744, + 4342, + -10815, + 19878, + -29934, + 37867, + -39250, + 29035, + -2721, + -42182, + 104660, + -178999, + 254145, + -313659, + 335878, + -292892, + 143861, + 195765, + -1035219, + 6378677, + 3840694, + -1565423, + 852682, + -444681, + 173502, + 5956, + -113238, + 162847, + -169210, + 147011, + -110016, + 69673, + -34106, + 7793, + 8091, + -14817, + 15024, + -11686, + 7326, + -3598, + 1220, + -910, + -81, + 3380, + -9762, + 19206, + -30397, + 40419, + -44846, + 38329, + -15689, + -26614, + 88906, + -166928, + 250978, + -325643, + 369821, + -355746, + 242749, + 52282, + -834986, + 6638066, + 3418963, + -1526656, + 884883, + -498677, + 230206, + -43858, + -74928, + 137340, + -155526, + 142775, + -112253, + 75458, + -41021, + 14163, + 3161, + -11569, + 13254, + -10968, + 7203, + -3706, + 1339, + -1273, + 623, + 2310, + -8486, + 18161, + -30328, + 42324, + -49798, + 47183, + -28699, + -10206, + 71215, + -151629, + 243300, + -332150, + 398070, + -414055, + 340649, + -98657, + -603871, + 6862319, + 2994361, + -1464167, + 900718, + -542489, + 281483, + -91741, + -36185, + 110022, + -139453, + 136162, + -112492, + 79791, + -47043, + 20109, + -1673, + -8229, + 11318, + -10086, + 6957, + -3740, + 1421, + -1638, + 1356, + 1145, + -7002, + 16749, + -29711, + 43527, + -53999, + 55430, + -41522, + 6772, + 51856, + -133302, + 231145, + -332937, + 419985, + -466671, + 435824, + -254827, + -342925, + 7049096, + 2570904, + -1380241, + 900535, + -575679, + 326595, + -136916, + 2313, + 81404, + -121324, + 127341, + -110775, + 82633, + -52088, + 25537, + -6331, + -4857, + 9256, + -9064, + 6600, + -3704, + 1468, + -1997, + 2105, + -97, + -5330, + 14982, + -28538, + 43987, + -57353, + 62904, + -53923, + 24031, + 31135, + -112201, + 214627, + -327856, + 435024, + -512513, + 526529, + -413821, + -53586, + 7196442, + 2152519, + -1277350, + 884930, + -597994, + 364929, + -178668, + 39908, + 52010, + -101498, + 116515, + -107178, + 83970, + -56096, + 30367, + -10735, + -1514, + 7109, + -7927, + 6143, + -3602, + 1482, + -2344, + 2857, + -1395, + -3491, + 12880, + -26814, + 43672, + -59776, + 69452, + -65671, + 41272, + 9388, + -88638, + 193937, + -316859, + 442748, + -550585, + 611036, + -573080, + 262325, + 7302811, + 1742997, + -1158114, + 854722, + -609373, + 395999, + -216360, + 75972, + 22366, + -80356, + 103918, + -101809, + 83816, + -59024, + 34532, + -14816, + 1743, + 4919, + -6698, + 5600, + -3440, + 1465, + -2670, + 3598, + -2729, + -1515, + 10468, + -24551, + 42565, + -61198, + 74934, + -76542, + 58186, + -13023, + -62974, + 169346, + -300000, + 442836, + -579999, + 687660, + -729925, + 602624, + 7367084, + 1345954, + -1025262, + 810940, + -609939, + 419458, + -249437, + 109915, + -7011, + -58295, + 89809, + -94802, + 82213, + -60849, + 37977, + -18513, + 4858, + 2726, + -5405, + 4985, + -3226, + 1420, + -2967, + 4312, + -4074, + 569, + 7781, + -21772, + 40663, + -61568, + 79223, + -86319, + 74467, + -35716, + -35616, + 141200, + -277439, + 435094, + -599992, + 754796, + -881591, + 964783, + 7388584, + 964783, + -881591, + 754796, + -599992, + 435094, + -277439, + 141200, + -35616, + -35716, + 74467, + -86319, + 79223, + -61568, + 40663, + -21772, + 7781, + 569, + -4074, + 4312, + -2967, + 0 + +}; +struct src_stage src_int24_21_20_4020_5000 = { + 19, 20, 21, 42, 882, 20, 21, 0, 0, + src_int24_21_20_4020_5000_fir}; diff --git a/src/include/reef/audio/coefficients/src/src_small_int24_2_1_4375_5000.h b/src/include/reef/audio/coefficients/src/src_small_int24_2_1_4375_5000.h new file mode 100644 index 0000000..976f79a --- /dev/null +++ b/src/include/reef/audio/coefficients/src/src_small_int24_2_1_4375_5000.h @@ -0,0 +1,158 @@ +const int32_t src_int24_2_1_4375_5000_fir[152] = { + -152, + 453, + -971, + 1746, + -2798, + 4113, + -5636, + 7256, + -8809, + 10071, + -10766, + 10577, + -9166, + 6200, + -1379, + -5521, + 14620, + -25890, + 39122, + -53903, + 69594, + -85323, + 99990, + -112278, + 120677, + -123510, + 118951, + -105027, + 79578, + -40127, + -16402, + 94315, + -200521, + 347805, + -563764, + 921170, + -1689717, + 5308105, + 5308105, + -1689717, + 921170, + -563764, + 347805, + -200521, + 94315, + -16402, + -40127, + 79578, + -105027, + 118951, + -123510, + 120677, + -112278, + 99990, + -85323, + 69594, + -53903, + 39122, + -25890, + 14620, + -5521, + -1379, + 6200, + -9166, + 10577, + -10766, + 10071, + -8809, + 7256, + -5636, + 4113, + -2798, + 1746, + -971, + 453, + -152, + 736, + -1077, + 1374, + -1535, + 1443, + -966, + -40, + 1705, + -4138, + 7401, + -11487, + 16303, + -21651, + 27219, + -32571, + 37159, + -40332, + 41364, + -39491, + 33950, + -24035, + 9147, + 11152, + -37086, + 68629, + -105474, + 147018, + -192366, + 240356, + -289595, + 338519, + -385464, + 428745, + -466745, + 497997, + -521266, + 535617, + 7844950, + 535617, + -521266, + 497997, + -466745, + 428745, + -385464, + 338519, + -289595, + 240356, + -192366, + 147018, + -105474, + 68629, + -37086, + 11152, + 9147, + -24035, + 33950, + -39491, + 41364, + -40332, + 37159, + -32571, + 27219, + -21651, + 16303, + -11487, + 7401, + -4138, + 1705, + -40, + -966, + 1443, + -1535, + 1374, + -1077, + 736, + 0 + +}; +struct src_stage src_int24_2_1_4375_5000 = { + 0, 1, 2, 76, 152, 1, 2, 0, 0, + src_int24_2_1_4375_5000_fir}; diff --git a/src/include/reef/audio/coefficients/src/src_small_int24_2_3_4375_5000.h b/src/include/reef/audio/coefficients/src/src_small_int24_2_3_4375_5000.h new file mode 100644 index 0000000..e25b768 --- /dev/null +++ b/src/include/reef/audio/coefficients/src/src_small_int24_2_3_4375_5000.h @@ -0,0 +1,216 @@ +const int32_t src_int24_2_3_4375_5000_fir[210] = { + 408, + -417, + -416, + 1213, + -463, + -1584, + 2243, + 368, + -3722, + 2845, + 2805, + -6536, + 1886, + 7317, + -8964, + -2005, + 13625, + -9114, + -9913, + 20244, + -4545, + -21904, + 24291, + 7029, + -36296, + 21748, + 26738, + -49216, + 8237, + 53476, + -54642, + -19774, + 83054, + -45016, + -63658, + 107809, + -12177, + -121597, + 116550, + 52109, + -188241, + 93905, + 157825, + -255284, + 15227, + 327053, + -312934, + -183800, + 655144, + -351955, + -927821, + 2469344, + 5224341, + 2469344, + -927821, + -351955, + 655144, + -183800, + -312934, + 327053, + 15227, + -255284, + 157825, + 93905, + -188241, + 52109, + 116550, + -121597, + -12177, + 107809, + -63658, + -45016, + 83054, + -19774, + -54642, + 53476, + 8237, + -49216, + 26738, + 21748, + -36296, + 7029, + 24291, + -21904, + -4545, + 20244, + -9913, + -9114, + 13625, + -2005, + -8964, + 7317, + 1886, + -6536, + 2805, + 2845, + -3722, + 368, + 2243, + -1584, + -463, + 1213, + -416, + -417, + 408, + 143, + -761, + 505, + 884, + -1729, + 203, + 2535, + -2658, + -1345, + 5090, + -2646, + -4796, + 7898, + -390, + -10307, + 9470, + 5420, + -17043, + 7576, + 15455, + -22820, + -256, + 28988, + -24121, + -15872, + 43271, + -16620, + -39411, + 53313, + 3805, + -68306, + 52217, + 39763, + -96651, + 32009, + 91124, + -115023, + -15502, + 154294, + -110346, + -98938, + 222312, + -63884, + -231864, + 285899, + 61005, + -456636, + 335269, + 404339, + -1042820, + 362269, + 4428145, + 4428145, + 362269, + -1042820, + 404339, + 335269, + -456636, + 61005, + 285899, + -231864, + -63884, + 222312, + -98938, + -110346, + 154294, + -15502, + -115023, + 91124, + 32009, + -96651, + 39763, + 52217, + -68306, + 3805, + 53313, + -39411, + -16620, + 43271, + -15872, + -24121, + 28988, + -256, + -22820, + 15455, + 7576, + -17043, + 5420, + 9470, + -10307, + -390, + 7898, + -4796, + -2646, + 5090, + -1345, + -2658, + 2535, + 203, + -1729, + 884, + 505, + -761, + 143, + 0 + +}; +struct src_stage src_int24_2_3_4375_5000 = { + 1, 1, 2, 105, 210, 3, 2, 0, 0, + src_int24_2_3_4375_5000_fir}; diff --git a/src/include/reef/audio/coefficients/src/src_small_int24_3_1_2188_5000.h b/src/include/reef/audio/coefficients/src/src_small_int24_3_1_2188_5000.h new file mode 100644 index 0000000..1908676 --- /dev/null +++ b/src/include/reef/audio/coefficients/src/src_small_int24_3_1_2188_5000.h @@ -0,0 +1,60 @@ +const int32_t src_int24_3_1_2188_5000_fir[54] = { + 2110, + -13672, + 14581, + 53269, + -203580, + 274223, + 60270, + -1059295, + 2974915, + 5857322, + 1073747, + -1009014, + 417590, + 17050, + -133402, + 75349, + -12453, + -4218, + 1354, + -19956, + 52352, + -25571, + -162593, + 462815, + -510633, + -373798, + 4768833, + 4768833, + -373798, + -510633, + 462815, + -162593, + -25571, + 52352, + -19956, + 1354, + -4218, + -12453, + 75349, + -133402, + 17050, + 417590, + -1009014, + 1073747, + 5857322, + 2974915, + -1059295, + 60270, + 274223, + -203580, + 53269, + 14581, + -13672, + 2110 + +}; +struct src_stage src_int24_3_1_2188_5000 = { + 0, 1, 3, 18, 54, 1, 3, 0, 0, + src_int24_3_1_2188_5000_fir}; diff --git a/src/include/reef/audio/coefficients/src/src_small_int24_3_1_4375_5000.h b/src/include/reef/audio/coefficients/src/src_small_int24_3_1_4375_5000.h new file mode 100644 index 0000000..c0235a9 --- /dev/null +++ b/src/include/reef/audio/coefficients/src/src_small_int24_3_1_4375_5000.h @@ -0,0 +1,228 @@ +const int32_t src_int24_3_1_4375_5000_fir[222] = { + 591, + -1051, + 1615, + -2227, + 2798, + -3198, + 3265, + -2810, + 1630, + 470, + -3656, + 8038, + -13639, + 20369, + -28003, + 36161, + -44299, + 51715, + -57559, + 60866, + -60588, + 55651, + -45002, + 27675, + -2836, + -30173, + 71810, + -122347, + 181935, + -250745, + 329262, + -418878, + 523177, + -651147, + 827047, + -1132247, + 2047630, + 7527014, + -638609, + 95267, + 104641, + -201301, + 249444, + -269011, + 269622, + -257017, + 235216, + -207350, + 176000, + -143327, + 111125, + -80831, + 53527, + -29957, + 10535, + 4615, + -15624, + 22827, + -26710, + 27852, + -26876, + 24398, + -20989, + 17149, + -13280, + 9688, + -6573, + 4043, + -2128, + 795, + 32, + -455, + 584, + -522, + 255, + -650, + 1292, + -2215, + 3425, + -4889, + 6518, + -8169, + 9631, + -10636, + 10864, + -9964, + 7574, + -3358, + -2957, + 11543, + -22428, + 35457, + -50262, + 66237, + -82523, + 98014, + -111367, + 121021, + -125230, + 122084, + -109515, + 85266, + -46770, + -9131, + 86801, + -193183, + 341070, + -558032, + 916785, + -1686935, + 5307003, + 5307003, + -1686935, + 916785, + -558032, + 341070, + -193183, + 86801, + -9131, + -46770, + 85266, + -109515, + 122084, + -125230, + 121021, + -111367, + 98014, + -82523, + 66237, + -50262, + 35457, + -22428, + 11543, + -2957, + -3358, + 7574, + -9964, + 10864, + -10636, + 9631, + -8169, + 6518, + -4889, + 3425, + -2215, + 1292, + -650, + 255, + -522, + 584, + -455, + 32, + 795, + -2128, + 4043, + -6573, + 9688, + -13280, + 17149, + -20989, + 24398, + -26876, + 27852, + -26710, + 22827, + -15624, + 4615, + 10535, + -29957, + 53527, + -80831, + 111125, + -143327, + 176000, + -207350, + 235216, + -257017, + 269622, + -269011, + 249444, + -201301, + 104641, + 95267, + -638609, + 7527014, + 2047630, + -1132247, + 827047, + -651147, + 523177, + -418878, + 329262, + -250745, + 181935, + -122347, + 71810, + -30173, + -2836, + 27675, + -45002, + 55651, + -60588, + 60866, + -57559, + 51715, + -44299, + 36161, + -28003, + 20369, + -13639, + 8038, + -3656, + 470, + 1630, + -2810, + 3265, + -3198, + 2798, + -2227, + 1615, + -1051, + 591 + +}; +struct src_stage src_int24_3_1_4375_5000 = { + 0, 1, 3, 74, 222, 1, 3, 0, 0, + src_int24_3_1_4375_5000_fir}; diff --git a/src/include/reef/audio/coefficients/src/src_small_int24_3_2_4375_5000.h b/src/include/reef/audio/coefficients/src/src_small_int24_3_2_4375_5000.h new file mode 100644 index 0000000..19cd415 --- /dev/null +++ b/src/include/reef/audio/coefficients/src/src_small_int24_3_2_4375_5000.h @@ -0,0 +1,228 @@ +const int32_t src_int24_3_2_4375_5000_fir[222] = { + 591, + -1051, + 1615, + -2227, + 2798, + -3198, + 3265, + -2810, + 1630, + 470, + -3656, + 8038, + -13639, + 20369, + -28003, + 36161, + -44299, + 51715, + -57559, + 60866, + -60588, + 55651, + -45002, + 27675, + -2836, + -30173, + 71810, + -122347, + 181935, + -250745, + 329262, + -418878, + 523177, + -651147, + 827047, + -1132247, + 2047630, + 7527014, + -638609, + 95267, + 104641, + -201301, + 249444, + -269011, + 269622, + -257017, + 235216, + -207350, + 176000, + -143327, + 111125, + -80831, + 53527, + -29957, + 10535, + 4615, + -15624, + 22827, + -26710, + 27852, + -26876, + 24398, + -20989, + 17149, + -13280, + 9688, + -6573, + 4043, + -2128, + 795, + 32, + -455, + 584, + -522, + 255, + -650, + 1292, + -2215, + 3425, + -4889, + 6518, + -8169, + 9631, + -10636, + 10864, + -9964, + 7574, + -3358, + -2957, + 11543, + -22428, + 35457, + -50262, + 66237, + -82523, + 98014, + -111367, + 121021, + -125230, + 122084, + -109515, + 85266, + -46770, + -9131, + 86801, + -193183, + 341070, + -558032, + 916785, + -1686935, + 5307003, + 5307003, + -1686935, + 916785, + -558032, + 341070, + -193183, + 86801, + -9131, + -46770, + 85266, + -109515, + 122084, + -125230, + 121021, + -111367, + 98014, + -82523, + 66237, + -50262, + 35457, + -22428, + 11543, + -2957, + -3358, + 7574, + -9964, + 10864, + -10636, + 9631, + -8169, + 6518, + -4889, + 3425, + -2215, + 1292, + -650, + 255, + -522, + 584, + -455, + 32, + 795, + -2128, + 4043, + -6573, + 9688, + -13280, + 17149, + -20989, + 24398, + -26876, + 27852, + -26710, + 22827, + -15624, + 4615, + 10535, + -29957, + 53527, + -80831, + 111125, + -143327, + 176000, + -207350, + 235216, + -257017, + 269622, + -269011, + 249444, + -201301, + 104641, + 95267, + -638609, + 7527014, + 2047630, + -1132247, + 827047, + -651147, + 523177, + -418878, + 329262, + -250745, + 181935, + -122347, + 71810, + -30173, + -2836, + 27675, + -45002, + 55651, + -60588, + 60866, + -57559, + 51715, + -44299, + 36161, + -28003, + 20369, + -13639, + 8038, + -3656, + 470, + 1630, + -2810, + 3265, + -3198, + 2798, + -2227, + 1615, + -1051, + 591 + +}; +struct src_stage src_int24_3_2_4375_5000 = { + 1, 2, 3, 74, 222, 2, 3, 0, 0, + src_int24_3_2_4375_5000_fir}; diff --git a/src/include/reef/audio/coefficients/src/src_small_int24_7_8_4375_5000.h b/src/include/reef/audio/coefficients/src/src_small_int24_7_8_4375_5000.h new file mode 100644 index 0000000..494d03d --- /dev/null +++ b/src/include/reef/audio/coefficients/src/src_small_int24_7_8_4375_5000.h @@ -0,0 +1,566 @@ +const int32_t src_int24_7_8_4375_5000_fir[560] = { + 606, + -975, + 936, + -123, + -1546, + 3647, + -5218, + 5045, + -2212, + -3250, + 9949, + -15237, + 16009, + -10015, + -2749, + 19212, + -33552, + 38863, + -29847, + 5610, + 28594, + -61760, + 80043, + -71655, + 32231, + 31390, + -100856, + 150402, + -154814, + 99118, + 13141, + -156237, + 285266, + -345829, + 288021, + -80349, + -282136, + 783210, + -1426925, + 2530852, + 6668899, + 510352, + -891653, + 820506, + -572712, + 269390, + 3727, + -190452, + 267820, + -244759, + 153800, + -38108, + -62204, + 120578, + -128791, + 95534, + -40254, + -15054, + 53196, + -66146, + 55607, + -30343, + 1795, + 20229, + -30372, + 28433, + -18191, + 5157, + 5711, + -11536, + 11937, + -8468, + 3520, + 767, + -3187, + 3610, + -2669, + 1266, + -124, + -432, + 556, + -1103, + 1395, + -954, + -526, + 2880, + -5307, + 6497, + -5111, + 491, + 6686, + -14165, + 18583, + -16640, + 6689, + 9909, + -28348, + 41360, + -41613, + 24856, + 7318, + -46416, + 78578, + -88755, + 66495, + -11380, + -64104, + 135996, + -175028, + 156269, + -69495, + -73206, + 235627, + -362812, + 392555, + -269175, + -47231, + 589593, + -1463969, + 3612015, + 6228663, + -297328, + -494351, + 681549, + -601235, + 387600, + -137429, + -75661, + 206352, + -241017, + 194398, + -99962, + -3004, + 81598, + -117457, + 109143, + -69030, + 16606, + 29073, + -55275, + 58254, + -42481, + 17376, + 6866, + -22781, + 27440, + -22314, + 11692, + -520, + -7439, + 10572, + -9363, + 5623, + -1453, + -1590, + 2889, + -2677, + 1662, + -580, + -111, + 412, + -1087, + 1706, + -1732, + 658, + 1652, + -4668, + 7154, + -7493, + 4389, + 2325, + -11107, + 18762, + -21333, + 15665, + -1156, + -19083, + 38375, + -48245, + 41518, + -15773, + -24234, + 66477, + -94543, + 93073, + -54190, + -17372, + 102754, + -172453, + 194615, + -146138, + 23281, + 151849, + -331533, + 449794, + -434066, + 213968, + 291551, + -1296764, + 4638612, + 5533771, + -907285, + -83279, + 468522, + -551142, + 449265, + -253723, + 43615, + 120826, + -206234, + 208261, + -146568, + 54443, + 33422, + -91282, + 108105, + -87821, + 44971, + 2059, + -37637, + 53243, + -48637, + 30081, + -6835, + -12564, + 22937, + -23359, + 16401, + -6373, + -2597, + 7918, + -8998, + 6870, + -3339, + 98, + 1852, + -2340, + 1807, + -911, + 182, + 182, + -911, + 1807, + -2340, + 1852, + 98, + -3339, + 6870, + -8998, + 7918, + -2597, + -6373, + 16401, + -23359, + 22937, + -12564, + -6835, + 30081, + -48637, + 53243, + -37637, + 2059, + 44971, + -87821, + 108105, + -91282, + 33422, + 54443, + -146568, + 208261, + -206234, + 120826, + 43615, + -253723, + 449265, + -551142, + 468522, + -83279, + -907285, + 5533771, + 4638612, + -1296764, + 291551, + 213968, + -434066, + 449794, + -331533, + 151849, + 23281, + -146138, + 194615, + -172453, + 102754, + -17372, + -54190, + 93073, + -94543, + 66477, + -24234, + -15773, + 41518, + -48245, + 38375, + -19083, + -1156, + 15665, + -21333, + 18762, + -11107, + 2325, + 4389, + -7493, + 7154, + -4668, + 1652, + 658, + -1732, + 1706, + -1087, + 412, + -111, + -580, + 1662, + -2677, + 2889, + -1590, + -1453, + 5623, + -9363, + 10572, + -7439, + -520, + 11692, + -22314, + 27440, + -22781, + 6866, + 17376, + -42481, + 58254, + -55275, + 29073, + 16606, + -69030, + 109143, + -117457, + 81598, + -3004, + -99962, + 194398, + -241017, + 206352, + -75661, + -137429, + 387600, + -601235, + 681549, + -494351, + -297328, + 6228663, + 3612015, + -1463969, + 589593, + -47231, + -269175, + 392555, + -362812, + 235627, + -73206, + -69495, + 156269, + -175028, + 135996, + -64104, + -11380, + 66495, + -88755, + 78578, + -46416, + 7318, + 24856, + -41613, + 41360, + -28348, + 9909, + 6689, + -16640, + 18583, + -14165, + 6686, + 491, + -5111, + 6497, + -5307, + 2880, + -526, + -954, + 1395, + -1103, + 556, + -432, + -124, + 1266, + -2669, + 3610, + -3187, + 767, + 3520, + -8468, + 11937, + -11536, + 5711, + 5157, + -18191, + 28433, + -30372, + 20229, + 1795, + -30343, + 55607, + -66146, + 53196, + -15054, + -40254, + 95534, + -128791, + 120578, + -62204, + -38108, + 153800, + -244759, + 267820, + -190452, + 3727, + 269390, + -572712, + 820506, + -891653, + 510352, + 6668899, + 2530852, + -1426925, + 783210, + -282136, + -80349, + 288021, + -345829, + 285266, + -156237, + 13141, + 99118, + -154814, + 150402, + -100856, + 31390, + 32231, + -71655, + 80043, + -61760, + 28594, + 5610, + -29847, + 38863, + -33552, + 19212, + -2749, + -10015, + 16009, + -15237, + 9949, + -3250, + -2212, + 5045, + -5218, + 3647, + -1546, + -123, + 936, + -975, + 606, + -736, + 404, + 648, + -2285, + 3887, + -4464, + 3036, + 797, + -6359, + 11751, + -14285, + 11492, + -2404, + -11405, + 25622, + -34190, + 31431, + -14676, + -13622, + 45359, + -68524, + 71068, + -45868, + -4998, + 68570, + -123215, + 144781, + -115263, + 31264, + 90858, + -215656, + 295886, + -285085, + 152074, + 107050, + -463521, + 859516, + -1220458, + 1472995, + 6819641, + 1472995, + -1220458, + 859516, + -463521, + 107050, + 152074, + -285085, + 295886, + -215656, + 90858, + 31264, + -115263, + 144781, + -123215, + 68570, + -4998, + -45868, + 71068, + -68524, + 45359, + -13622, + -14676, + 31431, + -34190, + 25622, + -11405, + -2404, + 11492, + -14285, + 11751, + -6359, + 797, + 3036, + -4464, + 3887, + -2285, + 648, + 404, + -736, + 0 + +}; +struct src_stage src_int24_7_8_4375_5000 = { + 1, 1, 7, 80, 560, 8, 7, 0, 0, + src_int24_7_8_4375_5000_fir}; diff --git a/src/include/reef/audio/coefficients/src/src_small_int24_8_7_4375_5000.h b/src/include/reef/audio/coefficients/src/src_small_int24_8_7_4375_5000.h new file mode 100644 index 0000000..725c8f7 --- /dev/null +++ b/src/include/reef/audio/coefficients/src/src_small_int24_8_7_4375_5000.h @@ -0,0 +1,566 @@ +const int32_t src_int24_8_7_4375_5000_fir[560] = { + 693, + -1261, + 1949, + -2675, + 3301, + -3643, + 3470, + -2528, + 561, + 2658, + -7283, + 13362, + -20790, + 29282, + -38345, + 47269, + -55137, + 60850, + -63171, + 60796, + -52421, + 36836, + -13006, + -19854, + 62220, + -114242, + 175771, + -246464, + 326019, + -414643, + 514050, + -629877, + 778913, + -1019031, + 1683423, + 7621599, + -339803, + -95176, + 244535, + -307629, + 329167, + -325812, + 306080, + -275448, + 238013, + -197089, + 155424, + -115264, + 78366, + -46004, + 18979, + 2353, + -18027, + 28407, + -34110, + 35921, + -34711, + 31360, + -26696, + 21443, + -16189, + 11370, + -7267, + 4023, + -1661, + 112, + 752, + -1091, + 1070, + -842, + 635, + -1243, + 2065, + -3059, + 4125, + -5102, + 5766, + -5841, + 5016, + -2968, + -595, + 5894, + -13034, + 21956, + -32397, + 43857, + -55585, + 66576, + -75596, + 81220, + -81892, + 75995, + -61932, + 38197, + -3433, + -43552, + 103838, + -178557, + 269288, + -378895, + 513446, + -687126, + 937721, + -1394809, + 2892403, + 7118472, + -1036897, + 333202, + -53978, + -91827, + 173799, + -217659, + 235831, + -235695, + 222417, + -200032, + 171888, + -140817, + 109182, + -78891, + 51396, + -27696, + 8364, + 6412, + -16773, + 23119, + -26036, + 26214, + -24380, + 21238, + -17414, + 13429, + -9678, + 6426, + -3816, + 1888, + -601, + -141, + 461, + -494, + 471, + -1041, + 1900, + -3050, + 4443, + -5964, + 7425, + -8564, + 9049, + -8502, + 6527, + -2748, + -3141, + 11324, + -21809, + 34378, + -48549, + 63551, + -78313, + 91477, + -101435, + 106369, + -104323, + 93255, + -71091, + 35731, + 15019, + -83665, + 173541, + -289969, + 442972, + -654528, + 982304, + -1630772, + 4128017, + 6324310, + -1482017, + 673821, + -322442, + 122342, + 4260, + -86470, + 138087, + -167015, + 178593, + -176930, + 165464, + -147190, + 124735, + -100367, + 75973, + -53047, + 32679, + -15568, + 2051, + 7847, + -14358, + 17902, + -19018, + 18296, + -16325, + 13643, + -10701, + 7851, + -5335, + 3291, + -1767, + 741, + -142, + -127, + 208, + -663, + 1446, + -2611, + 4168, + -6065, + 8175, + -10283, + 12083, + -13184, + 13133, + -11445, + 7645, + -1322, + -7812, + 19858, + -34678, + 51839, + -70583, + 89803, + -108050, + 123549, + -134236, + 137804, + -131729, + 113277, + -79423, + 26607, + 49846, + -157062, + 307875, + -529739, + 895097, + -1673108, + 5301270, + 5301270, + -1673108, + 895097, + -529739, + 307875, + -157062, + 49846, + 26607, + -79423, + 113277, + -131729, + 137804, + -134236, + 123549, + -108050, + 89803, + -70583, + 51839, + -34678, + 19858, + -7812, + -1322, + 7645, + -11445, + 13133, + -13184, + 12083, + -10283, + 8175, + -6065, + 4168, + -2611, + 1446, + -663, + 208, + -127, + -142, + 741, + -1767, + 3291, + -5335, + 7851, + -10701, + 13643, + -16325, + 18296, + -19018, + 17902, + -14358, + 7847, + 2051, + -15568, + 32679, + -53047, + 75973, + -100367, + 124735, + -147190, + 165464, + -176930, + 178593, + -167015, + 138087, + -86470, + 4260, + 122342, + -322442, + 673821, + -1482017, + 6324310, + 4128017, + -1630772, + 982304, + -654528, + 442972, + -289969, + 173541, + -83665, + 15019, + 35731, + -71091, + 93255, + -104323, + 106369, + -101435, + 91477, + -78313, + 63551, + -48549, + 34378, + -21809, + 11324, + -3141, + -2748, + 6527, + -8502, + 9049, + -8564, + 7425, + -5964, + 4443, + -3050, + 1900, + -1041, + 471, + -494, + 461, + -141, + -601, + 1888, + -3816, + 6426, + -9678, + 13429, + -17414, + 21238, + -24380, + 26214, + -26036, + 23119, + -16773, + 6412, + 8364, + -27696, + 51396, + -78891, + 109182, + -140817, + 171888, + -200032, + 222417, + -235695, + 235831, + -217659, + 173799, + -91827, + -53978, + 333202, + -1036897, + 7118472, + 2892403, + -1394809, + 937721, + -687126, + 513446, + -378895, + 269288, + -178557, + 103838, + -43552, + -3433, + 38197, + -61932, + 75995, + -81892, + 81220, + -75596, + 66576, + -55585, + 43857, + -32397, + 21956, + -13034, + 5894, + -595, + -2968, + 5016, + -5841, + 5766, + -5102, + 4125, + -3059, + 2065, + -1243, + 635, + -842, + 1070, + -1091, + 752, + 112, + -1661, + 4023, + -7267, + 11370, + -16189, + 21443, + -26696, + 31360, + -34711, + 35921, + -34110, + 28407, + -18027, + 2353, + 18979, + -46004, + 78366, + -115264, + 155424, + -197089, + 238013, + -275448, + 306080, + -325812, + 329167, + -307629, + 244535, + -95176, + -339803, + 7621599, + 1683423, + -1019031, + 778913, + -629877, + 514050, + -414643, + 326019, + -246464, + 175771, + -114242, + 62220, + -19854, + -13006, + 36836, + -52421, + 60796, + -63171, + 60850, + -55137, + 47269, + -38345, + 29282, + -20790, + 13362, + -7283, + 2658, + 561, + -2528, + 3470, + -3643, + 3301, + -2675, + 1949, + -1261, + 693, + -1114, + 1594, + -1979, + 2116, + -1818, + 876, + 911, + -3715, + 7641, + -12694, + 18744, + -25501, + 32495, + -39074, + 44415, + -47558, + 47449, + -43013, + 33227, + -17204, + -5712, + 35874, + -73262, + 117433, + -167506, + 222170, + -279724, + 338155, + -395233, + 448634, + -496076, + 535454, + -564973, + 583259, + 7793876, + 583259, + -564973, + 535454, + -496076, + 448634, + -395233, + 338155, + -279724, + 222170, + -167506, + 117433, + -73262, + 35874, + -5712, + -17204, + 33227, + -43013, + 47449, + -47558, + 44415, + -39074, + 32495, + -25501, + 18744, + -12694, + 7641, + -3715, + 911, + 876, + -1818, + 2116, + -1979, + 1594, + -1114, + 0 + +}; +struct src_stage src_int24_8_7_4375_5000 = { + 6, 7, 8, 70, 560, 7, 8, 0, 0, + src_int24_8_7_4375_5000_fir}; diff --git a/src/include/reef/audio/coefficients/src/src_small_int24_define.h b/src/include/reef/audio/coefficients/src/src_small_int24_define.h new file mode 100644 index 0000000..a975359 --- /dev/null +++ b/src/include/reef/audio/coefficients/src/src_small_int24_define.h @@ -0,0 +1,11 @@ +/* SRC constants */ +#define MAX_FIR_DELAY_SIZE 442 +#define MAX_OUT_DELAY_SIZE 401 +#define MAX_BLK_IN 21 +#define MAX_BLK_OUT 21 +#define NUM_IN_FS 6 +#define NUM_OUT_FS 6 +#define STAGE1_TIMES_MAX 21 +#define STAGE2_TIMES_MAX 21 +#define STAGE_BUF_SIZE 168 +#define NUM_ALL_COEFFICIENTS 4152 diff --git a/src/include/reef/audio/coefficients/src/src_small_int24_table.h b/src/include/reef/audio/coefficients/src/src_small_int24_table.h new file mode 100644 index 0000000..5c1c6ba --- /dev/null +++ b/src/include/reef/audio/coefficients/src/src_small_int24_table.h @@ -0,0 +1,72 @@ +/* SRC conversions */ +#include <reef/audio/coefficients/src/src_small_int24_1_2_4375_5000.h> +#include <reef/audio/coefficients/src/src_small_int24_1_3_2188_5000.h> +#include <reef/audio/coefficients/src/src_small_int24_1_3_4375_5000.h> +#include <reef/audio/coefficients/src/src_small_int24_2_1_4375_5000.h> +#include <reef/audio/coefficients/src/src_small_int24_2_3_4375_5000.h> +#include <reef/audio/coefficients/src/src_small_int24_3_1_2188_5000.h> +#include <reef/audio/coefficients/src/src_small_int24_3_1_4375_5000.h> +#include <reef/audio/coefficients/src/src_small_int24_3_2_4375_5000.h> +#include <reef/audio/coefficients/src/src_small_int24_7_8_4375_5000.h> +#include <reef/audio/coefficients/src/src_small_int24_8_7_4375_5000.h> +#include <reef/audio/coefficients/src/src_small_int24_20_21_4020_5000.h> +#include <reef/audio/coefficients/src/src_small_int24_21_20_4020_5000.h> + +/* SRC table */ +int32_t fir_one = 4194304; +struct src_stage src_int24_1_1_0_0 = { 0, 0, 1, 1, 1, 1, 1, 0, -1, &fir_one }; +struct src_stage src_int24_0_0_0_0 = { 0, 0, 0, 0, 0, 0, 0, 0, 0, &fir_one }; +int src_in_fs[6] = { 8000, 16000, 24000, 32000, 44100, 48000}; +int src_out_fs[6] = { 8000, 16000, 24000, 32000, 44100, 48000}; +struct src_stage *src_table1[6][6] = { + { &src_int24_1_1_0_0, &src_int24_0_0_0_0, + &src_int24_0_0_0_0, &src_int24_0_0_0_0, + &src_int24_0_0_0_0, &src_int24_1_3_2188_5000 + }, + { &src_int24_0_0_0_0, &src_int24_1_1_0_0, + &src_int24_0_0_0_0, &src_int24_0_0_0_0, + &src_int24_0_0_0_0, &src_int24_1_3_4375_5000 + }, + { &src_int24_0_0_0_0, &src_int24_0_0_0_0, + &src_int24_1_1_0_0, &src_int24_0_0_0_0, + &src_int24_0_0_0_0, &src_int24_1_2_4375_5000 + }, + { &src_int24_0_0_0_0, &src_int24_0_0_0_0, + &src_int24_0_0_0_0, &src_int24_1_1_0_0, + &src_int24_0_0_0_0, &src_int24_2_3_4375_5000 + }, + { &src_int24_0_0_0_0, &src_int24_0_0_0_0, + &src_int24_0_0_0_0, &src_int24_0_0_0_0, + &src_int24_1_1_0_0, &src_int24_21_20_4020_5000 + }, + { &src_int24_2_1_4375_5000, &src_int24_3_1_4375_5000, + &src_int24_2_1_4375_5000, &src_int24_3_2_4375_5000, + &src_int24_8_7_4375_5000, &src_int24_1_1_0_0 + } +}; +struct src_stage *src_table2[6][6] = { + { &src_int24_1_1_0_0, &src_int24_0_0_0_0, + &src_int24_0_0_0_0, &src_int24_0_0_0_0, + &src_int24_0_0_0_0, &src_int24_1_2_4375_5000 + }, + { &src_int24_0_0_0_0, &src_int24_1_1_0_0, + &src_int24_0_0_0_0, &src_int24_0_0_0_0, + &src_int24_0_0_0_0, &src_int24_1_1_0_0 + }, + { &src_int24_0_0_0_0, &src_int24_0_0_0_0, + &src_int24_1_1_0_0, &src_int24_0_0_0_0, + &src_int24_0_0_0_0, &src_int24_1_1_0_0 + }, + { &src_int24_0_0_0_0, &src_int24_0_0_0_0, + &src_int24_0_0_0_0, &src_int24_1_1_0_0, + &src_int24_0_0_0_0, &src_int24_1_1_0_0 + }, + { &src_int24_0_0_0_0, &src_int24_0_0_0_0, + &src_int24_0_0_0_0, &src_int24_0_0_0_0, + &src_int24_1_1_0_0, &src_int24_7_8_4375_5000 + }, + { &src_int24_3_1_2188_5000, &src_int24_1_1_0_0, + &src_int24_1_1_0_0, &src_int24_1_1_0_0, + &src_int24_20_21_4020_5000, &src_int24_1_1_0_0 + } +};
As temporary fix to allow SRC to run do not drop clock frequency to minimum after BYT platform boot is completed.
Signed-off-by: Seppo Ingalsuo seppo.ingalsuo@linux.intel.com --- src/platform/baytrail/platform.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/src/platform/baytrail/platform.c b/src/platform/baytrail/platform.c index b8c3e49..0979af8 100644 --- a/src/platform/baytrail/platform.c +++ b/src/platform/baytrail/platform.c @@ -94,7 +94,10 @@ int platform_boot_complete(uint32_t boot_message) shim_write(SHIM_IPCDH, SHIM_IPCDH_BUSY);
/* boot now complete so we can relax the CPU */ - clock_set_freq(CLK_CPU, CLK_DEFAULT_CPU_HZ); + /* For now skip this to gain more processing performance + * for SRC component. + */ + /* clock_set_freq(CLK_CPU, CLK_DEFAULT_CPU_HZ); */
return 0; }
This patch adds missing S24_4LE format. Input and output format need to be still the same. The filter coefficient set is configured in src_config.h per platform. BYT uses a small int24 set, other use standard int24 set. SRC wasnot unmuted by pipeline so in this version SRC initialized to unmuted state.
Signed-off-by: Seppo Ingalsuo seppo.ingalsuo@linux.intel.com --- src/audio/src.c | 35 ++++++++++---- src/audio/src_config.h | 47 +++++++++++++++++++ src/audio/src_core.c | 124 ++++++++++++++++++++++++++++++++++++++++++------- src/audio/src_core.h | 12 +---- 4 files changed, 183 insertions(+), 35 deletions(-) create mode 100644 src/audio/src_config.h
diff --git a/src/audio/src.c b/src/audio/src.c index 2ecf025..bc32f95 100644 --- a/src/audio/src.c +++ b/src/audio/src.c @@ -57,10 +57,11 @@ struct comp_data { struct polyphase_src src[PLATFORM_MAX_CHANNELS]; int32_t *delay_lines; - int scratch_length; uint32_t sink_rate; uint32_t source_rate; uint32_t period_bytes; /* sink period */ + int scratch_length; /* Buffer for stage1-stage2 */ + int sign_extend_s24; /* Set if need to copy sign bit to b24..b31 */ void (*src_func)(struct comp_dev *dev, struct comp_buffer *source, struct comp_buffer *sink, @@ -154,12 +155,12 @@ static void src_2s_s32_default(struct comp_dev *dev, s1.x_size = source->size; s1.x_inc = nch; s1.y_end_addr = &cd->delay_lines[cd->scratch_length]; - s1.y_size = STAGE_BUF_SIZE * sizeof(int32_t); + s1.y_size = cd->scratch_length * sizeof(int32_t); s1.y_inc = 1;
s2.times = n_times2; s2.x_end_addr = &cd->delay_lines[cd->scratch_length]; - s2.x_size = STAGE_BUF_SIZE * sizeof(int32_t); + s2.x_size = cd->scratch_length * sizeof(int32_t); s2.x_inc = 1; s2.y_end_addr = sink->end_addr; s2.y_size = sink->size; @@ -180,9 +181,14 @@ static void src_2s_s32_default(struct comp_dev *dev, for (i = 0; i < source_frames - blk_in + 1; i += blk_in) { /* Reset output to buffer start, read interleaved */ s1.y_wptr = cd->delay_lines; - src_polyphase_stage_cir(&s1); s2.x_rptr = cd->delay_lines; - src_polyphase_stage_cir(&s2); + if (cd->sign_extend_s24) { + src_polyphase_stage_cir_s24(&s1); + src_polyphase_stage_cir_s24(&s2); + } else { + src_polyphase_stage_cir(&s1); + src_polyphase_stage_cir(&s2); + }
n_read += blk_in; n_written += blk_out; @@ -198,7 +204,6 @@ static void src_1s_s32_default(struct comp_dev *dev, uint32_t source_frames, uint32_t sink_frames) { int i, j; - //int32_t *xp, *yp; struct polyphase_src *s;
struct comp_data *cd = comp_get_drvdata(dev); @@ -236,7 +241,10 @@ static void src_1s_s32_default(struct comp_dev *dev, s1.stage = s->stage1;
for (i = 0; i + blk_in - 1 < source_frames; i += blk_in) { - src_polyphase_stage_cir(&s1); + if (cd->sign_extend_s24) + src_polyphase_stage_cir_s24(&s1); + else + src_polyphase_stage_cir(&s1);
n_read += blk_in; n_written += blk_out; @@ -317,8 +325,15 @@ static int src_params(struct comp_dev *dev)
trace_src("par");
- /* SRC supports only S32_LE PCM format */ - if (config->frame_fmt != SOF_IPC_FRAME_S32_LE) { + /* SRC supports S24_4LE and S32_LE formats */ + switch (config->frame_fmt) { + case SOF_IPC_FRAME_S24_4LE: + cd->sign_extend_s24 = 1; + break; + case SOF_IPC_FRAME_S32_LE: + cd->sign_extend_s24 = 0; + break; + default: trace_src_error("sr0"); return -EINVAL; } @@ -423,6 +438,8 @@ static int src_params(struct comp_dev *dev) err = buffer_set_size(sink, q * dev->frames * dev->frame_bytes); if (err < 0) { trace_src_error("eSz"); + trace_value(sink->alloc_size); + trace_value(q * dev->frames * dev->frame_bytes); return err; }
diff --git a/src/audio/src_config.h b/src/audio/src_config.h new file mode 100644 index 0000000..f983723 --- /dev/null +++ b/src/audio/src_config.h @@ -0,0 +1,47 @@ +/* + * Copyright (c) 2017, Intel Corporation + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * * Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * * Neither the name of the Intel Corporation nor the + * names of its contributors may be used to endorse or promote products + * derived from this software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" + * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE + * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + * + * Author: Seppo Ingalsuo seppo.ingalsuo@linux.intel.com + * + */ + +#ifndef SRC_CONFIG_H +#define SRC_CONFIG_H + +#include <config.h> + +#if CONFIG_BAYTRAIL +#define SRC_SHORT 0 +#include <reef/audio/coefficients/src/src_small_int24_define.h> +#include <reef/audio/coefficients/src/src_small_int24_table.h> +#else +#define SHORT_SHORT 0 +#include <reef/audio/coefficients/src/src_std_int24_define.h> +#include <reef/audio/coefficients/src/src_std_int24_table.h> +#endif + +#endif diff --git a/src/audio/src_core.c b/src/audio/src_core.c index a9331a0..342e8a7 100644 --- a/src/audio/src_core.c +++ b/src/audio/src_core.c @@ -43,13 +43,7 @@ #include <reef/audio/format.h> #include <reef/math/numbers.h> #include "src_core.h" - -/* Include conversion tables */ -#if SRC_SHORT == 1 -#include <reef/audio/coefficients/src/src_int16_table.h> -#else -#include <reef/audio/coefficients/src/src_int24_table.h> -#endif +#include "src_config.h"
/* TODO: These should be defined somewhere else. */ #define SOF_RATES_LENGTH 15 @@ -256,7 +250,7 @@ static int init_stages( void src_polyphase_reset(struct polyphase_src *src) {
- src->mute = 1; + src->mute = 0; src->number_of_stages = 0; src->blk_in = 0; src->blk_out = 0; @@ -401,15 +395,8 @@ static inline int32_t fir_filter(
void src_polyphase_stage_cir(struct src_stage_prm *s) { - int n; - int m; - int f; - int c; - int r; + int n, m, f, c, r, n_wrap_fir, n_wrap_buf, n_wrap_min; int32_t z; - int n_wrap_fir; - int n_wrap_buf; - int n_wrap_min;
for (n = 0; n < s->times; n++) { /* Input data */ @@ -510,6 +497,111 @@ void src_polyphase_stage_cir(struct src_stage_prm *s) } }
+void src_polyphase_stage_cir_s24(struct src_stage_prm *s) +{ + int n, m, f, c, r, n_wrap_fir, n_wrap_buf, n_wrap_min; + int32_t se, z; + + for (n = 0; n < s->times; n++) { + /* Input data */ + m = s->x_inc * s->stage->blk_in; + while (m > 0) { + n_wrap_fir = + (s->state->fir_delay_size - s->state->fir_wi) + * s->x_inc; + n_wrap_buf = s->x_end_addr - s->x_rptr; + n_wrap_min = (n_wrap_fir < n_wrap_buf) + ? n_wrap_fir : n_wrap_buf; + if (m < n_wrap_min) { + /* No circular wrap need */ + while (m > 0) { + se = *s->x_rptr << 8; + s->state->fir_delay[s->state->fir_wi++] + = se >> 8; + s->x_rptr += s->x_inc; + m -= s->x_inc; + } + } else { + /* Wrap in n_wrap_min/x_inc samples */ + while (n_wrap_min > 0) { + se = *s->x_rptr << 8; + s->state->fir_delay[s->state->fir_wi++] + = se >> 8; + s->x_rptr += s->x_inc; + n_wrap_min -= s->x_inc; + m -= s->x_inc; + } + /* Check both */ + if (s->x_rptr >= s->x_end_addr) + s->x_rptr = (int32_t *) + ((size_t) s->x_rptr - s->x_size); + if (s->state->fir_wi + == s->state->fir_delay_size) + s->state->fir_wi = 0; + } + } + + /* Filter */ + c = 0; + r = s->state->fir_wi - s->stage->blk_in + - (s->stage->num_of_subfilters - 1) * s->stage->idm; + if (r < 0) + r += s->state->fir_delay_size; + + s->state->out_wi = s->state->out_ri; + for (f = 0; f < s->stage->num_of_subfilters; f++) { + s->state->fir_ri = r; + z = fir_filter(s->state, s->stage->coefs, &c, + s->stage->subfilter_length, s->stage->shift); + r += s->stage->idm; + if (r > s->state->fir_delay_size - 1) + r -= s->state->fir_delay_size; + + s->state->out_delay[s->state->out_wi] = z; + s->state->out_wi += s->stage->odm; + if (s->state->out_wi > s->state->out_delay_size - 1) + s->state->out_wi -= s->state->out_delay_size; + } + + /* Output */ + m = s->y_inc * s->stage->num_of_subfilters; + while (m > 0) { + n_wrap_fir = + (s->state->out_delay_size - s->state->out_ri) + * s->y_inc; + n_wrap_buf = s->y_end_addr - s->y_wptr; + n_wrap_min = (n_wrap_fir < n_wrap_buf) + ? n_wrap_fir : n_wrap_buf; + if (m < n_wrap_min) { + /* No circular wrap need */ + while (m > 0) { + *s->y_wptr = s->state->out_delay[ + s->state->out_ri++]; + s->y_wptr += s->y_inc; + m -= s->y_inc; + } + } else { + /* Wrap in n_wrap_min/y_inc samples */ + while (n_wrap_min > 0) { + *s->y_wptr = s->state->out_delay[ + s->state->out_ri++]; + s->y_wptr += s->y_inc; + n_wrap_min -= s->y_inc; + m -= s->y_inc; + } + /* Check both */ + if (s->y_wptr >= s->y_end_addr) + s->y_wptr = + (int32_t *) + ((size_t) s->y_wptr - s->y_size); + + if (s->state->out_ri + == s->state->out_delay_size) + s->state->out_ri = 0; + } + } + } +}
#ifdef MODULE_TEST
diff --git a/src/audio/src_core.h b/src/audio/src_core.h index ae1223a..5977421 100644 --- a/src/audio/src_core.h +++ b/src/audio/src_core.h @@ -32,18 +32,8 @@ #ifndef SRC_CORE_H #define SRC_CORE_H
-/* TODO: This should be made per platform configurable */ -#define SRC_SHORT 1 - #define MAX(a, b) (((a) > (b)) ? (a) : (b))
-/* Include SRC min/max constants etc. */ -#if SRC_SHORT == 1 -#include <reef/audio/coefficients/src/src_int16_define.h> -#else -#include <reef/audio/coefficients/src/src_int24_define.h> -#endif - struct src_alloc { int fir_s1; int fir_s2; @@ -151,6 +141,8 @@ int src_polyphase(struct polyphase_src *src, int32_t x[], int32_t y[],
void src_polyphase_stage_cir(struct src_stage_prm *s);
+void src_polyphase_stage_cir_s24(struct src_stage_prm *s); + int src_buffer_lengths(struct src_alloc *a, int fs_in, int fs_out, int nch, int max_frames, int max_frames_is_for_source);
On Thu, 2017-09-14 at 16:00 +0300, Seppo Ingalsuo wrote:
This set prevented passtrough conversions to work, e.g. 48 kHz to 48 kHz due to a bug in table. This set is replaced with coefficients with a profile keyword to help selecting suitable set for a platform.
Signed-off-by: Seppo Ingalsuo seppo.ingalsuo@linux.intel.com
.../coefficients/src/src_int16_1_3_4375_5000.h | 251 ----- .../coefficients/src/src_int16_20_21_4020_5000.h | 1066
.../coefficients/src/src_int16_21_20_4020_5000.h | 1056
.../coefficients/src/src_int16_3_1_4375_5000.h | 252 ----- .../coefficients/src/src_int16_7_8_4375_5000.h | 657
.../coefficients/src/src_int16_8_7_4375_5000.h | 662
.../reef/audio/coefficients/src/src_int16_define.h | 11 - .../reef/audio/coefficients/src/src_int16_table.h | 32 - 8 files changed, 3987 deletions(-) delete mode 100644 src/include/reef/audio/coefficients/src/src_int16_1_3_4375_5000.h delete mode 100644 src/include/reef/audio/coefficients/src/src_int16_20_21_4020_5000.h delete mode 100644 src/include/reef/audio/coefficients/src/src_int16_21_20_4020_5000.h delete mode 100644 src/include/reef/audio/coefficients/src/src_int16_3_1_4375_5000.h delete mode 100644 src/include/reef/audio/coefficients/src/src_int16_7_8_4375_5000.h delete mode 100644 src/include/reef/audio/coefficients/src/src_int16_8_7_4375_5000.h delete mode 100644 src/include/reef/audio/coefficients/src/src_int16_define.h delete mode 100644 src/include/reef/audio/coefficients/src/src_int16_table.h
All applied.
Thanks
Liam
participants (2)
-
Liam Girdwood
-
Seppo Ingalsuo