Title: [6590] trunk: add DAI hardware audio formats SND_SOC_DAIFMT_SPORT_TDM
- Revision
- 6590
- Author
- bhsong
- Date
- 2009-06-04 21:17:32 -0500 (Thu, 04 Jun 2009)
Log Message
add DAI hardware audio formats SND_SOC_DAIFMT_SPORT_TDM
Modified Paths
Diff
Modified: trunk/include/sound/soc.h (6589 => 6590)
--- trunk/include/sound/soc.h 2009-06-05 00:13:54 UTC (rev 6589)
+++ trunk/include/sound/soc.h 2009-06-05 02:17:32 UTC (rev 6590)
@@ -162,6 +162,7 @@
#define SND_SOC_DAIFMT_DSP_A 3 /* L data msb after FRM or LRC */
#define SND_SOC_DAIFMT_DSP_B 4 /* L data msb during FRM or LRC */
#define SND_SOC_DAIFMT_AC97 5 /* AC97 */
+#define SND_SOC_DAIFMT_SPORT_TDM 6 /* SPORT TDM for Blackfin */
#define SND_SOC_DAIFMT_MSB SND_SOC_DAIFMT_LEFT_J
#define SND_SOC_DAIFMT_LSB SND_SOC_DAIFMT_RIGHT_J
Modified: trunk/sound/soc/blackfin/bf5xx-ad1938.c (6589 => 6590)
--- trunk/sound/soc/blackfin/bf5xx-ad1938.c 2009-06-05 00:13:54 UTC (rev 6589)
+++ trunk/sound/soc/blackfin/bf5xx-ad1938.c 2009-06-05 02:17:32 UTC (rev 6590)
@@ -68,7 +68,7 @@
int ret = 0;
/* set cpu DAI configuration */
- ret = cpu_dai->dai_ops.set_fmt(cpu_dai, SND_SOC_DAIFMT_TDM |
+ ret = cpu_dai->dai_ops.set_fmt(cpu_dai, SND_SOC_DAIFMT_SPORT_TDM |
SND_SOC_DAIFMT_NB_NF | SND_SOC_DAIFMT_CBM_CFM);
if (ret < 0)
return ret;
Modified: trunk/sound/soc/blackfin/bf5xx-tdm.c (6589 => 6590)
--- trunk/sound/soc/blackfin/bf5xx-tdm.c 2009-06-05 00:13:54 UTC (rev 6589)
+++ trunk/sound/soc/blackfin/bf5xx-tdm.c 2009-06-05 02:17:32 UTC (rev 6590)
@@ -96,7 +96,7 @@
/* interface format:support TDM,slave mode */
switch (fmt & SND_SOC_DAIFMT_FORMAT_MASK) {
- case SND_SOC_DAIFMT_TDM:
+ case SND_SOC_DAIFMT_SPORT_TDM:
break;
default:
printk(KERN_ERR "%s: Unknown DAI format type\n", __func__);
_______________________________________________
Linux-kernel-commits mailing list
[email protected]
https://blackfin.uclinux.org/mailman/listinfo/linux-kernel-commits