diff options
author | Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> | 2018-11-21 02:10:51 +0000 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2018-11-21 13:28:34 +0000 |
commit | a48bf02b35d9325eedb56ab531038511695a2734 (patch) | |
tree | e85508ba96a97f73af18bd0ec05ed8dd791c7e83 /include | |
parent | f31a17105560f5f074f4d26fd5469a221f50af18 (diff) | |
download | linux-a48bf02b35d9325eedb56ab531038511695a2734.tar.bz2 |
ASoC: simple-card-utils: tidyup asoc_simple_card_parse_convert()
Current simple-card-utils has asoc_simple_card_parse_convert() to parse
convert channel/rate for be_hw_params_fixup.
But, it is parsing from top of node.
If sound card had multi subnode, we need to parse it from each sub node.
This patch tidyup asoc_simple_card_parse_convert() to allow parsing
settings from each node.
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/sound/simple_card_utils.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/sound/simple_card_utils.h b/include/sound/simple_card_utils.h index fb0318f9b10f..d1f17172dce2 100644 --- a/include/sound/simple_card_utils.h +++ b/include/sound/simple_card_utils.h @@ -116,7 +116,8 @@ int asoc_simple_card_clean_reference(struct snd_soc_card *card); void asoc_simple_card_convert_fixup(struct asoc_simple_card_data *data, struct snd_pcm_hw_params *params); -void asoc_simple_card_parse_convert(struct device *dev, char *prefix, +void asoc_simple_card_parse_convert(struct device *dev, + struct device_node *np, char *prefix, struct asoc_simple_card_data *data); int asoc_simple_card_of_parse_routing(struct snd_soc_card *card, |