From d39140f82a05fcbfb0805a528e09a0f966737e9d Mon Sep 17 00:00:00 2001 From: Manos Pitsidianakis Date: Mon, 5 Jun 2023 13:53:37 +0300 Subject: [PATCH] sound: rename typo virtio_snd_config.chmpas -> chmaps --- crates/sound/src/vhu_sound.rs | 2 +- crates/sound/src/virtio_sound.rs | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/crates/sound/src/vhu_sound.rs b/crates/sound/src/vhu_sound.rs index e0c9be3..aa9164a 100644 --- a/crates/sound/src/vhu_sound.rs +++ b/crates/sound/src/vhu_sound.rs @@ -118,7 +118,7 @@ impl VhostUserSoundBackend { virtio_cfg: VirtioSoundConfig { jacks: 0.into(), streams: 1.into(), - chmpas: 0.into(), + chmaps: 0.into(), }, exit_event: EventFd::new(EFD_NONBLOCK).map_err(Error::EventFdCreate)?, _audio_backend: RwLock::new(audio_backend), diff --git a/crates/sound/src/virtio_sound.rs b/crates/sound/src/virtio_sound.rs index 484c06e..06885d9 100644 --- a/crates/sound/src/virtio_sound.rs +++ b/crates/sound/src/virtio_sound.rs @@ -160,8 +160,9 @@ pub struct VirtioSoundConfig { /// total number of all available PCM streams pub streams: Le32, /// total number of all available channel maps - pub chmpas: Le32, + pub chmaps: Le32, } + // SAFETY: The layout of the structure is fixed and can be initialized by // reading its content from byte array. unsafe impl ByteValued for VirtioSoundConfig {}