]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ASoC: Introduce SOC_SINGLE_S8_TLV() macro
authorSrinivas Kandagatla <srinivas.kandagatla@linaro.org>
Wed, 25 May 2016 21:57:54 +0000 (22:57 +0100)
committerNicolas Dechesne <nicolas.dechesne@linaro.org>
Thu, 23 Jun 2016 15:37:18 +0000 (17:37 +0200)
commitced5a10227f6d45a66e9ce9df675747101b7b6a2
treeff610a4f0d878005907e550c649796ab863cd02b
parent0b0346e054f5e6cce0afeb7ebb08cb81d7e385c9
ASoC: Introduce SOC_SINGLE_S8_TLV() macro

This patch introduces SOC_SINGLE_S8_TLV() macro for volume control
on chips which supports both negative and positive gains with sign
bit on a 8 bit register, Gain ranges from -128 to +127 with a
predefined step size.
Currently we only have support to DOUBLE_S8_TLV() which does not fit
for cases where we just have separate gain control register for each
channel.

One of the Qualcomm SOC msm8916 has such gain control register whose gain
range is from -38.4dB to +38.4dB with step size of 0.3dB.

Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
include/sound/soc.h