1*1a59d1b8SThomas Gleixner /* SPDX-License-Identifier: GPL-2.0-or-later */ 21da177e4SLinus Torvalds /* 3c1017a4cSJaroslav Kysela * Copyright (c) by Jaroslav Kysela <perex@perex.cz> 41da177e4SLinus Torvalds */ 51da177e4SLinus Torvalds 61da177e4SLinus Torvalds #define SNDRV_GF1_SCALE_TABLE_SIZE 128 71da177e4SLinus Torvalds #define SNDRV_GF1_ATTEN_TABLE_SIZE 128 81da177e4SLinus Torvalds 91da177e4SLinus Torvalds #ifdef __GUS_TABLES_ALLOC__ 101da177e4SLinus Torvalds 11209ac85dSAdrian Bunk #if 0 12209ac85dSAdrian Bunk 131da177e4SLinus Torvalds unsigned int snd_gf1_scale_table[SNDRV_GF1_SCALE_TABLE_SIZE] = 141da177e4SLinus Torvalds { 151da177e4SLinus Torvalds 8372, 8870, 9397, 9956, 10548, 11175, 161da177e4SLinus Torvalds 11840, 12544, 13290, 14080, 14917, 15804, 171da177e4SLinus Torvalds 16744, 17740, 18795, 19912, 21096, 22351, 181da177e4SLinus Torvalds 23680, 25088, 26580, 28160, 29834, 31609, 191da177e4SLinus Torvalds 33488, 35479, 37589, 39824, 42192, 44701, 201da177e4SLinus Torvalds 47359, 50175, 53159, 56320, 59669, 63217, 211da177e4SLinus Torvalds 66976, 70959, 75178, 79649, 84385, 89402, 221da177e4SLinus Torvalds 94719, 100351, 106318, 112640, 119338, 126434, 231da177e4SLinus Torvalds 133952, 141918, 150356, 159297, 168769, 178805, 241da177e4SLinus Torvalds 189437, 200702, 212636, 225280, 238676, 252868, 251da177e4SLinus Torvalds 267905, 283835, 300713, 318594, 337539, 357610, 261da177e4SLinus Torvalds 378874, 401403, 425272, 450560, 477352, 505737, 271da177e4SLinus Torvalds 535809, 567670, 601425, 637188, 675077, 715219, 281da177e4SLinus Torvalds 757749, 802807, 850544, 901120, 954703, 1011473, 291da177e4SLinus Torvalds 1071618, 1135340, 1202851, 1274376, 1350154, 1430439, 301da177e4SLinus Torvalds 1515497, 1605613, 1701088, 1802240, 1909407, 2022946, 311da177e4SLinus Torvalds 2143237, 2270680, 2405702, 2548752, 2700309, 2860878, 321da177e4SLinus Torvalds 3030994, 3211227, 3402176, 3604480, 3818814, 4045892, 331da177e4SLinus Torvalds 4286473, 4541360, 4811404, 5097505, 5400618, 5721755, 341da177e4SLinus Torvalds 6061989, 6422453, 6804352, 7208960, 7637627, 8091784, 351da177e4SLinus Torvalds 8572947, 9082720, 9622807, 10195009, 10801236, 11443511, 361da177e4SLinus Torvalds 12123977, 12844906 371da177e4SLinus Torvalds }; 381da177e4SLinus Torvalds 39209ac85dSAdrian Bunk #endif /* 0 */ 40209ac85dSAdrian Bunk 411da177e4SLinus Torvalds unsigned short snd_gf1_atten_table[SNDRV_GF1_ATTEN_TABLE_SIZE] = { 421da177e4SLinus Torvalds 4095 /* 0 */,1789 /* 1 */,1533 /* 2 */,1383 /* 3 */,1277 /* 4 */, 431da177e4SLinus Torvalds 1195 /* 5 */,1127 /* 6 */,1070 /* 7 */,1021 /* 8 */,978 /* 9 */, 441da177e4SLinus Torvalds 939 /* 10 */,903 /* 11 */,871 /* 12 */,842 /* 13 */,814 /* 14 */, 451da177e4SLinus Torvalds 789 /* 15 */,765 /* 16 */,743 /* 17 */,722 /* 18 */,702 /* 19 */, 461da177e4SLinus Torvalds 683 /* 20 */,665 /* 21 */,647 /* 22 */,631 /* 23 */,615 /* 24 */, 471da177e4SLinus Torvalds 600 /* 25 */,586 /* 26 */,572 /* 27 */,558 /* 28 */,545 /* 29 */, 481da177e4SLinus Torvalds 533 /* 30 */,521 /* 31 */,509 /* 32 */,498 /* 33 */,487 /* 34 */, 491da177e4SLinus Torvalds 476 /* 35 */,466 /* 36 */,455 /* 37 */,446 /* 38 */,436 /* 39 */, 501da177e4SLinus Torvalds 427 /* 40 */,418 /* 41 */,409 /* 42 */,400 /* 43 */,391 /* 44 */, 511da177e4SLinus Torvalds 383 /* 45 */,375 /* 46 */,367 /* 47 */,359 /* 48 */,352 /* 49 */, 521da177e4SLinus Torvalds 344 /* 50 */,337 /* 51 */,330 /* 52 */,323 /* 53 */,316 /* 54 */, 531da177e4SLinus Torvalds 309 /* 55 */,302 /* 56 */,296 /* 57 */,289 /* 58 */,283 /* 59 */, 541da177e4SLinus Torvalds 277 /* 60 */,271 /* 61 */,265 /* 62 */,259 /* 63 */,253 /* 64 */, 551da177e4SLinus Torvalds 247 /* 65 */,242 /* 66 */,236 /* 67 */,231 /* 68 */,225 /* 69 */, 561da177e4SLinus Torvalds 220 /* 70 */,215 /* 71 */,210 /* 72 */,205 /* 73 */,199 /* 74 */, 571da177e4SLinus Torvalds 195 /* 75 */,190 /* 76 */,185 /* 77 */,180 /* 78 */,175 /* 79 */, 581da177e4SLinus Torvalds 171 /* 80 */,166 /* 81 */,162 /* 82 */,157 /* 83 */,153 /* 84 */, 591da177e4SLinus Torvalds 148 /* 85 */,144 /* 86 */,140 /* 87 */,135 /* 88 */,131 /* 89 */, 601da177e4SLinus Torvalds 127 /* 90 */,123 /* 91 */,119 /* 92 */,115 /* 93 */,111 /* 94 */, 611da177e4SLinus Torvalds 107 /* 95 */,103 /* 96 */,100 /* 97 */,96 /* 98 */,92 /* 99 */, 621da177e4SLinus Torvalds 88 /* 100 */,85 /* 101 */,81 /* 102 */,77 /* 103 */,74 /* 104 */, 631da177e4SLinus Torvalds 70 /* 105 */,67 /* 106 */,63 /* 107 */,60 /* 108 */,56 /* 109 */, 641da177e4SLinus Torvalds 53 /* 110 */,50 /* 111 */,46 /* 112 */,43 /* 113 */,40 /* 114 */, 651da177e4SLinus Torvalds 37 /* 115 */,33 /* 116 */,30 /* 117 */,27 /* 118 */,24 /* 119 */, 661da177e4SLinus Torvalds 21 /* 120 */,18 /* 121 */,15 /* 122 */,12 /* 123 */,9 /* 124 */, 671da177e4SLinus Torvalds 6 /* 125 */,3 /* 126 */,0 /* 127 */, 681da177e4SLinus Torvalds }; 691da177e4SLinus Torvalds 701da177e4SLinus Torvalds #else 711da177e4SLinus Torvalds 721da177e4SLinus Torvalds extern unsigned int snd_gf1_scale_table[SNDRV_GF1_SCALE_TABLE_SIZE]; 731da177e4SLinus Torvalds extern unsigned short snd_gf1_atten_table[SNDRV_GF1_ATTEN_TABLE_SIZE]; 741da177e4SLinus Torvalds 751da177e4SLinus Torvalds #endif 76