[PATCH] regmap: rbtree: When adding a reg do a bsearch for target node

2015-10-21 Thread Nikesh Oswal
From: Nikesh Oswal A binary search is much more efficient rather than iterating over the rbtree in ascending order which the current code is doing. During initialisation the reg defaults are written to the cache in a large chunk and these are always sorted in the ascending order so

[PATCH] regmap: rbtree: When adding a reg do a bsearch for target node

2015-10-21 Thread Nikesh Oswal
From: Nikesh Oswal <nikesh.os...@wolfsonmicro.com> A binary search is much more efficient rather than iterating over the rbtree in ascending order which the current code is doing. During initialisation the reg defaults are written to the cache in a large chunk and these are always

[PATCH] ASoC: dapm: add kcontrol to switch regulator to regulated/bypass state

2015-09-08 Thread Nikesh Oswal
voltage to acheive higher quality whereas voice trigger may need bypass voltage so as to save on power. Signed-off-by: Nikesh Oswal --- include/sound/soc-dapm.h |7 +- sound/soc/soc-dapm.c | 177 ++ 2 files changed, 183 insertions(+), 1 deletion

[PATCH] ASoC: make dapm cache search depth configurable

2015-09-08 Thread Nikesh Oswal
cache search depth will have a default value of 2 and can be modified by the respective component probe function Signed-off-by: Nikesh Oswal --- include/sound/soc-dapm.h |1 + sound/soc/soc-core.c |2 ++ sound/soc/soc-dapm.c |5 +++-- 3 files changed, 6 insertions(+), 2

[PATCH] ASoC: dapm: add kcontrol to switch regulator to regulated/bypass state

2015-09-08 Thread Nikesh Oswal
voltage to acheive higher quality whereas voice trigger may need bypass voltage so as to save on power. Signed-off-by: Nikesh Oswal <nik...@opensource.wolfsonmicro.com> --- include/sound/soc-dapm.h |7 +- sound/soc/soc-dapm.c | 177 ++ 2

[PATCH] ASoC: make dapm cache search depth configurable

2015-09-08 Thread Nikesh Oswal
cache search depth will have a default value of 2 and can be modified by the respective component probe function Signed-off-by: Nikesh Oswal <nik...@opensource.wolfsonmicro.com> --- include/sound/soc-dapm.h |1 + sound/soc/soc-core.c |2 ++ sound/soc/soc-dapm.c |5 ++

[PATCH v9] ASoC: dapm: add code to configure dai link parameters

2015-02-02 Thread Nikesh Oswal
. Signed-off-by: Nikesh Oswal --- include/sound/soc-dapm.h |3 + include/sound/soc.h |1 + sound/soc/soc-core.c |6 +- sound/soc/soc-dapm.c | 164 -- 4 files changed, 166 insertions(+), 8 deletions(-) diff --git a/include/sound

[PATCH v9] ASoC: dapm: add code to configure dai link parameters

2015-02-02 Thread Nikesh Oswal
. Signed-off-by: Nikesh Oswal nik...@opensource.wolfsonmicro.com --- include/sound/soc-dapm.h |3 + include/sound/soc.h |1 + sound/soc/soc-core.c |6 +- sound/soc/soc-dapm.c | 164 -- 4 files changed, 166 insertions(+), 8 deletions

[PATCH v8] ASoC: dapm: add code to configure dai link parameters

2015-01-15 Thread Nikesh Oswal
. Signed-off-by: Nikesh Oswal --- include/sound/soc-dapm.h |3 + include/sound/soc.h |1 + sound/soc/soc-core.c |6 +- sound/soc/soc-dapm.c | 155 -- 4 files changed, 157 insertions(+), 8 deletions(-) diff --git a/include/sound

[PATCH v8] ASoC: dapm: add code to configure dai link parameters

2015-01-15 Thread Nikesh Oswal
. Signed-off-by: Nikesh Oswal nik...@opensource.wolfsonmicro.com --- include/sound/soc-dapm.h |3 + include/sound/soc.h |1 + sound/soc/soc-core.c |6 +- sound/soc/soc-dapm.c | 155 -- 4 files changed, 157 insertions(+), 8 deletions

[PATCH v7] ASoC: dapm: add code to configure dai link parameters

2014-11-28 Thread Nikesh Oswal
. Signed-off-by: Nikesh Oswal --- include/sound/soc-dapm.h |3 + include/sound/soc.h |1 + sound/soc/soc-core.c |6 +- sound/soc/soc-dapm.c | 154 -- 4 files changed, 157 insertions(+), 7 deletions(-) diff --git a/include/sound

[PATCH v7] ASoC: dapm: add code to configure dai link parameters

2014-11-28 Thread Nikesh Oswal
. Signed-off-by: Nikesh Oswal nik...@opensource.wolfsonmicro.com --- include/sound/soc-dapm.h |3 + include/sound/soc.h |1 + sound/soc/soc-core.c |6 +- sound/soc/soc-dapm.c | 154 -- 4 files changed, 157 insertions(+), 7 deletions

Re: [PATCH v6] ASoC: dapm: add code to configure dai link parameters

2014-10-14 Thread Nikesh Oswal
On Fri, Oct 10, 2014 at 05:49:59PM +0100, Mark Brown wrote: > On Fri, Oct 10, 2014 at 05:17:15PM +0100, Nikesh Oswal wrote: > > dai-link params for codec-codec links were fixed. The fixed > > link between codec and another chip which may be another codec, > > baseband, bl

Re: [PATCH v6] ASoC: dapm: add code to configure dai link parameters

2014-10-14 Thread Nikesh Oswal
On Fri, Oct 10, 2014 at 05:49:59PM +0100, Mark Brown wrote: On Fri, Oct 10, 2014 at 05:17:15PM +0100, Nikesh Oswal wrote: dai-link params for codec-codec links were fixed. The fixed link between codec and another chip which may be another codec, baseband, bluetooth codec etc may require run

[PATCH v6] ASoC: dapm: add code to configure dai link parameters

2014-10-10 Thread Nikesh Oswal
. Signed-off-by: Nikesh Oswal --- include/sound/soc-dapm.h |3 + include/sound/soc.h |1 + sound/soc/soc-core.c |6 +- sound/soc/soc-dapm.c | 143 -- 4 files changed, 146 insertions(+), 7 deletions(-) diff --git a/include/sound

[PATCH v6] ASoC: dapm: add code to configure dai link parameters

2014-10-10 Thread Nikesh Oswal
. Signed-off-by: Nikesh Oswal nik...@opensource.wolfsonmicro.com --- include/sound/soc-dapm.h |3 + include/sound/soc.h |1 + sound/soc/soc-core.c |6 +- sound/soc/soc-dapm.c | 143 -- 4 files changed, 146 insertions(+), 7 deletions

[PATCH v6] ASoC: dapm: add code to configure dai link parameters

2014-09-12 Thread Nikesh Oswal
. Signed-off-by: Nikesh Oswal --- include/sound/soc-dapm.h |3 + include/sound/soc.h |1 + sound/soc/soc-core.c |6 +- sound/soc/soc-dapm.c | 143 -- 4 files changed, 146 insertions(+), 7 deletions(-) diff --git a/include/sound

[PATCH v6] ASoC: dapm: add code to configure dai link parameters

2014-09-12 Thread Nikesh Oswal
. Signed-off-by: Nikesh Oswal nik...@opensource.wolfsonmicro.com --- include/sound/soc-dapm.h |3 + include/sound/soc.h |1 + sound/soc/soc-core.c |6 +- sound/soc/soc-dapm.c | 143 -- 4 files changed, 146 insertions(+), 7 deletions

[PATCH v5] ASoC: dapm: add code to configure dai link parameters

2014-09-11 Thread Nikesh Oswal
. Signed-off-by: Nikesh Oswal --- include/sound/soc-dapm.h |3 + include/sound/soc.h |1 + sound/soc/soc-core.c |6 +- sound/soc/soc-dapm.c | 143 -- 4 files changed, 146 insertions(+), 7 deletions(-) diff --git a/include/sound

[PATCH v5] ASoC: dapm: add code to configure dai link parameters

2014-09-11 Thread Nikesh Oswal
. Signed-off-by: Nikesh Oswal nik...@opensource.wolfsonmicro.com --- include/sound/soc-dapm.h |3 + include/sound/soc.h |1 + sound/soc/soc-core.c |6 +- sound/soc/soc-dapm.c | 143 -- 4 files changed, 146 insertions(+), 7 deletions

[PATCH v4] ASOC: dapm: add code to configure dai link parameters

2014-09-01 Thread Nikesh Oswal
. Signed-off-by: Nikesh Oswal --- include/sound/soc-dapm.h |3 + include/sound/soc.h |1 + sound/soc/soc-core.c |6 +- sound/soc/soc-dapm.c | 139 -- 4 files changed, 142 insertions(+), 7 deletions(-) diff --git a/include/sound

[PATCH v4] ASOC: dapm: add code to configure dai link parameters

2014-09-01 Thread Nikesh Oswal
. Signed-off-by: Nikesh Oswal nik...@opensource.wolfsonmicro.com --- include/sound/soc-dapm.h |3 + include/sound/soc.h |1 + sound/soc/soc-core.c |6 +- sound/soc/soc-dapm.c | 139 -- 4 files changed, 142 insertions(+), 7 deletions

[PATCH v2] mfd: wm8994: declare dc servo register for wm8958 as volatile

2014-08-13 Thread Nikesh Oswal
DC Servo register 57h holds the DC offset value after the hardware has completed the DC Servo Correction, so declare this register as volatile because it is changed by the hardware. Signed-off-by: Nikesh Oswal --- drivers/mfd/wm8994-regmap.c |1 + 1 file changed, 1 insertion(+) diff --git

[PATCH] ASoC: wm_hubs: Fix DC Servo readback

2014-08-13 Thread Nikesh Oswal
in register 57h for these codecs. This patch fixes it by reading the correct register for DC Servo Signed-off-by: Nikesh Oswal --- sound/soc/codecs/wm_hubs.c |3 --- 1 file changed, 3 deletions(-) diff --git a/sound/soc/codecs/wm_hubs.c b/sound/soc/codecs/wm_hubs.c index 916817f..95c5d71 100644

[PATCH] mfd: wm8994: declare dc servo register for wm8958 as volatile

2014-08-13 Thread Nikesh Oswal
DC Servo register 57h holds the DC offset value after the hardware has completed the DC Servo Correction, so declare this register as volatile because it is changed by the hardware. Signed-off-by: Nikesh Oswal --- drivers/mfd/wm8994-regmap.c |1 + include/linux/mfd/wm8994

[PATCH v2] ASoC: wm8994: Demux the microphone detection IRQ

2014-08-13 Thread Nikesh Oswal
Current code only allows direct routing of the WM8994 microphone detection signal to a GPIO this change adds support to demux the interrupt from the main interrupt line of the codec. Signed-off-by: Nikesh Oswal --- sound/soc/codecs/wm8994.c | 18 -- 1 file changed, 12

[PATCH v2] ASoC: wm8994: Demux the microphone detection IRQ

2014-08-13 Thread Nikesh Oswal
Current code only allows direct routing of the WM8994 microphone detection signal to a GPIO this change adds support to demux the interrupt from the main interrupt line of the codec. Signed-off-by: Nikesh Oswal nik...@opensource.wolfsonmicro.com --- sound/soc/codecs/wm8994.c | 18

[PATCH] mfd: wm8994: declare dc servo register for wm8958 as volatile

2014-08-13 Thread Nikesh Oswal
DC Servo register 57h holds the DC offset value after the hardware has completed the DC Servo Correction, so declare this register as volatile because it is changed by the hardware. Signed-off-by: Nikesh Oswal nik...@opensource.wolfsonmicro.com --- drivers/mfd/wm8994-regmap.c |1

[PATCH] ASoC: wm_hubs: Fix DC Servo readback

2014-08-13 Thread Nikesh Oswal
in register 57h for these codecs. This patch fixes it by reading the correct register for DC Servo Signed-off-by: Nikesh Oswal nik...@opensource.wolfsonmicro.com --- sound/soc/codecs/wm_hubs.c |3 --- 1 file changed, 3 deletions(-) diff --git a/sound/soc/codecs/wm_hubs.c b/sound/soc/codecs/wm_hubs.c

[PATCH v2] mfd: wm8994: declare dc servo register for wm8958 as volatile

2014-08-13 Thread Nikesh Oswal
DC Servo register 57h holds the DC offset value after the hardware has completed the DC Servo Correction, so declare this register as volatile because it is changed by the hardware. Signed-off-by: Nikesh Oswal nik...@opensource.wolfsonmicro.com --- drivers/mfd/wm8994-regmap.c |1 + 1 file

[PATCH] gpiolib: wm8994: Fix irq offset for gpio_to_irq

2014-08-12 Thread Nikesh Oswal
Earlier code was using the gpio offset as is to get the irq. For wm8994 driver the gpio related irq's starts from a fixed offset as fixed by this patch. Signed-off-by: Nikesh Oswal --- drivers/gpio/gpio-wm8994.c |3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers

[PATCH] ASoC: wm8994: register irq handler for mic1 detect

2014-08-12 Thread Nikesh Oswal
Signed-off-by: Nikesh Oswal --- sound/soc/codecs/wm8994.c |9 + 1 file changed, 9 insertions(+) diff --git a/sound/soc/codecs/wm8994.c b/sound/soc/codecs/wm8994.c index 247b390..24bcbe3 100644 --- a/sound/soc/codecs/wm8994.c +++ b/sound/soc/codecs/wm8994.c @@ -4099,6 +4099,15

[PATCH] ASoC: wm8994: register irq handler for mic1 detect

2014-08-12 Thread Nikesh Oswal
Signed-off-by: Nikesh Oswal nik...@opensource.wolfsonmicro.com --- sound/soc/codecs/wm8994.c |9 + 1 file changed, 9 insertions(+) diff --git a/sound/soc/codecs/wm8994.c b/sound/soc/codecs/wm8994.c index 247b390..24bcbe3 100644 --- a/sound/soc/codecs/wm8994.c +++ b/sound/soc/codecs

[PATCH] gpiolib: wm8994: Fix irq offset for gpio_to_irq

2014-08-12 Thread Nikesh Oswal
Earlier code was using the gpio offset as is to get the irq. For wm8994 driver the gpio related irq's starts from a fixed offset as fixed by this patch. Signed-off-by: Nikesh Oswal nik...@opensource.wolfsonmicro.com --- drivers/gpio/gpio-wm8994.c |3 ++- 1 file changed, 2 insertions(+), 1

[PATCH v3] ASOC: dapm: add code to configure dai link parameters

2014-08-06 Thread Nikesh Oswal
. Signed-off-by: Nikesh Oswal --- include/sound/soc-dapm.h |3 + include/sound/soc.h |1 + sound/soc/soc-core.c |4 +- sound/soc/soc-dapm.c | 140 -- 4 files changed, 141 insertions(+), 7 deletions(-) diff --git a/include/sound

[PATCH v3] ASOC: dapm: add code to configure dai link parameters

2014-08-06 Thread Nikesh Oswal
. Signed-off-by: Nikesh Oswal nik...@opensource.wolfsonmicro.com --- include/sound/soc-dapm.h |3 + include/sound/soc.h |1 + sound/soc/soc-core.c |4 +- sound/soc/soc-dapm.c | 140 -- 4 files changed, 141 insertions(+), 7 deletions

[PATCH v2] regulator: arizona-ldo1: remove bypass functionality

2014-07-04 Thread Nikesh Oswal
WM5110/8280 devices do not support bypass mode for LDO1 so remove the bypass callbacks registered with regulator core. Signed-off-by: Nikesh Oswal --- drivers/regulator/arizona-ldo1.c |2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/regulator/arizona-ldo1.c b/drivers/regulator

[PATCH v2] regulator: arizona-ldo1: remove bypass functionality

2014-07-04 Thread Nikesh Oswal
WM5110/8280 devices do not support bypass mode for LDO1 so remove the bypass callbacks registered with regulator core. Signed-off-by: Nikesh Oswal nik...@opensource.wolfsonmicro.com --- drivers/regulator/arizona-ldo1.c |2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/regulator

[PATCH] regulator: arizona-ldo1: remove bypass functionality

2014-07-03 Thread Nikesh Oswal
From: Nikesh Oswal WM5110/8280 devices do not support bypass mode for LDO1 so remove the bypass callbacks registered with regulator core. Signed-off-by: Nikesh Oswal --- drivers/regulator/arizona-ldo1.c |2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/regulator/arizona-ldo1.c b

[PATCH] regulator: arizona-ldo1: remove bypass functionality

2014-07-03 Thread Nikesh Oswal
From: Nikesh Oswal nikesh.os...@wolfsonmicro.com WM5110/8280 devices do not support bypass mode for LDO1 so remove the bypass callbacks registered with regulator core. Signed-off-by: Nikesh Oswal nik...@opensource.wolfsonmicro.com --- drivers/regulator/arizona-ldo1.c |2 -- 1 file changed