sound: rename typo virtio_snd_config.chmpas -> chmaps

This commit is contained in:
Manos Pitsidianakis 2023-06-05 13:53:37 +03:00
parent 63db2e8b41
commit d39140f82a
No known key found for this signature in database
GPG Key ID: 7729C7707F7E09D0
2 changed files with 3 additions and 2 deletions

View File

@ -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),

View File

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