projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8191743
)
ALSA: usb-audio: Fixing usage of plain int instead of NULL
author
Thomas Ebeling
<penguins@bollie.de>
Fri, 29 May 2020 17:32:56 +0000
(19:32 +0200)
committer
Takashi Iwai
<tiwai@suse.de>
Fri, 29 May 2020 17:40:31 +0000
(19:40 +0200)
As reported by kbuild test robot, mixer quirks for RME Babyface
Pro used plain integer instead of NULL.
Fixes: 3e8f3bd04716 ("ALSA: usb-audio: RME Babyface Pro mixer patch")
Signed-off-by: Thomas Ebeling <penguins@bollie.de>
Reported-by: kbuild test robot <lkp@intel.com>
Link:
https://lore.kernel.org/r/20200529173248.zzawijfvw73kzjxt@bollie.ca9.eu
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/usb/mixer_quirks.c
patch
|
blob
|
history
diff --git
a/sound/usb/mixer_quirks.c
b/sound/usb/mixer_quirks.c
index aad2683ff7933005ec2cac592bf1d54e7a49e5c5..b6bcf2f92383ceec0cb05f5cbe22862a19c44695 100644
(file)
--- a/
sound/usb/mixer_quirks.c
+++ b/
sound/usb/mixer_quirks.c
@@
-2255,7
+2255,7
@@
static int snd_bbfpro_ctl_update(struct usb_mixer_interface *mixer, u8 reg,
err = snd_usb_ctl_msg(chip->dev,
usb_sndctrlpipe(chip->dev, 0), usb_req,
USB_DIR_OUT | USB_TYPE_VENDOR | USB_RECIP_DEVICE,
- usb_val, usb_idx,
0
, 0);
+ usb_val, usb_idx,
NULL
, 0);
snd_usb_unlock_shutdown(chip);
return err;
@@
-2394,7
+2394,7
@@
static int snd_bbfpro_vol_update(struct usb_mixer_interface *mixer, u16 index,
SND_BBFPRO_USBREQ_MIXER,
USB_DIR_OUT | USB_TYPE_VENDOR |
USB_RECIP_DEVICE,
- usb_val, usb_idx,
0
, 0);
+ usb_val, usb_idx,
NULL
, 0);
snd_usb_unlock_shutdown(chip);
return err;