From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KmuVV-00031V-FH for qemu-devel@nongnu.org; Mon, 06 Oct 2008 14:08:33 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KmuVU-000310-Ly for qemu-devel@nongnu.org; Mon, 06 Oct 2008 14:08:33 -0400 Received: from [199.232.76.173] (port=51371 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KmuVU-00030s-JR for qemu-devel@nongnu.org; Mon, 06 Oct 2008 14:08:32 -0400 Received: from savannah.gnu.org ([199.232.41.3]:34442 helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KmuVT-0006Nx-UL for qemu-devel@nongnu.org; Mon, 06 Oct 2008 14:08:32 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1KmuVT-0000yS-Ex for qemu-devel@nongnu.org; Mon, 06 Oct 2008 18:08:31 +0000 Received: from blueswir1 by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1KmuVT-0000yO-5y for qemu-devel@nongnu.org; Mon, 06 Oct 2008 18:08:31 +0000 MIME-Version: 1.0 Errors-To: blueswir1 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From: Blue Swirl Message-Id: Date: Mon, 06 Oct 2008 18:08:31 +0000 Subject: [Qemu-devel] [5435] Prepare for changing audio_pcm_ops dynamically ( partially revert r5422) Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Revision: 5435 http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=5435 Author: blueswir1 Date: 2008-10-06 18:08:30 +0000 (Mon, 06 Oct 2008) Log Message: ----------- Prepare for changing audio_pcm_ops dynamically (partially revert r5422) Modified Paths: -------------- trunk/audio/alsaaudio.c trunk/audio/audio_int.h trunk/audio/coreaudio.c trunk/audio/dsoundaudio.c trunk/audio/esdaudio.c trunk/audio/fmodaudio.c trunk/audio/noaudio.c trunk/audio/ossaudio.c trunk/audio/paaudio.c trunk/audio/sdlaudio.c trunk/audio/wavaudio.c Modified: trunk/audio/alsaaudio.c =================================================================== --- trunk/audio/alsaaudio.c 2008-10-06 14:53:52 UTC (rev 5434) +++ trunk/audio/alsaaudio.c 2008-10-06 18:08:30 UTC (rev 5435) @@ -917,7 +917,7 @@ {NULL, 0, NULL, NULL, NULL, 0} }; -static const struct audio_pcm_ops alsa_pcm_ops = { +static struct audio_pcm_ops alsa_pcm_ops = { alsa_init_out, alsa_fini_out, alsa_run_out, Modified: trunk/audio/audio_int.h =================================================================== --- trunk/audio/audio_int.h 2008-10-06 14:53:52 UTC (rev 5434) +++ trunk/audio/audio_int.h 2008-10-06 18:08:30 UTC (rev 5435) @@ -81,7 +81,7 @@ int samples; LIST_HEAD (sw_out_listhead, SWVoiceOut) sw_head; LIST_HEAD (sw_cap_listhead, SWVoiceCap) cap_head; - const struct audio_pcm_ops *pcm_ops; + struct audio_pcm_ops *pcm_ops; LIST_ENTRY (HWVoiceOut) entries; } HWVoiceOut; @@ -99,7 +99,7 @@ int samples; LIST_HEAD (sw_in_listhead, SWVoiceIn) sw_head; - const struct audio_pcm_ops *pcm_ops; + struct audio_pcm_ops *pcm_ops; LIST_ENTRY (HWVoiceIn) entries; } HWVoiceIn; @@ -140,7 +140,7 @@ struct audio_option *options; void *(*init) (void); void (*fini) (void *); - const struct audio_pcm_ops *pcm_ops; + struct audio_pcm_ops *pcm_ops; int can_be_default; int max_voices_out; int max_voices_in; Modified: trunk/audio/coreaudio.c =================================================================== --- trunk/audio/coreaudio.c 2008-10-06 14:53:52 UTC (rev 5434) +++ trunk/audio/coreaudio.c 2008-10-06 18:08:30 UTC (rev 5435) @@ -520,7 +520,7 @@ {NULL, 0, NULL, NULL, NULL, 0} }; -static const struct audio_pcm_ops coreaudio_pcm_ops = { +static struct audio_pcm_ops coreaudio_pcm_ops = { coreaudio_init_out, coreaudio_fini_out, coreaudio_run_out, Modified: trunk/audio/dsoundaudio.c =================================================================== --- trunk/audio/dsoundaudio.c 2008-10-06 14:53:52 UTC (rev 5434) +++ trunk/audio/dsoundaudio.c 2008-10-06 18:08:30 UTC (rev 5435) @@ -1057,7 +1057,7 @@ {NULL, 0, NULL, NULL, NULL, 0} }; -static const struct audio_pcm_ops dsound_pcm_ops = { +static struct audio_pcm_ops dsound_pcm_ops = { dsound_init_out, dsound_fini_out, dsound_run_out, Modified: trunk/audio/esdaudio.c =================================================================== --- trunk/audio/esdaudio.c 2008-10-06 14:53:52 UTC (rev 5434) +++ trunk/audio/esdaudio.c 2008-10-06 18:08:30 UTC (rev 5435) @@ -566,7 +566,7 @@ {NULL, 0, NULL, NULL, NULL, 0} }; -static const struct audio_pcm_ops qesd_pcm_ops = { +static struct audio_pcm_ops qesd_pcm_ops = { qesd_init_out, qesd_fini_out, qesd_run_out, Modified: trunk/audio/fmodaudio.c =================================================================== --- trunk/audio/fmodaudio.c 2008-10-06 14:53:52 UTC (rev 5434) +++ trunk/audio/fmodaudio.c 2008-10-06 18:08:30 UTC (rev 5435) @@ -657,7 +657,7 @@ {NULL, 0, NULL, NULL, NULL, 0} }; -static const struct audio_pcm_ops fmod_pcm_ops = { +static struct audio_pcm_ops fmod_pcm_ops = { fmod_init_out, fmod_fini_out, fmod_run_out, Modified: trunk/audio/noaudio.c =================================================================== --- trunk/audio/noaudio.c 2008-10-06 14:53:52 UTC (rev 5434) +++ trunk/audio/noaudio.c 2008-10-06 18:08:30 UTC (rev 5435) @@ -145,7 +145,7 @@ (void) opaque; } -static const struct audio_pcm_ops no_pcm_ops = { +static struct audio_pcm_ops no_pcm_ops = { no_init_out, no_fini_out, no_run_out, Modified: trunk/audio/ossaudio.c =================================================================== --- trunk/audio/ossaudio.c 2008-10-06 14:53:52 UTC (rev 5434) +++ trunk/audio/ossaudio.c 2008-10-06 18:08:30 UTC (rev 5435) @@ -751,7 +751,7 @@ {NULL, 0, NULL, NULL, NULL, 0} }; -static const struct audio_pcm_ops oss_pcm_ops = { +static struct audio_pcm_ops oss_pcm_ops = { oss_init_out, oss_fini_out, oss_run_out, Modified: trunk/audio/paaudio.c =================================================================== --- trunk/audio/paaudio.c 2008-10-06 14:53:52 UTC (rev 5434) +++ trunk/audio/paaudio.c 2008-10-06 18:08:30 UTC (rev 5435) @@ -487,7 +487,7 @@ {NULL, 0, NULL, NULL, NULL, 0} }; -static const struct audio_pcm_ops qpa_pcm_ops = { +static struct audio_pcm_ops qpa_pcm_ops = { qpa_init_out, qpa_fini_out, qpa_run_out, Modified: trunk/audio/sdlaudio.c =================================================================== --- trunk/audio/sdlaudio.c 2008-10-06 14:53:52 UTC (rev 5434) +++ trunk/audio/sdlaudio.c 2008-10-06 18:08:30 UTC (rev 5435) @@ -423,7 +423,7 @@ {NULL, 0, NULL, NULL, NULL, 0} }; -static const struct audio_pcm_ops sdl_pcm_ops = { +static struct audio_pcm_ops sdl_pcm_ops = { sdl_init_out, sdl_fini_out, sdl_run_out, Modified: trunk/audio/wavaudio.c =================================================================== --- trunk/audio/wavaudio.c 2008-10-06 14:53:52 UTC (rev 5434) +++ trunk/audio/wavaudio.c 2008-10-06 18:08:30 UTC (rev 5435) @@ -233,7 +233,7 @@ {NULL, 0, NULL, NULL, NULL, 0} }; -static const struct audio_pcm_ops wav_pcm_ops = { +static struct audio_pcm_ops wav_pcm_ops = { wav_init_out, wav_fini_out, wav_run_out,