lkml.org 
[lkml]   [2015]   [Sep]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH] ASoC: make dapm cache search depth configurable
From
Date
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?



\
 
 \ /
  Last update: 2015-09-10 12:01    [W:0.111 / U:1.316 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site