Title: [6678] trunk/sound/soc/codecs/ssm2602.c: task[#2424]sync the file in trunk head with asoc-git tree head,and the later patches for lkml should be against this revision
Revision
6678
Author
cliff
Date
2009-06-11 22:41:55 -0500 (Thu, 11 Jun 2009)

Log Message

task[#2424]sync the file in trunk head with asoc-git tree head,and the later patches for lkml should be against this revision

Modified Paths

Diff

Modified: trunk/sound/soc/codecs/ssm2602.c (6677 => 6678)


--- trunk/sound/soc/codecs/ssm2602.c	2009-06-12 03:40:17 UTC (rev 6677)
+++ trunk/sound/soc/codecs/ssm2602.c	2009-06-12 03:41:55 UTC (rev 6678)
@@ -336,17 +336,15 @@
 			master_runtime->sample_bits,
 			master_runtime->rate);
 
-		if (master_runtime->rate != 0)
-			snd_pcm_hw_constraint_minmax(substream->runtime,
-						     SNDRV_PCM_HW_PARAM_RATE,
-						     master_runtime->rate,
-						     master_runtime->rate);
+		snd_pcm_hw_constraint_minmax(substream->runtime,
+					     SNDRV_PCM_HW_PARAM_RATE,
+					     master_runtime->rate,
+					     master_runtime->rate);
 
-		if (master_runtime->sample_bits != 0)
-			snd_pcm_hw_constraint_minmax(substream->runtime,
-						     SNDRV_PCM_HW_PARAM_SAMPLE_BITS,
-						     master_runtime->sample_bits,
-						     master_runtime->sample_bits);
+		snd_pcm_hw_constraint_minmax(substream->runtime,
+					     SNDRV_PCM_HW_PARAM_SAMPLE_BITS,
+					     master_runtime->sample_bits,
+					     master_runtime->sample_bits);
 
 		ssm2602->slave_substream = substream;
 	} else
@@ -499,9 +497,11 @@
 	return 0;
 }
 
-#define SSM2602_RATES (SNDRV_PCM_RATE_8000 | SNDRV_PCM_RATE_32000 |\
-		SNDRV_PCM_RATE_44100 | SNDRV_PCM_RATE_48000 |\
-		SNDRV_PCM_RATE_88200 | SNDRV_PCM_RATE_96000)
+#define SSM2602_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)
 
 #define SSM2602_FORMATS (SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_S20_3LE |\
 		SNDRV_PCM_FMTBIT_S24_LE | SNDRV_PCM_FMTBIT_S32_LE)
_______________________________________________
Linux-kernel-commits mailing list
[email protected]
https://blackfin.uclinux.org/mailman/listinfo/linux-kernel-commits

Reply via email to