Merge branch 'for-2.6.34' into for-2.6.35
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Mon, 5 Apr 2010 18:19:32 +0000 (19:19 +0100)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Mon, 5 Apr 2010 18:19:32 +0000 (19:19 +0100)
Conflicts due to context changes next to the backported DMA data change:
include/sound/soc.h

1  2 
include/sound/soc.h
sound/soc/codecs/wm8994.c

@@@ -381,7 -374,7 +381,7 @@@ struct snd_soc_pcm_stream 
        unsigned int rate_max;          /* max rate */
        unsigned int channels_min;      /* min channels */
        unsigned int channels_max;      /* max channels */
-       unsigned int active;            /* num of active users of the stream */
 -      unsigned int active:1;          /* stream is in use */
++      unsigned int active;            /* stream is in use */
        void *dma_data;                 /* used by platform code */
  };
  
@@@ -3866,36 -3735,13 +3871,37 @@@ static int wm8994_codec_probe(struct pl
        case 3:
                wm8994->hubs.dcs_codes = -5;
                wm8994->hubs.hp_startup_mode = 1;
+               wm8994->hubs.dcs_readback_mode = 1;
                break;
        default:
+               wm8994->hubs.dcs_readback_mode = 1;
                break;
        }
-                          
  
 +      ret = wm8994_request_irq(codec->control_data, WM8994_IRQ_MIC1_DET,
 +                               wm8994_mic_irq, "Mic 1 detect", wm8994);
 +      if (ret != 0)
 +              dev_warn(&pdev->dev,
 +                       "Failed to request Mic1 detect IRQ: %d\n", ret);
 +
 +      ret = wm8994_request_irq(codec->control_data, WM8994_IRQ_MIC1_SHRT,
 +                               wm8994_mic_irq, "Mic 1 short", wm8994);
 +      if (ret != 0)
 +              dev_warn(&pdev->dev,
 +                       "Failed to request Mic1 short IRQ: %d\n", ret);
 +
 +      ret = wm8994_request_irq(codec->control_data, WM8994_IRQ_MIC2_DET,
 +                               wm8994_mic_irq, "Mic 2 detect", wm8994);
 +      if (ret != 0)
 +              dev_warn(&pdev->dev,
 +                       "Failed to request Mic2 detect IRQ: %d\n", ret);
 +
 +      ret = wm8994_request_irq(codec->control_data, WM8994_IRQ_MIC2_SHRT,
 +                               wm8994_mic_irq, "Mic 2 short", wm8994);
 +      if (ret != 0)
 +              dev_warn(&pdev->dev,
 +                       "Failed to request Mic2 short IRQ: %d\n", ret);
 +
        /* Remember if AIFnLRCLK is configured as a GPIO.  This should be
         * configured on init - if a system wants to do this dynamically
         * at runtime we can deal with that then.