]> git.ipfire.org Git - thirdparty/qemu.git/commit
hw/audio/virtio-snd: Always use little endian audio format
authorPhilippe Mathieu-Daudé <philmd@linaro.org>
Mon, 22 Apr 2024 12:47:23 +0000 (14:47 +0200)
committerMichael Tokarev <mjt@tls.msk.ru>
Thu, 20 Jun 2024 07:03:40 +0000 (10:03 +0300)
commit1798f382428e56fe7e0dbfd9394059dcb8a21b84
tree7fc342cad9af41e6a327b7d32b9071f556cadb5b
parentfdbeeb454c9650f0fe96bbb4862d62eadcc33531
hw/audio/virtio-snd: Always use little endian audio format

The VIRTIO Sound Device conforms with the Virtio spec v1.2,
thus only use little endianness.

Remove the suspicious target_words_bigendian() noticed during
code review.

Cc: qemu-stable@nongnu.org
Fixes: eb9ad377bb ("virtio-sound: handle control messages and streams")
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Message-Id: <20240422211830.25606-1-philmd@linaro.org>
(cherry picked from commit a276ec8e2632c9015d0f9b4e47194e4e91dfa8bb)
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
hw/audio/virtio-snd.c