File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -168,6 +168,7 @@ typedef struct {
168168 uint32_t jacks ;
169169 uint32_t streams ;
170170 uint32_t chmaps ;
171+ uint32_t controls ;
171172} virtio_snd_config_t ;
172173
173174/* VirtIO sound common header */
@@ -555,6 +556,7 @@ static void virtio_snd_cb(struct CNFADriver *dev,
555556 int framesp ,
556557 int framesr )
557558{
559+ (void ) in ; /* reversed for future recording use */
558560#if 0
559561 /* TODO: apply lock on guest_playing */
560562 vsnd_stream_sel_t * v_ptr = (vsnd_stream_sel_t * ) dev -> opaque ;
@@ -790,7 +792,7 @@ static int virtio_snd_tx_desc_handler(virtio_snd_state_t *vsnd,
790792 // pthread_mutex_unlock(&virtio_snd_mutex);
791793
792794 /* TODO: remove sleep once find the root cause of infinite loop in TX. */
793- sleep (1 );
795+ // sleep(1);
794796
795797 return 0 ;
796798}
@@ -1074,6 +1076,8 @@ bool virtio_snd_init(virtio_snd_state_t *vsnd)
10741076 PRIV (vsnd )-> jacks = 1 ;
10751077 PRIV (vsnd )-> streams = 1 ;
10761078 PRIV (vsnd )-> chmaps = 1 ;
1079+ PRIV (vsnd )-> controls =
1080+ 0 ; /* virtio-snd device does not support control elements */
10771081
10781082 return true;
10791083}
You can’t perform that action at this time.
0 commit comments