mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-02 09:01:46 -05:00
svolume_arm: Fix a const warning.
CC libpulsecore_2.98_la-svolume_arm.lo pulsecore/svolume_arm.c: In function 'pa_volume_s16ne_arm': pulsecore/svolume_arm.c:50:8: warning: assignment discards 'const' qualifier from pointer target type [enabled by default] Signed-off-by: Peter Meerwald <p.meerwald@bct-electronic.com>
This commit is contained in:
parent
9f3bba8bd4
commit
baa15bd17b
1 changed files with 1 additions and 4 deletions
|
|
@ -41,13 +41,10 @@
|
||||||
" movcs r6, r0 \n\t"
|
" movcs r6, r0 \n\t"
|
||||||
|
|
||||||
static void pa_volume_s16ne_arm(int16_t *samples, const int32_t *volumes, unsigned channels, unsigned length) {
|
static void pa_volume_s16ne_arm(int16_t *samples, const int32_t *volumes, unsigned channels, unsigned length) {
|
||||||
int32_t *ve;
|
|
||||||
|
|
||||||
/* Channels must be at least 4, and always a multiple of the original number.
|
/* Channels must be at least 4, and always a multiple of the original number.
|
||||||
* This is also the max amount we overread the volume array, which should
|
* This is also the max amount we overread the volume array, which should
|
||||||
* have enough padding. */
|
* have enough padding. */
|
||||||
channels = channels == 3 ? 6 : PA_MAX (4U, channels);
|
const int32_t *ve = volumes + (channels == 3 ? 6 : PA_MAX (4U, channels));
|
||||||
ve = volumes + channels;
|
|
||||||
|
|
||||||
__asm__ __volatile__ (
|
__asm__ __volatile__ (
|
||||||
" mov r6, %1 \n\t" /* r6 = volumes */
|
" mov r6, %1 \n\t" /* r6 = volumes */
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue