summaryrefslogtreecommitdiffstats
path: root/meta/recipes-multimedia/alsa
diff options
context:
space:
mode:
authorMichael Opdenacker <michael.opdenacker@bootlin.com>2023-06-01 11:16:34 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2023-06-02 15:16:36 +0100
commit3b20aaad5ac239d4df282a5541d0858851e64da5 (patch)
tree841d0c4c33c89ad51bd7cd694188fd633c08f31a /meta/recipes-multimedia/alsa
parentec7576dbdc43fc33eeb96c206c80d8140f034f25 (diff)
downloadpoky-3b20aaad5ac239d4df282a5541d0858851e64da5.tar.gz
alsa-utils: upgrade 1.2.8 -> 1.2.9
(From OE-Core rev: 919079de918b6608fb9fa976eea0fe8b5b1359f6) Signed-off-by: Michael Opdenacker <michael.opdenacker@bootlin.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-multimedia/alsa')
-rw-r--r--meta/recipes-multimedia/alsa/alsa-utils/0001-alsactl-fix-compilation-when-building-in-a-subdir.patch35
-rw-r--r--meta/recipes-multimedia/alsa/alsa-utils/0001-aplay-axfer-Replace-off64_t-with-off_t.patch272
-rw-r--r--meta/recipes-multimedia/alsa/alsa-utils_1.2.9.bb (renamed from meta/recipes-multimedia/alsa/alsa-utils_1.2.8.bb)6
3 files changed, 38 insertions, 275 deletions
diff --git a/meta/recipes-multimedia/alsa/alsa-utils/0001-alsactl-fix-compilation-when-building-in-a-subdir.patch b/meta/recipes-multimedia/alsa/alsa-utils/0001-alsactl-fix-compilation-when-building-in-a-subdir.patch
new file mode 100644
index 0000000000..3b3fe5345a
--- /dev/null
+++ b/meta/recipes-multimedia/alsa/alsa-utils/0001-alsactl-fix-compilation-when-building-in-a-subdir.patch
@@ -0,0 +1,35 @@
1From 44636a7c5862538def0d2fac074772cc39a22a15 Mon Sep 17 00:00:00 2001
2From: Rudi Heitbaum <rudi@heitbaum.com>
3Date: Tue, 16 May 2023 02:27:59 +1000
4Subject: [PATCH] alsactl: fix compilation when building in a subdir
5
6Fixes: 613372d
7Fixes: cff2d1c
8
9Compile errors when building in a subdir:
10alsactl/alsactl.c:33:10: fatal error: os_compat.h: No such file or directory
11 33 | #include "os_compat.h"
12 | ^~~~~~~~~~~~~
13alsactl/lock.c:34:10: fatal error: os_compat.h: No such file or directory
14 34 | #include "os_compat.h"
15 | ^~~~~~~~~~~~~
16
17Signed-off-by: Rudi Heitbaum <rudi@heitbaum.com>
18Upstream-Status: Submitted [https://github.com/alsa-project/alsa-utils/pull/213]
19---
20 alsactl/Makefile.am | 2 ++
21 1 file changed, 2 insertions(+)
22
23diff --git a/alsactl/Makefile.am b/alsactl/Makefile.am
24index 80dba69d..fb32c4f3 100644
25--- a/alsactl/Makefile.am
26+++ b/alsactl/Makefile.am
27@@ -9,6 +9,8 @@ EXTRA_DIST=alsactl.1 alsactl_init.xml
28
29 AM_CFLAGS = -D_GNU_SOURCE
30
31+AM_CPPFLAGS = -I$(top_srcdir)/include
32+
33 alsactl_SOURCES=alsactl.c state.c lock.c utils.c init_parse.c init_ucm.c \
34 daemon.c monitor.c clean.c info.c
35
diff --git a/meta/recipes-multimedia/alsa/alsa-utils/0001-aplay-axfer-Replace-off64_t-with-off_t.patch b/meta/recipes-multimedia/alsa/alsa-utils/0001-aplay-axfer-Replace-off64_t-with-off_t.patch
deleted file mode 100644
index 356c5964ae..0000000000
--- a/meta/recipes-multimedia/alsa/alsa-utils/0001-aplay-axfer-Replace-off64_t-with-off_t.patch
+++ /dev/null
@@ -1,272 +0,0 @@
1From 03553ccc6284a437576349b5a3c2ed0d7d4265e1 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Thu, 15 Dec 2022 14:04:10 -0800
4Subject: [PATCH] aplay,axfer: Replace off64_t with off_t
5
6Also replace lseek64 with lseek.
7
8_FILE_OFFSET_BITS=64 is passed to needed platforms since configure uses
9AC_SYS_LARGEFILE macro. Therefore off_t is already 64-bit and lseek is
10same as lseek64.
11
12Additionally this fixes buils with latest musl where these lfs64
13functions are moved out from _GNU_SOURCE and under _LARGEFILE64_SOURCE
14macro alone. This makes the builds fail on 32-bit platforms even though
15default off_t on musl is 64-bit always.
16
17Upstream-Status: Submitted [https://github.com/alsa-project/alsa-utils/pull/183]
18Signed-off-by: Khem Raj <raj.khem@gmail.com>
19---
20 aplay/aplay.c | 44 ++++++++++++++++++-------------------
21 axfer/container-voc.c | 2 +-
22 axfer/container.c | 6 ++---
23 axfer/container.h | 2 +-
24 axfer/test/container-test.c | 4 ++--
25 axfer/test/mapper-test.c | 2 +-
26 6 files changed, 30 insertions(+), 30 deletions(-)
27
28diff --git a/aplay/aplay.c b/aplay/aplay.c
29index 6ce7191..bd93be3 100644
30--- a/aplay/aplay.c
31+++ b/aplay/aplay.c
32@@ -141,7 +141,7 @@ static long term_c_lflag = -1;
33 static int dump_hw_params = 0;
34
35 static int fd = -1;
36-static off64_t pbrec_count = LLONG_MAX, fdcount;
37+static off_t pbrec_count = LLONG_MAX, fdcount;
38 static int vocmajor, vocminor;
39
40 static char *pidfile_name = NULL;
41@@ -2356,7 +2356,7 @@ static void voc_play(int fd, int ofs, char *name)
42 u_char *data, *buf;
43 char was_extended = 0, output = 0;
44 u_short *sp, repeat = 0;
45- off64_t filepos = 0;
46+ off_t filepos = 0;
47
48 #define COUNT(x) nextblock -= x; in_buffer -= x; data += x
49 #define COUNT1(x) in_buffer -= x; data += x
50@@ -2490,7 +2490,7 @@ static void voc_play(int fd, int ofs, char *name)
51 d_printf("Repeat loop %d times\n", repeat);
52 #endif
53 if (filepos >= 0) { /* if < 0, one seek fails, why test another */
54- if ((filepos = lseek64(fd, 0, 1)) < 0) {
55+ if ((filepos = lseek(fd, 0, 1)) < 0) {
56 error(_("can't play loops; %s isn't seekable\n"), name);
57 repeat = 0;
58 } else {
59@@ -2512,7 +2512,7 @@ static void voc_play(int fd, int ofs, char *name)
60 else
61 d_printf("Neverending loop\n");
62 #endif
63- lseek64(fd, filepos, 0);
64+ lseek(fd, filepos, 0);
65 in_buffer = 0; /* clear the buffer */
66 goto Fill_the_buffer;
67 }
68@@ -2578,9 +2578,9 @@ static void init_raw_data(void)
69 }
70
71 /* calculate the data count to read from/to dsp */
72-static off64_t calc_count(void)
73+static off_t calc_count(void)
74 {
75- off64_t count;
76+ off_t count;
77
78 if (timelimit == 0)
79 if (sampleslimit == 0)
80@@ -2589,7 +2589,7 @@ static off64_t calc_count(void)
81 count = snd_pcm_format_size(hwparams.format, sampleslimit * hwparams.channels);
82 else {
83 count = snd_pcm_format_size(hwparams.format, hwparams.rate * hwparams.channels);
84- count *= (off64_t)timelimit;
85+ count *= (off_t)timelimit;
86 }
87 return count < pbrec_count ? count : pbrec_count;
88 }
89@@ -2750,7 +2750,7 @@ static void begin_au(int fd, size_t cnt)
90 /* closing .VOC */
91 static void end_voc(int fd)
92 {
93- off64_t length_seek;
94+ off_t length_seek;
95 VocBlockType bt;
96 size_t cnt;
97 char dummy = 0; /* Write a Terminator */
98@@ -2770,15 +2770,15 @@ static void end_voc(int fd)
99 bt.datalen = (u_char) (cnt & 0xFF);
100 bt.datalen_m = (u_char) ((cnt & 0xFF00) >> 8);
101 bt.datalen_h = (u_char) ((cnt & 0xFF0000) >> 16);
102- if (lseek64(fd, length_seek, SEEK_SET) == length_seek)
103+ if (lseek(fd, length_seek, SEEK_SET) == length_seek)
104 xwrite(fd, &bt, sizeof(VocBlockType));
105 }
106
107 static void end_wave(int fd)
108 { /* only close output */
109 WaveChunkHeader cd;
110- off64_t length_seek;
111- off64_t filelen;
112+ off_t length_seek;
113+ off_t filelen;
114 u_int rifflen;
115
116 length_seek = sizeof(WaveHeader) +
117@@ -2788,20 +2788,20 @@ static void end_wave(int fd)
118 cd.length = fdcount > 0x7fffffff ? LE_INT(0x7fffffff) : LE_INT(fdcount);
119 filelen = fdcount + 2*sizeof(WaveChunkHeader) + sizeof(WaveFmtBody) + 4;
120 rifflen = filelen > 0x7fffffff ? LE_INT(0x7fffffff) : LE_INT(filelen);
121- if (lseek64(fd, 4, SEEK_SET) == 4)
122+ if (lseek(fd, 4, SEEK_SET) == 4)
123 xwrite(fd, &rifflen, 4);
124- if (lseek64(fd, length_seek, SEEK_SET) == length_seek)
125+ if (lseek(fd, length_seek, SEEK_SET) == length_seek)
126 xwrite(fd, &cd, sizeof(WaveChunkHeader));
127 }
128
129 static void end_au(int fd)
130 { /* only close output */
131 AuHeader ah;
132- off64_t length_seek;
133+ off_t length_seek;
134
135 length_seek = (char *)&ah.data_size - (char *)&ah;
136 ah.data_size = fdcount > 0xffffffff ? 0xffffffff : BE_INT(fdcount);
137- if (lseek64(fd, length_seek, SEEK_SET) == length_seek)
138+ if (lseek(fd, length_seek, SEEK_SET) == length_seek)
139 xwrite(fd, &ah.data_size, sizeof(ah.data_size));
140 }
141
142@@ -2828,11 +2828,11 @@ static void header(int rtype, char *name)
143
144 /* playing raw data */
145
146-static void playback_go(int fd, size_t loaded, off64_t count, int rtype, char *name)
147+static void playback_go(int fd, size_t loaded, off_t count, int rtype, char *name)
148 {
149 int l, r;
150- off64_t written = 0;
151- off64_t c;
152+ off_t written = 0;
153+ off_t c;
154
155 header(rtype, name);
156 set_params();
157@@ -3202,7 +3202,7 @@ static void capture(char *orig_name)
158 int filecount=0; /* number of files written */
159 char *name = orig_name; /* current filename */
160 char namebuf[PATH_MAX+2];
161- off64_t count, rest; /* number of bytes to capture */
162+ off_t count, rest; /* number of bytes to capture */
163 struct stat statbuf;
164
165 /* get number of bytes to capture */
166@@ -3273,7 +3273,7 @@ static void capture(char *orig_name)
167 /* capture */
168 fdcount = 0;
169 while (rest > 0 && recycle_capture_file == 0 && !in_aborting) {
170- size_t c = (rest <= (off64_t)chunk_bytes) ?
171+ size_t c = (rest <= (off_t)chunk_bytes) ?
172 (size_t)rest : chunk_bytes;
173 size_t f = c * 8 / bits_per_frame;
174 size_t read = pcm_read(audiobuf, f);
175@@ -3314,7 +3314,7 @@ static void capture(char *orig_name)
176 } while ((file_type == FORMAT_RAW && !timelimit && !sampleslimit) || count > 0);
177 }
178
179-static void playbackv_go(int* fds, unsigned int channels, size_t loaded, off64_t count, int rtype, char **names)
180+static void playbackv_go(int* fds, unsigned int channels, size_t loaded, off_t count, int rtype, char **names)
181 {
182 int r;
183 size_t vsize;
184@@ -3368,7 +3368,7 @@ static void playbackv_go(int* fds, unsigned int channels, size_t loaded, off64_t
185 }
186 }
187
188-static void capturev_go(int* fds, unsigned int channels, off64_t count, int rtype, char **names)
189+static void capturev_go(int* fds, unsigned int channels, off_t count, int rtype, char **names)
190 {
191 size_t c;
192 ssize_t r;
193diff --git a/axfer/container-voc.c b/axfer/container-voc.c
194index ec0cfff..5941003 100644
195--- a/axfer/container-voc.c
196+++ b/axfer/container-voc.c
197@@ -775,7 +775,7 @@ static int write_block_terminator(struct container_context *cntr)
198 static int write_data_size(struct container_context *cntr, uint64_t byte_count)
199 {
200 struct builder_state *state = cntr->private_data;
201- off64_t offset;
202+ off_t offset;
203 uint8_t size_field[3];
204 int err;
205
206diff --git a/axfer/container.c b/axfer/container.c
207index 8c88d5c..379b72f 100644
208--- a/axfer/container.c
209+++ b/axfer/container.c
210@@ -113,11 +113,11 @@ enum container_format container_format_from_path(const char *path)
211 return CONTAINER_FORMAT_RAW;
212 }
213
214-int container_seek_offset(struct container_context *cntr, off64_t offset)
215+int container_seek_offset(struct container_context *cntr, off_t offset)
216 {
217- off64_t pos;
218+ off_t pos;
219
220- pos = lseek64(cntr->fd, offset, SEEK_SET);
221+ pos = lseek(cntr->fd, offset, SEEK_SET);
222 if (pos < 0)
223 return -errno;
224 if (pos != offset)
225diff --git a/axfer/container.h b/axfer/container.h
226index 71017a6..f6ce689 100644
227--- a/axfer/container.h
228+++ b/axfer/container.h
229@@ -107,7 +107,7 @@ int container_recursive_read(struct container_context *cntr, void *buf,
230 unsigned int byte_count);
231 int container_recursive_write(struct container_context *cntr, void *buf,
232 unsigned int byte_count);
233-int container_seek_offset(struct container_context *cntr, off64_t offset);
234+int container_seek_offset(struct container_context *cntr, off_t offset);
235
236 extern const struct container_parser container_parser_riff_wave;
237 extern const struct container_builder container_builder_riff_wave;
238diff --git a/axfer/test/container-test.c b/axfer/test/container-test.c
239index e5b62dd..45b6c6a 100644
240--- a/axfer/test/container-test.c
241+++ b/axfer/test/container-test.c
242@@ -153,7 +153,7 @@ static int callback(struct test_generator *gen, snd_pcm_access_t access,
243
244 for (i = 0; i < ARRAY_SIZE(entries); ++i) {
245 int fd;
246- off64_t pos;
247+ off_t pos;
248
249 frames_per_second = entries[i];
250
251@@ -172,7 +172,7 @@ static int callback(struct test_generator *gen, snd_pcm_access_t access,
252 frames_per_second, frame_buffer, frame_count,
253 trial->verbose);
254
255- pos = lseek64(fd, 0, SEEK_SET);
256+ pos = lseek(fd, 0, SEEK_SET);
257 if (pos < 0) {
258 err = -errno;
259 break;
260diff --git a/axfer/test/mapper-test.c b/axfer/test/mapper-test.c
261index 477871d..6a389e9 100644
262--- a/axfer/test/mapper-test.c
263+++ b/axfer/test/mapper-test.c
264@@ -257,7 +257,7 @@ static int test_mapper(struct mapper_trial *trial, snd_pcm_access_t access,
265 goto end;
266
267 for (i = 0; i < cntr_count; ++i) {
268- off64_t pos = lseek64(cntr_fds[i], 0, SEEK_SET);
269+ off_t pos = lseek(cntr_fds[i], 0, SEEK_SET);
270 if (pos != 0) {
271 err = -EIO;
272 goto end;
diff --git a/meta/recipes-multimedia/alsa/alsa-utils_1.2.8.bb b/meta/recipes-multimedia/alsa/alsa-utils_1.2.9.bb
index 46d39b0de8..2f344015a9 100644
--- a/meta/recipes-multimedia/alsa/alsa-utils_1.2.8.bb
+++ b/meta/recipes-multimedia/alsa/alsa-utils_1.2.9.bb
@@ -25,9 +25,9 @@ PACKAGECONFIG[manpages] = "--enable-xmlto, --disable-xmlto, xmlto-native docbook
25 25
26# alsa-utils specified in SRC_URI due to alsa-utils-scripts recipe 26# alsa-utils specified in SRC_URI due to alsa-utils-scripts recipe
27SRC_URI = "https://www.alsa-project.org/files/pub/utils/alsa-utils-${PV}.tar.bz2 \ 27SRC_URI = "https://www.alsa-project.org/files/pub/utils/alsa-utils-${PV}.tar.bz2 \
28 file://0001-aplay-axfer-Replace-off64_t-with-off_t.patch \ 28 file://0001-alsactl-fix-compilation-when-building-in-a-subdir.patch \
29 " 29 "
30SRC_URI[sha256sum] = "e140fa604c351f36bd72167c8860c69d81b964ae6ab53992d6434dde38e9333c" 30SRC_URI[sha256sum] = "e7623d4525595f92e11ce25ee9a97f2040a14c6e4dcd027aa96e06cbce7817bd"
31 31
32# On build machines with python-docutils (not python3-docutils !!) installed 32# On build machines with python-docutils (not python3-docutils !!) installed
33# rst2man (not rst2man.py) is detected and compile fails with 33# rst2man (not rst2man.py) is detected and compile fails with