Merge branch 'fix/hda' into topic/hda
authorTakashi Iwai <tiwai@suse.de>
Tue, 19 Jan 2010 14:53:43 +0000 (15:53 +0100)
committerTakashi Iwai <tiwai@suse.de>
Tue, 19 Jan 2010 14:53:43 +0000 (15:53 +0100)
Conflicts:
sound/pci/hda/patch_realtek.c

1  2 
sound/core/pcm_native.c
sound/pci/ac97/ac97_patch.c
sound/pci/hda/hda_codec.c
sound/pci/hda/hda_codec.h
sound/pci/hda/patch_analog.c
sound/pci/hda/patch_realtek.c
sound/pci/hda/patch_sigmatel.c

Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
index 141ff446104ab30b169727681ced2368f72172a5,6ae610c0111e6e31ed28b9186228586b55f940f5..c53faa959390458c8de34c30f928fa349f0dac5f
@@@ -3715,34 -3642,6 +3724,31 @@@ static void alc_free(struct hda_codec *
  }
  
  #ifdef CONFIG_SND_HDA_POWER_SAVE
-               snd_hda_codec_write(codec, 0x0f, 0,
-                                   AC_VERB_SET_EAPD_BTLENABLE, 0x00);
-               snd_hda_codec_write(codec, 0x10, 0,
-                                   AC_VERB_SET_EAPD_BTLENABLE, 0x00);
 +static void alc_power_eapd(struct hda_codec *codec)
 +{
 +      /* We currently only handle front, HP */
 +      switch (codec->vendor_id) {
 +      case 0x10ec0260:
-               snd_hda_codec_write(codec, 0x14, 0,
-                                   AC_VERB_SET_EAPD_BTLENABLE, 0x00);
-               snd_hda_codec_write(codec, 0x15, 0,
-                                   AC_VERB_SET_EAPD_BTLENABLE, 0x00);
++              set_eapd(codec, 0x0f, 0);
++              set_eapd(codec, 0x10, 0);
 +              break;
 +      case 0x10ec0262:
 +      case 0x10ec0267:
 +      case 0x10ec0268:
 +      case 0x10ec0269:
++      case 0x10ec0270:
 +      case 0x10ec0272:
 +      case 0x10ec0660:
 +      case 0x10ec0662:
 +      case 0x10ec0663:
 +      case 0x10ec0862:
 +      case 0x10ec0889:
++              set_eapd(codec, 0x14, 0);
++              set_eapd(codec, 0x15, 0);
 +              break;
 +      }
 +}
 +
  static int alc_suspend(struct hda_codec *codec, pm_message_t state)
  {
        struct alc_spec *spec = codec->spec;
Simple merge