]> git.proxmox.com Git - qemu-server.git/commit - PVE/QemuServer.pm
Add audio device support
authorAaron Lauterer <a.lauterer@proxmox.com>
Wed, 17 Jul 2019 13:58:57 +0000 (15:58 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 18 Jul 2019 06:24:39 +0000 (08:24 +0200)
commit2e7b59252cca96e2400513d833354e9ef362a622
treeb0bbad17cff0449d268082db848a687a702bcaa0
parent2810c5b7432c9bb1b324540e2d0dc7ea531e10cf
Add audio device support

Until now audio devices had to be added manually with the `args` option
in the VMs config file. This adds a new config option to define an audio
device. It is called `audio0` with the extra `0` to be prepared should
we ever implement support for more than one audio device.

Supported devices are:

* ich9-intel-hda: Intel HD Audio Controller, emulates ICH9
* intel-hda: Intel HD Audio Controller, emulates ICH6
* AC97: useful for older OSs like Win XP

If any of the `intel-hda`s is selected two additional devices will be
created: hda-micro and hda-duplex. The `*intel-hda` controllers need at
least one of them as they emulate microphones and speakers (hda-micro)
or line in and out devices (hda-duplex).

Having both is deemed best practice to avoid problems if some software
needs one of the other kind of output/input ports.

I also cleaned up some old, commented out, code regarding audio devices.

Signed-off-by: Aaron Lauterer <a.lauterer@proxmox.com>
PVE/QemuServer.pm