Skip to content

Commit

Permalink
ALSA: usb-audio: Add endianness annotations
Browse files Browse the repository at this point in the history
commit 61c606a upstream.

Fixes: 4b8ea38 ("ALSA: usb-audio: Support jack detection on Dell dock")
Reported-by: kernel test robot <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jan Schär <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Takashi Iwai <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
  • Loading branch information
jscissr authored and gregkh committed Nov 14, 2024
1 parent 2a6a4e6 commit ab81266
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sound/usb/mixer_quirks.c
Original file line number Diff line number Diff line change
Expand Up @@ -1965,7 +1965,7 @@ static int snd_soundblaster_e1_switch_create(struct usb_mixer_interface *mixer)
static int realtek_hda_set(struct snd_usb_audio *chip, u32 cmd)
{
struct usb_device *dev = chip->dev;
u32 buf = cpu_to_be32(cmd);
__be32 buf = cpu_to_be32(cmd);

return snd_usb_ctl_msg(dev, usb_sndctrlpipe(dev, 0), REALTEK_HDA_SET,
USB_RECIP_DEVICE | USB_TYPE_VENDOR | USB_DIR_OUT,
Expand All @@ -1976,7 +1976,7 @@ static int realtek_hda_get(struct snd_usb_audio *chip, u32 cmd, u32 *value)
{
struct usb_device *dev = chip->dev;
int err;
u32 buf = cpu_to_be32(cmd);
__be32 buf = cpu_to_be32(cmd);

err = snd_usb_ctl_msg(dev, usb_sndctrlpipe(dev, 0), REALTEK_HDA_GET_OUT,
USB_RECIP_DEVICE | USB_TYPE_VENDOR | USB_DIR_OUT,
Expand Down

0 comments on commit ab81266

Please sign in to comment.