* [PATCH] ASoC: Blackfin I2S: add 8-bit sample support
@ 2011-03-26 7:05 Mike Frysinger
2011-03-26 14:12 ` Liam Girdwood
2011-03-26 17:42 ` Mark Brown
0 siblings, 2 replies; 3+ messages in thread
From: Mike Frysinger @ 2011-03-26 7:05 UTC (permalink / raw)
To: alsa-devel, Liam Girdwood, Mark Brown; +Cc: uclinux-dist-devel, Cliff Cai
From: Cliff Cai <cliff.cai@analog.com>
Signed-off-by: Cliff Cai <cliff.cai@analog.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
---
sound/soc/blackfin/bf5xx-i2s.c | 11 +++++++++--
1 files changed, 9 insertions(+), 2 deletions(-)
diff --git a/sound/soc/blackfin/bf5xx-i2s.c b/sound/soc/blackfin/bf5xx-i2s.c
index d453b1e..37d9d3c 100644
--- a/sound/soc/blackfin/bf5xx-i2s.c
+++ b/sound/soc/blackfin/bf5xx-i2s.c
@@ -140,6 +140,10 @@ static int bf5xx_i2s_hw_params(struct snd_pcm_substream *substream,
bf5xx_i2s.tcr2 &= ~0x1f;
bf5xx_i2s.rcr2 &= ~0x1f;
switch (params_format(params)) {
+ case SNDRV_PCM_FORMAT_S8:
+ bf5xx_i2s->tcr2 |= 7;
+ bf5xx_i2s->rcr2 |= 7;
+ sport_handle->wdsize = 1;
case SNDRV_PCM_FORMAT_S16_LE:
bf5xx_i2s.tcr2 |= 15;
bf5xx_i2s.rcr2 |= 15;
@@ -266,8 +270,11 @@ static int bf5xx_i2s_resume(struct snd_soc_dai *dai)
SNDRV_PCM_RATE_44100 | SNDRV_PCM_RATE_48000 | \
SNDRV_PCM_RATE_96000)
-#define BF5XX_I2S_FORMATS (SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_S24_LE |\
- SNDRV_PCM_FMTBIT_S32_LE)
+#define BF5XX_I2S_FORMATS \
+ (SNDRV_PCM_FMTBIT_S8 | \
+ SNDRV_PCM_FMTBIT_S16_LE | \
+ SNDRV_PCM_FMTBIT_S24_LE | \
+ SNDRV_PCM_FMTBIT_S32_LE)
static struct snd_soc_dai_ops bf5xx_i2s_dai_ops = {
.shutdown = bf5xx_i2s_shutdown,
--
1.7.4.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] ASoC: Blackfin I2S: add 8-bit sample support
2011-03-26 7:05 [PATCH] ASoC: Blackfin I2S: add 8-bit sample support Mike Frysinger
@ 2011-03-26 14:12 ` Liam Girdwood
2011-03-26 17:42 ` Mark Brown
1 sibling, 0 replies; 3+ messages in thread
From: Liam Girdwood @ 2011-03-26 14:12 UTC (permalink / raw)
To: Mike Frysinger; +Cc: uclinux-dist-devel, alsa-devel, Mark Brown, Cliff Cai
On Sat, 2011-03-26 at 03:05 -0400, Mike Frysinger wrote:
> From: Cliff Cai <cliff.cai@analog.com>
>
> Signed-off-by: Cliff Cai <cliff.cai@analog.com>
> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Acked-by: Liam Girdwood <lrg@ti.com>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] ASoC: Blackfin I2S: add 8-bit sample support
2011-03-26 7:05 [PATCH] ASoC: Blackfin I2S: add 8-bit sample support Mike Frysinger
2011-03-26 14:12 ` Liam Girdwood
@ 2011-03-26 17:42 ` Mark Brown
1 sibling, 0 replies; 3+ messages in thread
From: Mark Brown @ 2011-03-26 17:42 UTC (permalink / raw)
To: Mike Frysinger; +Cc: uclinux-dist-devel, alsa-devel, Cliff Cai, Liam Girdwood
On Sat, Mar 26, 2011 at 03:05:08AM -0400, Mike Frysinger wrote:
> From: Cliff Cai <cliff.cai@analog.com>
>
> Signed-off-by: Cliff Cai <cliff.cai@analog.com>
> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Applied, thanks.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2011-03-26 17:42 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-26 7:05 [PATCH] ASoC: Blackfin I2S: add 8-bit sample support Mike Frysinger
2011-03-26 14:12 ` Liam Girdwood
2011-03-26 17:42 ` 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).