![](https://secure.gravatar.com/avatar/d930951cb00393ecf9c3db3a56d78fa9.jpg?s=120&d=mm&r=g)
30 Jun
2014
30 Jun
'14
11:56 a.m.
On Mon, Jun 30, 2014 at 05:38:59AM +0000, Bard Liao wrote:
+static int check_dac_monor_asrc_source(struct snd_soc_dapm_widget
*source,
struct snd_soc_dapm_widget *sink) {
- struct snd_soc_codec *codec = source->codec;
- return is_using_asrc(codec, RT5670_ASRC_2, 4); }
I have to say I'm not convinced all these wrapper functions are really adding much - just making is_using_asrc() take a widget and passing the arguments directly seems as simple.
Do you mean use is_using_asrc() as the checking function for all of those widgets, and use different arguments for different widgets?
Yes, it seems like that's all the functions do which isn't adding much.