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)
committerPhilippe Mathieu-Daudé <philmd@linaro.org>
Wed, 19 Jun 2024 10:40:49 +0000 (12:40 +0200)
commita276ec8e2632c9015d0f9b4e47194e4e91dfa8bb
tree0e8533d04314a29731e8ee719bcf38b916228439
parente6115657a4437ae13985352ab3e77d78f8cf1ce4
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>
hw/audio/virtio-snd.c