1 /***************************************************************************
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
10 * Copyright (C) 2006 Michael Sevakis
12 * All files in this archive are subject to the GNU General Public License.
13 * See the file COPYING in the source tree root for full license agreement.
15 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
16 * KIND, either express or implied.
18 ****************************************************************************/
20 #include "pcm_sampr.h"
22 /* Master list of all "standard" rates supported. */
23 const unsigned long audio_master_sampr_list
[SAMPR_NUM_FREQ
] =
25 [0 ... SAMPR_NUM_FREQ
-1] = -1, /* any gaps set to -1 */
40 /* List of all hardware rates supported (set or subset of master list) */
41 const unsigned long hw_freq_sampr
[HW_NUM_FREQ
] =
43 [0 ... HW_NUM_FREQ
-1] = -1,
44 HW_HAVE_96_([HW_FREQ_96
] = SAMPR_96
,)
45 HW_HAVE_88_([HW_FREQ_88
] = SAMPR_88
,)
46 HW_HAVE_64_([HW_FREQ_64
] = SAMPR_64
,)
47 HW_HAVE_48_([HW_FREQ_48
] = SAMPR_48
,)
48 HW_HAVE_44_([HW_FREQ_44
] = SAMPR_44
,)
49 HW_HAVE_32_([HW_FREQ_32
] = SAMPR_32
,)
50 HW_HAVE_24_([HW_FREQ_24
] = SAMPR_24
,)
51 HW_HAVE_22_([HW_FREQ_22
] = SAMPR_22
,)
52 HW_HAVE_16_([HW_FREQ_16
] = SAMPR_16
,)
53 HW_HAVE_12_([HW_FREQ_12
] = SAMPR_12
,)
54 HW_HAVE_11_([HW_FREQ_11
] = SAMPR_11
,)
55 HW_HAVE_8_( [HW_FREQ_8
] = SAMPR_8
,)
59 /* List of recording supported sample rates (set or subset of master list) */
60 const unsigned long rec_freq_sampr
[REC_NUM_FREQ
] =
62 [0 ... REC_NUM_FREQ
-1] = -1,
63 REC_HAVE_96_([REC_FREQ_96
] = SAMPR_96
,)
64 REC_HAVE_88_([REC_FREQ_88
] = SAMPR_88
,)
65 REC_HAVE_64_([REC_FREQ_64
] = SAMPR_64
,)
66 REC_HAVE_48_([REC_FREQ_48
] = SAMPR_48
,)
67 REC_HAVE_44_([REC_FREQ_44
] = SAMPR_44
,)
68 REC_HAVE_32_([REC_FREQ_32
] = SAMPR_32
,)
69 REC_HAVE_24_([REC_FREQ_24
] = SAMPR_24
,)
70 REC_HAVE_22_([REC_FREQ_22
] = SAMPR_22
,)
71 REC_HAVE_16_([REC_FREQ_16
] = SAMPR_16
,)
72 REC_HAVE_12_([REC_FREQ_12
] = SAMPR_12
,)
73 REC_HAVE_11_([REC_FREQ_11
] = SAMPR_11
,)
74 REC_HAVE_8_( [REC_FREQ_8
] = SAMPR_8
,)
76 #endif /* HAVE_RECORDING */