Currently soc_enum structure supports only 2 registers (reg, reg2)
for kcontrol. However, it is possible to have multiple registers
per mux. This change allows us to control these multiple registers.
Signed-off-by: Arun Shamanna Lakshmi
Signed-off-by: Songhee Baek
---
include/sound/soc.h
in dapm.c
Thanks,
Arun
-Original Message-
From: Mark Brown [mailto:broo...@kernel.org]
Sent: Tuesday, March 18, 2014 5:00 PM
To: Arun Shamanna Lakshmi
Cc: lgirdw...@gmail.com; pe...@perex.cz; ti...@suse.de;
alsa-de...@alsa-project.org; linux-kernel@vger.kernel.org; Songhee Baek
Subje
- Modify soc_enum struct to handle pointers for reg and mask
- Add dapm get and put APIs for multi register mux with one hot encoding
- Update snd_soc_dapm_update struct to support multiple reg update
Signed-off-by: Arun Shamanna Lakshmi
Signed-off-by: Songhee Baek
---
include/sound/soc-dapm.h
> -Original Message-
> From: Lars-Peter Clausen [mailto:l...@metafoo.de]
> Sent: Thursday, April 03, 2014 1:27 AM
> To: Arun Shamanna Lakshmi
> Cc: lgirdw...@gmail.com; broo...@kernel.org;
swar...@wwwdotorg.org;
> pe...@perex.cz; ti...@suse.de; alsa- de...@alsa-pr
> -Original Message-
> From: Lars-Peter Clausen [mailto:l...@metafoo.de]
> Sent: Friday, April 04, 2014 12:32 AM
> To: Arun Shamanna Lakshmi
> Cc: lgirdw...@gmail.com; broo...@kernel.org;
> swar...@wwwdotorg.org; pe...@perex.cz; ti...@suse.de; alsa-
> de...@alsa-proj
1. Modify soc_enum struct to handle pointers for reg and mask
2. Add dapm get and put APIs for multi register one hot encoded mux
3. Update snd_soc_dapm_update struct to support multiple reg update
Signed-off-by: Arun S L
Signed-off-by: Songhee Baek
---
include/sound/soc-dapm.h | 20 -
in
only the error code
and pass the register data through the pointer argument.
Arun Shamanna Lakshmi (1):
ASoC: dapm: Change prototype of soc_widget_read
sound/soc/soc-dapm.c | 26 +++---
1 file changed, 15 insertions(+), 11 deletions(-)
--
1.7.9.5
--
To unsubscribe from
soc_widget_read API returns the register data and it is possible
that a register can contain 0x. Thus, change the prototype
of soc_widget_read to return only the error code and pass the reg
data through pointer argument.
Signed-off-by: Arun Shamanna Lakshmi
---
sound/soc/soc-dapm.c
: Songhee Baek
Signed-off-by: Arun Shamanna Lakshmi
---
sound/soc/soc-dapm.c | 11 ++-
1 file changed, 6 insertions(+), 5 deletions(-)
diff --git a/sound/soc/soc-dapm.c b/sound/soc/soc-dapm.c
index 2a44fe9..dc8ff13 100644
--- a/sound/soc/soc-dapm.c
+++ b/sound/soc/soc-dapm.c
@@ -2476,7
If the mux uses 1 bit position per input, and requires to set one
single bit at a time, then an N bit register can support up to N
inputs. In more recent Tegra chips, we have at least greater than
64 inputs which requires at least 2 .reg fields in struct soc_enum.
Signed-off-by: Arun Shamanna
> -Original Message-
> From: Lars-Peter Clausen [mailto:l...@metafoo.de]
> Sent: Saturday, March 29, 2014 3:53 AM
> To: Songhee Baek
> Cc: Arun Shamanna Lakshmi; 'lgirdw...@gmail.com'; 'broo...@kernel.org';
> 'swar...@wwwdotorg.org'
> -Original Message-
> From: Mark Brown [mailto:broo...@kernel.org]
> Sent: Monday, March 31, 2014 5:08 AM
> To: Lars-Peter Clausen
> Cc: Arun Shamanna Lakshmi; Songhee Baek; 'alsa-de...@alsa-project.org';
> 'swar...@wwwdotorg.org'; 'ti...@sus
Modify soc_enum struct to handle pointers for reg and mask. Add
dapm get and put APIs for multi register mux with one hot encoding.
Signed-off-by: Arun Shamanna Lakshmi
Signed-off-by: Songhee Baek
---
include/sound/soc-dapm.h | 10
include/sound/soc.h | 22 +--
sound/soc/soc
> -Original Message-
> From: Lars-Peter Clausen [mailto:l...@metafoo.de]
> Sent: Tuesday, April 01, 2014 12:48 AM
> To: Arun Shamanna Lakshmi
> Cc: lgirdw...@gmail.com; broo...@kernel.org;
swar...@wwwdotorg.org;
> pe...@perex.cz; ti...@suse.de; alsa- de...@alsa-project.o
14 matches
Mail list logo