ASoC: add snd_soc_of_parse_daifmt() for DeviceTree
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Tue, 15 Jan 2013 02:36:04 +0000 (18:36 -0800)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Sun, 27 Jan 2013 03:41:54 +0000 (11:41 +0800)
commita7930ed458afeacb029cee2b22f77b2a15472ad6
tree2913ddd71f1c128a8ad3be9da122c5571d8fdb0d
parent949db153b6466c6f7cad5a427ecea94985927311
ASoC: add snd_soc_of_parse_daifmt() for DeviceTree

This patch adds snd_soc_of_parse_daifmt() and supports below style on DT.

        [prefix]format = "i2c";
        [prefix]clock-gating = "continuous";
        [prefix]bitclock-inversion;
        [prefix]bitclock-master;
        [prefix]frame-master;

Each driver can use specific [prefix]
(ex simple-card,cpu,dai,format = xxx;)

This sample will be
SND_SOC_DAIFMT_I2S | SND_SOC_DAIFMT_CONT |
SND_SOC_DAIFMT_IB_NF | SND_SOC_DAIFMT_CBM_CFM

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
include/sound/soc.h
sound/soc/soc-core.c
This page took 0.025003 seconds and 5 git commands to generate.