Search
lxdream.org :: lxdream/src/drivers/audio_esd.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/drivers/audio_esd.c
changeset 643:653b0a70f173
prev561:533f6b478071
next697:479b8c213f61
author bhaal22
date Tue Feb 26 01:10:48 2008 +0000 (12 years ago)
permissions -rw-r--r--
last change Commit initial ALSA audio driver
Add init/shutdown stubs to audio driver structure
file annotate diff log raw
1.1 --- a/src/drivers/audio_esd.c Tue Jan 01 05:08:38 2008 +0000
1.2 +++ b/src/drivers/audio_esd.c Tue Feb 26 01:10:48 2008 +0000
1.3 @@ -24,6 +24,12 @@
1.4 int esd_handle = -1;
1.5 int esd_sample_size = 1;
1.6
1.7 +
1.8 +gboolean audio_esd_init()
1.9 +{
1.10 + return TRUE;
1.11 +}
1.12 +
1.13 gboolean audio_esd_set_format( uint32_t rate, uint32_t format )
1.14 {
1.15 if( esd_handle != -1 ) {
1.16 @@ -58,5 +64,14 @@
1.17 }
1.18 }
1.19
1.20 -struct audio_driver audio_esd_driver = { "esd", audio_esd_set_format, audio_esd_process_buffer };
1.21 +gboolean audio_esd_close()
1.22 +{
1.23 + return TRUE;
1.24 +}
1.25
1.26 +struct audio_driver audio_esd_driver = { "esd",
1.27 + audio_esd_init,
1.28 + audio_esd_set_format,
1.29 + audio_esd_process_buffer,
1.30 + audio_esd_close};
1.31 +
.