aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/codecs/wm9081.c
diff options
context:
space:
mode:
authorMark Brown <broonie@linaro.org>2014-08-15 07:51:28 -0400
committerMark Brown <broonie@linaro.org>2014-08-15 07:51:28 -0400
commit543c675482bcf1e7b9f85bb1589314f38f60c520 (patch)
tree904f425393ac99539827d3164d2b0f78ac1607c5 /sound/soc/codecs/wm9081.c
parent2fa4a285ddfd39cfa711da3f5e898ec2ce80ef87 (diff)
parentae34a78c430c37c06404f032fb04e51315204281 (diff)
Merge tag 'asoc-v3.17' into asoc-linus
ASoC: Updates for v3.17 This has been a pretty exciting release in terms of the framework, we've finally got support for multiple CODECs attached to a single DAI link which has been something there's been interest in as long as I've been working on ASoC. A big thanks to Benoit and Misael for their work on this. Otherwise it's been a fairly standard release for development, including more componentisation work from Lars-Peter and a good selection of both CODEC and CPU drivers. - Support for multiple CODECs attached to a single DAI, enabling systems with for example multiple DAC/speaker drivers on a single link, contributed by Benoit Cousson based on work from Misael Lopez Cruz. - Support for byte controls larger than 256 bytes based on the use of TLVs contributed by Omair Mohammed Abdullah. - More componentisation work from Lars-Peter Clausen. - The remainder of the conversions of CODEC drivers to params_width() - Drivers for Cirrus Logic CS4265, Freescale i.MX ASRC blocks, Realtek RT286 and RT5670, Rockchip RK3xxx I2S controllers and Texas Instruments TAS2552. - Lots of updates and fixes, especially to the DaVinci, Intel, Freescale, Realtek, and rcar drivers. # gpg: Signature made Mon 04 Aug 2014 17:13:21 BST using RSA key ID 7EA229BD # gpg: Good signature from "Mark Brown <broonie@sirena.org.uk>" # gpg: aka "Mark Brown <broonie@debian.org>" # gpg: aka "Mark Brown <broonie@kernel.org>" # gpg: aka "Mark Brown <broonie@tardis.ed.ac.uk>" # gpg: aka "Mark Brown <broonie@linaro.org>" # gpg: aka "Mark Brown <Mark.Brown@linaro.org>"
Diffstat (limited to 'sound/soc/codecs/wm9081.c')
-rw-r--r--sound/soc/codecs/wm9081.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/sound/soc/codecs/wm9081.c b/sound/soc/codecs/wm9081.c
index 185eb97769e7..0cdc9e2184ab 100644
--- a/sound/soc/codecs/wm9081.c
+++ b/sound/soc/codecs/wm9081.c
@@ -1029,19 +1029,19 @@ static int wm9081_hw_params(struct snd_pcm_substream *substream,
1029 /* Otherwise work out a BCLK from the sample size */ 1029 /* Otherwise work out a BCLK from the sample size */
1030 wm9081->bclk = 2 * wm9081->fs; 1030 wm9081->bclk = 2 * wm9081->fs;
1031 1031
1032 switch (params_format(params)) { 1032 switch (params_width(params)) {
1033 case SNDRV_PCM_FORMAT_S16_LE: 1033 case 16:
1034 wm9081->bclk *= 16; 1034 wm9081->bclk *= 16;
1035 break; 1035 break;
1036 case SNDRV_PCM_FORMAT_S20_3LE: 1036 case 20:
1037 wm9081->bclk *= 20; 1037 wm9081->bclk *= 20;
1038 aif2 |= 0x4; 1038 aif2 |= 0x4;
1039 break; 1039 break;
1040 case SNDRV_PCM_FORMAT_S24_LE: 1040 case 24:
1041 wm9081->bclk *= 24; 1041 wm9081->bclk *= 24;
1042 aif2 |= 0x8; 1042 aif2 |= 0x8;
1043 break; 1043 break;
1044 case SNDRV_PCM_FORMAT_S32_LE: 1044 case 32:
1045 wm9081->bclk *= 32; 1045 wm9081->bclk *= 32;
1046 aif2 |= 0xc; 1046 aif2 |= 0xc;
1047 break; 1047 break;