mirror of
https://github.com/virt-manager/virt-manager.git
synced 2024-12-23 17:34:21 +03:00
guest: Enable spice sound on more arches
If spice is enabled, just assume sound devices will work as well
This commit is contained in:
parent
a07a874497
commit
6d625ae45f
@ -27,6 +27,7 @@
|
||||
<channel type="spicevmc">
|
||||
<target type="virtio" name="com.redhat.spice.0"/>
|
||||
</channel>
|
||||
<sound model="ich6"/>
|
||||
<video>
|
||||
<model type="virtio"/>
|
||||
</video>
|
||||
|
@ -27,6 +27,7 @@
|
||||
<channel type="spicevmc">
|
||||
<target type="virtio" name="com.redhat.spice.0"/>
|
||||
</channel>
|
||||
<sound model="ich6"/>
|
||||
<video>
|
||||
<model type="vga"/>
|
||||
</video>
|
||||
|
@ -31,6 +31,7 @@
|
||||
<channel type="spicevmc">
|
||||
<target type="virtio" name="com.redhat.spice.0"/>
|
||||
</channel>
|
||||
<sound model="ich6"/>
|
||||
<video>
|
||||
<model type="vga"/>
|
||||
</video>
|
||||
|
@ -647,13 +647,6 @@ class Guest(XMLBuilder):
|
||||
dev.bus = "usb"
|
||||
self.add_device(dev)
|
||||
|
||||
def add_default_sound_device(self):
|
||||
if not self.os.is_hvm():
|
||||
return
|
||||
if not self.os.is_x86():
|
||||
return
|
||||
self.add_device(VirtualAudio(self.conn))
|
||||
|
||||
def add_default_console_device(self):
|
||||
if self.skip_default_console:
|
||||
return
|
||||
@ -1203,7 +1196,13 @@ class Guest(XMLBuilder):
|
||||
return
|
||||
if self.get_devices("sound"):
|
||||
return
|
||||
self.add_default_sound_device()
|
||||
if not self.os.is_hvm():
|
||||
return
|
||||
if not (self.os.is_x86() or
|
||||
self.os.is_arm_machvirt):
|
||||
return
|
||||
|
||||
self.add_device(VirtualAudio(self.conn))
|
||||
|
||||
def _add_spice_usbredir(self):
|
||||
if self.skip_default_usbredir:
|
||||
|
Loading…
Reference in New Issue
Block a user