cli: add --sound codec support

Add codec support to virt-install so that it can accommodate
multiple instances of codec configuration.

The commandline argument:

  --sound codec0.type=micro,codec1.type=duplex,codec2.type=output

maps to the sound XML below:

    <sound model="es1370">
      <codec type="micro"/>
      <codec type="duplex"/>
      <codec type="output"/>
    </sound>

Signed-off-by: Anya Harter <aharter@redhat.com>
This commit is contained in:
Anya Harter
2018-06-11 12:23:14 -04:00
committed by Cole Robinson
parent 02635d3358
commit 846e2f711a
4 changed files with 27 additions and 1 deletions
@@ -300,6 +300,11 @@
</graphics>
<sound model="ich6"/>
<sound model="ac97"/>
<sound model="ich6">
<codec type="micro"/>
<codec type="duplex"/>
<codec type="output"/>
</sound>
<video>
<model type="cirrus"/>
</video>