Re: [PATCH] ASoC: make dapm cache search depth configurable

From: Nikesh
Date: Thu Sep 10 2015 - 05:43:31 EST


Hi Mark,

The reason I though this will be usefull is as below:

While adding paths the source or sink widgets of consecutive path that are being added, may not be immediate neighbours in widget list. Hence in such scenarios the cache hits will reduce. One possible solution is to rearrange the widgets in the codec driver but sometimes
codec driver uses some macros to create a bunch of related widgets which we may want to skip in the cache search. So a configurable cache search depth caters to such scenarios.

For example in wm5110.c the frequently occuring mixer routes are defined by ARIZONA_MIXER_INPUT_ROUTES, so as to maximise the cache hit codec driver can register all the source widgets in exactly the same order (by rearranging the widgets in wm5110_dapm_widgets[]) as defined in this macro. But if you notice the way DSP widgets are created they use a WM_ADSP2 macro which creates a preloader widget for every DSP widget and we want to skip past this preloader widget when doing a cache search so increasing the cache search depth helps here.

Thanks,
Nikesh

On 08/09/15 11:42, Mark Brown wrote:
On Tue, Sep 08, 2015 at 11:11:37AM +0100, Nikesh Oswal wrote:
cache search depth will have a default value of 2 and can
be modified by the respective component probe function
Why?

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/