Make rbcodec/dsp includes more specific.

Change-Id: Idb6af40df26f5b8499a40e8b98602261ef227044
This commit is contained in:
Michael Sevakis 2012-04-29 17:31:30 -04:00
parent 23b5f3e5e1
commit 56f17c4164
39 changed files with 47 additions and 66 deletions

View file

@ -21,7 +21,7 @@
#include "config.h"
#include "system.h"
#include "settings.h"
#include "dsp.h"
#include "dsp_core.h" /* for NATIVE_FREQUENCY */
#include "pcm.h"
#include "pcm_mixer.h"
#include "misc.h"

View file

@ -42,7 +42,6 @@
#include "plugin.h"
#include "file.h"
#include "filefuncs.h"
#include "dsp.h"
#define MAX_BOOKMARKS 10
#define MAX_BOOKMARK_SIZE 350

View file

@ -28,7 +28,7 @@
#include "pcmbuf.h"
#include "playback.h"
#include "buffering.h"
#include "dsp.h"
#include "dsp_core.h"
#include "metadata.h"
#include "settings.h"

View file

@ -26,7 +26,6 @@
#include <stdlib.h> /* for abs() */
#include "config.h"
#include "action.h"
#include "dsp.h"
#include "sound.h"
#include "pcmbuf.h"
#include "lang.h"

View file

@ -30,7 +30,6 @@
#include "settings_list.h"
#include "lang.h"
#include "playlist.h"
#include "dsp.h"
#include "viewport.h"
#include "audio.h"
#include "quickscreen.h"

View file

@ -49,7 +49,6 @@
/* Image stuff */
#include "albumart.h"
#endif
#include "dsp.h"
#include "playlist.h"
#if CONFIG_CODEC == SWCODEC
#include "playback.h"

View file

@ -32,7 +32,7 @@
#include "lang.h"
#include "splash.h"
#include "playlist.h"
#include "dsp.h"
#include "dsp_misc.h"
/** Disarms all touchregions. */
void skin_disarm_touchregions(struct wps_data *data)

View file

@ -61,7 +61,6 @@
#include "viewport.h"
#include "pcmbuf.h"
#include "option_select.h"
#include "dsp.h"
#include "playlist_viewer.h"
#include "wps.h"
#include "statusbar-skinned.h"

View file

@ -38,7 +38,7 @@
#include "talk.h"
#include "misc.h"
#include "sound.h"
#include "dsp.h"
#include "dsp_proc_settings.h"
#include "tree.h"
#include "screen_access.h"
#include "keyboard.h"

View file

@ -31,7 +31,6 @@
#include "sound_menu.h"
#include "kernel.h"
#include "playlist.h"
#include "dsp.h"
#include "scrobbler.h"
#include "audio.h"
#include "cuesheet.h"

View file

@ -53,7 +53,6 @@
#include "splash.h"
#if CONFIG_CODEC == SWCODEC
#include "metadata.h"
#include "dsp.h"
#include "menus/eq_menu.h"
#ifdef HAVE_RECORDING
#include "enc_config.h"

View file

@ -34,7 +34,6 @@
#include "menu_common.h"
#include "splash.h"
#include "kernel.h"
#include "dsp.h"
/***********************************/
/* SOUND MENU */

View file

@ -40,7 +40,7 @@
#include "settings.h"
#include "audio.h"
#include "voice_thread.h"
#include "dsp.h"
#include "dsp_core.h"
/* This is the target fill size of chunks on the pcm buffer
Can be any number of samples but power of two sizes make for faster and

View file

@ -75,7 +75,8 @@ void* plugin_get_buffer(size_t *buffer_size);
#if (CONFIG_CODEC == SWCODEC)
#include "pcm_mixer.h"
#include "dsp-util.h"
#include "dsp.h"
#include "dsp_core.h"
#include "dsp_proc_settings.h"
#include "codecs.h"
#include "playback.h"
#include "codec_thread.h"

View file

@ -55,10 +55,6 @@
#include "language.h"
#include "replaygain.h"
#if CONFIG_CODEC == SWCODEC
#include "dsp.h"
#endif
#if defined(ARCHOS_FMRECORDER) || defined(ARCHOS_RECORDERV2)
#include "adc.h"
#endif

View file

@ -80,7 +80,7 @@ struct user_settings global_settings;
struct system_status global_status;
#if CONFIG_CODEC == SWCODEC
#include "dsp.h"
#include "dsp_proc_settings.h"
#include "playback.h"
#ifdef HAVE_RECORDING
#include "enc_config.h"

View file

@ -32,7 +32,7 @@
#include "button.h"
#if CONFIG_CODEC == SWCODEC
#include "audio.h"
#include "dsp.h"
#include "dsp_proc_settings.h"
#endif
#include "rbpaths.h"

View file

@ -33,7 +33,6 @@
#include "settings.h"
#include "settings_list.h"
#include "usb.h"
#include "dsp.h"
#include "audio.h"
#include "power.h"
#include "powermgmt.h"

View file

@ -23,7 +23,7 @@
#include "thread.h"
#include "voice_thread.h"
#include "talk.h"
#include "dsp.h"
#include "dsp_core.h"
#include "audio.h"
#include "playback.h"
#include "pcmbuf.h"

View file

@ -25,7 +25,7 @@
#include "pcm.h"
#include "pcm-internal.h"
#include "pcm_mixer.h"
#include "dsp.h"
#include "dsp_core.h" /* For NATIVE_FREQUENCY */
/* Channels use standard-style PCM callback interface but a latency of one
frame by double-buffering is introduced in order to facilitate mixing and

View file

@ -783,8 +783,6 @@ int sound_val2phys(int setting, int value)
/* This function works by telling the decoder that we have another
crystal frequency than we actually have. It will adjust its internal
parameters and the result is that the audio is played at another pitch.
The pitch value precision is based on PITCH_SPEED_PRECISION (in dsp.h)
*/
static int last_pitch = PITCH_SPEED_100;

View file

@ -42,7 +42,8 @@
#ifdef HAVE_RECORDING
#include "pcm_record.h"
#endif
#include "dsp.h"
#include "dsp_core.h"
#include "dsp_misc.h"
#include "dsp-util.h"
#endif

View file

@ -23,7 +23,6 @@
#include <string.h>
#include "codecs.h"
#include "dsp.h"
#include "codeclib.h"
#include "metadata.h"
#include "dsp_proc_entry.h"

View file

@ -21,12 +21,11 @@
****************************************************************************/
#include "config.h"
#include "system.h"
#include "dsp.h"
#include "settings.h"
#include "sound.h"
#include "fixedpoint.h"
#include "fracmul.h"
#include "dsp_proc_entry.h"
#include "channel_mode.h"
#if 0
/* SOUND_CHAN_STEREO mode is a noop so has no function - just outline one for

View file

@ -19,17 +19,17 @@
*
****************************************************************************/
#include "config.h"
#include "system.h"
#include <stdbool.h>
#include <sys/types.h>
#include "fixedpoint.h"
#include "fracmul.h"
#include "dsp.h"
#include <string.h>
/* Define LOGF_ENABLE to enable logf output in this file */
/*#define LOGF_ENABLE*/
#include "logf.h"
#include "dsp_proc_entry.h"
#include "compressor.h"
static struct compressor_settings curr_set; /* Cached settings */
@ -228,10 +228,10 @@ static bool compressor_update(const struct compressor_settings *settings)
logf("\nGain factors:");
for (int i = 1; i <= 65; i++)
{
debugf("%02d: %.6f ", i, (float)comp_curve[i] / UNITY);
if (i % 4 == 0) debugf("\n");
DEBUGF("%02d: %.6f ", i, (float)comp_curve[i] / UNITY);
if (i % 4 == 0) DEBUGF("\n");
}
debugf("\n");
DEBUGF("\n");
#endif
/* if using auto peak, then makeup gain is max offset -

View file

@ -20,14 +20,15 @@
*
****************************************************************************/
#include "config.h"
#include "system.h"
#include "dsp.h"
#include "dsp_filter.h"
#include <stdbool.h>
#include <sys/types.h>
#include "fixedpoint.h"
#include "fracmul.h"
#include "replaygain.h"
#include <string.h>
#include "dsp_proc_entry.h"
#include "dsp_filter.h"
#include "crossfeed.h"
#include <string.h>
/* Implemented here or in target assembly code */
void crossfeed_process(struct dsp_proc_entry *this, struct dsp_buffer **buf_p);

View file

@ -21,7 +21,7 @@
****************************************************************************/
#include "config.h"
#include "system.h"
#include "dsp.h"
#include "dsp_core.h"
#include "dsp_sample_io.h"
#include <sys/types.h>

View file

@ -23,9 +23,6 @@
struct dsp_config;
/* Include all this junk here for now */
#include "dsp_proc_settings.h"
enum dsp_ids
{
CODEC_IDX_AUDIO,

View file

@ -22,15 +22,14 @@
*
****************************************************************************/
#include "config.h"
#include "system.h"
#include "dsp.h"
#include "dsp_sample_io.h"
#include "replaygain.h"
#include "sound.h"
#include "settings.h"
#include "fixedpoint.h"
#include <string.h>
#include "replaygain.h"
#include "dsp_proc_entry.h"
#include "dsp_sample_io.h"
#include "dsp_misc.h"
#include <string.h>
/** Firmware callback interface **/

View file

@ -90,7 +90,8 @@ struct dsp_proc_db_entry;
#include "dsp_proc_database.h"
struct dsp_proc_entry;
enum dsp_proc_ids;
#include "dsp_core.h"
/* DSP sample transform function prototype */
typedef void (*dsp_proc_fn_type)(struct dsp_proc_entry *this,

View file

@ -21,8 +21,6 @@
#ifndef DSP_PROC_SETTINGS_H
#define DSP_PROC_SETTINGS_H
struct dsp_config;
/* Collect all headers together */
#include "channel_mode.h"
#include "compressor.h"

View file

@ -21,7 +21,7 @@
****************************************************************************/
#include "config.h"
#include "system.h"
#include "dsp.h"
#include "dsp_core.h"
#include "dsp_sample_io.h"
#if 1

View file

@ -21,7 +21,7 @@
****************************************************************************/
#include "config.h"
#include "system.h"
#include "dsp.h"
#include "dsp_core.h"
#include "dsp_sample_io.h"
#include "dsp-util.h"
#include <string.h>

View file

@ -23,11 +23,13 @@
#include "system.h"
#include "fixedpoint.h"
#include "fracmul.h"
#include "dsp.h"
#include "dsp_filter.h"
#include "dsp_proc_entry.h"
#include "dsp_core.h"
#include "eq.h"
#include "pga.h"
#include "replaygain.h"
#include <string.h>
#include "dsp_proc_entry.h"
/**
* Current setup is one lowshelf filters three peaking filters and one

View file

@ -21,12 +21,10 @@
****************************************************************************/
#include "config.h"
#include "system.h"
#include "dsp.h"
#include "fracmul.h"
#include "fixedpoint.h"
#include "dsp_sample_io.h"
#include <string.h>
#include "dsp_proc_entry.h"
#include <string.h>
/**
* Linear interpolation resampling that introduces a one sample delay because

View file

@ -21,11 +21,11 @@
****************************************************************************/
#include "config.h"
#include "system.h"
#include "dsp.h"
#include "dsp-util.h"
#include "fixedpoint.h"
#include "fracmul.h"
#include "dsp_proc_entry.h"
#include "pga.h"
/* Implemented here or in target assembly code */
void pga_process(struct dsp_proc_entry *this, struct dsp_buffer **buf_p);

View file

@ -24,11 +24,9 @@
#include "system.h"
#include "sound.h"
#include "core_alloc.h"
#include "system.h"
#include "tdspeed.h"
#include "settings.h"
#include "dsp-util.h"
#include "dsp_proc_entry.h"
#include "tdspeed.h"
#define assert(cond)

View file

@ -20,11 +20,13 @@
*
****************************************************************************/
#include "config.h"
#include "system.h"
#include "dsp.h"
#include <string.h>
#include <stdbool.h>
#include <sys/types.h>
#include <stdint.h>
#include "dsp_proc_entry.h"
#include "dsp_filter.h"
#include "tone_controls.h"
#include <string.h>
/* These apply to all DSP streams to remain as consistant as possible with
* the behavior of hardware tone controls */

View file

@ -35,7 +35,7 @@
#include "codecs.h"
#include "core_alloc.h" /* core_allocator_init */
#include "debug.h"
#include "dsp.h"
#include "dsp_core.h"
#include "metadata.h"
#include "settings.h"
#include "sound.h"