Re: [PATCH] [RFC] Add support for a USB audio device model

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Sep 10, 2010 at 02:47:56PM -0700, H. Peter Anvin wrote:
> I discovered that none of the audio device models supported by current
> Qemu/KVM appear to be supported out of the box on Win7 64 bit (AC97
> works fine on 32 bit).  The most logical ways to fix that would be to
> add a long-term supportable audio device model.  Intel HD Audio and
> USB Audio seemed like the most reasonable options, but I opted for USB
> Audio for a few reasons:

...
> diff --git a/configure b/configure
> index 8228c1c..4fcb829 100755
> --- a/configure
> +++ b/configure
> @@ -71,8 +71,8 @@ sparc_cpu=""
>  cross_prefix=""
>  cc="gcc"
>  audio_drv_list=""
> -audio_card_list="ac97 es1370 sb16"
> -audio_possible_cards="ac97 es1370 sb16 cs4231a adlib gus"
> +audio_card_list="ac97 es1370 sb16 usb-audio"
> +audio_possible_cards="ac97 es1370 sb16 cs4231a adlib gus usb-audio"
>  block_drv_whitelist=""
>  host_cc="gcc"
>  ar="ar"
> @@ -2414,7 +2414,7 @@ if test "$vde" = "yes" ; then
>  fi
>  for card in $audio_card_list; do
>      def=CONFIG_`echo $card | tr '[:lower:]' '[:upper:]'`
> -    echo "$def=y" >> $config_host_mak
> +    echo ${def//-/_}=y >> $config_host_mak
>  done
>  echo "CONFIG_AUDIO_DRIVERS=$audio_drv_list" >> $config_host_mak
>  for drv in $audio_drv_list; do

# patch -p1 < /tmp/usb-audio.patch
# ./configure
...
...
preadv support    yes
fdatasync         yes
uuid support      no
vhost-net support no
Trace backend     nop
Trace output file trace-<pid>
./configure: 2276: Bad substitution


> diff --git a/create_config b/create_config
> index 0098e68..1caa25b 100755
> --- a/create_config
> +++ b/create_config
> @@ -25,7 +25,7 @@ case $line in
>   CONFIG_AUDIO_DRIVERS=*)
>      drivers=${line#*=}
>      echo "#define CONFIG_AUDIO_DRIVERS \\"
> -    for drv in $drivers; do
> +    for drv in ${drivers//-/_}; do
>        echo "    &${drv}_audio_driver,\\"
>      done
>      echo ""
> @@ -39,10 +39,12 @@ case $line in
>      ;;
>   CONFIG_*=y) # configuration
>      name=${line%=*}
> +    name=${name//-/_}
>      echo "#define $name 1"
>      ;;
>   CONFIG_*=*) # configuration
>      name=${line%=*}
> +    name=${name//-/_}
>      value=${line#*=}
>      echo "#define $name $value"
>      ;;

...

--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux