From f41ae763c5238f5acfdda33e3ad8293b79b3aa07 Mon Sep 17 00:00:00 2001 From: Giuseppe Scrivano Date: Mon, 15 Sep 2014 12:22:56 +0200 Subject: [PATCH 1/2] virtinst: add ich9 to the list of audio models Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1140937 Signed-off-by: Giuseppe Scrivano (cherry picked from commit 0218d29a35e1d599c1fe71640a551f73dc96e3ba) --- man/virt-install.pod | 2 +- virtinst/deviceaudio.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/man/virt-install.pod b/man/virt-install.pod index 85f919f..ffb2dff 100644 --- a/man/virt-install.pod +++ b/man/virt-install.pod @@ -1002,7 +1002,7 @@ Use --host-device=? to see a list of all available sub options. Complete details =item --sound MODEL Attach a virtual audio device to the guest. MODEL specifies the emulated -sound card model. Possible values are ich6, ac97, es1370, sb16, pcspk, +sound card model. Possible values are ich6, ich9, ac97, es1370, sb16, pcspk, or default. 'default' will try to pick the best model that the specified OS supports. diff --git a/virtinst/deviceaudio.py b/virtinst/deviceaudio.py index 2b1e1eb..11c46b6 100644 --- a/virtinst/deviceaudio.py +++ b/virtinst/deviceaudio.py @@ -1,5 +1,5 @@ # -# Copyright 2008-2009, 2013 Red Hat, Inc. +# Copyright 2008-2009, 2013-2014 Red Hat, Inc. # Cole Robinson # # This program is free software; you can redistribute it and/or modify @@ -25,7 +25,7 @@ class VirtualAudio(VirtualDevice): virtual_device_type = VirtualDevice.VIRTUAL_DEV_AUDIO MODEL_DEFAULT = "default" - MODELS = ["es1370", "sb16", "pcspk", "ac97", "ich6", MODEL_DEFAULT] + MODELS = ["es1370", "sb16", "pcspk", "ac97", "ich6", "ich9", MODEL_DEFAULT] model = XMLProperty("./@model", default_cb=lambda s: "es1370", -- 1.9.3