intel_sst: MRST can only do mono recording
authorWu Fengguang <wfg@linux.intel.com>
Tue, 3 May 2011 16:35:19 +0000 (17:35 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 10 May 2011 19:58:43 +0000 (12:58 -0700)
commit3ca13bdb3c79e8a5e79ddeddacdae3bd4611ab5d
tree956c2b211787e3bd12583a30a1f4f30bdd9d340d
parentf2b5ea1feb904d483a8cf901562e314988ecc314
intel_sst: MRST can only do mono recording

Fix bug

$ arecord -Dplughw -c2
Recording WAVE 'stdin' : Unsigned 8 bit, Rate 8000 Hz, Stereo
arecord: set_params:1116: Unable to install hw params:
ACCESS:  RW_INTERLEAVED
FORMAT:  U8
SUBFORMAT:  STD
SAMPLE_BITS: 8
FRAME_BITS: 16
CHANNELS: 2
[...]

Root cause is, the driver is reporting 2-channel capture capability
that is not supported by the MRST hardware. So the plughw plugin
end up requesting 2-channel capture which fails.

Signed-off-by: Wu Fengguang <fengguang.wu@intel.com>
Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/intel_sst/intelmid.c