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 {}