Commit graph

13 commits

Author SHA1 Message Date
Jaroslav Kysela
90c2aa2639 ld10k1: fix various gcc warnings
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
2025-01-27 10:44:25 +01:00
Ross Burton
235d9c5e83 ld10k1: define _GNU_SOURCE and use sighandler_t
__sighandler_t is a glibc internal type which doesn't exist in musl.  By using
AC_USE_SYSTEM_EXTENSIONS to get _GNU_SOURCE defined, both glibc and musl
then expose sighandler_t.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
2018-06-12 14:30:58 +02:00
Jaroslav Kysela
38f7504af2 Change FSF address (Franklin Street)
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
2017-11-14 14:47:19 +01:00
Jordi Mallach
e79e2011ef Fix build errors caused by -Werror=format-security.
When compiled with hardening-flags enabled, ld10k1 fails to build due to
a pair of unsafe printf usages that trigger -Werror=format-security.

Signed-off-by: Jordi Mallach <jordi@debian.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
2013-05-16 10:40:06 +02:00
Takashi Iwai
ca6a8bac3c ld10k1 - Use the new API
Issue SNDRV_EMU10K1_IOCTL_PVERSION and check the driver.
This prevents to run ld10k1 on the older binary-incompatible driver.
2007-01-19 18:38:26 +01:00
Takashi Iwai
4146690880 Minor clean up for bitops
Minor clean up for bitops.
2005-11-09 12:32:17 +00:00
Takashi Iwai
f6f9529714 Use unsigned int for better optimization
Use unsigned int in bitops for better optimization.
2005-11-09 12:23:02 +00:00
Takashi Iwai
6b46723473 Fix bit ops for 64bit long
Fix bit ops for 64bit long.
2005-11-08 17:13:30 +00:00
Takashi Iwai
125498519d Fix bitops to be 64bit clean
A patch from bug#1343:

On all 64bit systems (the easiest example is amd64) ld10k1 crashes on
use by lo10k1, some debugging tracked down the problem fairly quickly.

The bitops functions (set_bit and associated) that ld10k1 use come from
the linux kernel, and assume that longs are 32bit only, causing a buffer
overflow of the bit buffer.

The attached patch fixes the bitops to be independent of the size of
longs, and is confirmed to fix the bug on my box.

Zephaniah E. Hull.
2005-08-18 13:01:56 +00:00
Takashi Iwai
700edf08b4 Various fixes to ld10k1
Various fixes by Tim <terminator356@users.sourceforge.net>:

- Now loads as10k1 bin patch files from ALSA alsa-tools AND from EMU1roject emu-utils.
- Fixed init_live bug.
- Fixed bug in liblo10k1.c liblo10k1_patch_get().
2005-06-03 12:30:46 +00:00
Takashi Iwai
7cd01af9c1 Fix uninitialized variable
Fixed uninitialized variable.  Fix also for gcc-2.9x.
2005-05-24 16:53:10 +00:00
Mikael Magnusson
e4da25863f Fix handling of $CFLAGS and $LIBS
Removes ALSA_CFLAGS and ALSA_LIBS in configure.in, they are added to
CFLAGS and LDADD in src/Makefile.am already.

Signed-off-by: Mikael Magnusson <mikma@users.sourceforge.net>
2005-05-17 16:10:38 +00:00
Takashi Iwai
2df1aa7c20 Add ld10k1 tool
Added ld10k1 tool by Peter Zubaj.
2005-03-18 13:40:44 +00:00