1 /***************************************************************************
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
10 * Copyright (C) 2006 Michael Sevakis
12 * This program is free software; you can redistribute it and/or
13 * modify it under the terms of the GNU General Public License
14 * as published by the Free Software Foundation; either version 2
15 * of the License, or (at your option) any later version.
17 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
18 * KIND, either express or implied.
20 ****************************************************************************/
22 #include "pcm_sampr.h"
24 /* Master list of all "standard" rates supported. */
25 const unsigned long audio_master_sampr_list
[SAMPR_NUM_FREQ
] =
27 [0 ... SAMPR_NUM_FREQ
-1] = -1, /* any gaps set to -1 */
42 /* List of all hardware rates supported (set or subset of master list) */
43 const unsigned long hw_freq_sampr
[HW_NUM_FREQ
] =
45 [0 ... HW_NUM_FREQ
-1] = -1,
46 HW_HAVE_96_([HW_FREQ_96
] = SAMPR_96
,)
47 HW_HAVE_88_([HW_FREQ_88
] = SAMPR_88
,)
48 HW_HAVE_64_([HW_FREQ_64
] = SAMPR_64
,)
49 HW_HAVE_48_([HW_FREQ_48
] = SAMPR_48
,)
50 HW_HAVE_44_([HW_FREQ_44
] = SAMPR_44
,)
51 HW_HAVE_32_([HW_FREQ_32
] = SAMPR_32
,)
52 HW_HAVE_24_([HW_FREQ_24
] = SAMPR_24
,)
53 HW_HAVE_22_([HW_FREQ_22
] = SAMPR_22
,)
54 HW_HAVE_16_([HW_FREQ_16
] = SAMPR_16
,)
55 HW_HAVE_12_([HW_FREQ_12
] = SAMPR_12
,)
56 HW_HAVE_11_([HW_FREQ_11
] = SAMPR_11
,)
57 HW_HAVE_8_( [HW_FREQ_8
] = SAMPR_8
,)
61 /* List of recording supported sample rates (set or subset of master list) */
62 const unsigned long rec_freq_sampr
[REC_NUM_FREQ
] =
64 [0 ... REC_NUM_FREQ
-1] = -1,
65 REC_HAVE_96_([REC_FREQ_96
] = SAMPR_96
,)
66 REC_HAVE_88_([REC_FREQ_88
] = SAMPR_88
,)
67 REC_HAVE_64_([REC_FREQ_64
] = SAMPR_64
,)
68 REC_HAVE_48_([REC_FREQ_48
] = SAMPR_48
,)
69 REC_HAVE_44_([REC_FREQ_44
] = SAMPR_44
,)
70 REC_HAVE_32_([REC_FREQ_32
] = SAMPR_32
,)
71 REC_HAVE_24_([REC_FREQ_24
] = SAMPR_24
,)
72 REC_HAVE_22_([REC_FREQ_22
] = SAMPR_22
,)
73 REC_HAVE_16_([REC_FREQ_16
] = SAMPR_16
,)
74 REC_HAVE_12_([REC_FREQ_12
] = SAMPR_12
,)
75 REC_HAVE_11_([REC_FREQ_11
] = SAMPR_11
,)
76 REC_HAVE_8_( [REC_FREQ_8
] = SAMPR_8
,)
78 #endif /* HAVE_RECORDING */