? alsa-kernel/include/.ymfpci.h.swp ? alsa-kernel/pci/ymfpci/test Index: alsa-kernel/include/ymfpci.h =================================================================== RCS file: /cvsroot/alsa/alsa-kernel/include/ymfpci.h,v retrieving revision 1.8 diff -r1.8 ymfpci.h 176a177,179 > /*PT-Added*/ > #define YDSXG_HASFM(chip) ((chip)->legacy_ctrl & 2) > 287a291,292 > /*PT -- Added*/ > unsigned short legacy_ctrl; 351a357 > /*PT - MOdified*/ 354a361 > unsigned short legacy_ctrl, Index: alsa-kernel/pci/ymfpci/ymfpci.c =================================================================== RCS file: /cvsroot/alsa/alsa-kernel/pci/ymfpci/ymfpci.c,v retrieving revision 1.19 diff -r1.19 ymfpci.c 124a125 > printk("OPL3 supported on 0x%lx\n", snd_fm_port[dev]); 133c134 < //snd_printd("MPU401 supported on 0x%lx\n", snd_mpu_port[dev]); --- > printk("MPU401 supported on 0x%lx\n", snd_mpu_port[dev]); 170c171 < //snd_printdd("legacy_ctrl = 0x%x\n", legacy_ctrl); --- > snd_printdd("legacy_ctrl = 0x%x\n", legacy_ctrl); 172c173 < //snd_printdd("legacy_ctrl2 = 0x%x\n", legacy_ctrl2); --- > snd_printdd("legacy_ctrl2 = 0x%x\n", legacy_ctrl2); 173a175 > /*PT-modified*/ 175a178 > legacy_ctrl, 191c194 < } --- > } 219a223,224 > /*PT--Added*/ > chip->legacy_ctrl = legacy_ctrl; Index: alsa-kernel/pci/ymfpci/ymfpci_main.c =================================================================== RCS file: /cvsroot/alsa/alsa-kernel/pci/ymfpci/ymfpci_main.c,v retrieving revision 1.24 diff -r1.24 ymfpci_main.c 1532a1533 > YMFPCI_DOUBLE("FM Legacy Volume", 0, YDSXGR_LEGACYOUTVOL), 1898a1900,1904 > /*PT-StartAdd*/ > if (YDSXG_HASFM(chip)) { > snd_ymfpci_writel(chip, YDSXGR_LEGACYOUTVOL, 0x00000000); > } > /*PT-EndAdd*/ 2019a2026,2030 > /*PT-StartAdd*/ > if (YDSXG_HASFM(chip)) { > snd_ymfpci_writel(chip, YDSXGR_LEGACYOUTVOL, 0x3fff3fff); > } > /*PT-EndAdd*/ 2037a2049,2053 > /*PT-StartAdd*/ > if (YDSXG_HASFM(chip)) { > snd_ymfpci_writel(chip, YDSXGR_LEGACYOUTVOL, 0); > } > /*PT-EndAdd*/ 2097a2114 > YDSXGR_LEGACYOUTVOL, 2129,2130c2146,2152 < for (i = 0; i < YDSXGR_NUM_SAVED_REGS; i++) < chip->saved_regs[i] = snd_ymfpci_readl(chip, saved_regs_index[i]); --- > for (i = 0; i < YDSXGR_NUM_SAVED_REGS; i++) { > /*PT-StartAdd*/ > if ( (saved_regs_index[i]!=YDSXGR_LEGACYOUTVOL) || YDSXG_HASFM(chip) ) { > chip->saved_regs[i] = snd_ymfpci_readl(chip, saved_regs_index[i]); > } > /*PT-EndAdd*/ > } 2132a2155,2159 > /*PT-StartAdd*/ > if (YDSXG_HASFM(chip)) { > snd_ymfpci_writel(chip, YDSXGR_LEGACYOUTVOL, 0); > } > /*PT-EndAdd*/ 2156,2157c2183,2189 < for (i = 0; i < YDSXGR_NUM_SAVED_REGS; i++) < snd_ymfpci_writel(chip, saved_regs_index[i], chip->saved_regs[i]); --- > for (i = 0; i < YDSXGR_NUM_SAVED_REGS; i++) { > /*PT-StartAdd*/ > if ( (saved_regs_index[i]!=YDSXGR_LEGACYOUTVOL) || YDSXG_HASFM(chip) ) { > snd_ymfpci_writel(chip, saved_regs_index[i], chip->saved_regs[i]); > } > /*PT-EndAdd*/ > } 2193a2226 > //PT-Modified 2196a2230 > unsigned short legacy_ctrl, 2214a2249,2250 > //PT -- Added > chip->legacy_ctrl = legacy_ctrl;