Linux Sound subsystem development
 help / color / mirror / Atom feed
* [PATCH] ASoC: codecs: wm0010: Replace cpu_to_be64 + le64_to_cpu with swab64
@ 2025-12-09 15:18 Thorsten Blum
  2025-12-10  9:59 ` Charles Keepax
  2025-12-15 13:58 ` Mark Brown
  0 siblings, 2 replies; 3+ messages in thread
From: Thorsten Blum @ 2025-12-09 15:18 UTC (permalink / raw)
  To: Liam Girdwood, Mark Brown, Jaroslav Kysela, Takashi Iwai,
	Charles Keepax, Kuninori Morimoto, Christophe JAILLET
  Cc: Thorsten Blum, patches, linux-sound, linux-kernel

Replace cpu_to_be64(le64_to_cpu()) with swab64() to simplify
byte_swap_64().  No functional changes.

Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
---
 sound/soc/codecs/wm0010.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sound/soc/codecs/wm0010.c b/sound/soc/codecs/wm0010.c
index 7511c71695c6..6e097d8ed288 100644
--- a/sound/soc/codecs/wm0010.c
+++ b/sound/soc/codecs/wm0010.c
@@ -326,7 +326,7 @@ static void byte_swap_64(u64 *data_in, u64 *data_out, u32 len)
 	int i;
 
 	for (i = 0; i < len / 8; i++)
-		data_out[i] = cpu_to_be64(le64_to_cpu(data_in[i]));
+		data_out[i] = swab64(data_in[i]);
 }
 
 static int wm0010_firmware_load(const char *name, struct snd_soc_component *component)
-- 
Thorsten Blum <thorsten.blum@linux.dev>
GPG: 1D60 735E 8AEF 3BE4 73B6  9D84 7336 78FD 8DFE EAD4


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

* Re: [PATCH] ASoC: codecs: wm0010: Replace cpu_to_be64 + le64_to_cpu with swab64
  2025-12-09 15:18 [PATCH] ASoC: codecs: wm0010: Replace cpu_to_be64 + le64_to_cpu with swab64 Thorsten Blum
@ 2025-12-10  9:59 ` Charles Keepax
  2025-12-15 13:58 ` Mark Brown
  1 sibling, 0 replies; 3+ messages in thread
From: Charles Keepax @ 2025-12-10  9:59 UTC (permalink / raw)
  To: Thorsten Blum
  Cc: Liam Girdwood, Mark Brown, Jaroslav Kysela, Takashi Iwai,
	Kuninori Morimoto, Christophe JAILLET, patches, linux-sound,
	linux-kernel

On Tue, Dec 09, 2025 at 04:18:50PM +0100, Thorsten Blum wrote:
> Replace cpu_to_be64(le64_to_cpu()) with swab64() to simplify
> byte_swap_64().  No functional changes.
> 
> Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
> ---

Reviewed-by: Charles Keepax <ckeepax@opensource.cirrus.com>

Thanks,
Charles

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

* Re: [PATCH] ASoC: codecs: wm0010: Replace cpu_to_be64 + le64_to_cpu with swab64
  2025-12-09 15:18 [PATCH] ASoC: codecs: wm0010: Replace cpu_to_be64 + le64_to_cpu with swab64 Thorsten Blum
  2025-12-10  9:59 ` Charles Keepax
@ 2025-12-15 13:58 ` Mark Brown
  1 sibling, 0 replies; 3+ messages in thread
From: Mark Brown @ 2025-12-15 13:58 UTC (permalink / raw)
  To: Liam Girdwood, Jaroslav Kysela, Takashi Iwai, Charles Keepax,
	Kuninori Morimoto, Christophe JAILLET, Thorsten Blum
  Cc: patches, linux-sound, linux-kernel

On Tue, 09 Dec 2025 16:18:50 +0100, Thorsten Blum wrote:
> Replace cpu_to_be64(le64_to_cpu()) with swab64() to simplify
> byte_swap_64().  No functional changes.
> 
> 

Applied to

   https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next

Thanks!

[1/1] ASoC: codecs: wm0010: Replace cpu_to_be64 + le64_to_cpu with swab64
      commit: a49e098be20063c91b673a674b8f0f92135448da

All being well this means that it will be integrated into the linux-next
tree (usually sometime in the next 24 hours) and sent to Linus during
the next merge window (or sooner if it is a bug fix), however if
problems are discovered then the patch may be dropped or reverted.

You may get further e-mails resulting from automated or manual testing
and review of the tree, please engage with people reporting problems and
send followup patches addressing any issues that are reported if needed.

If any updates are required or you are submitting further changes they
should be sent as incremental updates against current git, existing
patches will not be replaced.

Please add any relevant lists and maintainers to the CCs when replying
to this mail.

Thanks,
Mark


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

end of thread, other threads:[~2025-12-15 13:58 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-12-09 15:18 [PATCH] ASoC: codecs: wm0010: Replace cpu_to_be64 + le64_to_cpu with swab64 Thorsten Blum
2025-12-10  9:59 ` Charles Keepax
2025-12-15 13:58 ` Mark Brown

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