This enables the command to work:
arecord -D dsnoop -r 48000 -f S16_LE 1.wav
Signed-off-by: Wu Fengguang <[email protected]>
---
drivers/staging/intel_sst/intelmid.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
--- linux-2.6-mrst.orig/drivers/staging/intel_sst/intelmid.c 2011-03-19
11:22:24.000000000 +0800
+++ linux-2.6-mrst/drivers/staging/intel_sst/intelmid.c 2011-03-19
11:25:52.000000000 +0800
@@ -326,22 +326,25 @@ static int snd_intelmad_open(struct snd_
pr_debug("sst: snd_intelmad_open called\n");
intelmaddata = snd_pcm_substream_chip(substream);
runtime = substream->runtime;
/* set the runtime hw parameter with local snd_pcm_hardware struct */
runtime->hw = snd_intelmad_stream;
if (intelmaddata->cpu_id == CPU_CHIP_LINCROFT) {
/*
* MRST firmware currently denies stereo recording requests.
*/
- if (substream->stream == SNDRV_PCM_STREAM_CAPTURE)
+ if (substream->stream == SNDRV_PCM_STREAM_CAPTURE) {
+ runtime->hw.formats = (SNDRV_PCM_FMTBIT_S16 |
+ SNDRV_PCM_FMTBIT_U16);
runtime->hw.channels_max = 1;
+ }
}
if (intelmaddata->cpu_id == CPU_CHIP_PENWELL) {
runtime->hw = snd_intelmad_stream;
runtime->hw.rates = SNDRV_PCM_RATE_48000;
runtime->hw.rate_min = MAX_RATE;
runtime->hw.formats = (SNDRV_PCM_FMTBIT_S24 |
SNDRV_PCM_FMTBIT_U24);
if (intelmaddata->sstdrv_ops->scard_ops->input_dev_id == AMIC)
runtime->hw.channels_max = MAX_CHANNEL_AMIC;
else
_______________________________________________
MeeGo-kernel mailing list
[email protected]
http://lists.meego.com/listinfo/meego-kernel