From: Mark Brown <broonie@kernel.org>
To: Ben Zhang <benzh@chromium.org>
Cc: Omair Mohammed Abdullah <omair.m.abdullah@intel.com>,
Vinod Koul <vinod.koul@intel.com>,
Dylan Reid <dgreid@chromium.org>,
alsa-devel <alsa-devel@alsa-project.org>,
Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] ASoC: core: Pass kcontrol pointer to bytes tlv callbacks
Date: Fri, 12 Jun 2015 12:22:07 +0100 [thread overview]
Message-ID: <20150612112207.GK1921@sirena.org.uk> (raw)
In-Reply-To: <CAOV7ByLAwtv1n4wdww=5r7wvCDOtwh7+g_3AqZAaPF=R8zmsTg@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 1327 bytes --]
On Wed, Jun 03, 2015 at 02:10:28PM -0700, Ben Zhang wrote:
> On Wed, Jun 3, 2015 at 4:59 AM, Mark Brown <broonie@kernel.org> 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 *kcontrol,
> >> + unsigned int __user *bytes, unsigned int size);
> >> + int (*put)(struct snd_kcontrol *kcontrol,
> >> + const unsigned int __user *bytes, unsigned int size);
> > This doesn't update any users and we do have some like the Haswell PCM
> > driver.
> I couldn't find any existing users of the callbacks. It looks like the
> modified callbacks are used by SND_SOC_BYTES_TLV only, and there is no
> reference to SND_SOC_BYTES_TLV in the kernel.
> The Haswell PCM driver uses SND_SOC_BYTES_EXT which doesn't use the
> callbacks in struct soc_bytes_ext. The xhandler_get/put are assigned
> to snd_kcontrol_new.get/put instead.
This then begs the question why the fix isn't for the TLV version to use
the same callbacks we're currently using? It's not obvious looking at
the definitions of the controls why we would want them to be using
separate ones and TLV would normally not affect the I/O.
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 473 bytes --]
next prev parent reply other threads:[~2015-06-12 11:22 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-06-02 22:24 [PATCH] ASoC: core: Pass kcontrol pointer to bytes tlv callbacks Ben Zhang
2015-06-03 11:59 ` Mark Brown
2015-06-03 21:10 ` Ben Zhang
2015-06-12 11:22 ` Mark Brown [this message]
2015-06-12 7:30 ` Vinod Koul
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20150612112207.GK1921@sirena.org.uk \
--to=broonie@kernel.org \
--cc=alsa-devel@alsa-project.org \
--cc=benzh@chromium.org \
--cc=dgreid@chromium.org \
--cc=linux-kernel@vger.kernel.org \
--cc=omair.m.abdullah@intel.com \
--cc=vinod.koul@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox