diff options
author | Michael Sevakis <jethead71@rockbox.org> | 2008-12-12 12:46:57 +0000 |
---|---|---|
committer | Michael Sevakis <jethead71@rockbox.org> | 2008-12-12 12:46:57 +0000 |
commit | b6e78acc5eb9a5e0586ccd5af3d93c1f5a83fdbc (patch) | |
tree | 329bdd805988a6b9412c768eaa5979baeebdfdb4 /firmware/target/arm | |
parent | 4bbaef6fd50be130e2232770eee46f975817313d (diff) |
Get rid of some pcm_apply_settings cruft at the low level I somehow missed. Move the ones in pcm.c around to better spots. Remove a variable from pcm-pnx0101.c that should no longer be there.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19402 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target/arm')
-rw-r--r-- | firmware/target/arm/as3525/pcm-as3525.c | 1 | ||||
-rw-r--r-- | firmware/target/arm/imx31/gigabeat-s/pcm-imx31.c | 3 | ||||
-rw-r--r-- | firmware/target/arm/pcm-pp.c | 3 | ||||
-rw-r--r-- | firmware/target/arm/pcm-telechips.c | 3 | ||||
-rw-r--r-- | firmware/target/arm/pnx0101/pcm-pnx0101.c | 7 | ||||
-rw-r--r-- | firmware/target/arm/s3c2440/gigabeat-fx/pcm-meg-fx.c | 3 | ||||
-rw-r--r-- | firmware/target/arm/tms320dm320/creative-zvm/pcm-creativezvm.c | 1 |
7 files changed, 1 insertions, 20 deletions
diff --git a/firmware/target/arm/as3525/pcm-as3525.c b/firmware/target/arm/as3525/pcm-as3525.c index fe694e0967..4df31db376 100644 --- a/firmware/target/arm/as3525/pcm-as3525.c +++ b/firmware/target/arm/as3525/pcm-as3525.c @@ -135,7 +135,6 @@ void pcm_play_dma_init(void) void pcm_postinit(void) { audiohw_postinit(); - pcm_apply_settings(); } void pcm_dma_apply_settings(void) diff --git a/firmware/target/arm/imx31/gigabeat-s/pcm-imx31.c b/firmware/target/arm/imx31/gigabeat-s/pcm-imx31.c index 48f7f608d9..d0f93eedd5 100644 --- a/firmware/target/arm/imx31/gigabeat-s/pcm-imx31.c +++ b/firmware/target/arm/imx31/gigabeat-s/pcm-imx31.c @@ -206,9 +206,6 @@ static void play_start_pcm(void) /* Stop transmission (if in progress) */ SSI_SCR1 &= ~SSI_SCR_TE; - /* Apply new settings */ - pcm_apply_settings(); - /* Enable interrupt on unlock */ dma_play_data.state = 1; diff --git a/firmware/target/arm/pcm-pp.c b/firmware/target/arm/pcm-pp.c index e00b1d7e75..0f87a74d1c 100644 --- a/firmware/target/arm/pcm-pp.c +++ b/firmware/target/arm/pcm-pp.c @@ -272,8 +272,6 @@ static void play_start_pcm(void) { fiq_function = fiq_playback; - pcm_apply_settings(); - IISCONFIG &= ~IIS_TXFIFOEN; /* Stop transmitting */ dma_play_data.state = 1; @@ -379,7 +377,6 @@ void pcm_play_dma_init(void) void pcm_postinit(void) { audiohw_postinit(); - pcm_apply_settings(); } const void * pcm_play_dma_get_peak_buffer(int *count) diff --git a/firmware/target/arm/pcm-telechips.c b/firmware/target/arm/pcm-telechips.c index 823eb3a3a5..06f6638e54 100644 --- a/firmware/target/arm/pcm-telechips.c +++ b/firmware/target/arm/pcm-telechips.c @@ -61,7 +61,6 @@ struct dma_data dma_play_data SHAREDBSS_ATTR = void pcm_postinit(void) { audiohw_postinit(); - pcm_apply_settings(); } const void * pcm_play_dma_get_peak_buffer(int *count) @@ -115,8 +114,6 @@ void pcm_dma_apply_settings(void) static void play_start_pcm(void) { - pcm_apply_settings(); - DAMR &= ~(1<<14); /* disable tx */ dma_play_data.state = 1; diff --git a/firmware/target/arm/pnx0101/pcm-pnx0101.c b/firmware/target/arm/pnx0101/pcm-pnx0101.c index 20fca48039..9d0f76b0a3 100644 --- a/firmware/target/arm/pnx0101/pcm-pnx0101.c +++ b/firmware/target/arm/pnx0101/pcm-pnx0101.c @@ -27,8 +27,6 @@ short __attribute__((section(".dmabuf"))) dma_buf_left[DMA_BUF_SAMPLES]; short __attribute__((section(".dmabuf"))) dma_buf_right[DMA_BUF_SAMPLES]; -static int pcm_sampr = HW_SAMPR_DEFAULT; /* 44.1 is default */ - unsigned short* p IBSS_ATTR; size_t p_size IBSS_ATTR; @@ -42,8 +40,6 @@ void pcm_play_unlock(void) void pcm_play_dma_start(const void *addr, size_t size) { - pcm_apply_settings(); - p = (unsigned short*)addr; p_size = size; } @@ -54,8 +50,7 @@ void pcm_play_dma_stop(void) void pcm_play_dma_pause(bool pause) { - if (!pause) - pcm_apply_settings(); + (void)pause; } static inline void fill_dma_buf(int offset) diff --git a/firmware/target/arm/s3c2440/gigabeat-fx/pcm-meg-fx.c b/firmware/target/arm/s3c2440/gigabeat-fx/pcm-meg-fx.c index 315fc3bf0f..fbf4547e53 100644 --- a/firmware/target/arm/s3c2440/gigabeat-fx/pcm-meg-fx.c +++ b/firmware/target/arm/s3c2440/gigabeat-fx/pcm-meg-fx.c @@ -96,7 +96,6 @@ void pcm_play_dma_init(void) void pcm_postinit(void) { audiohw_postinit(); - pcm_apply_settings(); } void pcm_dma_apply_settings(void) @@ -110,8 +109,6 @@ static void play_start_pcm(void) /* clear pending DMA interrupt */ SRCPND = DMA2_MASK; - pcm_apply_settings(); - /* Flush any pending writes */ clean_dcache_range((void*)DISRC2, (DCON2 & 0xFFFFF) * 2); diff --git a/firmware/target/arm/tms320dm320/creative-zvm/pcm-creativezvm.c b/firmware/target/arm/tms320dm320/creative-zvm/pcm-creativezvm.c index 9e2e73e0fc..b51139e7e6 100644 --- a/firmware/target/arm/tms320dm320/creative-zvm/pcm-creativezvm.c +++ b/firmware/target/arm/tms320dm320/creative-zvm/pcm-creativezvm.c @@ -46,7 +46,6 @@ void pcm_play_dma_init(void) void pcm_postinit(void) { audiohw_postinit(); - pcm_apply_settings(); /* wake DSP */ dsp_wake(); |