All of lore.kernel.org
 help / color / mirror / Atom feed
From: James Courtier-Dutton <James@superbug.demon.co.uk>
To: Takashi Iwai <tiwai@suse.de>
Cc: alsa-devel@alsa-project.org
Subject: Re: [PATCH] Change alsamixer to show different views. Playback controls, or Capture controls.
Date: Fri, 27 Aug 2004 22:16:11 +0100	[thread overview]
Message-ID: <412FA49B.3020806@superbug.demon.co.uk> (raw)
In-Reply-To: <s5hisb4jwun.wl@alsa2.suse.de>

[-- Attachment #1: Type: text/plain, Size: 871 bytes --]

Takashi Iwai wrote:
> At Fri, 27 Aug 2004 18:34:21 +0100,
> James Courtier-Dutton wrote:
> 
>>Takashi Iwai wrote:
>>
>>>>I have a question. The "Mic Boost" seems to think it is a "Playback" 
>>>>control. What would be the best way to getting that to be a "Capture" 
>>>>control. Would simply editing it in ac97_codec.c be enough?
>>>
>>>
>>>Hmm, when you change the control name itself, it breaks slightly
>>>compatibility with older version.
>>
>>What does the name have to be compatible with?
>>I.e. What program might break if we change this in ac97_codec.c ?
> 
> 
> Dunno.  But, at least, when you run "alsactl restore", the status
> won't be restored.
> 
> 
> Takashi
> 
> 

Thats true, but from a purely conceptual point of view, I think the Mic 
Boost should be associated with Capture and not associated with Playback.

I attach a patch to do just that.

James


[-- Attachment #2: mic-boost.diff.txt --]
[-- Type: text/plain, Size: 785 bytes --]

Index: alsa-driver/alsa-kernel/pci/ac97/ac97_codec.c
===================================================================
RCS file: /cvsroot/alsa/alsa-kernel/pci/ac97/ac97_codec.c,v
retrieving revision 1.144
diff -u -r1.144 ac97_codec.c
--- alsa-driver/alsa-kernel/pci/ac97/ac97_codec.c	11 Aug 2004 18:51:58 -0000	1.144
+++ alsa-driver/alsa-kernel/pci/ac97/ac97_codec.c	27 Aug 2004 21:10:44 -0000
@@ -687,7 +687,7 @@
 static const snd_kcontrol_new_t snd_ac97_controls_mic[3] = {
 AC97_SINGLE("Mic Playback Switch", AC97_MIC, 15, 1, 1),
 AC97_SINGLE("Mic Playback Volume", AC97_MIC, 0, 15, 1),
-AC97_SINGLE("Mic Boost (+20dB)", AC97_MIC, 6, 1, 0)
+AC97_SINGLE("Mic Boost (+20dB) Capture Switch", AC97_MIC, 6, 1, 0)
 };
 
 static const snd_kcontrol_new_t snd_ac97_control_capture_src = {

  parent reply	other threads:[~2004-08-27 21:16 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-08-27 12:51 [PATCH] Change alsamixer to show different views. Playback controls, or Capture controls James Courtier-Dutton
2004-08-27 16:30 ` Takashi Iwai
2004-08-27 16:42   ` James Courtier-Dutton
2004-08-27 16:52     ` Takashi Iwai
2004-08-27 17:34       ` James Courtier-Dutton
2004-08-27 17:48         ` Takashi Iwai
2004-08-27 18:37           ` Lee Revell
2004-08-30  9:28             ` Takashi Iwai
2004-08-27 21:16           ` James Courtier-Dutton [this message]
2004-08-28  7:17       ` Jaroslav Kysela

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=412FA49B.3020806@superbug.demon.co.uk \
    --to=james@superbug.demon.co.uk \
    --cc=alsa-devel@alsa-project.org \
    --cc=tiwai@suse.de \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.