diff options
author | Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> | 2013-01-14 18:36:04 -0800 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2013-01-27 11:41:54 +0800 |
commit | a7930ed458afeacb029cee2b22f77b2a15472ad6 (patch) | |
tree | 2913ddd71f1c128a8ad3be9da122c5571d8fdb0d /include/sound | |
parent | 949db153b6466c6f7cad5a427ecea94985927311 (diff) | |
download | blackbird-op-linux-a7930ed458afeacb029cee2b22f77b2a15472ad6.tar.gz blackbird-op-linux-a7930ed458afeacb029cee2b22f77b2a15472ad6.zip |
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>
Diffstat (limited to 'include/sound')
-rw-r--r-- | include/sound/soc.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/sound/soc.h b/include/sound/soc.h index bc56738cb109..571562340e5a 100644 --- a/include/sound/soc.h +++ b/include/sound/soc.h @@ -1171,6 +1171,8 @@ int snd_soc_of_parse_card_name(struct snd_soc_card *card, const char *propname); int snd_soc_of_parse_audio_routing(struct snd_soc_card *card, const char *propname); +unsigned int snd_soc_of_parse_daifmt(struct device_node *np, + const char *prefix); #include <sound/soc-dai.h> |