[alsa-devel] [PATCH 0/1] alsa-lib: update hdspm.h
Hi!
Here's the patch for alsa-lib to fix the broken LTC ioctl.
Cheers
Adrian Knoth (1): hdspm.h: Update LTC ioctl to use struct hdspm_ltc
include/sound/hdspm.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Use struct hdspm_ltc to query the LTC, using a mixer struct was just plain wrong.
Due to the wrong struct, this ioctl was never working, so we're free to fix it without breaking userspace compatibility.
Signed-off-by: Adrian Knoth adi@drcomp.erfurt.thur.de
diff --git a/include/sound/hdspm.h b/include/sound/hdspm.h index 1774ff5..fe9c5f6 100644 --- a/include/sound/hdspm.h +++ b/include/sound/hdspm.h @@ -111,7 +111,7 @@ struct hdspm_ltc { enum hdspm_ltc_input_format input_format; };
-#define SNDRV_HDSPM_IOCTL_GET_LTC _IOR('H', 0x46, struct hdspm_mixer_ioctl) +#define SNDRV_HDSPM_IOCTL_GET_LTC _IOR('H', 0x46, struct hdspm_ltc)
/** * The status data reflects the device's current state
participants (1)
-
Adrian Knoth