Remove explicit config.h and system.h includes from DSP code.
Replace with rbcodecconfig.h and platform.h includes. Remove now- unneeded ones as well. Change-Id: I6111b71e90bf86d9fe272a7916f2d34a5c6dd724
This commit is contained in:
parent
30fe6eb66c
commit
b5a6517e9d
16 changed files with 34 additions and 31 deletions
|
@ -19,8 +19,7 @@
|
||||||
* KIND, either express or implied.
|
* KIND, either express or implied.
|
||||||
*
|
*
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
#include "config.h"
|
#include "rbcodecconfig.h"
|
||||||
#include "system.h"
|
|
||||||
#include "sound.h"
|
#include "sound.h"
|
||||||
#include "fixedpoint.h"
|
#include "fixedpoint.h"
|
||||||
#include "fracmul.h"
|
#include "fracmul.h"
|
||||||
|
|
|
@ -18,7 +18,7 @@
|
||||||
* KIND, either express or implied.
|
* KIND, either express or implied.
|
||||||
*
|
*
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
#include "config.h"
|
#include "rbcodecconfig.h"
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include "fixedpoint.h"
|
#include "fixedpoint.h"
|
||||||
|
|
|
@ -20,9 +20,7 @@
|
||||||
* KIND, either express or implied.
|
* KIND, either express or implied.
|
||||||
*
|
*
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
#include "config.h"
|
#include "rbcodecconfig.h"
|
||||||
#include <stdbool.h>
|
|
||||||
#include <sys/types.h>
|
|
||||||
#include "fixedpoint.h"
|
#include "fixedpoint.h"
|
||||||
#include "fracmul.h"
|
#include "fracmul.h"
|
||||||
#include "replaygain.h"
|
#include "replaygain.h"
|
||||||
|
|
|
@ -20,7 +20,7 @@
|
||||||
* KIND, either express or implied.
|
* KIND, either express or implied.
|
||||||
*
|
*
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
#include "config.h"
|
#include "rbcodecconfig.h"
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* void channel_mode_proc_mono(struct dsp_proc_entry *this,
|
* void channel_mode_proc_mono(struct dsp_proc_entry *this,
|
||||||
|
|
|
@ -20,7 +20,7 @@
|
||||||
* KIND, either express or implied.
|
* KIND, either express or implied.
|
||||||
*
|
*
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
#include "config.h"
|
#include "rbcodecconfig.h"
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* void pga_process(struct dsp_proc_entry *this, struct dsp_buffer **buf_p)
|
* void pga_process(struct dsp_proc_entry *this, struct dsp_buffer **buf_p)
|
||||||
|
|
|
@ -19,12 +19,10 @@
|
||||||
* KIND, either express or implied.
|
* KIND, either express or implied.
|
||||||
*
|
*
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
#include "config.h"
|
#include "rbcodecconfig.h"
|
||||||
#include "system.h"
|
|
||||||
#include "platform.h"
|
#include "platform.h"
|
||||||
#include "dsp_core.h"
|
#include "dsp_core.h"
|
||||||
#include "dsp_sample_io.h"
|
#include "dsp_sample_io.h"
|
||||||
#include <sys/types.h>
|
|
||||||
|
|
||||||
/* Define LOGF_ENABLE to enable logf output in this file */
|
/* Define LOGF_ENABLE to enable logf output in this file */
|
||||||
/*#define LOGF_ENABLE*/
|
/*#define LOGF_ENABLE*/
|
||||||
|
|
|
@ -18,13 +18,12 @@
|
||||||
* KIND, either express or implied.
|
* KIND, either express or implied.
|
||||||
*
|
*
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
#include <stdbool.h>
|
#include "rbcodecconfig.h"
|
||||||
#include <string.h>
|
|
||||||
#include "config.h"
|
|
||||||
#include "fixedpoint.h"
|
#include "fixedpoint.h"
|
||||||
#include "fracmul.h"
|
#include "fracmul.h"
|
||||||
#include "dsp_filter.h"
|
#include "dsp_filter.h"
|
||||||
#include "replaygain.h"
|
#include "replaygain.h"
|
||||||
|
#include <string.h>
|
||||||
|
|
||||||
enum filter_shift
|
enum filter_shift
|
||||||
{
|
{
|
||||||
|
|
|
@ -21,7 +21,7 @@
|
||||||
* KIND, either express or implied.
|
* KIND, either express or implied.
|
||||||
*
|
*
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
#include "config.h"
|
#include "rbcodecconfig.h"
|
||||||
#include "sound.h"
|
#include "sound.h"
|
||||||
#include "fixedpoint.h"
|
#include "fixedpoint.h"
|
||||||
#include "replaygain.h"
|
#include "replaygain.h"
|
||||||
|
|
|
@ -19,9 +19,10 @@
|
||||||
* KIND, either express or implied.
|
* KIND, either express or implied.
|
||||||
*
|
*
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
#include "config.h"
|
#include "rbcodecconfig.h"
|
||||||
#include "system.h"
|
#include "platform.h"
|
||||||
#include "fixedpoint.h"
|
#include "fixedpoint.h"
|
||||||
|
#include "gcc_extensions.h"
|
||||||
#include "dsp_core.h"
|
#include "dsp_core.h"
|
||||||
#include "dsp_sample_io.h"
|
#include "dsp_sample_io.h"
|
||||||
#include "dsp_proc_entry.h"
|
#include "dsp_proc_entry.h"
|
||||||
|
|
|
@ -19,8 +19,8 @@
|
||||||
* KIND, either express or implied.
|
* KIND, either express or implied.
|
||||||
*
|
*
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
#include "config.h"
|
#include "rbcodecconfig.h"
|
||||||
#include "system.h"
|
#include "platform.h"
|
||||||
#include "dsp_core.h"
|
#include "dsp_core.h"
|
||||||
#include "dsp_sample_io.h"
|
#include "dsp_sample_io.h"
|
||||||
#include "dsp_proc_entry.h"
|
#include "dsp_proc_entry.h"
|
||||||
|
|
|
@ -19,8 +19,7 @@
|
||||||
* KIND, either express or implied.
|
* KIND, either express or implied.
|
||||||
*
|
*
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
#include "config.h"
|
#include "rbcodecconfig.h"
|
||||||
#include "system.h"
|
|
||||||
#include "fixedpoint.h"
|
#include "fixedpoint.h"
|
||||||
#include "fracmul.h"
|
#include "fracmul.h"
|
||||||
#include "dsp_filter.h"
|
#include "dsp_filter.h"
|
||||||
|
|
|
@ -19,8 +19,8 @@
|
||||||
* KIND, either express or implied.
|
* KIND, either express or implied.
|
||||||
*
|
*
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
#include "config.h"
|
#include "rbcodecconfig.h"
|
||||||
#include "system.h"
|
#include "platform.h"
|
||||||
#include "dsp-util.h"
|
#include "dsp-util.h"
|
||||||
#include "fixedpoint.h"
|
#include "fixedpoint.h"
|
||||||
#include "fracmul.h"
|
#include "fracmul.h"
|
||||||
|
|
|
@ -20,8 +20,8 @@
|
||||||
* KIND, either express or implied.
|
* KIND, either express or implied.
|
||||||
*
|
*
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
#include "config.h"
|
#include "rbcodecconfig.h"
|
||||||
#include "system.h"
|
#include "platform.h"
|
||||||
#include "fracmul.h"
|
#include "fracmul.h"
|
||||||
#include "fixedpoint.h"
|
#include "fixedpoint.h"
|
||||||
#include "dsp_proc_entry.h"
|
#include "dsp_proc_entry.h"
|
||||||
|
|
|
@ -20,8 +20,8 @@
|
||||||
* KIND, either express or implied.
|
* KIND, either express or implied.
|
||||||
*
|
*
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
#include "rbcodecconfig.h"
|
||||||
#include "platform.h"
|
#include "platform.h"
|
||||||
#include "config.h"
|
|
||||||
#include "sound.h"
|
#include "sound.h"
|
||||||
#include "core_alloc.h"
|
#include "core_alloc.h"
|
||||||
#include "dsp-util.h"
|
#include "dsp-util.h"
|
||||||
|
|
|
@ -19,14 +19,11 @@
|
||||||
* KIND, either express or implied.
|
* KIND, either express or implied.
|
||||||
*
|
*
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
#include "config.h"
|
#include "rbcodecconfig.h"
|
||||||
#include <stdbool.h>
|
#include "platform.h"
|
||||||
#include <sys/types.h>
|
|
||||||
#include <stdint.h>
|
|
||||||
#include "dsp_proc_entry.h"
|
#include "dsp_proc_entry.h"
|
||||||
#include "dsp_filter.h"
|
#include "dsp_filter.h"
|
||||||
#include "tone_controls.h"
|
#include "tone_controls.h"
|
||||||
#include <string.h>
|
|
||||||
|
|
||||||
/* These apply to all DSP streams to remain as consistant as possible with
|
/* These apply to all DSP streams to remain as consistant as possible with
|
||||||
* the behavior of hardware tone controls */
|
* the behavior of hardware tone controls */
|
||||||
|
|
|
@ -31,6 +31,16 @@ size_t strlcpy(char *dst, const char *src, size_t siz);
|
||||||
#ifndef BIT_N
|
#ifndef BIT_N
|
||||||
# define BIT_N(n) (1U << (n))
|
# define BIT_N(n) (1U << (n))
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifndef MASK_N
|
||||||
|
/* Make a mask of n contiguous bits, shifted left by 'shift' */
|
||||||
|
# define MASK_N(type, n, shift) \
|
||||||
|
((type)((((type)1 << (n)) - (type)1) << (shift)))
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef INIT_ATTR
|
||||||
|
# define INIT_ATTR
|
||||||
|
#endif
|
||||||
/*
|
/*
|
||||||
#ifdef CODEC
|
#ifdef CODEC
|
||||||
|
|
||||||
|
@ -115,4 +125,6 @@ static inline int32_t clip_sample_16(int32_t sample)
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
int find_first_set_bit(uint32_t value);
|
||||||
#endif /* PLATFORM_H_INCLUDED */
|
#endif /* PLATFORM_H_INCLUDED */
|
||||||
|
|
Loading…
Reference in a new issue