Re: [PATCH] ASoC: core: Pass kcontrol pointer to bytes tlv callbacks

2015-06-12 Thread Mark Brown
On Wed, Jun 03, 2015 at 02:10:28PM -0700, Ben Zhang wrote: > On Wed, Jun 3, 2015 at 4:59 AM, Mark Brown wrote: > > On Tue, Jun 02, 2015 at 03:24:03PM -0700, Ben Zhang wrote: > >> - int (*get)(unsigned int __user *bytes, unsigned int size); > >> - int (*put)(const unsigned int __user *byte

Re: [PATCH] ASoC: core: Pass kcontrol pointer to bytes tlv callbacks

2015-06-12 Thread Vinod Koul
On Tue, Jun 02, 2015 at 03:24:03PM -0700, Ben Zhang wrote: > The get/put callbacks need the kcontrol pointer to get context > information like snd_soc_codec and drvdata. > > Signed-off-by: Ben Zhang I did have this change in my internal tree as well and is required, thanks for sending, I need thi

Re: [PATCH] ASoC: core: Pass kcontrol pointer to bytes tlv callbacks

2015-06-03 Thread Ben Zhang
On Wed, Jun 3, 2015 at 4:59 AM, Mark Brown wrote: > On Tue, Jun 02, 2015 at 03:24:03PM -0700, Ben Zhang wrote: > >> - int (*get)(unsigned int __user *bytes, unsigned int size); >> - int (*put)(const unsigned int __user *bytes, unsigned int size); >> + int (*get)(struct snd_kcontrol *kc

Re: [PATCH] ASoC: core: Pass kcontrol pointer to bytes tlv callbacks

2015-06-03 Thread Mark Brown
On Tue, Jun 02, 2015 at 03:24:03PM -0700, Ben Zhang wrote: > - int (*get)(unsigned int __user *bytes, unsigned int size); > - int (*put)(const unsigned int __user *bytes, unsigned int size); > + int (*get)(struct snd_kcontrol *kcontrol, > +unsigned int __user *bytes, un

[PATCH] ASoC: core: Pass kcontrol pointer to bytes tlv callbacks

2015-06-02 Thread Ben Zhang
The get/put callbacks need the kcontrol pointer to get context information like snd_soc_codec and drvdata. Signed-off-by: Ben Zhang --- include/sound/soc.h | 6 -- sound/soc/soc-ops.c | 4 ++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/include/sound/soc.h b/include/sound