alsa-devel.alsa-project.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/3] ASOC: wm8991/stac9766: fix wrong usage of TLV-related macro
@ 2016-09-26 23:25 Takashi Sakamoto
  2016-09-26 23:25 ` [PATCH 1/3] ASOC: wm8991: fix wrong usage of DECLARE_TLV_DB_LINEAR() Takashi Sakamoto
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Takashi Sakamoto @ 2016-09-26 23:25 UTC (permalink / raw)
  To: tiwai, broonie, lgirdwood; +Cc: alsa-devel

Hi,

This patchset is for Linux 4.8-rc8.

In current implementation of drivers for wm899a and stac9766,
DECLARE_TLV_DB_LINEAR() is used to represent information about attenuation
and gain of volumes. According to their datasheet, the attenuation and
volumes are first-degree equation with dB coefficiency. It's not linear and
usage of the macro is wrong[1].

This patchset fixes the bug. As of 2016, these CODECs seem to EOL. So this
patchset is just for maintenance purpose to remove misuse of TLV-related
macros from tree.

[1] Re: [RFC] TLV entry for linear volume
http://www.spinics.net/lists/alsa-devel/msg03485.html

Takashi Sakamoto (3):
  ASOC: wm8991: fix wrong usage of DECLARE_TLV_DB_LINEAR()
  ASOC: wm8991: remove unused variable
  ASOC: stac9766: fix wrong usage of DECLARE_TLV_DB_LINEAR()

 sound/soc/codecs/stac9766.c |  8 ++++----
 sound/soc/codecs/wm8991.c   | 28 +++++++++++++++++++---------
 2 files changed, 23 insertions(+), 13 deletions(-)

-- 
2.7.4

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2016-09-27 16:25 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-09-26 23:25 [PATCH 0/3] ASOC: wm8991/stac9766: fix wrong usage of TLV-related macro Takashi Sakamoto
2016-09-26 23:25 ` [PATCH 1/3] ASOC: wm8991: fix wrong usage of DECLARE_TLV_DB_LINEAR() Takashi Sakamoto
2016-09-27  8:48   ` Charles Keepax
2016-09-27 16:24   ` Applied "ASoC: wm8991: fix wrong usage of DECLARE_TLV_DB_LINEAR()" to the asoc tree Mark Brown
2016-09-26 23:25 ` [PATCH 2/3] ASOC: wm8991: remove unused variable Takashi Sakamoto
2016-09-27  8:48   ` Charles Keepax
2016-09-27 16:24   ` Applied "ASoC: wm8991: remove unused variable" to the asoc tree Mark Brown
2016-09-26 23:25 ` [PATCH 3/3] ASOC: stac9766: fix wrong usage of DECLARE_TLV_DB_LINEAR() Takashi Sakamoto
2016-09-27 16:24   ` Applied "ASoC: stac9766: fix wrong usage of DECLARE_TLV_DB_LINEAR()" to the asoc tree Mark Brown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).