Skip to content

Commit f95719b

Browse files
sfrothwelltiwai
authored andcommitted
ALSA: usb: fcp: Fix hwdep read ops types
The FCP driver defined hwdep read function with ssize_t, but it should be long due to historical reason. This caused build errors on 32bit archs. Fixes: 46757a3 ("ALSA: FCP: Add Focusrite Control Protocol driver") Signed-off-by: Stephen Rothwell <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Takashi Iwai <[email protected]>
1 parent 0ce204d commit f95719b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

sound/usb/fcp.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -815,13 +815,13 @@ static int fcp_hwdep_ioctl(struct snd_hwdep *hw, struct file *file,
815815
/* not reached */
816816
}
817817

818-
static ssize_t fcp_hwdep_read(struct snd_hwdep *hw, char __user *buf,
819-
ssize_t count, loff_t *offset)
818+
static long fcp_hwdep_read(struct snd_hwdep *hw, char __user *buf,
819+
long count, loff_t *offset)
820820
{
821821
struct usb_mixer_interface *mixer = hw->private_data;
822822
struct fcp_data *private = mixer->private_data;
823823
unsigned long flags;
824-
ssize_t ret = 0;
824+
long ret = 0;
825825
u32 event;
826826

827827
if (count < sizeof(event))

0 commit comments

Comments
 (0)