Changeset 284


Ignore:
Timestamp:
Feb 10, 2008, 6:58:24 PM (18 years ago)
Author:
Brendan Oakley
Message:

Apply SB Live fix to ReSync branch

File:
1 edited

Legend:

Unmodified
Added
Removed
  • GPL/branches/alsa-resync1/alsa-kernel/pci/ac97/ac97_codec.c

    r230 r284  
    562562        err = snd_ac97_update_bits(ac97, reg, val_mask, val);
    563563        snd_ac97_page_restore(ac97, page_save);
    564 #ifdef CONFIG_SND_AC97_POWER_SAVE
    565         /* check analog mixer power-down */
    566         if ((val_mask & 0x8000) &&
    567             (kcontrol->private_value & (1<<30))) {
    568                 if (val & 0x8000)
    569                         ac97->power_up &= ~(1 << (reg>>1));
    570                 else
    571                     ac97->power_up |= 1 << (reg>>1);
    572                 update_power_regs(ac97);
    573         }
    574 #endif
    575564        return err;
    576565}
     
    22752264        }
    22762265        /* make sure the proper powerdown bits are cleared */
    2277         if (ac97_is_audio(ac97))
    2278             update_power_regs(ac97);
     2266        if (ac97->scaps && ac97_is_audio(ac97)) {
     2267                reg = snd_ac97_read(ac97, AC97_EXTENDED_STATUS);
     2268                if (ac97->scaps & AC97_SCAP_SURROUND_DAC)
     2269                        reg &= ~AC97_EA_PRJ;
     2270                if (ac97->scaps & AC97_SCAP_CENTER_LFE_DAC)
     2271                        reg &= ~(AC97_EA_PRI | AC97_EA_PRK);
     2272                snd_ac97_write_cache(ac97, AC97_EXTENDED_STATUS, reg);
     2273        }
    22792274        snd_ac97_proc_init(ac97);
    22802275        if ((err = snd_device_new(card, SNDRV_DEV_CODEC, ac97, &ops)) < 0) {
Note: See TracChangeset for help on using the changeset viewer.