Changeset 366 for GPL/branches/alsa-resync1/alsa-kernel/pci
- Timestamp:
- Aug 30, 2008, 9:18:38 PM (17 years ago)
- Location:
- GPL/branches/alsa-resync1/alsa-kernel/pci
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
GPL/branches/alsa-resync1/alsa-kernel/pci/ac97/ac97_pcm.c
r302 r366 213 213 snd_ac97_update_bits_nolock(ac97, reg, mask, bits); 214 214 /* update the internal spdif bits */ 215 sbits = ac97->spdif_status;216 if (sbits & IEC958_AES0_PROFESSIONAL) {217 sbits &= ~IEC958_AES0_PRO_FS;218 switch (rate) {219 case 44100: sbits |= IEC958_AES0_PRO_FS_44100; break;220 case 48000: sbits |= IEC958_AES0_PRO_FS_48000; break;221 case 32000: sbits |= IEC958_AES0_PRO_FS_32000; break;222 }223 } else {224 sbits &= ~(IEC958_AES3_CON_FS << 24);225 switch (rate) {226 case 44100: sbits |= IEC958_AES3_CON_FS_44100<<24; break;227 case 48000: sbits |= IEC958_AES3_CON_FS_48000<<24; break;228 case 32000: sbits |= IEC958_AES3_CON_FS_32000<<24; break;229 }230 }231 ac97->spdif_status = sbits;232 /* update the internal spdif bits */233 215 #ifndef TARGET_OS2 234 216 spin_lock(&ac97->reg_lock); -
GPL/branches/alsa-resync1/alsa-kernel/pci/cmipci.c
r300 r366 2627 2627 */ 2628 2628 2629 static void snd_cmipci_proc_read(struct snd_info_entry *entry, 2629 #ifdef CONFIG_PROC_FS 2630 static void snd_cmipci_proc_read(struct snd_info_entry *entry, 2630 2631 struct snd_info_buffer *buffer) 2631 2632 { … … 2649 2650 { 2650 2651 struct snd_info_entry *entry; 2652 2651 2653 if (! snd_card_proc_new(cm->card, "cmipci", &entry)) 2652 2654 snd_info_set_text_ops(entry, cm, 1024, snd_cmipci_proc_read); 2653 2655 } 2656 #else /* !CONFIG_PROC_FS */ 2657 static inline void snd_cmipci_proc_init(struct cmipci *cm) {} 2658 #endif 2659 2654 2660 2655 2661 static struct pci_device_id snd_cmipci_ids[] = { -
GPL/branches/alsa-resync1/alsa-kernel/pci/intel8x0.c
r348 r366 42 42 #define SNDRV_GET_ID 43 43 #include <sound/initval.h> 44 /* for 440MX workaround */ 45 #include <asm/pgtable.h> 46 #include <asm/cacheflush.h> 44 47 45 48 #define I810_DEBUG … … 82 85 #else 83 86 static int ac97_clock[SNDRV_CARDS] = {[0 ... (SNDRV_CARDS - 1)] = 0}; 87 static int ac97_quirk[SNDRV_CARDS] = {[0 ... (SNDRV_CARDS - 1)] = AC97_TUNE_DEFAULT}; 84 88 #endif 85 89 #ifdef SUPPORT_JOYSTICK … … 865 869 /* ack */ 866 870 iputdword(chip, chip->int_sta_reg, status); 867 /* FIXME: on some ICH5 board shows the same 868 * problem. So we return IRQ_HANDLED 869 * in any cases. 870 * (or, maybe add a new module param to control this?) 871 */ 872 #if 0 873 if (chip->device_type != DEVICE_NFORCE) 874 status ^= igetdword(chip, chip->int_sta_reg); 875 #endif 876 } 877 return IRQ_NONE/*RETVAL(status)*/; 871 /* some Nforce[2] boards have problems when 872 IRQ_NONE is returned here. 873 */ 874 if (chip->device_type != DEVICE_NFORCE) 875 status = 0; 876 } 877 spin_unlock(&chip->reg_lock); 878 return IRQ_RETVAL(status); 878 879 } 879 880 #ifdef TARGET_OS2
Note:
See TracChangeset
for help on using the changeset viewer.