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 {
67
67
socket_count : usize ,
68
68
69
69
/// 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>]]`.
71
72
#[ clap( short = 'l' , long) ]
72
73
device_list : String ,
73
74
}
Original file line number Diff line number Diff line change 3
3
4
4
### Added
5
5
6
+ - [[ #876 ]] ( https://github.com/rust-vmm/vhost-device/pull/876 ) Add GStreamer audio backend support
6
7
- [[ #806 ]] ( https://github.com/rust-vmm/vhost-device/pull/806 ) Add controls field in VirtioSoundConfig
7
8
- [[ #746 ]] ( https://github.com/rust-vmm/vhost-device/pull/746 ) Add new sampling rates 12000Hz and 24000Hz
8
9
Original file line number Diff line number Diff line change @@ -25,4 +25,7 @@ pub enum BackendType {
25
25
Pipewire ,
26
26
#[ cfg( all( feature = "alsa-backend" , target_env = "gnu" ) ) ]
27
27
Alsa ,
28
+ #[ cfg( all( feature = "gst-backend" , target_env = "gnu" ) ) ]
29
+ #[ value( name = "gstreamer" ) ]
30
+ GStreamer ,
28
31
}
Original file line number Diff line number Diff line change @@ -8,10 +8,15 @@ mod null;
8
8
#[ cfg( all( feature = "pw-backend" , target_env = "gnu" ) ) ]
9
9
mod pipewire;
10
10
11
+ #[ cfg( all( feature = "gst-backend" , target_env = "gnu" ) ) ]
12
+ mod gstreamer;
13
+
11
14
use std:: sync:: { Arc , RwLock } ;
12
15
13
16
#[ cfg( all( feature = "alsa-backend" , target_env = "gnu" ) ) ]
14
17
use self :: alsa:: AlsaBackend ;
18
+ #[ cfg( all( feature = "gst-backend" , target_env = "gnu" ) ) ]
19
+ use self :: gstreamer:: GStreamerBackend ;
15
20
use self :: null:: NullBackend ;
16
21
#[ cfg( all( feature = "pw-backend" , target_env = "gnu" ) ) ]
17
22
use self :: pipewire:: PwBackend ;
@@ -61,6 +66,8 @@ pub fn alloc_audio_backend(
61
66
}
62
67
#[ cfg( all( feature = "alsa-backend" , target_env = "gnu" ) ) ]
63
68
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) ) ) ,
64
71
}
65
72
}
66
73
You can’t perform that action at this time.
0 commit comments