diff options
author | Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> | 2016-06-30 02:02:46 -0400 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2016-07-01 11:34:02 -0400 |
commit | cecdef3656956b0978bf86ecd1ce0542d2c61e97 (patch) | |
tree | 894008aaf663544a1f4aed351284319daf78459f /include/sound | |
parent | abd3147e69481caade441e8d8296fa3f541aea03 (diff) |
ASoC: simple-card: use asoc_simple_card_parse_daifmt()
We can use simpel utils asoc_simple_card_parse_daifmt().
Let's use it
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'include/sound')
-rw-r--r-- | include/sound/simple_card.h | 11 | ||||
-rw-r--r-- | include/sound/simple_card_utils.h | 10 |
2 files changed, 11 insertions, 10 deletions
diff --git a/include/sound/simple_card.h b/include/sound/simple_card.h index 0399352f3a62..a6a2e1547092 100644 --- a/include/sound/simple_card.h +++ b/include/sound/simple_card.h | |||
@@ -13,16 +13,7 @@ | |||
13 | #define __SIMPLE_CARD_H | 13 | #define __SIMPLE_CARD_H |
14 | 14 | ||
15 | #include <sound/soc.h> | 15 | #include <sound/soc.h> |
16 | 16 | #include <sound/simple_card_utils.h> | |
17 | struct asoc_simple_dai { | ||
18 | const char *name; | ||
19 | unsigned int sysclk; | ||
20 | int slots; | ||
21 | int slot_width; | ||
22 | unsigned int tx_slot_mask; | ||
23 | unsigned int rx_slot_mask; | ||
24 | struct clk *clk; | ||
25 | }; | ||
26 | 17 | ||
27 | struct asoc_simple_card_info { | 18 | struct asoc_simple_card_info { |
28 | const char *name; | 19 | const char *name; |
diff --git a/include/sound/simple_card_utils.h b/include/sound/simple_card_utils.h index 7acc798016e0..50aa7b22a94c 100644 --- a/include/sound/simple_card_utils.h +++ b/include/sound/simple_card_utils.h | |||
@@ -12,6 +12,16 @@ | |||
12 | 12 | ||
13 | #include <sound/soc.h> | 13 | #include <sound/soc.h> |
14 | 14 | ||
15 | struct asoc_simple_dai { | ||
16 | const char *name; | ||
17 | unsigned int sysclk; | ||
18 | int slots; | ||
19 | int slot_width; | ||
20 | unsigned int tx_slot_mask; | ||
21 | unsigned int rx_slot_mask; | ||
22 | struct clk *clk; | ||
23 | }; | ||
24 | |||
15 | int asoc_simple_card_parse_daifmt(struct device *dev, | 25 | int asoc_simple_card_parse_daifmt(struct device *dev, |
16 | struct device_node *node, | 26 | struct device_node *node, |
17 | struct device_node *codec, | 27 | struct device_node *codec, |