]> 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:44 +0000 (10:03 +0300)
commit1608a7f81f0e220cba16b351349f6af0f8957b15
tree39136a8243775551f68c7cb27823d7442abf34c6
parent35e5ce5bd6f446c8a8df04cfeda1edc23e5f19da
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