Linux Media Controller development
 help / color / mirror / Atom feed
From: Takashi Iwai <tiwai@suse.de>
To: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Cc: clemens@ladisch.de, alsa-devel@alsa-project.org,
	linux-media@vger.kernel.org
Subject: Re: [RFC][PATCH 0/2] ALSA: control: export all of TLV related macros to user land
Date: Sat, 10 Sep 2016 08:44:37 +0200	[thread overview]
Message-ID: <s5hr38s9ru2.wl-tiwai@suse.de> (raw)
In-Reply-To: <1473483016-10529-1-git-send-email-o-takashi@sakamocchi.jp>

On Sat, 10 Sep 2016 06:50:14 +0200,
Takashi Sakamoto wrote:
> 
> Hi,
> 
> Currently, TLV related protocol is not shared to user land. This is not
> good in a point of application interfaces, because application developers
> can't realize the protocol just to see UAPI headers.
> 
> For this purpose, this patchset moves all of macros related to TLV to UAPI
> header. As a result, a header just for kernel land is obsoleted. When adding
> new items to the protocol, it's added to the UAPI header. This change affects
> some drivers in media subsystem.
> 
> In my concern, this change can break applications. When these macros are
> already defined in application side and they includes tlv UAPI header
> directly, 'redefined' warning is generated at preprocess time. But the
> compilation will be success itself. If these two macros have different
> content, the result of preprocess is dominated to the order to define.
> However, the most applications are assumed to use TLV feature via libraries
> such as alsa-lib, thus I'm optimistic to this concern.
> 
> As another my concern, the name of these macros are quite simple, as
> 'TLV_XXX'. It might be help application developers to rename them with a
> prefix, as 'SNDRV_CTL_TLV_XXX'. (But not yet. I'm a lazy guy.)

The second patch does simply wrong.  You must not obsolete
include/sound/tlv.h.  Even if it includes only uapi/*, it should be
still there.

So, just move the stuff to include/uapi/sound/tlv.h, and that's all.


thanks,

Takashi

  parent reply	other threads:[~2016-09-10  6:44 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-09-10  4:50 [RFC][PATCH 0/2] ALSA: control: export all of TLV related macros to user land Takashi Sakamoto
2016-09-10  4:50 ` [RFC][PATCH 1/2] ALSA: control: export layout of TLV payload to UAPI header Takashi Sakamoto
2016-09-10  4:50 ` [RFC][PATCH 2/2] ALSA: control: replace include statements for UAPI TLV header Takashi Sakamoto
2016-09-10  6:44 ` Takashi Iwai [this message]
2016-09-10  7:25   ` [RFC][PATCH 0/2] ALSA: control: export all of TLV related macros to user land Takashi Sakamoto
2016-09-10 13:41     ` Takashi Iwai
2016-09-11  3:06       ` Takashi Sakamoto
2016-09-11  7:22         ` Takashi Iwai

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=s5hr38s9ru2.wl-tiwai@suse.de \
    --to=tiwai@suse.de \
    --cc=alsa-devel@alsa-project.org \
    --cc=clemens@ladisch.de \
    --cc=linux-media@vger.kernel.org \
    --cc=o-takashi@sakamocchi.jp \
    /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