alsa-devel.alsa-project.org archive mirror
 help / color / mirror / Atom feed
From: jinyoungp@nvidia.com
To: broonie@opensource.wolfsonmicro.com
Cc: Peter.Hsiang@maxim-ic.com, alsa-devel@alsa-project.org,
	Jin Park <jinyoungp@nvidia.com>,
	lrg@slimlogic.co.uk
Subject: [PATCH 2/3] ASoC: codecs: max98088: Moved the EX Limiter Mode from dapm widget to control
Date: Thu, 12 May 2011 14:58:37 +0900	[thread overview]
Message-ID: <1305179918-19317-3-git-send-email-jinyoungp@nvidia.com> (raw)
In-Reply-To: <1305179918-19317-1-git-send-email-jinyoungp@nvidia.com>

From: Jin Park <jinyoungp@nvidia.com>

Moved the EX Limiter Mode from dapm widget to control, because it was not
required DAPM route.

Signed-off-by: Jin Park <jinyoungp@nvidia.com>
---
 sound/soc/codecs/max98088.c |    6 +-----
 1 files changed, 1 insertions(+), 5 deletions(-)

diff --git a/sound/soc/codecs/max98088.c b/sound/soc/codecs/max98088.c
index 3bdaa04..c520093 100644
--- a/sound/soc/codecs/max98088.c
+++ b/sound/soc/codecs/max98088.c
@@ -656,8 +656,6 @@ static const struct soc_enum max98088_exmode_enum =
                              ARRAY_SIZE(max98088_exmode_texts),
                              max98088_exmode_texts,
                              max98088_exmode_values);
-static const struct snd_kcontrol_new max98088_exmode_controls =
-       SOC_DAPM_VALUE_ENUM("Route", max98088_exmode_enum);
 
 static const char *max98088_ex_thresh[] = { /* volts PP */
        "0.6", "1.2", "1.8", "2.4", "3.0", "3.6", "4.2", "4.8"};
@@ -783,6 +781,7 @@ static const struct snd_kcontrol_new max98088_snd_controls[] = {
        SOC_SINGLE("EQ1 Switch", M98088_REG_49_CFG_LEVEL, 0, 1, 0),
        SOC_SINGLE("EQ2 Switch", M98088_REG_49_CFG_LEVEL, 1, 1, 0),
 
+       SOC_ENUM("EX Limiter Mode", max98088_exmode_enum),
        SOC_ENUM("EX Limiter Threshold", max98088_ex_thresh_enum),
 
        SOC_ENUM("DAI1 Filter Mode", max98088_filter_mode_enum),
@@ -1094,9 +1093,6 @@ static const struct snd_soc_dapm_widget max98088_dapm_widgets[] = {
 
        SND_SOC_DAPM_MICBIAS("MICBIAS", M98088_REG_4C_PWR_EN_IN, 3, 0),
 
-       SND_SOC_DAPM_MUX("EX Limiter Mode", SND_SOC_NOPM, 0, 0,
-               &max98088_exmode_controls),
-
        SND_SOC_DAPM_OUTPUT("HPL"),
        SND_SOC_DAPM_OUTPUT("HPR"),
        SND_SOC_DAPM_OUTPUT("SPKL"),
-- 
1.7.1


-----------------------------------------------------------------------------------
This email message is for the sole use of the intended recipient(s) and may contain
confidential information.  Any unauthorized review, use, disclosure or distribution
is prohibited.  If you are not the intended recipient, please contact the sender by
reply email and destroy all copies of the original message.
-----------------------------------------------------------------------------------

  parent reply	other threads:[~2011-05-12  5:59 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-05-12  5:58 [PATCH 0/3] ASoC: codecs: max98088: bug fixes and changes jinyoungp
2011-05-12  5:58 ` [PATCH 1/3] ASoC: codecs: max98088: Fixed invalid register definitions in mixer controls jinyoungp
2011-05-12  5:58 ` jinyoungp [this message]
2011-05-12  5:58 ` [PATCH 3/3] ASoC: codecs: max98088: Added digital mute function in DAI1 and DAI2 jinyoungp
2011-05-12 20:43   ` Seungwhan Youn
2011-05-13  6:53     ` Jinyoung Park
2011-05-13  7:06     ` Jassi Brar
2011-05-13  7:11   ` Jassi Brar
2011-05-13  8:25     ` Jinyoung Park
2011-05-13  8:37       ` Jassi Brar
2011-05-18  0:28       ` Peter Hsiang
2011-05-12  8:42 ` [PATCH 0/3] ASoC: codecs: max98088: bug fixes and changes Liam Girdwood
2011-05-16  4:33 ` Mark Brown

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=1305179918-19317-3-git-send-email-jinyoungp@nvidia.com \
    --to=jinyoungp@nvidia.com \
    --cc=Peter.Hsiang@maxim-ic.com \
    --cc=alsa-devel@alsa-project.org \
    --cc=broonie@opensource.wolfsonmicro.com \
    --cc=lrg@slimlogic.co.uk \
    /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;
as well as URLs for NNTP newsgroup(s).