[alsa-cvslog] CVS: alsa-kernel/isa/sb emu8000.c,1.12,1.13 emu8000_callback.c,1.7,1.8 emu8000_pcm.c,1.6,1.7 es968.c,1.10,1.11 sb16_csp.c,1.6,1.7 sb16_main.c,1.10,1.11 sb8_main.c,1.8,1.9 sb8_midi.c,1.6,1.7 sb_common.c,1.13,1.14 sb_mixer.c,1.7,1.8

2002-08-13 Thread Jaroslav Kysela

Update of /cvsroot/alsa/alsa-kernel/isa/sb
In directory usw-pr-cvs1:/tmp/cvs-serv19718/isa/sb

Modified Files:
emu8000.c emu8000_callback.c emu8000_pcm.c es968.c sb16_csp.c 
sb16_main.c sb8_main.c sb8_midi.c sb_common.c sb_mixer.c 
Log Message:
C99-like structure initializers - first bunch of changes - me and Rusty Russell

Index: emu8000.c
===
RCS file: /cvsroot/alsa/alsa-kernel/isa/sb/emu8000.c,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -r1.12 -r1.13
--- emu8000.c   12 Aug 2002 08:43:46 -  1.12
+++ emu8000.c   13 Aug 2002 16:13:38 -  1.13
@@ -866,22 +866,22 @@
 
 static snd_kcontrol_new_t mixer_bass_control =
 {
-   iface: SNDRV_CTL_ELEM_IFACE_MIXER,
-   name: Synth Tone Control - Bass,
-   info: mixer_bass_treble_info,
-   get: mixer_bass_treble_get,
-   put: mixer_bass_treble_put,
-   private_value: 0,
+   .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
+   .name = Synth Tone Control - Bass,
+   .info = mixer_bass_treble_info,
+   .get = mixer_bass_treble_get,
+   .put = mixer_bass_treble_put,
+   .private_value = 0,
 };
 
 static snd_kcontrol_new_t mixer_treble_control =
 {
-   iface: SNDRV_CTL_ELEM_IFACE_MIXER,
-   name: Synth Tone Control - Treble,
-   info: mixer_bass_treble_info,
-   get: mixer_bass_treble_get,
-   put: mixer_bass_treble_put,
-   private_value: 1,
+   .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
+   .name = Synth Tone Control - Treble,
+   .info = mixer_bass_treble_info,
+   .get = mixer_bass_treble_get,
+   .put = mixer_bass_treble_put,
+   .private_value = 1,
 };
 
 /*
@@ -933,22 +933,22 @@
 
 static snd_kcontrol_new_t mixer_chorus_mode_control =
 {
-   iface: SNDRV_CTL_ELEM_IFACE_MIXER,
-   name: Chorus Mode,
-   info: mixer_chorus_reverb_info,
-   get: mixer_chorus_reverb_get,
-   put: mixer_chorus_reverb_put,
-   private_value: 1,
+   .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
+   .name = Chorus Mode,
+   .info = mixer_chorus_reverb_info,
+   .get = mixer_chorus_reverb_get,
+   .put = mixer_chorus_reverb_put,
+   .private_value = 1,
 };
 
 static snd_kcontrol_new_t mixer_reverb_mode_control =
 {
-   iface: SNDRV_CTL_ELEM_IFACE_MIXER,
-   name: Reverb Mode,
-   info: mixer_chorus_reverb_info,
-   get: mixer_chorus_reverb_get,
-   put: mixer_chorus_reverb_put,
-   private_value: 0,
+   .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
+   .name = Reverb Mode,
+   .info = mixer_chorus_reverb_info,
+   .get = mixer_chorus_reverb_get,
+   .put = mixer_chorus_reverb_put,
+   .private_value = 0,
 };
 
 /*
@@ -995,22 +995,22 @@
 
 static snd_kcontrol_new_t mixer_fm_chorus_depth_control =
 {
-   iface: SNDRV_CTL_ELEM_IFACE_MIXER,
-   name: FM Chorus Depth,
-   info: mixer_fm_depth_info,
-   get: mixer_fm_depth_get,
-   put: mixer_fm_depth_put,
-   private_value: 1,
+   .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
+   .name = FM Chorus Depth,
+   .info = mixer_fm_depth_info,
+   .get = mixer_fm_depth_get,
+   .put = mixer_fm_depth_put,
+   .private_value = 1,
 };
 
 static snd_kcontrol_new_t mixer_fm_reverb_depth_control =
 {
-   iface: SNDRV_CTL_ELEM_IFACE_MIXER,
-   name: FM Reverb Depth,
-   info: mixer_fm_depth_info,
-   get: mixer_fm_depth_get,
-   put: mixer_fm_depth_put,
-   private_value: 0,
+   .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
+   .name = FM Reverb Depth,
+   .info = mixer_fm_depth_info,
+   .get = mixer_fm_depth_get,
+   .put = mixer_fm_depth_put,
+   .private_value = 0,
 };
 
 
@@ -1090,7 +1090,7 @@
emu8000_t *hw;
int err;
static snd_device_ops_t ops = {
-   dev_free: snd_emu8000_dev_free,
+   .dev_free = snd_emu8000_dev_free,
};
 
if (awe_ret)

Index: emu8000_callback.c
===
RCS file: /cvsroot/alsa/alsa-kernel/isa/sb/emu8000_callback.c,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- emu8000_callback.c  12 Aug 2002 08:43:46 -  1.7
+++ emu8000_callback.c  13 Aug 2002 16:13:38 -  1.8
@@ -59,21 +59,21 @@
  * set up operators
  */
 static snd_emux_operators_t emu8000_ops = {
-   owner:  THIS_MODULE,
-   get_voice:  get_voice,
-   prepare:start_voice,
-   trigger:trigger_voice,
-   release:release_voice,
-   update: update_voice,
-   terminate:  terminate_voice,
-   reset:  reset_voice,
-   sample_new: snd_emu8000_sample_new,
-   sample_free:snd_emu8000_sample_free,
-   sample_reset:   snd_emu8000_sample_reset,
-   load_fx:load_fx,
-   sysex:  sysex,
+   .owner =THIS_MODULE,
+   .get_voice =get_voice,
+   

[alsa-cvslog] CVS: alsa-kernel/pci als4000.c,1.15,1.16 cmipci.c,1.30,1.31 cs4281.c,1.24,1.25 ens1370.c,1.19,1.20 es1938.c,1.13,1.14

2002-08-13 Thread Jaroslav Kysela

Update of /cvsroot/alsa/alsa-kernel/pci
In directory usw-pr-cvs1:/tmp/cvs-serv19718/pci

Modified Files:
als4000.c cmipci.c cs4281.c ens1370.c es1938.c 
Log Message:
C99-like structure initializers - first bunch of changes - me and Rusty Russell

Index: als4000.c
===
RCS file: /cvsroot/alsa/alsa-kernel/pci/als4000.c,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -r1.15 -r1.16
--- als4000.c   25 May 2002 10:26:10 -  1.15
+++ als4000.c   13 Aug 2002 16:13:39 -  1.16
@@ -372,40 +372,40 @@
 
 static snd_pcm_hardware_t snd_als4000_playback =
 {
-   info:   (SNDRV_PCM_INFO_MMAP | SNDRV_PCM_INFO_INTERLEAVED |
+   .info = (SNDRV_PCM_INFO_MMAP | SNDRV_PCM_INFO_INTERLEAVED |
 SNDRV_PCM_INFO_MMAP_VALID),
-   formats:SNDRV_PCM_FMTBIT_S8 | SNDRV_PCM_FMTBIT_U8 |
+   .formats =  SNDRV_PCM_FMTBIT_S8 | SNDRV_PCM_FMTBIT_U8 |
SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_U16_LE, 
 /* formats */
-   rates:  SNDRV_PCM_RATE_CONTINUOUS | SNDRV_PCM_RATE_8000_48000,
-   rate_min:   4000,
-   rate_max:   48000,
-   channels_min:   1,
-   channels_max:   2,
-   buffer_bytes_max:   65536,
-   period_bytes_min:   64,
-   period_bytes_max:   65536,
-   periods_min:1,
-   periods_max:1024,
-   fifo_size:  0
+   .rates =SNDRV_PCM_RATE_CONTINUOUS | SNDRV_PCM_RATE_8000_48000,
+   .rate_min = 4000,
+   .rate_max = 48000,
+   .channels_min = 1,
+   .channels_max = 2,
+   .buffer_bytes_max = 65536,
+   .period_bytes_min = 64,
+   .period_bytes_max = 65536,
+   .periods_min =  1,
+   .periods_max =  1024,
+   .fifo_size =0
 };
 
 static snd_pcm_hardware_t snd_als4000_capture =
 {
-   info:   (SNDRV_PCM_INFO_MMAP | SNDRV_PCM_INFO_INTERLEAVED |
+   .info = (SNDRV_PCM_INFO_MMAP | SNDRV_PCM_INFO_INTERLEAVED |
 SNDRV_PCM_INFO_MMAP_VALID),
-   formats:SNDRV_PCM_FMTBIT_S8 | SNDRV_PCM_FMTBIT_U8 |
+   .formats =  SNDRV_PCM_FMTBIT_S8 | SNDRV_PCM_FMTBIT_U8 |
SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_U16_LE, 
 /* formats */
-   rates:  SNDRV_PCM_RATE_CONTINUOUS | SNDRV_PCM_RATE_8000_48000,
-   rate_min:   4000,
-   rate_max:   48000,
-   channels_min:   1,
-   channels_max:   2,
-   buffer_bytes_max:   65536,
-   period_bytes_min:   64,
-   period_bytes_max:   65536,
-   periods_min:1,
-   periods_max:1024,
-   fifo_size:  0
+   .rates =SNDRV_PCM_RATE_CONTINUOUS | SNDRV_PCM_RATE_8000_48000,
+   .rate_min = 4000,
+   .rate_max = 48000,
+   .channels_min = 1,
+   .channels_max = 2,
+   .buffer_bytes_max = 65536,
+   .period_bytes_min = 64,
+   .period_bytes_max = 65536,
+   .periods_min =  1,
+   .periods_max =  1024,
+   .fifo_size =0
 };
 
 /*/
@@ -451,25 +451,25 @@
 /**/
 
 static snd_pcm_ops_t snd_als4000_playback_ops = {
-   open:   snd_als4000_playback_open,
-   close:  snd_als4000_playback_close,
-   ioctl:  snd_pcm_lib_ioctl,
-   hw_params:  snd_als4000_hw_params,
-   hw_free:snd_als4000_hw_free,
-   prepare:snd_als4000_playback_prepare,
-   trigger:snd_als4000_playback_trigger,
-   pointer:snd_als4000_playback_pointer
+   .open = snd_als4000_playback_open,
+   .close =snd_als4000_playback_close,
+   .ioctl =snd_pcm_lib_ioctl,
+   .hw_params =snd_als4000_hw_params,
+   .hw_free =  snd_als4000_hw_free,
+   .prepare =  snd_als4000_playback_prepare,
+   .trigger =  snd_als4000_playback_trigger,
+   .pointer =  snd_als4000_playback_pointer
 };
 
 static snd_pcm_ops_t snd_als4000_capture_ops = {
-   open:   snd_als4000_capture_open,
-   close:  snd_als4000_capture_close,
-   ioctl:  snd_pcm_lib_ioctl,
-   hw_params:  snd_als4000_hw_params,
-   hw_free:snd_als4000_hw_free,
-   prepare:snd_als4000_capture_prepare,
-   trigger:snd_als4000_capture_trigger,
-   pointer:snd_als4000_capture_pointer
+   .open = 

[alsa-cvslog] CVS: alsa-kernel/drivers/mpu401 mpu401_uart.c,1.12,1.13

2002-08-13 Thread Jaroslav Kysela

Update of /cvsroot/alsa/alsa-kernel/drivers/mpu401
In directory usw-pr-cvs1:/tmp/cvs-serv19718/drivers/mpu401

Modified Files:
mpu401_uart.c 
Log Message:
C99-like structure initializers - first bunch of changes - me and Rusty Russell

Index: mpu401_uart.c
===
RCS file: /cvsroot/alsa/alsa-kernel/drivers/mpu401/mpu401_uart.c,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -r1.12 -r1.13
--- mpu401_uart.c   29 Apr 2002 06:48:34 -  1.12
+++ mpu401_uart.c   13 Aug 2002 16:13:35 -  1.13
@@ -350,16 +350,16 @@
 
 static snd_rawmidi_ops_t snd_mpu401_uart_output =
 {
-   open:   snd_mpu401_uart_output_open,
-   close:  snd_mpu401_uart_output_close,
-   trigger:snd_mpu401_uart_output_trigger,
+   .open = snd_mpu401_uart_output_open,
+   .close =snd_mpu401_uart_output_close,
+   .trigger =  snd_mpu401_uart_output_trigger,
 };
 
 static snd_rawmidi_ops_t snd_mpu401_uart_input =
 {
-   open:   snd_mpu401_uart_input_open,
-   close:  snd_mpu401_uart_input_close,
-   trigger:snd_mpu401_uart_input_trigger,
+   .open = snd_mpu401_uart_input_open,
+   .close =snd_mpu401_uart_input_close,
+   .trigger =  snd_mpu401_uart_input_trigger,
 };
 
 static void snd_mpu401_uart_free(snd_rawmidi_t *rmidi)



---
This sf.net email is sponsored by: Dice - The leading online job board
for high-tech professionals. Search and apply for tech jobs today!
http://seeker.dice.com/seeker.epl?rel_code=31
___
Alsa-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-cvslog



[alsa-cvslog] CVS: alsa-kernel/isa/ad1816a ad1816a_lib.c,1.13,1.14

2002-08-13 Thread Jaroslav Kysela

Update of /cvsroot/alsa/alsa-kernel/isa/ad1816a
In directory usw-pr-cvs1:/tmp/cvs-serv19718/isa/ad1816a

Modified Files:
ad1816a_lib.c 
Log Message:
C99-like structure initializers - first bunch of changes - me and Rusty Russell

Index: ad1816a_lib.c
===
RCS file: /cvsroot/alsa/alsa-kernel/isa/ad1816a/ad1816a_lib.c,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -r1.13 -r1.14
--- ad1816a_lib.c   15 Jul 2002 12:09:12 -  1.13
+++ ad1816a_lib.c   13 Aug 2002 16:13:37 -  1.14
@@ -334,41 +334,41 @@
 
 
 static snd_pcm_hardware_t snd_ad1816a_playback = {
-   info:   (SNDRV_PCM_INFO_MMAP | SNDRV_PCM_INFO_INTERLEAVED |
+   .info = (SNDRV_PCM_INFO_MMAP | SNDRV_PCM_INFO_INTERLEAVED |
 SNDRV_PCM_INFO_MMAP_VALID),
-   formats:(SNDRV_PCM_FMTBIT_MU_LAW | SNDRV_PCM_FMTBIT_A_LAW |
+   .formats =  (SNDRV_PCM_FMTBIT_MU_LAW | SNDRV_PCM_FMTBIT_A_LAW |
 SNDRV_PCM_FMTBIT_U8 | SNDRV_PCM_FMTBIT_S16_LE |
 SNDRV_PCM_FMTBIT_S16_BE),
-   rates:  SNDRV_PCM_RATE_CONTINUOUS | SNDRV_PCM_RATE_8000_48000,
-   rate_min:   4000,
-   rate_max:   55200,
-   channels_min:   1,
-   channels_max:   2,
-   buffer_bytes_max:   (128*1024),
-   period_bytes_min:   64,
-   period_bytes_max:   (128*1024),
-   periods_min:1,
-   periods_max:1024,
-   fifo_size:  0,
+   .rates =SNDRV_PCM_RATE_CONTINUOUS | SNDRV_PCM_RATE_8000_48000,
+   .rate_min = 4000,
+   .rate_max = 55200,
+   .channels_min = 1,
+   .channels_max = 2,
+   .buffer_bytes_max = (128*1024),
+   .period_bytes_min = 64,
+   .period_bytes_max = (128*1024),
+   .periods_min =  1,
+   .periods_max =  1024,
+   .fifo_size =0,
 };
 
 static snd_pcm_hardware_t snd_ad1816a_capture = {
-   info:   (SNDRV_PCM_INFO_MMAP | SNDRV_PCM_INFO_INTERLEAVED |
+   .info = (SNDRV_PCM_INFO_MMAP | SNDRV_PCM_INFO_INTERLEAVED |
 SNDRV_PCM_INFO_MMAP_VALID),
-   formats:(SNDRV_PCM_FMTBIT_MU_LAW | SNDRV_PCM_FMTBIT_A_LAW |
+   .formats =  (SNDRV_PCM_FMTBIT_MU_LAW | SNDRV_PCM_FMTBIT_A_LAW |
 SNDRV_PCM_FMTBIT_U8 | SNDRV_PCM_FMTBIT_S16_LE |
 SNDRV_PCM_FMTBIT_S16_BE),
-   rates:  SNDRV_PCM_RATE_CONTINUOUS | SNDRV_PCM_RATE_8000_48000,
-   rate_min:   4000,
-   rate_max:   55200,
-   channels_min:   1,
-   channels_max:   2,
-   buffer_bytes_max:   (128*1024),
-   period_bytes_min:   64,
-   period_bytes_max:   (128*1024),
-   periods_min:1,
-   periods_max:1024,
-   fifo_size:  0,
+   .rates =SNDRV_PCM_RATE_CONTINUOUS | SNDRV_PCM_RATE_8000_48000,
+   .rate_min = 4000,
+   .rate_max = 55200,
+   .channels_min = 1,
+   .channels_max = 2,
+   .buffer_bytes_max = (128*1024),
+   .period_bytes_min = 64,
+   .period_bytes_max = (128*1024),
+   .periods_min =  1,
+   .periods_max =  1024,
+   .fifo_size =0,
 };
 
 static int snd_ad1816a_timer_close(snd_timer_t *timer)
@@ -425,14 +425,14 @@
 }
 
 static struct _snd_timer_hardware snd_ad1816a_timer_table = {
-   flags:  SNDRV_TIMER_HW_AUTO,
-   resolution: 1,
-   ticks:  65535,
-   open:   snd_ad1816a_timer_open,
-   close:  snd_ad1816a_timer_close,
-   c_resolution:   snd_ad1816a_timer_resolution,
-   start:  snd_ad1816a_timer_start,
-   stop:   snd_ad1816a_timer_stop,
+   .flags =SNDRV_TIMER_HW_AUTO,
+   .resolution =   1,
+   .ticks =65535,
+   .open = snd_ad1816a_timer_open,
+   .close =snd_ad1816a_timer_close,
+   .c_resolution = snd_ad1816a_timer_resolution,
+   .start =snd_ad1816a_timer_start,
+   .stop = snd_ad1816a_timer_stop,
 };
 
 
@@ -575,7 +575,7 @@
   ad1816a_t **rchip)
 {
 static snd_device_ops_t ops = {
-   dev_free:   snd_ad1816a_dev_free,
+   .dev_free = snd_ad1816a_dev_free,
};
int error;
ad1816a_t *chip;
@@ -631,25 +631,25 @@
 }
 
 static snd_pcm_ops_t snd_ad1816a_playback_ops = {
-   open:   snd_ad1816a_playback_open,
-   close:  snd_ad1816a_playback_close,
-   ioctl:  

[alsa-cvslog] CVS: alsa-kernel/isa dt019x.c,1.2,1.3 es18xx.c,1.17,1.18 opl3sa2.c,1.15,1.16

2002-08-13 Thread Jaroslav Kysela

Update of /cvsroot/alsa/alsa-kernel/isa
In directory usw-pr-cvs1:/tmp/cvs-serv19718/isa

Modified Files:
dt019x.c es18xx.c opl3sa2.c 
Log Message:
C99-like structure initializers - first bunch of changes - me and Rusty Russell

Index: dt019x.c
===
RCS file: /cvsroot/alsa/alsa-kernel/isa/dt019x.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- dt019x.c31 Jul 2002 15:28:28 -  1.2
+++ dt019x.c13 Aug 2002 16:13:37 -  1.3
@@ -104,7 +104,7 @@
/* DT197A30 */
{
ISAPNP_CARD_ID('R','W','B',0x1688),
-   devs: { ISAPNP_DEVICE_ID('@','@','@',0x0001),
+   .devs = { ISAPNP_DEVICE_ID('@','@','@',0x0001),
ISAPNP_DEVICE_ID('@','X','@',0x0001),
ISAPNP_DEVICE_ID('@','H','@',0x0001) }
},

Index: es18xx.c
===
RCS file: /cvsroot/alsa/alsa-kernel/isa/es18xx.c,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -r1.17 -r1.18
--- es18xx.c26 Jun 2002 02:02:49 -  1.17
+++ es18xx.c13 Aug 2002 16:13:37 -  1.18
@@ -363,42 +363,42 @@
 
 static ratnum_t new_clocks[2] = {
{
-   num: 793800,
-   den_min: 1,
-   den_max: 128,
-   den_step: 1,
+   .num = 793800,
+   .den_min = 1,
+   .den_max = 128,
+   .den_step = 1,
},
{
-   num: 768000,
-   den_min: 1,
-   den_max: 128,
-   den_step: 1,
+   .num = 768000,
+   .den_min = 1,
+   .den_max = 128,
+   .den_step = 1,
}
 };
 
 static snd_pcm_hw_constraint_ratnums_t new_hw_constraints_clocks = {
-   nrats: 2,
-   rats: new_clocks,
+   .nrats = 2,
+   .rats = new_clocks,
 };
 
 static ratnum_t old_clocks[2] = {
{
-   num: 795444,
-   den_min: 1,
-   den_max: 128,
-   den_step: 1,
+   .num = 795444,
+   .den_min = 1,
+   .den_max = 128,
+   .den_step = 1,
},
{
-   num: 397722,
-   den_min: 1,
-   den_max: 128,
-   den_step: 1,
+   .num = 397722,
+   .den_min = 1,
+   .den_max = 128,
+   .den_step = 1,
}
 };
 
 static snd_pcm_hw_constraint_ratnums_t old_hw_constraints_clocks  = {
-   nrats: 2,
-   rats: old_clocks,
+   .nrats = 2,
+   .rats = old_clocks,
 };
 
 
@@ -826,40 +826,40 @@
 
 static snd_pcm_hardware_t snd_es18xx_playback =
 {
-   info:   (SNDRV_PCM_INFO_MMAP | SNDRV_PCM_INFO_INTERLEAVED |
+   .info = (SNDRV_PCM_INFO_MMAP | SNDRV_PCM_INFO_INTERLEAVED |
 SNDRV_PCM_INFO_MMAP_VALID),
-   formats:(SNDRV_PCM_FMTBIT_U8 | SNDRV_PCM_FMTBIT_S8 | 
+   .formats =  (SNDRV_PCM_FMTBIT_U8 | SNDRV_PCM_FMTBIT_S8 | 
 SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_U16_LE),
-   rates:  SNDRV_PCM_RATE_CONTINUOUS | SNDRV_PCM_RATE_8000_48000,
-   rate_min:   4000,
-   rate_max:   48000,
-   channels_min:   1,
-   channels_max:   2,
-   buffer_bytes_max:   65536,
-   period_bytes_min:   64,
-   period_bytes_max:   65536,
-   periods_min:1,
-   periods_max:1024,
-   fifo_size:  0,
+   .rates =SNDRV_PCM_RATE_CONTINUOUS | SNDRV_PCM_RATE_8000_48000,
+   .rate_min = 4000,
+   .rate_max = 48000,
+   .channels_min = 1,
+   .channels_max = 2,
+   .buffer_bytes_max = 65536,
+   .period_bytes_min = 64,
+   .period_bytes_max = 65536,
+   .periods_min =  1,
+   .periods_max =  1024,
+   .fifo_size =0,
 };
 
 static snd_pcm_hardware_t snd_es18xx_capture =
 {
-   info:   (SNDRV_PCM_INFO_MMAP | SNDRV_PCM_INFO_INTERLEAVED |
+   .info = (SNDRV_PCM_INFO_MMAP | SNDRV_PCM_INFO_INTERLEAVED |
 SNDRV_PCM_INFO_MMAP_VALID),
-   formats:(SNDRV_PCM_FMTBIT_U8 | SNDRV_PCM_FMTBIT_S8 | 
+   .formats =  (SNDRV_PCM_FMTBIT_U8 | SNDRV_PCM_FMTBIT_S8 | 
 SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_U16_LE),
-   rates:  SNDRV_PCM_RATE_CONTINUOUS | SNDRV_PCM_RATE_8000_48000,
-   rate_min:   4000,
-   rate_max:   48000,
-   channels_min:   1,
-   channels_max:   2,
-   buffer_bytes_max:   65536,
-   period_bytes_min: