]> nv-tegra.nvidia Code Review - linux-2.6.git/commitdiff
Merge branch 'for-2.6.30' into for-2.6.31
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Thu, 16 Apr 2009 13:14:35 +0000 (14:14 +0100)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Thu, 16 Apr 2009 13:14:35 +0000 (14:14 +0100)
1  2 
sound/soc/omap/omap-mcbsp.c
sound/soc/pxa/pxa-ssp.c

index 2b4a8da0991898265dad5c2a0fbc58bd9008744b,90f4df7fd906bd4feece5f1cfce73ab28db611c1..4d6ef0bf71dd945e081bbb4b5efc0dcbffff46b5
@@@ -282,15 -276,14 +282,15 @@@ static int omap_mcbsp_dai_hw_params(str
        }
  
        /* Set FS period and length in terms of bit clock periods */
 -      switch (mcbsp_data->fmt & SND_SOC_DAIFMT_FORMAT_MASK) {
 +      switch (format) {
        case SND_SOC_DAIFMT_I2S:
 -              regs->srgr2     |= FPER(wlen * 2 - 1);
 +              regs->srgr2     |= FPER(wlen * channels - 1);
                regs->srgr1     |= FWID(wlen - 1);
                break;
 +      case SND_SOC_DAIFMT_DSP_A:
        case SND_SOC_DAIFMT_DSP_B:
                regs->srgr2     |= FPER(wlen * channels - 1);
-               regs->srgr1     |= FWID(wlen * channels - 2);
+               regs->srgr1     |= FWID(0);
                break;
        }
  
Simple merge