Hi,
This patchset updates my previous RFCs, and they're now for merging to upstream.
[alsa-devel] [RFC][PATCH 0/2] ALSA: control: export all of TLV related macros to user land http://mailman.alsa-project.org/pipermail/alsa-devel/2016-September/112645.h...
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, and they're forced to look for TLV-related codes in kernel land.
This patchset moves all of macros related to TLV into UAPI header. To avoid confusions such as name conflict in user land, these macros have prefixes of 'SNDRV_CTL_TLVT_' and 'SNDRV_CTL_TLVD_'. When adding new items to the protocol, developers should use these prefixes and add them to the UAPI header.
Changes from RFC: - Drop second patch to replace include statements - Rename each macros to prevent applications from name conflict
Takashi Sakamoto (2): ALSA: control: export layout of TLV payload to UAPI header ALSA: rename TLV-related macros so that they're friendly to user applications
include/sound/tlv.h | 73 +++++++++++++----------------------------------- include/uapi/sound/tlv.h | 72 +++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 91 insertions(+), 54 deletions(-)