diff options
author | Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> | 2020-05-25 09:57:36 +0900 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2020-05-25 14:22:11 +0100 |
commit | 0cbbf8a0399518e5b865f9a1320d704c1d621703 (patch) | |
tree | 6e4a17e1e2965e3301ac84f499431a1afbee5e1d /sound/soc/soc-dai.c | |
parent | 7cf3c5b4a04f4b27d964089630290beccc115f9f (diff) | |
download | linux-0cbbf8a0399518e5b865f9a1320d704c1d621703.tar.gz linux-0cbbf8a0399518e5b865f9a1320d704c1d621703.tar.bz2 linux-0cbbf8a0399518e5b865f9a1320d704c1d621703.zip |
ASoC: soc-link: add snd_soc_link_be_hw_params_fixup()
dai_link related function should be implemented at soc-link.c.
This patch adds snd_soc_link_be_hw_params_fixup().
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Reviewed-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Link: https://lore.kernel.org/r/87wo503k73.wl-kuninori.morimoto.gx@renesas.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/soc-dai.c')
-rw-r--r-- | sound/soc/soc-dai.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/sound/soc/soc-dai.c b/sound/soc/soc-dai.c index ce4e1fd1ab79..2c6ac3b0afa5 100644 --- a/sound/soc/soc-dai.c +++ b/sound/soc/soc-dai.c @@ -8,6 +8,7 @@ #include <sound/soc.h> #include <sound/soc-dai.h> +#include <sound/soc-link.h> #define soc_dai_ret(dai, ret) _soc_dai_ret(dai, __func__, ret) static inline int _soc_dai_ret(struct snd_soc_dai *dai, @@ -313,11 +314,9 @@ int snd_soc_dai_hw_params(struct snd_soc_dai *dai, int ret = 0; /* perform any topology hw_params fixups before DAI */ - if (rtd->dai_link->be_hw_params_fixup) { - ret = rtd->dai_link->be_hw_params_fixup(rtd, params); - if (ret < 0) - goto end; - } + ret = snd_soc_link_be_hw_params_fixup(rtd, params); + if (ret < 0) + goto end; if (dai->driver->ops && dai->driver->ops->hw_params) |