OSDN Git Service

ASoC: sh: fsi: enable chip specific data transfer mode
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Fri, 18 May 2012 00:36:47 +0000 (17:36 -0700)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Sat, 19 May 2012 18:41:45 +0000 (19:41 +0100)
commit766812e6d5e2e23be1e212cf84902d5e834dd865
treefb8cdf68c82b9652e5a96b8eab444c7f22d86f3f
parentf33238e96f619d9888713c07dcd92e4518879282
ASoC: sh: fsi: enable chip specific data transfer mode

SupherH FSI2 can use special data transfer,
but it depends on CPU-FSI2 connection style.

We can use 16bit data stream mode if it was valid connection,
and it is required for 16bit data DMA transfer / SPDIF sound output.
We can use 24bit data transfer if it was invalid connection.

We can select connection type if CPU is SH7372,
and it is always valid connection if latest SuperH.

This patch adds new bus_option and fsi_bus_setup()
for supporting these feature.

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
include/sound/sh_fsi.h
sound/soc/sh/fsi.c