Ignore:
Timestamp:
Oct 8, 2009, 10:35:00 AM (16 years ago)
Author:
Paul Smedley
Message:

Update ALSA kernel to 1.0.21 level

Location:
GPL/trunk/alsa-kernel/pci/ymfpci
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • GPL/trunk/alsa-kernel/pci/ymfpci/ymfpci.c

    r410 r464  
    6868
    6969static struct pci_device_id snd_ymfpci_ids[] = {
    70         { 0x1073, 0x0004, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0, },   /* YMF724 */
    71         { 0x1073, 0x000d, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0, },   /* YMF724F */
    72         { 0x1073, 0x000a, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0, },   /* YMF740 */
    73         { 0x1073, 0x000c, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0, },   /* YMF740C */
    74         { 0x1073, 0x0010, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0, },   /* YMF744 */
    75         { 0x1073, 0x0012, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0, },   /* YMF754 */
     70        { PCI_VDEVICE(YAMAHA, 0x0004), 0, },   /* YMF724 */
     71        { PCI_VDEVICE(YAMAHA, 0x000d), 0, },   /* YMF724F */
     72        { PCI_VDEVICE(YAMAHA, 0x000a), 0, },   /* YMF740 */
     73        { PCI_VDEVICE(YAMAHA, 0x000c), 0, },   /* YMF740C */
     74        { PCI_VDEVICE(YAMAHA, 0x0010), 0, },   /* YMF744 */
     75        { PCI_VDEVICE(YAMAHA, 0x0012), 0, },   /* YMF754 */
    7676        { 0, }
    7777};
  • GPL/trunk/alsa-kernel/pci/ymfpci/ymfpci_main.c

    r445 r464  
    835835        if (status & 1) {
    836836                if (chip->timer)
    837                         snd_timer_interrupt(chip->timer, chip->timer->sticks);
     837                        snd_timer_interrupt(chip->timer, chip->timer_ticks);
    838838        }
    839839        snd_ymfpci_writew(chip, YDSXGR_INTFLAG, status);
     
    18861886
    18871887        chip = snd_timer_chip(timer);
    1888         count = (timer->sticks << 1) - 1;
    18891888        spin_lock_irqsave(&chip->reg_lock, flags);
     1889        if (timer->sticks > 1) {
     1890                chip->timer_ticks = timer->sticks;
     1891                count = timer->sticks - 1;
     1892        } else {
     1893                /*
     1894                 * Divisor 1 is not allowed; fake it by using divisor 2 and
     1895                 * counting two ticks for each interrupt.
     1896                 */
     1897                chip->timer_ticks = 2;
     1898                count = 2 - 1;
     1899        }
    18901900        snd_ymfpci_writew(chip, YDSXGR_TIMERCOUNT, count);
    18911901        snd_ymfpci_writeb(chip, YDSXGR_TIMERCTRL, 0x03);
     
    19101920{
    19111921        *num = 1;
    1912         *den = 48000;
     1922        *den = 96000;
    19131923        return 0;
    19141924}
     
    19161926static struct snd_timer_hardware snd_ymfpci_timer_hw = {
    19171927        .flags = SNDRV_TIMER_HW_AUTO,
    1918         .resolution = 20833, /* 1/fs = 20.8333...us */
    1919         .ticks = 0x8000,
     1928        .resolution = 10417, /* 1 / 96 kHz = 10.41666...us */
     1929        .ticks = 0x10000,
    19201930        .start = snd_ymfpci_timer_start,
    19211931        .stop = snd_ymfpci_timer_stop,
Note: See TracChangeset for help on using the changeset viewer.