From: 蔡枫 Date: Tue, 2 Aug 2011 04:34:32 +0000 (+0800) Subject: newton:cs42l52 only support 44.1k sample rate X-Git-Tag: firefly_0821_release~9775^2~3^2~27 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=6688c46652f18f321411bd8cd0f33d5be9280c0b;p=firefly-linux-kernel-4.4.55.git newton:cs42l52 only support 44.1k sample rate --- 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...)