[4741] ISA version of CS4231A
Revision: 4741
http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=4741 Author: malc Date: 2008-06-13 10:48:22 +0000 (Fri, 13 Jun 2008)
Log Message:
-----------
ISA version of CS4231A
Hopefully someday will be merged with cs4231.c (SPARC version)
Modified Paths:
--------------
trunk/Makefile.target
trunk/configure
trunk/hw/audiodev.h
trunk/qemu-doc.texi
trunk/vl.c
Added Paths:
-----------
trunk/hw/cs4231a.c
Modified: trunk/Makefile.target
===================================================================
Makefile.target +3 -0
@@ -497,6 +497,9 @@ ifdef CONFIG_GUS SOUND_HW += gus.o gusemu_hal.o gusemu_mixer.o endif +ifdef CONFIG_CS4231A +SOUND_HW += cs4231a.o +endif ifdef CONFIG_VNC_TLS CPPFLAGS += $(CONFIG_VNC_TLS_CFLAGS)
Modified: trunk/configure
===================================================================
configure +9 -0
@@ -90,6 +90,7 @@ adlib="no" ac97="no" gus="no" +cs4231a="no" oss="no" dsound="no" coreaudio="no"
@@ -288,6 +289,8 @@ ;; --enable-gus) gus="yes" ;; + --enable-cs4231a) cs4231a="yes" + ;; --disable-kqemu) kqemu="no" ;; --disable-brlapi) brlapi="no"
@@ -419,6 +422,7 @@ echo " --enable-adlib enable Adlib emulation" echo " --enable-ac97 enable AC97 emulation" echo " --enable-gus enable Gravis Ultrasound emulation" +echo " --enable-cs4231a enable CS4231A emulation" echo " --enable-coreaudio enable Coreaudio audio driver" echo " --enable-alsa enable ALSA audio driver" echo " --enable-esd enable EsoundD audio driver"
@@ -830,6 +834,7 @@ echo "Adlib support $adlib" echo "AC97 support $ac97" echo "GUS support $gus" +echo "CS4231A support $cs4231a" echo "CoreAudio support $coreaudio" echo "ALSA support $alsa" echo "EsounD support $esd"
@@ -1038,6 +1043,10 @@ echo "CONFIG_GUS=yes" >> $config_mak echo "#define CONFIG_GUS 1" >> $config_h fi +if test "$cs4231a" = "yes" ; then + echo "CONFIG_CS4231A=yes" >> $config_mak + echo "#define CONFIG_CS4231A 1" >> $config_h +fi if test "$oss" = "yes" ; then echo "CONFIG_OSS=yes" >> $config_mak echo "#define CONFIG_OSS 1" >> $config_h
Modified: trunk/hw/audiodev.h
===================================================================
hw/audiodev.h +3 -0
@@ -12,3 +12,6 @@/* ac97.c */ int ac97_init (PCIBus *buf,AudioState *s); + +/* cs4231a.c */ +int cs4231a_init (AudioState *s,qemu_irq *pic);
Added: trunk/hw/cs4231a.c
===================================================================
hw/cs4231a.c +661 -0
661 lines not on this page · raw message
Modified: trunk/qemu-doc.texi
===================================================================
qemu-doc.texi +7 -2
@@ -175,13 +175,16 @@ @item Gravis Ultrasound GF1 sound card @item +CS4231A compatible sound card +@item PCI UHCI USB controller and a virtual USB hub. @end itemize SMP is supported with up to 255 CPUs. -Note that adlib, ac97 and gus are only available when QEMU was configured -with --enable-adlib, --enable-ac97 or --enable-gus respectively. +Note that adlib, ac97, gus and cs4231a are only available when QEMU +was configured with --enable-adlib, --enable-ac97, --enable-gus or +--enable-cs4231a respectively. QEMU uses the PC BIOS from the Bochs project and the Plex86/Bochs LGPL VGA BIOS.
@@ -191,6 +194,8 @@ QEMU uses GUS emulation(GUSEMU32 @url{http://www.deinmeister.de/gusemu/}) by Tibor "TS" Schütz. +CS4231A is the chip used in Windows Sound System and GUSMAX products + @c man end @node pcsys_quickstart
Modified: trunk/vl.c
===================================================================
vl.c +10 -0
@@ -7552,6 +7552,16 @@ { .init_isa = SB16_init } }, +#ifdef CONFIG_CS4231A + { +"cs4231a" , +"CS4231A" , +0 , +1 , + { .init_isa = cs4231a_init } + }, +#endif + #ifdef CONFIG_ADLIB { "adlib",