summaryrefslogtreecommitdiff
path: root/pkg/alsa-utils/patch
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/alsa-utils/patch')
-rw-r--r--pkg/alsa-utils/patch/0005-amixer-Use-lli-for-long-long-in-printf.patch10
-rw-r--r--pkg/alsa-utils/patch/0006-aplay-Error-on-WAV-files-with-more-than-256-channels.patch18
2 files changed, 14 insertions, 14 deletions
diff --git a/pkg/alsa-utils/patch/0005-amixer-Use-lli-for-long-long-in-printf.patch b/pkg/alsa-utils/patch/0005-amixer-Use-lli-for-long-long-in-printf.patch
index a414d88b..9337d281 100644
--- a/pkg/alsa-utils/patch/0005-amixer-Use-lli-for-long-long-in-printf.patch
+++ b/pkg/alsa-utils/patch/0005-amixer-Use-lli-for-long-long-in-printf.patch
@@ -1,4 +1,4 @@
-From e835394dfbff2f34bbb081a6b0bd302e99e384b6 Mon Sep 17 00:00:00 2001
+From 84e7fe3fde8ffd80aea4c45ab6431b19cbde5cc3 Mon Sep 17 00:00:00 2001
From: Michael Forney <mforney@mforney.org>
Date: Tue, 2 Jul 2019 00:26:36 -0700
Subject: [PATCH] amixer: Use %lli for long long in printf
@@ -8,10 +8,10 @@ Subject: [PATCH] amixer: Use %lli for long long in printf
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/amixer/amixer.c b/amixer/amixer.c
-index 64fd4bb..00b0018 100644
+index f7f31f0..7048cac 100644
--- a/amixer/amixer.c
+++ b/amixer/amixer.c
-@@ -617,7 +617,7 @@ static int show_control(const char *space, snd_hctl_elem_t *elem,
+@@ -620,7 +620,7 @@ static int show_control(const char *space, snd_hctl_elem_t *elem,
snd_ctl_elem_info_get_step(info));
break;
case SND_CTL_ELEM_TYPE_INTEGER64:
@@ -20,7 +20,7 @@ index 64fd4bb..00b0018 100644
snd_ctl_elem_info_get_min64(info),
snd_ctl_elem_info_get_max64(info),
snd_ctl_elem_info_get_step64(info));
-@@ -659,7 +659,7 @@ static int show_control(const char *space, snd_hctl_elem_t *elem,
+@@ -662,7 +662,7 @@ static int show_control(const char *space, snd_hctl_elem_t *elem,
printf("%li", snd_ctl_elem_value_get_integer(control, idx));
break;
case SND_CTL_ELEM_TYPE_INTEGER64:
@@ -30,5 +30,5 @@ index 64fd4bb..00b0018 100644
case SND_CTL_ELEM_TYPE_ENUMERATED:
printf("%u", snd_ctl_elem_value_get_enumerated(control, idx));
--
-2.22.0
+2.24.0
diff --git a/pkg/alsa-utils/patch/0006-aplay-Error-on-WAV-files-with-more-than-256-channels.patch b/pkg/alsa-utils/patch/0006-aplay-Error-on-WAV-files-with-more-than-256-channels.patch
index cea43c1d..1e2d4c76 100644
--- a/pkg/alsa-utils/patch/0006-aplay-Error-on-WAV-files-with-more-than-256-channels.patch
+++ b/pkg/alsa-utils/patch/0006-aplay-Error-on-WAV-files-with-more-than-256-channels.patch
@@ -1,4 +1,4 @@
-From 495ea3f8ad785342e5e48ccc4a54a90ec7adff30 Mon Sep 17 00:00:00 2001
+From 8b90edf6b15a825548aac6cda3006e8a89880bc7 Mon Sep 17 00:00:00 2001
From: Michael Forney <mforney@mforney.org>
Date: Sun, 11 Aug 2019 04:26:06 +0000
Subject: [PATCH] aplay: Error on WAV files with more than 256 channels
@@ -10,7 +10,7 @@ limit for channels manually specified on the command-line anyway.
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/aplay/aplay.c b/aplay/aplay.c
-index d789222..a43ca55 100644
+index 46f7dd5..281957e 100644
--- a/aplay/aplay.c
+++ b/aplay/aplay.c
@@ -1055,7 +1055,7 @@ static ssize_t test_wavefile(int fd, u_char *_buffer, size_t size)
@@ -31,7 +31,7 @@ index d789222..a43ca55 100644
snd_pcm_chmap_t *hw_chmap;
unsigned int ch, i;
int err;
-@@ -2084,7 +2084,7 @@ static ssize_t pcm_writev(u_char **data, unsigned int channels, size_t count)
+@@ -2086,7 +2086,7 @@ static ssize_t pcm_writev(u_char **data, unsigned int channels, size_t count)
data = remap_datav(data, count);
while (count > 0 && !in_aborting) {
unsigned int channel;
@@ -40,7 +40,7 @@ index d789222..a43ca55 100644
size_t offset = result;
for (channel = 0; channel < channels; channel++)
bufs[channel] = data[channel] + offset * bits_per_sample / 8;
-@@ -2172,7 +2172,7 @@ static ssize_t pcm_readv(u_char **data, unsigned int channels, size_t rcount)
+@@ -2174,7 +2174,7 @@ static ssize_t pcm_readv(u_char **data, unsigned int channels, size_t rcount)
while (count > 0 && !in_aborting) {
unsigned int channel;
@@ -49,7 +49,7 @@ index d789222..a43ca55 100644
size_t offset = result;
for (channel = 0; channel < channels; channel++)
bufs[channel] = data[channel] + offset * bits_per_sample / 8;
-@@ -3238,7 +3238,7 @@ static void playbackv_go(int* fds, unsigned int channels, size_t loaded, off64_t
+@@ -3240,7 +3240,7 @@ static void playbackv_go(int* fds, unsigned int channels, size_t loaded, off64_t
size_t vsize;
unsigned int channel;
@@ -58,7 +58,7 @@ index d789222..a43ca55 100644
header(rtype, names[0]);
set_params();
-@@ -3290,7 +3290,7 @@ static void capturev_go(int* fds, unsigned int channels, off64_t count, int rtyp
+@@ -3292,7 +3292,7 @@ static void capturev_go(int* fds, unsigned int channels, off64_t count, int rtyp
ssize_t r;
unsigned int channel;
size_t vsize;
@@ -67,7 +67,7 @@ index d789222..a43ca55 100644
header(rtype, names[0]);
set_params();
-@@ -3327,7 +3327,7 @@ static void playbackv(char **names, unsigned int count)
+@@ -3329,7 +3329,7 @@ static void playbackv(char **names, unsigned int count)
unsigned int channel;
unsigned int channels = rhwparams.channels;
int alloced = 0;
@@ -76,7 +76,7 @@ index d789222..a43ca55 100644
for (channel = 0; channel < channels; ++channel)
fds[channel] = -1;
-@@ -3380,7 +3380,7 @@ static void capturev(char **names, unsigned int count)
+@@ -3382,7 +3382,7 @@ static void capturev(char **names, unsigned int count)
unsigned int channel;
unsigned int channels = rhwparams.channels;
int alloced = 0;
@@ -86,5 +86,5 @@ index d789222..a43ca55 100644
fds[channel] = -1;
--
-2.22.0
+2.24.0