diff options
Diffstat (limited to 'firmware/target/arm/pnx0101')
-rw-r--r-- | firmware/target/arm/pnx0101/pcm-pnx0101.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/firmware/target/arm/pnx0101/pcm-pnx0101.c b/firmware/target/arm/pnx0101/pcm-pnx0101.c index bb11ad32fe..a2394bc355 100644 --- a/firmware/target/arm/pnx0101/pcm-pnx0101.c +++ b/firmware/target/arm/pnx0101/pcm-pnx0101.c | |||
@@ -209,3 +209,9 @@ const void * pcm_play_dma_get_peak_buffer(int *count) | |||
209 | *count = cnt >> 2; | 209 | *count = cnt >> 2; |
210 | return (void *)((addr + 2) & ~3); | 210 | return (void *)((addr + 2) & ~3); |
211 | } | 211 | } |
212 | |||
213 | void audiohw_set_volume(int value) | ||
214 | { | ||
215 | int tmp = (60 - value * 4) & 0xff; | ||
216 | CODECVOL = tmp | (tmp << 8); | ||
217 | } | ||