Changeset 464 for GPL/trunk/alsa-kernel/pci/ymfpci
- Timestamp:
- Oct 8, 2009, 10:35:00 AM (16 years ago)
- Location:
- GPL/trunk/alsa-kernel/pci/ymfpci
- Files:
-
- 2 edited
-
ymfpci.c (modified) (1 diff)
-
ymfpci_main.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
GPL/trunk/alsa-kernel/pci/ymfpci/ymfpci.c
r410 r464 68 68 69 69 static 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 */ 76 76 { 0, } 77 77 }; -
GPL/trunk/alsa-kernel/pci/ymfpci/ymfpci_main.c
r445 r464 835 835 if (status & 1) { 836 836 if (chip->timer) 837 snd_timer_interrupt(chip->timer, chip->timer ->sticks);837 snd_timer_interrupt(chip->timer, chip->timer_ticks); 838 838 } 839 839 snd_ymfpci_writew(chip, YDSXGR_INTFLAG, status); … … 1886 1886 1887 1887 chip = snd_timer_chip(timer); 1888 count = (timer->sticks << 1) - 1;1889 1888 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 } 1890 1900 snd_ymfpci_writew(chip, YDSXGR_TIMERCOUNT, count); 1891 1901 snd_ymfpci_writeb(chip, YDSXGR_TIMERCTRL, 0x03); … … 1910 1920 { 1911 1921 *num = 1; 1912 *den = 48000;1922 *den = 96000; 1913 1923 return 0; 1914 1924 } … … 1916 1926 static struct snd_timer_hardware snd_ymfpci_timer_hw = { 1917 1927 .flags = SNDRV_TIMER_HW_AUTO, 1918 .resolution = 20833, /* 1/fs = 20.8333...us */1919 .ticks = 0x 8000,1928 .resolution = 10417, /* 1 / 96 kHz = 10.41666...us */ 1929 .ticks = 0x10000, 1920 1930 .start = snd_ymfpci_timer_start, 1921 1931 .stop = snd_ymfpci_timer_stop,
Note:
See TracChangeset
for help on using the changeset viewer.
