diff options
Diffstat (limited to 'pkg/alsa-utils/patch')
| -rw-r--r-- | pkg/alsa-utils/patch/0002-aplay-Error-on-WAV-files-with-more-than-256-channels.patch | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/pkg/alsa-utils/patch/0002-aplay-Error-on-WAV-files-with-more-than-256-channels.patch b/pkg/alsa-utils/patch/0002-aplay-Error-on-WAV-files-with-more-than-256-channels.patch index e3bdb857..ede469ca 100644 --- a/pkg/alsa-utils/patch/0002-aplay-Error-on-WAV-files-with-more-than-256-channels.patch +++ b/pkg/alsa-utils/patch/0002-aplay-Error-on-WAV-files-with-more-than-256-channels.patch @@ -1,4 +1,4 @@ -From 2be689a3a8bb453d7ed588eeae6e32cb7c71e488 Mon Sep 17 00:00:00 2001 +From f06989024588dc370962e4d7e46f29c5a92facae 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,10 +10,10 @@ 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 0a65ad6..7c7ba71 100644 +index cc51dcb..288ac05 100644 --- a/aplay/aplay.c +++ b/aplay/aplay.c -@@ -1057,7 +1057,7 @@ static ssize_t test_wavefile(int fd, u_char *_buffer, size_t size) +@@ -1066,7 +1066,7 @@ static ssize_t test_wavefile(int fd, u_char *_buffer, size_t size) prg_exit(EXIT_FAILURE); } channels = TO_CPU_SHORT(f->channels, big_endian); @@ -22,7 +22,7 @@ index 0a65ad6..7c7ba71 100644 error(_("can't play WAVE-files with %d tracks"), channels); prg_exit(EXIT_FAILURE); } -@@ -1232,7 +1232,7 @@ static void show_available_sample_formats(snd_pcm_hw_params_t* params) +@@ -1241,7 +1241,7 @@ static void show_available_sample_formats(snd_pcm_hw_params_t* params) static int setup_chmap(void) { snd_pcm_chmap_t *chmap = channel_map; @@ -31,7 +31,7 @@ index 0a65ad6..7c7ba71 100644 snd_pcm_chmap_t *hw_chmap; unsigned int ch, i; int err; -@@ -2085,7 +2085,7 @@ static ssize_t pcm_writev(u_char **data, unsigned int channels, size_t count) +@@ -2144,7 +2144,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 0a65ad6..7c7ba71 100644 size_t offset = result; for (channel = 0; channel < channels; channel++) bufs[channel] = data[channel] + offset * bits_per_sample / 8; -@@ -2178,7 +2178,7 @@ static ssize_t pcm_readv(u_char **data, unsigned int channels, size_t rcount) +@@ -2237,7 +2237,7 @@ static ssize_t pcm_readv(u_char **data, unsigned int channels, size_t rcount) if (in_aborting) goto abort; unsigned int channel; @@ -49,7 +49,7 @@ index 0a65ad6..7c7ba71 100644 size_t offset = result; for (channel = 0; channel < channels; channel++) bufs[channel] = data[channel] + offset * bits_per_sample / 8; -@@ -3247,7 +3247,7 @@ static void playbackv_go(int* fds, unsigned int channels, size_t loaded, off64_t +@@ -3310,7 +3310,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 0a65ad6..7c7ba71 100644 header(rtype, names[0]); set_params(); -@@ -3299,7 +3299,7 @@ static void capturev_go(int* fds, unsigned int channels, off64_t count, int rtyp +@@ -3364,7 +3364,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 0a65ad6..7c7ba71 100644 header(rtype, names[0]); set_params(); -@@ -3336,7 +3336,7 @@ static void playbackv(char **names, unsigned int count) +@@ -3401,7 +3401,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 0a65ad6..7c7ba71 100644 for (channel = 0; channel < channels; ++channel) fds[channel] = -1; -@@ -3389,7 +3389,7 @@ static void capturev(char **names, unsigned int count) +@@ -3454,7 +3454,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 0a65ad6..7c7ba71 100644 fds[channel] = -1; -- -2.29.0 +2.31.1 |
