From patchwork Tue Jul 5 13:57:46 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Jan_Sch=C3=A4r?= X-Patchwork-Id: 12908009 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id F421EC43334 for ; Wed, 6 Jul 2022 11:42:13 +0000 (UTC) Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id DB82816C3; Wed, 6 Jul 2022 13:41:21 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz DB82816C3 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1657107731; bh=MVNoAajfEQWoVf6jfzbsfM2MwV1dKQ/pr1ERO0P3FWw=; h=From:To:Subject:Date:Cc:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From; b=M2kbjWfF5/oTkuTYQ4wBOY4avUrxsm7feT/qz6Kk8sXCXvLlKmAXatFGcrOUhKDun wcZX0171ge67kJ7SWuY498oGmjaAN+ZcVep3umrYq+3xlcj6aMRwA4/8FZpK7E0R+l zSmlbUjHfa3Y6nzvhqd7BlMf81RNQiKaFYGAqKjU= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id 0F513F8032B; Wed, 6 Jul 2022 13:40:52 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id E1045F8015B; Tue, 5 Jul 2022 15:58:26 +0200 (CEST) Received: from out1-smtp.messagingengine.com (out1-smtp.messagingengine.com [66.111.4.25]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id 3594DF800CB for ; Tue, 5 Jul 2022 15:58:14 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 3594DF800CB Authentication-Results: alsa1.perex.cz; dkim=pass (2048-bit key) header.d=jschaer.ch header.i=@jschaer.ch header.b="E1oDX32+"; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="hoLQje2m" Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id CDC3B5C0078; Tue, 5 Jul 2022 09:58:13 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute5.internal (MEProxy); Tue, 05 Jul 2022 09:58:13 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jschaer.ch; h=cc :cc:content-transfer-encoding:content-type:date:date:from:from :in-reply-to:message-id:mime-version:reply-to:sender:subject :subject:to:to; s=fm2; t=1657029493; x=1657115893; bh=3pBWnobVtm Yk1o03Q9pUyRbRyBRkuWaatCBSNZWziGc=; b=E1oDX32+Om+A4pnHDWMGnSlTTC 3EoKQsAU7+cHq00t23I/VSdvMgP4vngJ1mueWTIeLMxkMoWAOasif6/ECwHDZdL+ zCYKtPPd/fL2zu72pv/DlDCEM8QFUn7Qq0V83sVxMpEhRZAQl3vp7jjdhQHA2obp ak60nyn7ysS14ODVsAZWzG0tPUGtSavR3z3mOJF/2ufa4iZreptMECY/60fMv87x WfB9GP2VjuGkxNo2tZwayOqon936grGAa88E0sAyMAI29x6Lro7MNisv57nBjucg nsiSwoDOff1iQNjHh9FqiU9aD/1E8/nFpY06Ag0Yh5hTKV3Yl7u199Dp7snQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:message-id:mime-version:reply-to:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; t=1657029493; x=1657115893; bh=3pBWnobVtmYk1 o03Q9pUyRbRyBRkuWaatCBSNZWziGc=; b=hoLQje2mKQvlcFuaVeqd+qtAcLQve FV7KHmO9j6CVHVvYriKBVAsubZU033xpKcwY8r6i8CPFYH/XWjGPoOOFQWLAmiZ+ qt9HQfCR6V8EmhcPILFgrAjgw1WV15g1TfkmJDvEDEf6xpw4ho9DJx4nonKUswdz VpHuSO1OXbvLUuLC0yV+UcnnrDGUliKCtmsH93Zqi4IQIjJU4z9vH1Vg2/MMSJ4U L7iWvkkOKRitz+0ksFNBRpaUUA7WBKGACD0eNqRyDfIb1+4lYONcEsmEzl7oqdjB g2qWNlpjvCOborsbxTFMGKVr13JfFBiyEqUutEBjIld18jOcvisJEJqzA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrudeiuddgjeegucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvvefufffkofggtgfgsehtkeertdertdejnecuhfhrohhmpeflrghnucfu tghhmohruceojhgrnhesjhhstghhrggvrhdrtghhqeenucggtffrrghtthgvrhhnpeffie egtdfgjefguefgiefgleeigfelfeetieefhfeifeethfekgfdvjeeljeetleenucffohhm rghinhepkhgvrhhnvghlrdhorhhgnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrg hmpehmrghilhhfrhhomhepjhgrnhesjhhstghhrggvrhdrtghh X-ME-Proxy: Feedback-ID: ie67446dc:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 5 Jul 2022 09:58:12 -0400 (EDT) From: =?utf-8?q?Jan_Sch=C3=A4r?= To: Takashi Iwai Subject: [PATCH] ALSA: usb-audio: Add endianness annotations Date: Tue, 5 Jul 2022 15:57:46 +0200 Message-Id: <20220705135746.13713-1-jan@jschaer.ch> X-Mailer: git-send-email 2.32.0 MIME-Version: 1.0 X-Mailman-Approved-At: Wed, 06 Jul 2022 13:40:50 +0200 Cc: alsa-devel@alsa-project.org, =?utf-8?q?Jan_Sch=C3=A4r?= , kernel test robot X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: "Alsa-devel" Fixes: 4b8ea38fabab ("ALSA: usb-audio: Support jack detection on Dell dock") Reported-by: kernel test robot Link: https://lore.kernel.org/r/202207051932.qUilU0am-lkp@intel.com Signed-off-by: Jan Schär --- sound/usb/mixer_quirks.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) base-commit: 2ef9868fff184a6246d2f71190be108a71aa2faa 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,