Default HW_SAMPR_CAPS should be SAMPR_CAP_44, not 0.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13323 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
dfeeeebee0
commit
fd8dd686f4
1 changed files with 5 additions and 1 deletions
|
@ -21,7 +21,7 @@
|
|||
#define PCM_SAMPR_H
|
||||
|
||||
#ifndef HW_SAMPR_CAPS
|
||||
#define HW_SAMPR_CAPS 0 /* if not defined, we define to 0 */
|
||||
#define HW_SAMPR_CAPS SAMPR_CAP_44 /* if not defined, default to 44100 */
|
||||
#endif
|
||||
|
||||
/* These must be macros for comparison with SAMPR_CAP_* flags by the
|
||||
|
@ -117,9 +117,13 @@ enum hw_freq_indexes
|
|||
#define HW_HAVE_48_(...)
|
||||
#endif
|
||||
/* 44100 */
|
||||
#if (HW_SAMPR_CAPS & SAMPR_CAP_44)
|
||||
HW_FREQ_44,
|
||||
#define HW_HAVE_44
|
||||
#define HW_HAVE_44_(...) __VA_ARGS__
|
||||
#else
|
||||
#define HW_HAVE_44_(...)
|
||||
#endif
|
||||
/* 32000 */
|
||||
#if (HW_SAMPR_CAPS & SAMPR_CAP_32)
|
||||
HW_FREQ_32,
|
||||
|
|
Loading…
Reference in a new issue