mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-13 18:17:39 -04:00
Make rbcodec/dsp includes more specific.
Change-Id: Idb6af40df26f5b8499a40e8b98602261ef227044
This commit is contained in:
parent
23b5f3e5e1
commit
56f17c4164
39 changed files with 47 additions and 66 deletions
|
@ -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"
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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"
|
||||
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -49,7 +49,6 @@
|
|||
/* Image stuff */
|
||||
#include "albumart.h"
|
||||
#endif
|
||||
#include "dsp.h"
|
||||
#include "playlist.h"
|
||||
#if CONFIG_CODEC == SWCODEC
|
||||
#include "playback.h"
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -34,7 +34,6 @@
|
|||
#include "menu_common.h"
|
||||
#include "splash.h"
|
||||
#include "kernel.h"
|
||||
#include "dsp.h"
|
||||
|
||||
/***********************************/
|
||||
/* SOUND MENU */
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -23,7 +23,6 @@
|
|||
|
||||
#include <string.h>
|
||||
#include "codecs.h"
|
||||
#include "dsp.h"
|
||||
#include "codeclib.h"
|
||||
#include "metadata.h"
|
||||
#include "dsp_proc_entry.h"
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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 -
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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>
|
||||
|
||||
|
|
|
@ -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,
|
|
@ -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 **/
|
||||
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
****************************************************************************/
|
||||
#include "config.h"
|
||||
#include "system.h"
|
||||
#include "dsp.h"
|
||||
#include "dsp_core.h"
|
||||
#include "dsp_sample_io.h"
|
||||
|
||||
#if 1
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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)
|
||||
|
||||
|
|
|
@ -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 */
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue