Merge branch 'for-2.6.38' of git://git.kernel.org/pub/scm/linux/kernel/git/lrg/asoc...
authorTakashi Iwai <tiwai@suse.de>
Tue, 23 Nov 2010 11:45:05 +0000 (12:45 +0100)
committerTakashi Iwai <tiwai@suse.de>
Tue, 23 Nov 2010 11:45:05 +0000 (12:45 +0100)
Conflicts:
sound/soc/codecs/tpa6130a2.c

1  2 
sound/soc/codecs/tlv320aic3x.c
sound/soc/codecs/tpa6130a2.c
sound/soc/codecs/twl4030.c

index df726a5066e828eabfacafa225f232b4725ffc60,684ca3a57caa2fabd7cef768f4db29825e30d62e..11a0a3d17055afafe60c4dc296de2d420eb9bf38
@@@ -1351,9 -1365,10 +1367,10 @@@ static int aic3x_probe(struct snd_soc_c
        struct aic3x_priv *aic3x = snd_soc_codec_get_drvdata(codec);
        int ret, i;
  
+       INIT_LIST_HEAD(&aic3x->list);
        codec->control_data = aic3x->control_data;
        aic3x->codec = codec;
 -      codec->idle_bias_off = 1;
 +      codec->dapm.idle_bias_off = 1;
  
        ret = snd_soc_codec_set_cache_io(codec, 8, 8, aic3x->control_type);
        if (ret != 0) {
@@@ -1416,9 -1433,11 +1435,10 @@@ err_notif
                                              &aic3x->disable_nb[i].nb);
        regulator_bulk_free(ARRAY_SIZE(aic3x->supplies), aic3x->supplies);
  err_get:
-       if (aic3x->gpio_reset >= 0)
+       if (gpio_is_valid(aic3x->gpio_reset) &&
+           !aic3x_is_shared_reset(aic3x))
                gpio_free(aic3x->gpio_reset);
  err_gpio:
 -      kfree(aic3x);
        return ret;
  }
  
index f9a92ea6b50aa8ca4a8a99246d0243424398a7ae,e55317b35786459d475baf9b12933b645655b6a6..d69d2f5f957052a6f48e7032c9258215cc157d5a
@@@ -125,10 -125,7 +125,7 @@@ static int tpa6130a2_power(int power
        data = i2c_get_clientdata(tpa6130a2_client);
  
        mutex_lock(&data->mutex);
 -      if (power) {
 +      if (power && !data->power_state) {
-               /* Power on */
-               if (data->power_gpio >= 0)
-                       gpio_set_value(data->power_gpio, 1);
  
                ret = regulator_enable(data->supply);
                if (ret != 0) {
Simple merge