Ignore:
Timestamp:
Dec 11, 2005, 5:57:39 PM (20 years ago)
Author:
vladest
Message:

Latest update from ALSA. some intial > 15 interrupts support

File:
1 edited

Legend:

Unmodified
Added
Removed
  • GPL/trunk/alsa-kernel/include/sound/driver.h

    r33 r34  
    6767#include <linux/version.h>
    6868
    69 #define IRQ_NONE        /*void*/
    70 #define IRQ_HANDLED     /*void*/
    71 #define IRQ_RETVAL(x)   /*void*/
    72 typedef void irqreturn_t;
     69#define IRQ_NONE      (0)  /*void*/
     70#define IRQ_HANDLED   (1)  /*void*/
     71#define IRQ_RETVAL(x) ((x) != 0)  /*void*/
     72typedef int irqreturn_t;
    7373
    7474#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 2, 3)
     
    191191#include <sound/asound.h>
    192192#include <sound/asoundef.h>
     193
     194/* wrapper for getnstimeofday()
     195 * it's needed for recent 2.6 kernels, too, due to lack of EXPORT_SYMBOL
     196 */
     197#define getnstimeofday(x) do { \
     198        struct timeval __x; \
     199        do_gettimeofday(&__x); \
     200        (x)->tv_sec = __x.tv_sec;       \
     201        (x)->tv_nsec = __x.tv_usec * 1000; \
     202} while (0)
    193203
    194204struct work_struct {
     
    218228/* Name change */
    219229typedef struct timeval snd_timestamp_t;
    220 typedef struct sndrv_interval snd_interval_t;
    221230#ifndef TARGET_OS2
    222231typedef enum sndrv_card_type snd_card_type;
    223232#endif
    224 typedef struct sndrv_aes_iec958 snd_aes_iec958_t;
    225 //typedef enum sndrv_hwdep_iface snd_hwdep_iface_t;
    226 typedef struct sndrv_hwdep_info snd_hwdep_info_t;
    227 //typedef enum sndrv_pcm_class snd_pcm_class_t;
    228 //typedef enum sndrv_pcm_subclass snd_pcm_subclass_t;
    229 //typedef enum sndrv_pcm_stream snd_pcm_stream_t;
    230 //typedef enum sndrv_pcm_access snd_pcm_access_t;
    231 //typedef enum sndrv_pcm_format snd_pcm_format_t;
    232 //typedef enum sndrv_pcm_subformat snd_pcm_subformat_t;
    233 //typedef enum sndrv_pcm_state snd_pcm_state_t;
    234233typedef union sndrv_pcm_sync_id snd_pcm_sync_id_t;
    235 typedef struct sndrv_pcm_info snd_pcm_info_t;
    236 //typedef enum sndrv_pcm_hw_param snd_pcm_hw_param_t;
    237 typedef struct sndrv_pcm_hw_params snd_pcm_hw_params_t;
    238234#ifndef TARGET_OS2
    239235typedef enum sndrv_pcm_start snd_pcm_start_t;
    240236typedef enum sndrv_pcm_xrun snd_pcm_xrun_t;
    241237#endif
    242 //typedef enum sndrv_pcm_tstamp snd_pcm_tstamp_t;
    243 typedef struct sndrv_pcm_sw_params snd_pcm_sw_params_t;
    244 typedef struct sndrv_pcm_channel_info snd_pcm_channel_info_t;
    245 typedef struct sndrv_pcm_status snd_pcm_status_t;
    246 typedef struct sndrv_pcm_mmap_status snd_pcm_mmap_status_t;
    247 typedef struct sndrv_pcm_mmap_control snd_pcm_mmap_control_t;
    248 typedef struct sndrv_xferi snd_xferi_t;
    249 typedef struct sndrv_xfern snd_xfern_t;
    250 //typedef enum sndrv_rawmidi_stream snd_rawmidi_stream_t;
    251 typedef struct sndrv_rawmidi_info snd_rawmidi_info_t;
    252 typedef struct sndrv_rawmidi_params snd_rawmidi_params_t;
    253 typedef struct sndrv_rawmidi_status snd_rawmidi_status_t;
    254 //typedef enum sndrv_timer_class snd_timer_class_t;
    255 //typedef enum sndrv_timer_slave_class snd_timer_slave_class_t;
    256238#ifdef TARGET_OS2
    257239typedef struct snd_pcm_volume snd_pcm_volume_t;
     
    259241typedef enum sndrv_timer_global snd_timer_global_t;
    260242#endif
    261 typedef struct sndrv_timer_id snd_timer_id_t;
    262 typedef struct sndrv_timer_select snd_timer_select_t;
    263 typedef struct sndrv_timer_info snd_timer_info_t;
    264 typedef struct sndrv_timer_params snd_timer_params_t;
    265 typedef struct sndrv_timer_status snd_timer_status_t;
    266 typedef struct sndrv_timer_read snd_timer_read_t;
    267 typedef struct sndrv_timer_tread snd_timer_tread_t;
    268 typedef struct sndrv_timer_ginfo snd_timer_ginfo_t;
    269 typedef struct sndrv_timer_gparams snd_timer_gparams_t;
    270 typedef struct sndrv_timer_gstatus snd_timer_gstatus_t;
    271 typedef struct sndrv_xferv snd_xferv_t;
    272243
    273244#ifdef CONFIG_SND_DEBUG_MEMORY
     
    378349};
    379350
    380 #define snd_device(n) list_entry(n, snd_device_t, list)
     351#define snd_device(n) list_entry(n, struct snd_device, list)
    381352
    382353/* various typedefs */
    383354
    384355typedef struct snd_info_entry snd_info_entry_t;
    385 typedef struct _snd_pcm snd_pcm_t;
    386 typedef struct _snd_pcm_str snd_pcm_str_t;
    387 typedef struct _snd_pcm_substream snd_pcm_substream_t;
    388 typedef struct _snd_mixer snd_kmixer_t;
    389 typedef struct _snd_rawmidi snd_rawmidi_t;
    390 typedef struct _snd_ctl_file snd_ctl_file_t;
    391 typedef struct _snd_kcontrol snd_kcontrol_t;
    392 typedef struct _snd_timer snd_timer_t;
    393 typedef struct _snd_timer_instance snd_timer_instance_t;
    394 typedef struct _snd_hwdep snd_hwdep_t;
    395356#ifdef CONFIG_SND_OSSEMUL
    396357typedef struct _snd_oss_mixer snd_mixer_oss_t;
     
    519480};
    520481
    521 typedef struct _snd_minor snd_minor_t;
    522 
    523482/* sound.c */
    524483
Note: See TracChangeset for help on using the changeset viewer.