File tree Expand file tree Collapse file tree 8 files changed +1301
-2
lines changed Expand file tree Collapse file tree 8 files changed +1301
-2
lines changed Original file line number Diff line number Diff line change @@ -67,7 +67,8 @@ struct I2cArgs {
6767 socket_count : usize ,
6868
6969 /// List of I2C bus and clients in format
70- /// `<bus-name>:<client_addr>[:<client_addr>][,<bus-name>:<client_addr>[:<client_addr>]]`.
70+ /// `<bus-name>:<client_addr>[:<client_addr>][,<bus-name>:<client_addr>[:
71+ /// <client_addr>]]`.
7172 #[ clap( short = 'l' , long) ]
7273 device_list : String ,
7374}
Original file line number Diff line number Diff line change 33
44### Added
55
6+ - [[ #876 ]] ( https://github.com/rust-vmm/vhost-device/pull/876 ) Add GStreamer audio backend support
67- [[ #806 ]] ( https://github.com/rust-vmm/vhost-device/pull/806 ) Add controls field in VirtioSoundConfig
78- [[ #746 ]] ( https://github.com/rust-vmm/vhost-device/pull/746 ) Add new sampling rates 12000Hz and 24000Hz
89
Original file line number Diff line number Diff line change @@ -25,4 +25,7 @@ pub enum BackendType {
2525 Pipewire ,
2626 #[ cfg( all( feature = "alsa-backend" , target_env = "gnu" ) ) ]
2727 Alsa ,
28+ #[ cfg( all( feature = "gst-backend" , target_env = "gnu" ) ) ]
29+ #[ value( name = "gstreamer" ) ]
30+ GStreamer ,
2831}
Original file line number Diff line number Diff line change @@ -8,10 +8,15 @@ mod null;
88#[ cfg( all( feature = "pw-backend" , target_env = "gnu" ) ) ]
99mod pipewire;
1010
11+ #[ cfg( all( feature = "gst-backend" , target_env = "gnu" ) ) ]
12+ mod gstreamer;
13+
1114use std:: sync:: { Arc , RwLock } ;
1215
1316#[ cfg( all( feature = "alsa-backend" , target_env = "gnu" ) ) ]
1417use self :: alsa:: AlsaBackend ;
18+ #[ cfg( all( feature = "gst-backend" , target_env = "gnu" ) ) ]
19+ use self :: gstreamer:: GStreamerBackend ;
1520use self :: null:: NullBackend ;
1621#[ cfg( all( feature = "pw-backend" , target_env = "gnu" ) ) ]
1722use self :: pipewire:: PwBackend ;
@@ -61,6 +66,8 @@ pub fn alloc_audio_backend(
6166 }
6267 #[ cfg( all( feature = "alsa-backend" , target_env = "gnu" ) ) ]
6368 BackendType :: Alsa => Ok ( Box :: new ( AlsaBackend :: new ( streams) ) ) ,
69+ #[ cfg( all( feature = "gst-backend" , target_env = "gnu" ) ) ]
70+ BackendType :: GStreamer => Ok ( Box :: new ( GStreamerBackend :: new ( streams) ) ) ,
6471 }
6572}
6673
You can’t perform that action at this time.
0 commit comments