Merge pull request #4 from epilys/fix/chmaps-typo

rename typo virtio_snd_config.chmpas -> chmaps
This commit is contained in:
Stefano Garzarella 2023-06-06 13:49:55 +02:00 committed by GitHub
commit 9f20f6502f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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 {}