From 6688c46652f18f321411bd8cd0f33d5be9280c0b Mon Sep 17 00:00:00 2001 From: =?utf8?q?=E8=94=A1=E6=9E=AB?= Date: Tue, 2 Aug 2011 12:34:32 +0800 Subject: [PATCH] newton:cs42l52 only support 44.1k sample rate --- sound/soc/codecs/cs42l52.c | 8 +++++--- sound/soc/rk29/rk29_cs42l52.c | 2 +- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/sound/soc/codecs/cs42l52.c b/sound/soc/codecs/cs42l52.c index cf736ec14a1b..d28699767b0d 100755 --- a/sound/soc/codecs/cs42l52.c +++ b/sound/soc/codecs/cs42l52.c @@ -49,7 +49,7 @@ #undef AUTO_DETECT_DISABLE #endif -#define DEBUG +//#define DEBUG #ifdef DEBUG #define SOCDBG(fmt, arg...) printk(KERN_ERR "%s: %s() " fmt, SOC_CS42L52_NAME, __FUNCTION__, ##arg) #else @@ -770,13 +770,15 @@ static int soc_cs42l52_add_widgets(struct snd_soc_codec *soc_codec) snd_soc_dapm_new_widgets(soc_codec); return 0; } - +#if 0 #define SOC_CS42L52_RATES ( SNDRV_PCM_RATE_8000 | SNDRV_PCM_RATE_11025 | \ SNDRV_PCM_RATE_16000 | SNDRV_PCM_RATE_22050 | \ SNDRV_PCM_RATE_32000 | SNDRV_PCM_RATE_44100 | \ SNDRV_PCM_RATE_48000 | SNDRV_PCM_RATE_88200 | \ SNDRV_PCM_RATE_96000 ) - +#else +#define SOC_CS42L52_RATES SNDRV_PCM_RATE_44100 +#endif #define SOC_CS42L52_FORMATS ( SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_U16_LE | \ SNDRV_PCM_FMTBIT_S18_3LE | SNDRV_PCM_FMTBIT_U18_3LE | \ SNDRV_PCM_FMTBIT_S20_3LE | SNDRV_PCM_FMTBIT_U20_3LE | \ diff --git a/sound/soc/rk29/rk29_cs42l52.c b/sound/soc/rk29/rk29_cs42l52.c index 29b9b249360e..30884f20e160 100755 --- a/sound/soc/rk29/rk29_cs42l52.c +++ b/sound/soc/rk29/rk29_cs42l52.c @@ -25,7 +25,7 @@ #include "rk29_pcm.h" #include "rk29_i2s.h" -#if 1 +#if 0 #define DBG(x...) printk(KERN_INFO x) #else #define DBG(x...) -- 2.34.1