Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1222070

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

From Nikesh <noswal@opensource.wolfsonmicro.com>
Newsgroups linux.kernel
Subject Re: [PATCH] ASoC: make dapm cache search depth configurable
Date 2015-09-10 11:50 +0200
Message-ID <q76Eq-65Y-19@gated-at.bofh.it> (permalink)
References <q6oam-1he-7@gated-at.bofh.it> <q6oDn-1OS-11@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


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@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH] ASoC: make dapm cache search depth configurable Nikesh Oswal <nikesh@opensource.wolfsonmicro.com> - 2015-09-08 12:20 +0200
  Re: [PATCH] ASoC: make dapm cache search depth configurable Mark Brown <broonie@kernel.org> - 2015-09-08 12:50 +0200
    Re: [PATCH] ASoC: make dapm cache search depth configurable Nikesh <noswal@opensource.wolfsonmicro.com> - 2015-09-10 11:50 +0200
      Re: [PATCH] ASoC: make dapm cache search depth configurable Mark Brown <broonie@kernel.org> - 2015-09-10 12:40 +0200

csiph-web