[pve-devel] [PATCH 05/11] add soundcard device

Dietmar Maurer dietmar at proxmox.com
Thu Sep 8 09:21:28 CEST 2011


why do we want soundhw (usage scenario)?

> -----Original Message-----
> From: pve-devel-bounces at pve.proxmox.com [mailto:pve-devel-
> bounces at pve.proxmox.com] On Behalf Of Derumier Alexandre
> Sent: Mittwoch, 07. September 2011 15:35
> To: pve-devel at pve.proxmox.com
> Subject: [pve-devel] [PATCH 05/11] add soundcard device
> 
> 
> Signed-off-by: Derumier Alexandre <aderumier at odiso.com>
> ---
>  PVE/QemuServer.pm |   10 +++++++---
>  1 files changed, 7 insertions(+), 3 deletions(-)
> 
> diff --git a/PVE/QemuServer.pm b/PVE/QemuServer.pm index 814e9d4..af9ab3c
> 100644
> --- a/PVE/QemuServer.pm
> +++ b/PVE/QemuServer.pm
> @@ -186,6 +186,11 @@ my $confdesc = {
>  	type => 'string',
>  	description => "Set a name for the VM. Only used on the configuration
> web interface.",
>      },
> +    soundhw => {
> +	optional => 1,
> +	type => 'string',
> +	description => "Sound card model",
> +    },
>      description => {
>  	optional => 1,
>  	type => 'string',
> @@ -2020,9 +2025,8 @@ sub config_to_command {
>      push @$cmd, '-k', $kb if $kb;
> 
>      # enable sound
> -    #my $soundhw = $conf->{soundhw} || $defaults->{soundhw};
> -    #push @$cmd, '-soundhw', 'es1370';
> -    #push @$cmd, '-soundhw', $soundhw if $soundhw;
> +    my $soundhw = $conf->{soundhw} || $defaults->{soundhw};
> +    push @$cmd, '-device', $soundhw.',id=sound0' if $soundhw;
> 
>      # add scsi controllers
>      my $maxdev = 7;
> --
> 1.7.2.5
> 
> _______________________________________________
> pve-devel mailing list
> pve-devel at pve.proxmox.com
> http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel




More information about the pve-devel mailing list