summaryrefslogtreecommitdiff
path: root/firmware/target/arm/pnx0101/pcm-pnx0101.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/target/arm/pnx0101/pcm-pnx0101.c')
-rw-r--r--firmware/target/arm/pnx0101/pcm-pnx0101.c7
1 files changed, 1 insertions, 6 deletions
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 @@
27short __attribute__((section(".dmabuf"))) dma_buf_left[DMA_BUF_SAMPLES]; 27short __attribute__((section(".dmabuf"))) dma_buf_left[DMA_BUF_SAMPLES];
28short __attribute__((section(".dmabuf"))) dma_buf_right[DMA_BUF_SAMPLES]; 28short __attribute__((section(".dmabuf"))) dma_buf_right[DMA_BUF_SAMPLES];
29 29
30static int pcm_sampr = HW_SAMPR_DEFAULT; /* 44.1 is default */
31
32unsigned short* p IBSS_ATTR; 30unsigned short* p IBSS_ATTR;
33size_t p_size IBSS_ATTR; 31size_t p_size IBSS_ATTR;
34 32
@@ -42,8 +40,6 @@ void pcm_play_unlock(void)
42 40
43void pcm_play_dma_start(const void *addr, size_t size) 41void pcm_play_dma_start(const void *addr, size_t size)
44{ 42{
45 pcm_apply_settings();
46
47 p = (unsigned short*)addr; 43 p = (unsigned short*)addr;
48 p_size = size; 44 p_size = size;
49} 45}
@@ -54,8 +50,7 @@ void pcm_play_dma_stop(void)
54 50
55void pcm_play_dma_pause(bool pause) 51void pcm_play_dma_pause(bool pause)
56{ 52{
57 if (!pause) 53 (void)pause;
58 pcm_apply_settings();
59} 54}
60 55
61static inline void fill_dma_buf(int offset) 56static inline void fill_dma_buf(int offset)