[alsa-devel] [alsa-lib][PATCH 0/6] control: optimization for position offset macro of TLV data

Takashi Sakamoto o-takashi at sakamocchi.jp
Tue May 15 14:36:33 CEST 2018


Hi,

In development period for Linux v4.18, a series of SNDRV_CTL_TLVO_XXX
macro was introduced to kernel stuffs for position offset of TLV data.

This patchset backports the macros to this library as well as adds code
optimization with them.

Takashi Sakamoto (6):
  control: add a series of macro for offset of several types of TLV
  control: use position offset macro of TLV data
  hcontrol: use position offset macro of TLV data
  pcm: hw: use position offset macro of TLV data
  pcm: softvol: use position offset macro of TLV data
  test: use position offset macro of TLV data

 include/sound/tlv.h         | 16 ++++++++++
 src/control/control.c       | 12 ++++----
 src/control/control_hw.c    |  6 ++--
 src/control/control_local.h |  1 +
 src/control/hcontrol.c      |  4 +--
 src/control/tlv.c           | 72 ++++++++++++++++++++++++---------------------
 src/pcm/pcm_hw.c            | 10 ++++---
 src/pcm/pcm_softvol.c       | 11 ++++---
 test/user-ctl-element-set.c |  2 +-
 9 files changed, 83 insertions(+), 51 deletions(-)

-- 
2.14.1



More information about the Alsa-devel mailing list