* [PATCH 1/1] ASoC: Blackfin: update SPORT0 port selector (v2)
@ 2008-10-27 9:09 Bryan Wu
2008-10-27 11:35 ` Mark Brown
0 siblings, 1 reply; 3+ messages in thread
From: Bryan Wu @ 2008-10-27 9:09 UTC (permalink / raw)
To: broonie, tiwai; +Cc: alsa-devel, Cliff Cai, Bryan Wu
From: Cliff Cai <cliff.cai@analog.com>
- Setting the TFS pin selector for SPORT 0 based on whether the selected
port id F or G. If the port is F then no conflict should exist for the
TFS. When Port G is selected and EMAC then there is a conflict between
the PHY interrupt line and TFS. Current settings prevent the conflict
by ignoring the TFS pin when Port G is selected. This allows both
ssm2602 using Port G and EMAC concurrently.
- some code cleanup
Signed-off-by: Cliff Cai <cliff.cai@analog.com>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
---
sound/soc/blackfin/bf5xx-i2s.c | 34 ++++++++++++++++++++++------------
1 files changed, 22 insertions(+), 12 deletions(-)
diff --git a/sound/soc/blackfin/bf5xx-i2s.c b/sound/soc/blackfin/bf5xx-i2s.c
index 827587f..e020c16 100644
--- a/sound/soc/blackfin/bf5xx-i2s.c
+++ b/sound/soc/blackfin/bf5xx-i2s.c
@@ -70,12 +70,24 @@ static struct sport_param sport_params[2] = {
}
};
-static u16 sport_req[][7] = {
- { P_SPORT0_DTPRI, P_SPORT0_TSCLK, P_SPORT0_RFS,
- P_SPORT0_DRPRI, P_SPORT0_RSCLK, 0},
- { P_SPORT1_DTPRI, P_SPORT1_TSCLK, P_SPORT1_RFS,
- P_SPORT1_DRPRI, P_SPORT1_RSCLK, 0},
-};
+/*
+ * Setting the TFS pin selector for SPORT 0 based on whether the selected
+ * port id F or G. If the port is F then no conflict should exist for the
+ * TFS. When Port G is selected and EMAC then there is a conflict between
+ * the PHY interrupt line and TFS. Current settings prevent the conflict
+ * by ignoring the TFS pin when Port G is selected. This allows both
+ * ssm2602 using Port G and EMAC concurrently.
+ */
+#ifdef CONFIG_BF527_SPORT0_PORTF
+#define LOCAL_SPORT0_TFS (P_SPORT0_TFS)
+#else
+#define LOCAL_SPORT0_TFS (0)
+#endif
+
+static u16 sport_req[][7] = { {P_SPORT0_DTPRI, P_SPORT0_TSCLK, P_SPORT0_RFS,
+ P_SPORT0_DRPRI, P_SPORT0_RSCLK, LOCAL_SPORT0_TFS, 0},
+ {P_SPORT1_DTPRI, P_SPORT1_TSCLK, P_SPORT1_RFS, P_SPORT1_DRPRI,
+ P_SPORT1_RSCLK, P_SPORT1_TFS, 0} };
static int bf5xx_i2s_set_dai_fmt(struct snd_soc_dai *cpu_dai,
unsigned int fmt)
@@ -98,23 +110,21 @@ static int bf5xx_i2s_set_dai_fmt(struct snd_soc_dai *cpu_dai,
ret = -EINVAL;
break;
default:
+ printk(KERN_ERR "%s: Unknown DAI format type\n", __func__);
ret = -EINVAL;
break;
}
switch (fmt & SND_SOC_DAIFMT_MASTER_MASK) {
- case SND_SOC_DAIFMT_CBS_CFS:
- ret = -EINVAL;
- break;
- case SND_SOC_DAIFMT_CBM_CFS:
- ret = -EINVAL;
- break;
case SND_SOC_DAIFMT_CBM_CFM:
break;
+ case SND_SOC_DAIFMT_CBS_CFS:
+ case SND_SOC_DAIFMT_CBM_CFS:
case SND_SOC_DAIFMT_CBS_CFM:
ret = -EINVAL;
break;
default:
+ printk(KERN_ERR "%s: Unknown DAI master type\n", __func__);
ret = -EINVAL;
break;
}
--
1.5.6
^ permalink raw reply related [flat|nested] 3+ messages in thread* Re: [PATCH 1/1] ASoC: Blackfin: update SPORT0 port selector (v2)
2008-10-27 9:09 [PATCH 1/1] ASoC: Blackfin: update SPORT0 port selector (v2) Bryan Wu
@ 2008-10-27 11:35 ` Mark Brown
2008-10-27 11:47 ` Takashi Iwai
0 siblings, 1 reply; 3+ messages in thread
From: Mark Brown @ 2008-10-27 11:35 UTC (permalink / raw)
To: Bryan Wu; +Cc: tiwai, alsa-devel, Cliff Cai
On Mon, Oct 27, 2008 at 05:09:25PM +0800, Bryan Wu wrote:
> From: Cliff Cai <cliff.cai@analog.com>
>
> - Setting the TFS pin selector for SPORT 0 based on whether the selected
> port id F or G. If the port is F then no conflict should exist for the
> TFS. When Port G is selected and EMAC then there is a conflict between
> the PHY interrupt line and TFS. Current settings prevent the conflict
> by ignoring the TFS pin when Port G is selected. This allows both
> ssm2602 using Port G and EMAC concurrently.
>
> - some code cleanup
>
> Signed-off-by: Cliff Cai <cliff.cai@analog.com>
> Signed-off-by: Bryan Wu <cooloney@kernel.org>
Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH 1/1] ASoC: Blackfin: update SPORT0 port selector (v2)
2008-10-27 11:35 ` Mark Brown
@ 2008-10-27 11:47 ` Takashi Iwai
0 siblings, 0 replies; 3+ messages in thread
From: Takashi Iwai @ 2008-10-27 11:47 UTC (permalink / raw)
To: Mark Brown; +Cc: Cliff Cai, Bryan Wu, alsa-devel
At Mon, 27 Oct 2008 11:35:36 +0000,
Mark Brown wrote:
>
> On Mon, Oct 27, 2008 at 05:09:25PM +0800, Bryan Wu wrote:
> > From: Cliff Cai <cliff.cai@analog.com>
> >
> > - Setting the TFS pin selector for SPORT 0 based on whether the selected
> > port id F or G. If the port is F then no conflict should exist for the
> > TFS. When Port G is selected and EMAC then there is a conflict between
> > the PHY interrupt line and TFS. Current settings prevent the conflict
> > by ignoring the TFS pin when Port G is selected. This allows both
> > ssm2602 using Port G and EMAC concurrently.
> >
> > - some code cleanup
> >
> > Signed-off-by: Cliff Cai <cliff.cai@analog.com>
> > Signed-off-by: Bryan Wu <cooloney@kernel.org>
>
> Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Is this to be pushed for 2.6.28, or 2.6.29?
thanks,
Takashi
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2008-10-27 11:47 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-10-27 9:09 [PATCH 1/1] ASoC: Blackfin: update SPORT0 port selector (v2) Bryan Wu
2008-10-27 11:35 ` Mark Brown
2008-10-27 11:47 ` Takashi Iwai
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.