aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/sh
diff options
context:
space:
mode:
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>2012-12-17 01:12:42 -0500
committerMark Brown <broonie@opensource.wolfsonmicro.com>2012-12-24 10:57:09 -0500
commitabca75814a82c0c53c0a8ec7fa1300c133bc4f01 (patch)
treed62dca5f3cd5584f8345b5b3e6aeaf67e9464c97 /sound/soc/sh
parent6cbdbffba19620db77de38094f407b6f21d3f10c (diff)
ASoC: fsi: remove SH_FSI_xxx_INV flags
3449f5fab8c51e37a8a48bc2516588c615373191 (ASoC: fsi: add SND_SOC_DAIFMT_INV_xxx support) added clock inversion support via snd_soc_dai_set_fmt(). Thus, this patch removed SH_FSI_xxx_INV and fsi_get_info() from fsi driver, and modified platform settings to use new style. Then, it cleaned up meaningless settings from platform. Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Acked-by: Simon Horman <horms+renesas@verge.net.au> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound/soc/sh')
-rw-r--r--sound/soc/sh/fsi.c25
1 files changed, 0 insertions, 25 deletions
diff --git a/sound/soc/sh/fsi.c b/sound/soc/sh/fsi.c
index 5cb1332e0438..f14c611b38c6 100644
--- a/sound/soc/sh/fsi.c
+++ b/sound/soc/sh/fsi.c
@@ -251,7 +251,6 @@ struct fsi_clk {
251struct fsi_priv { 251struct fsi_priv {
252 void __iomem *base; 252 void __iomem *base;
253 struct fsi_master *master; 253 struct fsi_master *master;
254 struct sh_fsi_port_info *info;
255 254
256 struct fsi_stream playback; 255 struct fsi_stream playback;
257 struct fsi_stream capture; 256 struct fsi_stream capture;
@@ -426,14 +425,6 @@ static struct fsi_priv *fsi_get_priv(struct snd_pcm_substream *substream)
426 return fsi_get_priv_frm_dai(fsi_get_dai(substream)); 425 return fsi_get_priv_frm_dai(fsi_get_dai(substream));
427} 426}
428 427
429static u32 fsi_get_info_flags(struct fsi_priv *fsi)
430{
431 if (!fsi->info)
432 return 0;
433
434 return fsi->info->flags;
435}
436
437static u32 fsi_get_port_shift(struct fsi_priv *fsi, struct fsi_stream *io) 428static u32 fsi_get_port_shift(struct fsi_priv *fsi, struct fsi_stream *io)
438{ 429{
439 int is_play = fsi_stream_is_play(fsi, io); 430 int is_play = fsi_stream_is_play(fsi, io);
@@ -1543,7 +1534,6 @@ static int fsi_hw_startup(struct fsi_priv *fsi,
1543 struct fsi_stream *io, 1534 struct fsi_stream *io,
1544 struct device *dev) 1535 struct device *dev)
1545{ 1536{
1546 u32 flags = fsi_get_info_flags(fsi);
1547 u32 data = 0; 1537 u32 data = 0;
1548 1538
1549 /* clock setting */ 1539 /* clock setting */
@@ -1560,19 +1550,6 @@ static int fsi_hw_startup(struct fsi_priv *fsi,
1560 data |= (1 << 4); 1550 data |= (1 << 4);
1561 if (fsi_is_clk_master(fsi)) 1551 if (fsi_is_clk_master(fsi))
1562 data <<= 8; 1552 data <<= 8;
1563 /* FIXME
1564 *
1565 * SH_FSI_xxx_INV style will be removed
1566 */
1567 if (SH_FSI_LRM_INV & flags)
1568 data |= 1 << 12;
1569 if (SH_FSI_BRM_INV & flags)
1570 data |= 1 << 8;
1571 if (SH_FSI_LRS_INV & flags)
1572 data |= 1 << 4;
1573 if (SH_FSI_BRS_INV & flags)
1574 data |= 1 << 0;
1575
1576 fsi_reg_write(fsi, CKG2, data); 1553 fsi_reg_write(fsi, CKG2, data);
1577 1554
1578 /* spdif ? */ 1555 /* spdif ? */
@@ -1988,7 +1965,6 @@ static int fsi_probe(struct platform_device *pdev)
1988 fsi = &master->fsia; 1965 fsi = &master->fsia;
1989 fsi->base = master->base; 1966 fsi->base = master->base;
1990 fsi->master = master; 1967 fsi->master = master;
1991 fsi->info = pinfo;
1992 fsi_port_info_init(fsi, pinfo); 1968 fsi_port_info_init(fsi, pinfo);
1993 fsi_handler_init(fsi, pinfo); 1969 fsi_handler_init(fsi, pinfo);
1994 ret = fsi_stream_probe(fsi, &pdev->dev); 1970 ret = fsi_stream_probe(fsi, &pdev->dev);
@@ -2002,7 +1978,6 @@ static int fsi_probe(struct platform_device *pdev)
2002 fsi = &master->fsib; 1978 fsi = &master->fsib;
2003 fsi->base = master->base + 0x40; 1979 fsi->base = master->base + 0x40;
2004 fsi->master = master; 1980 fsi->master = master;
2005 fsi->info = pinfo;
2006 fsi_port_info_init(fsi, pinfo); 1981 fsi_port_info_init(fsi, pinfo);
2007 fsi_handler_init(fsi, pinfo); 1982 fsi_handler_init(fsi, pinfo);
2008 ret = fsi_stream_probe(fsi, &pdev->dev); 1983 ret = fsi_stream_probe(fsi, &pdev->dev);