mirror of
https://github.com/rust-vmm/vhost-device.git
synced 2025-12-28 08:01:04 +00:00
sound: rename typo virtio_snd_config.chmpas -> chmaps
This commit is contained in:
parent
63db2e8b41
commit
d39140f82a
@ -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),
|
||||
|
||||
@ -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 {}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user