alsa-devel.alsa-project.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] ASoC: tlv320aic3x: Correct S24_3LE support
@ 2013-12-13 12:58 Peter Ujfalusi
  2013-12-13 13:04 ` Mark Brown
  0 siblings, 1 reply; 18+ messages in thread
From: Peter Ujfalusi @ 2013-12-13 12:58 UTC (permalink / raw)
  To: Mark Brown, Liam Girdwood; +Cc: alsa-devel

Correct the hw_params callback to configure the codec correctly in case of
S24_3LE format.

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
---
 sound/soc/codecs/tlv320aic3x.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sound/soc/codecs/tlv320aic3x.c b/sound/soc/codecs/tlv320aic3x.c
index 470fbfb4b386..31b6ae2334bc 100644
--- a/sound/soc/codecs/tlv320aic3x.c
+++ b/sound/soc/codecs/tlv320aic3x.c
@@ -879,7 +879,7 @@ static int aic3x_hw_params(struct snd_pcm_substream *substream,
 	case SNDRV_PCM_FORMAT_S20_3LE:
 		data |= (0x01 << 4);
 		break;
-	case SNDRV_PCM_FORMAT_S24_LE:
+	case SNDRV_PCM_FORMAT_S24_3LE:
 		data |= (0x02 << 4);
 		break;
 	case SNDRV_PCM_FORMAT_S32_LE:
-- 
1.8.5.1

^ permalink raw reply related	[flat|nested] 18+ messages in thread
* [PATCH] ASoC: tlv320aic3x: Correct S24_3LE support
@ 2014-06-06 13:05 Peter Ujfalusi
  2014-06-09 20:24 ` Mark Brown
  0 siblings, 1 reply; 18+ messages in thread
From: Peter Ujfalusi @ 2014-06-06 13:05 UTC (permalink / raw)
  To: Mark Brown, Liam Girdwood; +Cc: alsa-devel

Correct the hw_params callback to configure the codec correctly in case of
S24_3LE format.
S24_LE is not defined as supported format for the codec.

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
---
 sound/soc/codecs/tlv320aic3x.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sound/soc/codecs/tlv320aic3x.c b/sound/soc/codecs/tlv320aic3x.c
index e12fafbb1e09..5360772bc1ad 100644
--- a/sound/soc/codecs/tlv320aic3x.c
+++ b/sound/soc/codecs/tlv320aic3x.c
@@ -879,7 +879,7 @@ static int aic3x_hw_params(struct snd_pcm_substream *substream,
 	case SNDRV_PCM_FORMAT_S20_3LE:
 		data |= (0x01 << 4);
 		break;
-	case SNDRV_PCM_FORMAT_S24_LE:
+	case SNDRV_PCM_FORMAT_S24_3LE:
 		data |= (0x02 << 4);
 		break;
 	case SNDRV_PCM_FORMAT_S32_LE:
-- 
2.0.0

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

end of thread, other threads:[~2014-06-24  9:19 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-12-13 12:58 [PATCH] ASoC: tlv320aic3x: Correct S24_3LE support Peter Ujfalusi
2013-12-13 13:04 ` Mark Brown
2013-12-13 13:29   ` Peter Ujfalusi
2013-12-13 13:34     ` Mark Brown
2013-12-13 13:41       ` Takashi Iwai
2013-12-13 13:50         ` Mark Brown
2013-12-13 13:57       ` Peter Ujfalusi
2013-12-13 14:18         ` Mark Brown
2013-12-13 14:31           ` Peter Ujfalusi
2013-12-13 18:29             ` Mark Brown
2013-12-13 13:42     ` Lars-Peter Clausen
2013-12-13 13:49       ` Mark Brown
  -- strict thread matches above, loose matches on Subject: below --
2014-06-06 13:05 Peter Ujfalusi
2014-06-09 20:24 ` Mark Brown
2014-06-23 13:01   ` Peter Ujfalusi
2014-06-23 15:18     ` Mark Brown
2014-06-24  6:23       ` Peter Ujfalusi
2014-06-24  9:18         ` Mark Brown

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).