Lines Matching refs:adpcm
57 IMA_OKI_ADPCM adpcm ; in test_oki_adpcm() local
63 ima_oki_adpcm_init (&adpcm, IMA_OKI_ADPCM_TYPE_OKI) ; in test_oki_adpcm()
66 if (adpcm_decode (&adpcm, code >> 4) != test_pcm [2 * i + j]) in test_oki_adpcm()
75 ima_oki_adpcm_init (&adpcm, IMA_OKI_ADPCM_TYPE_OKI) ; in test_oki_adpcm()
77 { code = adpcm_encode (&adpcm, test_pcm [i]) ; in test_oki_adpcm()
78 code = (code << 4) | adpcm_encode (&adpcm, test_pcm [i + 1]) ; in test_oki_adpcm()
91 IMA_OKI_ADPCM adpcm ; in test_oki_adpcm_block() local
94 if (ARRAY_LEN (adpcm.pcm) < ARRAY_LEN (test_pcm)) in test_oki_adpcm_block()
95 …(adpcm->pcm) > ARRAY_LEN (test_pcm) (%d > %d).\n\n", __LINE__, ARRAY_LEN (adpcm.pcm), ARRAY_LEN (t… in test_oki_adpcm_block()
99 if (ARRAY_LEN (adpcm.codes) < ARRAY_LEN (test_codes)) in test_oki_adpcm_block()
106 ima_oki_adpcm_init (&adpcm, IMA_OKI_ADPCM_TYPE_OKI) ; in test_oki_adpcm_block()
108 memcpy (adpcm.pcm, test_pcm, sizeof (adpcm.pcm [0]) * ARRAY_LEN (test_pcm)) ; in test_oki_adpcm_block()
109 adpcm.pcm_count = ARRAY_LEN (test_pcm) ; in test_oki_adpcm_block()
110 adpcm.code_count = 13 ; in test_oki_adpcm_block()
112 ima_oki_adpcm_encode_block (&adpcm) ; in test_oki_adpcm_block()
114 if (adpcm.code_count * 2 != ARRAY_LEN (test_pcm)) in test_oki_adpcm_block()
115 { printf ("\n\nLine %d : %d * 2 != %d\n\n", __LINE__, adpcm.code_count * 2, ARRAY_LEN (test_pcm)) ; in test_oki_adpcm_block()
120 if (adpcm.codes [k] != test_codes [k]) in test_oki_adpcm_block()
121 …{ printf ("\n\nLine %d : Fail at k = %d, %d should be %d\n\n", __LINE__, k, adpcm.codes [k], test_… in test_oki_adpcm_block()
129 ima_oki_adpcm_init (&adpcm, IMA_OKI_ADPCM_TYPE_OKI) ; in test_oki_adpcm_block()
131 memcpy (adpcm.codes, test_codes, sizeof (adpcm.codes [0]) * ARRAY_LEN (test_codes)) ; in test_oki_adpcm_block()
132 adpcm.code_count = ARRAY_LEN (test_codes) ; in test_oki_adpcm_block()
133 adpcm.pcm_count = 13 ; in test_oki_adpcm_block()
135 ima_oki_adpcm_decode_block (&adpcm) ; in test_oki_adpcm_block()
137 if (adpcm.pcm_count != 2 * ARRAY_LEN (test_codes)) in test_oki_adpcm_block()
138 …{ printf ("\n\nLine %d : %d * 2 != %d\n\n", __LINE__, adpcm.pcm_count, 2 * ARRAY_LEN (test_codes))… in test_oki_adpcm_block()
143 if (adpcm.pcm [k] != test_pcm [k]) in test_oki_adpcm_block()
144 …{ printf ("\n\nLine %d : Fail at i = %d, %d should be %d.\n\n", __LINE__, k, adpcm.pcm [k], test_p… in test_oki_adpcm_block()