From: Jeeja Date: Thu, 6 Oct 2011 15:18:36 +0000 (+0100) Subject: ASoC: sst_platform: Fix the range of playback and capture parameters X-Git-Tag: 2.1b_release~1969 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=734e785cb4450ade17bf3b39cd5434d95658056e;p=kernel%2Fkernel-mfld-blackbay.git ASoC: sst_platform: Fix the range of playback and capture parameters Audio driver was exposing the unsupported paramter for Playback and Capture This patch handles the range of the playback and capture parameter Change-Id: Iff9b78786d69ef5e3fe36be7380949ebd53a9887 Signed-off-by: Jeeja --- diff --git a/sound/soc/mid-x86/sst_platform.h b/sound/soc/mid-x86/sst_platform.h index 80e0255..627cf12 100644 --- a/sound/soc/mid-x86/sst_platform.h +++ b/sound/soc/mid-x86/sst_platform.h @@ -29,18 +29,18 @@ #define SST_MONO 1 #define SST_STEREO 2 -#define SST_MAX_CAP 5 + #define SST_MIN_RATE 8000 #define SST_MAX_RATE 48000 #define SST_MIN_CHANNEL 1 -#define SST_MAX_CHANNEL 5 -#define SST_MAX_BUFFER (800*1024) -#define SST_MIN_BUFFER (800*1024) -#define SST_MIN_PERIOD_BYTES 32 -#define SST_MAX_PERIOD_BYTES SST_MAX_BUFFER +#define SST_MAX_CHANNEL 2 +#define SST_MAX_BUFFER 22050 /*500ms*/ +#define SST_MIN_BUFFER 22050 +#define SST_MIN_PERIOD_BYTES 441 /*10ms */ +#define SST_MAX_PERIOD_BYTES ((SST_MAX_BUFFER) / (SST_MIN_PERIODS)) #define SST_MIN_PERIODS 2 -#define SST_MAX_PERIODS (1024*2) +#define SST_MAX_PERIODS 50 #define SST_FIFO_SIZE 0 #define SST_CARD_NAMES "intel_mid_card" #define MSIC_VENDOR_ID 3