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
This commit is contained in:
Michael Sevakis 2008-12-12 12:46:57 +00:00
parent 4bbaef6fd5
commit b6e78acc5e
9 changed files with 11 additions and 37 deletions

View file

@ -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)