]> git.ipfire.org Git - thirdparty/libvirt.git/commit
conf: add helper to test for sound device codec support
authorDaniel P. Berrangé <berrange@redhat.com>
Tue, 2 Mar 2021 13:46:28 +0000 (13:46 +0000)
committerDaniel P. Berrangé <berrange@redhat.com>
Tue, 9 Mar 2021 22:58:04 +0000 (22:58 +0000)
commit657999b04f57817af7ba99d9492899bb07343670
tree243f116820ae3eac2968e517d430687581ba4b51
parentfe304b02f01aec6f2f1b20b6ae0ae07f9b9f0b9a
conf: add helper to test for sound device codec support

The check for ICH6 || ICH9 is repeated in many places in the code. The
new virDomainSoundModelSupportsCodecs() method provides a helper to
standardize this check.

Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
src/conf/domain_conf.c
src/conf/domain_conf.h
src/libvirt_private.syms
src/qemu/qemu_command.c
src/qemu/qemu_validate.c