diff options
author | Thierry Reding <treding@nvidia.com> | 2021-04-16 09:11:47 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2021-04-16 16:54:48 +0100 |
commit | 343e55e71877415a23372388b3e0c59a9bba42f6 (patch) | |
tree | 382d535a86ba49d445bb9e806b0c5344eab1f84c /include | |
parent | 0f687d826736a5b4eee03170382fe54d413b912a (diff) | |
download | linux-rpi-343e55e71877415a23372388b3e0c59a9bba42f6.tar.gz linux-rpi-343e55e71877415a23372388b3e0c59a9bba42f6.tar.bz2 linux-rpi-343e55e71877415a23372388b3e0c59a9bba42f6.zip |
ASoC: simple-card-utils: Increase maximum number of links to 128
On Tegra186 and later, the number of links can go up to 72, so bump the
maximum number of links to the next power of two (128).
Fixes: f2138aed231c ("ASoC: simple-card-utils: enable flexible CPU/Codec/Platform")
Signed-off-by: Thierry Reding <treding@nvidia.com>
Link: https://lore.kernel.org/r/20210416071147.2149109-2-thierry.reding@gmail.com
Reviewed-by: Jon Hunter <jonathanh@nvidia.com>
Tested-by: Jon Hunter <jonathanh@nvidia.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/sound/simple_card_utils.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/sound/simple_card_utils.h b/include/sound/simple_card_utils.h index fac3b832d982..e318a2d4ac44 100644 --- a/include/sound/simple_card_utils.h +++ b/include/sound/simple_card_utils.h @@ -115,10 +115,12 @@ struct asoc_simple_priv { ((codec) = simple_props_to_dai_codec(props, i)); \ (i)++) +#define SNDRV_MAX_LINKS 128 + struct link_info { int link; /* number of link */ int cpu; /* turn for CPU / Codec */ - struct prop_nums num[SNDRV_MINOR_DEVICES]; + struct prop_nums num[SNDRV_MAX_LINKS]; }; int asoc_simple_parse_daifmt(struct device *dev, |