Alsa-Devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Takashi Iwai <tiwai@suse.de>
To: Alan Young <consult.awy@gmail.com>
Cc: alsa-devel@alsa-project.org
Subject: Re: [PATCH] ALSA: ctl: Fix copy of updated id with element read/write
Date: Thu, 02 Dec 2021 16:46:15 +0100	[thread overview]
Message-ID: <s5hh7brt3g8.wl-tiwai@suse.de> (raw)
In-Reply-To: <20211202150607.543389-1-consult.awy@gmail.com>

On Thu, 02 Dec 2021 16:06:07 +0100,
Alan Young wrote:
> 
> When control_compat.c:copy_ctl_value_to_user() is used, by
> ctl_elem_read_user() & ctl_elem_write_user(), it must also copy back the
> snd_ctl_elem_id value that may have been updated (filled in) by the call
> to snd_ctl_elem_read/snd_ctl_elem_write().
> 
> This matches the functionality provided by snd_ctl_elem_read_user() and
> snd_ctl_elem_write_user(), via snd_ctl_build_ioff().
> 
> Without this, and without making additional calls to snd_ctl_info()
> which are unnecessary when using the non-compat calls, a userspace
> application will not know the numid value for the element and
> consequently will not be able to use the poll/read interface on the
> control file to determine which elements have updates.
> 
> Signed-off-by: Alan Young <consult.awy@gmail.com>

Thanks, applied (with Cc to stable).


Takashi

  reply	other threads:[~2021-12-02 15:47 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-12-02 15:06 [PATCH] ALSA: ctl: Fix copy of updated id with element read/write Alan Young
2021-12-02 15:46 ` Takashi Iwai [this message]
  -- strict thread matches above, loose matches on Subject: below --
2021-12-02 14:49 Alan Young
2021-11-09 15:53 Alan Young

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=s5hh7brt3g8.wl-tiwai@suse.de \
    --to=tiwai@suse.de \
    --cc=alsa-devel@alsa-project.org \
    --cc=consult.awy@gmail.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