public inbox for alsa-devel@alsa-project.org
 help / color / mirror / Atom feed
* [PATCH] ALSA: usb-audio: Add endianness annotations
@ 2022-07-05 13:57 Jan Schär
  2022-07-05 14:52 ` Takashi Iwai
  0 siblings, 1 reply; 2+ messages in thread
From: Jan Schär @ 2022-07-05 13:57 UTC (permalink / raw)
  To: Takashi Iwai; +Cc: alsa-devel, Jan Schär, kernel test robot

Fixes: 4b8ea38fabab ("ALSA: usb-audio: Support jack detection on Dell dock")
Reported-by: kernel test robot <lkp@intel.com>
Link: https://lore.kernel.org/r/202207051932.qUilU0am-lkp@intel.com
Signed-off-by: Jan Schär <jan@jschaer.ch>
---
 sound/usb/mixer_quirks.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/sound/usb/mixer_quirks.c b/sound/usb/mixer_quirks.c
index 5a45822e60e7..c06d6dfa8139 100644
--- a/sound/usb/mixer_quirks.c
+++ b/sound/usb/mixer_quirks.c
@@ -1967,7 +1967,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,
@@ -1978,7 +1978,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,

base-commit: 2ef9868fff184a6246d2f71190be108a71aa2faa
-- 
2.32.0


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] ALSA: usb-audio: Add endianness annotations
  2022-07-05 13:57 [PATCH] ALSA: usb-audio: Add endianness annotations Jan Schär
@ 2022-07-05 14:52 ` Takashi Iwai
  0 siblings, 0 replies; 2+ messages in thread
From: Takashi Iwai @ 2022-07-05 14:52 UTC (permalink / raw)
  To: Jan Schär; +Cc: alsa-devel, Takashi Iwai, kernel test robot

On Tue, 05 Jul 2022 15:57:46 +0200,
Jan Schär wrote:
> 
> Fixes: 4b8ea38fabab ("ALSA: usb-audio: Support jack detection on Dell dock")
> Reported-by: kernel test robot <lkp@intel.com>
> Link: https://lore.kernel.org/r/202207051932.qUilU0am-lkp@intel.com
> Signed-off-by: Jan Schär <jan@jschaer.ch>

Thanks, applied.


Takashi

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-07-06 11:42 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-07-05 13:57 [PATCH] ALSA: usb-audio: Add endianness annotations Jan Schär
2022-07-05 14:52 ` Takashi Iwai

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox