vhost-device-sound/pipewire: fix wrong format

after pipewire update fix the hardcoded audio
format to use the audio format in the new
release

Fixes: #856

Signed-off-by: Dorinda Bassey <dbassey@redhat.com>
This commit is contained in:
Dorinda Bassey 2025-10-03 09:43:21 +02:00 committed by Stefano Garzarella
parent 0c8c287ad0
commit b6fd16f949
2 changed files with 2 additions and 1 deletions

View File

@ -12,6 +12,7 @@
### Fixed
- [[#808]](https://github.com/rust-vmm/vhost-device/pull/808) pipewire: Fix rand module imports
- [[#884]](https://github.com/rust-vmm/vhost-device/pull/884) vhost-device-sound/pipewire: fix wrong format
### Deprecated

View File

@ -319,7 +319,7 @@ impl AudioBackend for PwBackend {
};
let mut audio_info = AudioInfoRaw::new();
audio_info.set_format(AudioFormat::S16LE);
audio_info.set_format(AudioFormat(info.format));
audio_info.set_rate(info.rate);
audio_info.set_channels(info.channels);
audio_info.set_position(pos);