alsa-devel.alsa-project.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/7] ASoC: tas5086: Convert to params_width()
@ 2014-07-31 12:16 Mark Brown
  2014-07-31 12:16 ` [PATCH 2/7] ASoC: tlv320aic26: " Mark Brown
                   ` (5 more replies)
  0 siblings, 6 replies; 9+ messages in thread
From: Mark Brown @ 2014-07-31 12:16 UTC (permalink / raw)
  To: Peter Ujfalusi, Liam Girdwood; +Cc: alsa-devel, linaro-kernel, Mark Brown

From: Mark Brown <broonie@linaro.org>

The CODEC doesn't care how data is laid out in memory.

Signed-off-by: Mark Brown <broonie@linaro.org>
---
 sound/soc/codecs/tas5086.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/sound/soc/codecs/tas5086.c b/sound/soc/codecs/tas5086.c
index be7194b43b7a..249ef5c4c762 100644
--- a/sound/soc/codecs/tas5086.c
+++ b/sound/soc/codecs/tas5086.c
@@ -425,14 +425,14 @@ static int tas5086_hw_params(struct snd_pcm_substream *substream,
 	}
 
 	/* ... then add the offset for the sample bit depth. */
-	switch (params_format(params)) {
-        case SNDRV_PCM_FORMAT_S16_LE:
+	switch (params_width(params)) {
+        case 16:
 		val += 0;
                 break;
-	case SNDRV_PCM_FORMAT_S20_3LE:
+	case 20:
 		val += 1;
 		break;
-	case SNDRV_PCM_FORMAT_S24_3LE:
+	case 24:
 		val += 2;
 		break;
 	default:
-- 
2.0.1

^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2014-07-31 12:40 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-07-31 12:16 [PATCH 1/7] ASoC: tas5086: Convert to params_width() Mark Brown
2014-07-31 12:16 ` [PATCH 2/7] ASoC: tlv320aic26: " Mark Brown
2014-07-31 12:16 ` [PATCH 3/7] ASoC: tlv320aic31xx: " Mark Brown
2014-07-31 12:16 ` [PATCH 4/7] ASoC: tlv320aic32x4: " Mark Brown
2014-07-31 12:16 ` [PATCH 5/7] ASoC: tlv320aic3x: " Mark Brown
2014-07-31 12:16 ` [PATCH 6/7] ASoC: tlv320dac33: " Mark Brown
2014-07-31 12:40   ` Peter Ujfalusi
2014-07-31 12:16 ` [PATCH 7/7] ASoC: twl4030: " Mark Brown
2014-07-31 12:40   ` Peter Ujfalusi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).