guest: Enable spice sound on more arches

If spice is enabled, just assume sound devices will work as well
This commit is contained in:
Cole Robinson 2017-06-28 16:28:25 -04:00
parent a07a874497
commit 6d625ae45f
4 changed files with 10 additions and 8 deletions

View File

@ -27,6 +27,7 @@
<channel type="spicevmc">
<target type="virtio" name="com.redhat.spice.0"/>
</channel>
<sound model="ich6"/>
<video>
<model type="virtio"/>
</video>

View File

@ -27,6 +27,7 @@
<channel type="spicevmc">
<target type="virtio" name="com.redhat.spice.0"/>
</channel>
<sound model="ich6"/>
<video>
<model type="vga"/>
</video>

View File

@ -31,6 +31,7 @@
<channel type="spicevmc">
<target type="virtio" name="com.redhat.spice.0"/>
</channel>
<sound model="ich6"/>
<video>
<model type="vga"/>
</video>

View File

@ -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: