From: Mike Rapoport <mike@compulab.co.il>
To: Liam Girdwood <liam.girdwood@wolfsonmicro.com>
Cc: alsa-devel@alsa-project.org
Subject: Re: WM9712 monoout
Date: Mon, 22 Oct 2007 16:12:14 +0200 [thread overview]
Message-ID: <471CAFBE.9060509@compulab.co.il> (raw)
In-Reply-To: <1193050024.7052.132.camel@localhost.localdomain>
Liam Girdwood wrote:
> On Sun, 2007-10-21 at 09:35 +0200, Mike Rapoport wrote:
>> Hello,
>>
>> I'm trying to enable phone on a board with WM9715 codec.
>> I have not found a control responsible for mute/unmute the MONOUT.
>> My question is whether I should add this control as platform specific control,
>> or it would be correct to patch sound/soc/codecs/wm9712.c?
>
> It should probably go in the codec driver. It looks like an omission.
>
>> Also, "Mono Playback Volume" control is not inverted, which seems to be a bug.
>>
>
> Could you send a patch ?
Sure. A also found that treble and bass need to be inverted.
> Many Thanks
>
> Liam
>
Signed-off-by: Mike Rapoport <mike@compulab.co.il>
sound/soc/codecs/wm9712.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/sound/soc/codecs/wm9712.c b/sound/soc/codecs/wm9712.c
index 986b5d5..427cb61 100644
--- a/sound/soc/codecs/wm9712.c
+++ b/sound/soc/codecs/wm9712.c
@@ -102,7 +102,8 @@ SOC_SINGLE("Speaker Playback ZC Switch", AC97_MASTER, 7, 1, 0),
SOC_SINGLE("Speaker Playback Invert Switch", AC97_MASTER, 6, 1, 0),
SOC_SINGLE("Headphone Playback ZC Switch", AC97_HEADPHONE, 7, 1, 0),
SOC_SINGLE("Mono Playback ZC Switch", AC97_MASTER_MONO, 7, 1, 0),
-SOC_SINGLE("Mono Playback Volume", AC97_MASTER_MONO, 0, 31, 0),
+SOC_SINGLE("Mono Playback Volume", AC97_MASTER_MONO, 0, 31, 1),
+SOC_SINGLE("Mono Playback Switch", AC97_MASTER_MONO, 15, 1, 1),
SOC_SINGLE("ALC Target Volume", AC97_CODEC_CLASS_REV, 12, 15, 0),
SOC_SINGLE("ALC Hold Time", AC97_CODEC_CLASS_REV, 8, 15, 0),
@@ -145,8 +146,8 @@ SOC_ENUM("Bass Control", wm9712_enum[5]),
SOC_SINGLE("Bass Cut-off Switch", AC97_MASTER_TONE, 12, 1, 1),
SOC_SINGLE("Tone Cut-off Switch", AC97_MASTER_TONE, 4, 1, 1),
SOC_SINGLE("Playback Attenuate (-6dB) Switch", AC97_MASTER_TONE, 6, 1, 0),
-SOC_SINGLE("Bass Volume", AC97_MASTER_TONE, 8, 15, 0),
-SOC_SINGLE("Treble Volume", AC97_MASTER_TONE, 0, 15, 0),
+SOC_SINGLE("Bass Volume", AC97_MASTER_TONE, 8, 15, 1),
+SOC_SINGLE("Treble Volume", AC97_MASTER_TONE, 0, 15, 1),
SOC_SINGLE("Capture ADC Switch", AC97_REC_GAIN, 15, 1, 1),
SOC_ENUM("Capture Volume Steps", wm9712_enum[6]),
next parent reply other threads:[~2007-10-22 14:21 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <471B012E.6050802@compulab.co.il>
[not found] ` <1193050024.7052.132.camel@localhost.localdomain>
2007-10-22 14:12 ` Mike Rapoport [this message]
2007-10-22 13:17 ` WM9712 monoout Takashi Iwai
2007-10-22 15:16 ` [PATCH] WM9712 SoC driver fixes (was WM9712 monoout) Mike Rapoport
2007-10-22 14:25 ` Takashi Iwai
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=471CAFBE.9060509@compulab.co.il \
--to=mike@compulab.co.il \
--cc=alsa-devel@alsa-project.org \
--cc=liam.girdwood@wolfsonmicro.com \
/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