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/pci/emu10k1/timer.c

    r33 r34  
    11/*
    22 *  Copyright (c) by Lee Revell <rlrevell@joe-job.com>
    3  * 
     3 *
    44 *  Routines for control of EMU10K1 chips
    55 *
    66 *  Copied from similar code by Clemens Ladisch in the ymfpci driver
    7  * 
     7 *
    88 *  BUGS:
    99 *    --
     
    3535static int snd_emu10k1_timer_start(snd_timer_t *timer)
    3636{
    37         emu10k1_t *emu;
     37        struct snd_emu10k1 *emu;
    3838        unsigned long flags;
    3939        unsigned int delay;
     
    5252static int snd_emu10k1_timer_stop(snd_timer_t *timer)
    5353{
    54         emu10k1_t *emu;
     54        struct snd_emu10k1 *emu;
    5555        unsigned long flags;
    5656
     
    7070}
    7171
    72 static struct _snd_timer_hardware snd_emu10k1_timer_hw = {
    73         /*.flags = */SNDRV_TIMER_HW_AUTO,
    74         /*.resolution = */20833, /* 1 sample @ 48KHZ = 20.833...us */
    75         0, 0,
    76         /*.ticks = */1024,
    77         NULL, NULL, NULL,
    78         /*.start = */snd_emu10k1_timer_start,
    79         /*.stop = */snd_emu10k1_timer_stop,
    80         NULL,
    81         /*.precise_resolution = */snd_emu10k1_timer_precise_resolution
     72static struct snd_timer_hardware snd_emu10k1_timer_hw = {
     73    .flags = SNDRV_TIMER_HW_AUTO,
     74    .resolution = 20833, /* 1 sample @ 48KHZ = 20.833...us */
     75    .ticks = 1024,
     76    .start = snd_emu10k1_timer_start,
     77    .stop = snd_emu10k1_timer_stop,
     78    .precise_resolution = snd_emu10k1_timer_precise_resolution,
    8279};
    8380
    84 int __devinit snd_emu10k1_timer(emu10k1_t *emu, int device)
     81int __devinit snd_emu10k1_timer(struct snd_emu10k1 *emu, int device)
    8582{
    8683        snd_timer_t *timer = NULL;
Note: See TracChangeset for help on using the changeset viewer.