Changeset 85
- Timestamp:
- Oct 24, 2006, 8:25:27 PM (19 years ago)
- Location:
- GPL/trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
GPL/trunk/alsa-kernel/include/sound/driver.h
r76 r85 186 186 #define PCI_D3hot 3 187 187 #define PCI_D3cold 4 188 #define pci_choose_state(pci,state) ((state) ? PCI_D3hot : PCI_D0) 188 189 #endif 189 190 -
GPL/trunk/alsa-kernel/pci/via82xx.c
r77 r85 60 60 #include <sound/pcm_params.h> 61 61 #include <sound/info.h> 62 #include <sound/tlv.h> 62 63 #include <sound/ac97_codec.h> 63 64 #include <sound/mpu401.h> … … 128 129 #define VIA_REV_8235 0x50 /* 2 rec, 4 pb, 1 multi-pb, spdif */ 129 130 #define VIA_REV_8237 0x60 131 #define VIA_REV_8251 0x70 130 132 131 133 /* … … 616 618 * Used for 686 and 8233A 617 619 */ 618 static irqreturn_t snd_via686_interrupt(int irq, void *dev_id , struct pt_regs *regs)620 static irqreturn_t snd_via686_interrupt(int irq, void *dev_id) 619 621 { 620 622 struct via82xx *chip = dev_id; … … 625 627 if (! (status & chip->intr_mask)) { 626 628 if (chip->rmidi) 627 628 return snd_mpu401_uart_interrupt(irq, chip->rmidi->private_data, regs);629 /* check mpu401 interrupt */ 630 //return snd_mpu401_uart_interrupt(irq, chip->rmidi->private_data); 629 631 return IRQ_NONE; 630 632 } … … 662 664 * Interrupt handler 663 665 */ 664 static irqreturn_t snd_via8233_interrupt(int irq, void *dev_id , struct pt_regs *regs)666 static irqreturn_t snd_via8233_interrupt(int irq, void *dev_id) 665 667 { 666 668 struct via82xx *chip = dev_id; … … 867 869 status = inb(VIADEV_REG(viadev, OFFSET_STATUS)); 868 870 871 /* An apparent bug in the 8251 is worked around by sending a 872 * REG_CTRL_START. */ 873 if (chip->revision == VIA_REV_8251 && (status & VIA_REG_STAT_EOL)) 874 snd_via82xx_pcm_trigger(substream, SNDRV_PCM_TRIGGER_START); 875 869 876 if (!(status & VIA_REG_STAT_ACTIVE)) { 870 877 res = 0; … … 1697 1704 return change; 1698 1705 } 1706 static DECLARE_TLV_DB_SCALE(db_scale_dxs, -9450, 150, 1); 1699 1707 1700 1708 static struct snd_kcontrol_new snd_via8233_pcmdxs_volume_control __devinitdata = { 1701 1709 .name = "PCM Playback Volume", 1702 1710 .iface = SNDRV_CTL_ELEM_IFACE_MIXER, 1711 .access = (SNDRV_CTL_ELEM_ACCESS_READWRITE | 1712 SNDRV_CTL_ELEM_ACCESS_TLV_READ), 1703 1713 .info = snd_via8233_dxs_volume_info, 1704 1714 .get = snd_via8233_pcmdxs_volume_get, 1705 .put = snd_via8233_pcmdxs_volume_put, 1715 .put = snd_via8233_pcmdxs_volume_put, 1716 .tlv = { .p = db_scale_dxs } 1706 1717 }; 1707 1718 … … 1709 1720 .name = "VIA DXS Playback Volume", 1710 1721 .iface = SNDRV_CTL_ELEM_IFACE_MIXER, 1722 .access = (SNDRV_CTL_ELEM_ACCESS_READWRITE | 1723 SNDRV_CTL_ELEM_ACCESS_TLV_READ), 1711 1724 .count = 4, 1712 1725 .info = snd_via8233_dxs_volume_info, 1713 1726 .get = snd_via8233_dxs_volume_get, 1714 .put = snd_via8233_dxs_volume_put, 1727 .put = snd_via8233_dxs_volume_put, 1728 .tlv = { .p = db_scale_dxs } 1715 1729 }; 1716 1730 … … 2176 2190 } 2177 2191 2178 pci_set_power_state(pci, PCI_D3hot);2179 2192 pci_disable_device(pci); 2180 pci_save_state(pci); 2193 pci_save_state(pci); 2194 pci_set_power_state(pci, pci_choose_state(pci, state)); 2181 2195 return 0; 2182 2196 } … … 2188 2202 int i; 2189 2203 2204 pci_set_power_state(pci, PCI_D0); 2190 2205 pci_restore_state(pci); 2191 pci_enable_device(pci); 2192 pci_set_power_state(pci, PCI_D0); 2206 if (pci_enable_device(pci) < 0) { 2207 printk(KERN_ERR "via82xx: pci_enable_device failed, " 2208 "disabling device\n"); 2209 snd_card_disconnect(card); 2210 return -EIO; 2211 } 2212 pci_set_master(pci); 2193 2213 2194 2214 snd_via82xx_chip_init(chip); … … 2335 2355 { VIA_REV_8233A, "VIA 8233A", TYPE_VIA8233A }, 2336 2356 { VIA_REV_8235, "VIA 8235", TYPE_VIA8233 }, 2337 { VIA_REV_8237, "VIA 8237", TYPE_VIA8233 }, 2357 { VIA_REV_8237, "VIA 8237", TYPE_VIA8233 }, 2358 { VIA_REV_8251, "VIA 8251", TYPE_VIA8233 }, 2338 2359 }; 2339 2360 … … 2355 2376 { .subvendor = 0x1019, .subdevice = 0x0a81, .action = VIA_DXS_NO_VRA }, /* ECS K7VTA3 v8.0 */ 2356 2377 { .subvendor = 0x1019, .subdevice = 0x0a85, .action = VIA_DXS_NO_VRA }, /* ECS L7VMM2 */ 2357 { .subvendor = 0x1019, .subdevice = 0xa101, .action = VIA_DXS_SRC }, 2378 { .subvendor = 0x1019, .subdevice = 0xa101, .action = VIA_DXS_SRC }, 2379 { .subvendor = 0x1019, .subdevice = 0xaa01, .action = VIA_DXS_SRC }, /* ECS K8T890-A */ 2358 2380 { .subvendor = 0x1025, .subdevice = 0x0033, .action = VIA_DXS_NO_VRA }, /* Acer Inspire 1353LM */ 2359 2381 { .subvendor = 0x1025, .subdevice = 0x0046, .action = VIA_DXS_SRC }, /* Acer Aspire 1524 WLMi */ … … 2364 2386 { .subvendor = 0x1043, .subdevice = 0x812a, .action = VIA_DXS_SRC }, /* ASUS A8V Deluxe */ 2365 2387 { .subvendor = 0x1043, .subdevice = 0x8174, .action = VIA_DXS_SRC }, /* ASUS */ 2388 { .subvendor = 0x1043, .subdevice = 0x81b9, .action = VIA_DXS_SRC }, /* ASUS A8V-MX */ 2366 2389 { .subvendor = 0x1071, .subdevice = 0x8375, .action = VIA_DXS_NO_VRA }, /* Vobis/Yakumo/Mitac notebook */ 2367 2390 { .subvendor = 0x1071, .subdevice = 0x8399, .action = VIA_DXS_NO_VRA }, /* Umax AB 595T (VIA K8N800A - VT8237) */ … … 2401 2424 { .subvendor = 0x1734, .subdevice = 0x1078, .action = VIA_DXS_SRC }, /* FSC Amilo L7300 */ 2402 2425 { .subvendor = 0x1734, .subdevice = 0x1093, .action = VIA_DXS_SRC }, /* FSC */ 2403 { .subvendor = 0x1849, .subdevice = 0x3059, .action = VIA_DXS_NO_VRA }, /* ASRock K7VM2 */ { .subvendor = 0x1849, .subdevice = 0x9739, .action = VIA_DXS_SRC }, /* ASRock mobo(?) */ 2426 { .subvendor = 0x1734, .subdevice = 0x10ab, .action = VIA_DXS_SRC }, /* FSC */ 2427 { .subvendor = 0x1849, .subdevice = 0x3059, .action = VIA_DXS_NO_VRA }, /* ASRock K7VM2 */ 2428 { .subvendor = 0x1849, .subdevice = 0x9739, .action = VIA_DXS_SRC }, /* ASRock mobo(?) */ 2404 2429 { .subvendor = 0x1849, .subdevice = 0x9761, .action = VIA_DXS_SRC }, /* ASRock mobo(?) */ 2405 2430 { .subvendor = 0x1919, .subdevice = 0x200a, .action = VIA_DXS_NO_VRA }, /* Soltek SL-K8Tpro-939 */ 2406 2431 { .subvendor = 0x4005, .subdevice = 0x4710, .action = VIA_DXS_SRC }, /* MSI K7T266 Pro2 (MS-6380 V2.0) BIOS 3.7 */ 2407 2432 {0} /* terminator */ 2408 2409 2433 }; 2434 const struct dxs_whitelist *w; 2410 2435 unsigned short subsystem_vendor; 2411 2436 unsigned short subsystem_device; -
GPL/trunk/include/version.mak
r84 r85 11 11 BLDLVL_REVISION = 1.1 12 12 BLDLVL_FILEVER = 4 13 BLDLVL_DATETIME = 2 3.10.2006 23:58:1313 BLDLVL_DATETIME = 24.10.2006 21:24:02 14 14 BLDLVL_MACHINE = VLAD -
GPL/trunk/lib32/sound.c
r84 r85 532 532 } 533 533 534 printk("OSS32_WaveOpen: cp1\n");535 534 ret = alsa_fops->open(&pHandle->inode, &pHandle->file); 536 printk("OSS32_WaveOpen. ret: %i\n", ret);535 //printk("OSS32_WaveOpen. ret: %i\n", ret); 537 536 /* check if PCM already opened (stupid uniaud16.sys doesnt closes it) */ 538 537 if (ret == -16) … … 556 555 } 557 556 } 558 printk("OSS32_WaveOpen: cp3\n");559 557 560 558 if(ret) { … … 565 563 } 566 564 pHandle->magic = MAGIC_WAVE_ALSA32; 567 printk("OSS32_WaveOpen: cp4\n");568 569 565 if (pStreamId) 570 566 *pStreamId = (ULONG)pHandle;
Note:
See TracChangeset
for help on using the changeset viewer.