mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 1/4] ALSA: cs5535audio: stick AD1888 bitshift values into a header file
@ 2008-11-05 22:29 Andres Salomon
  2008-11-06  7:02 ` Takashi Iwai
  0 siblings, 1 reply; 2+ messages in thread
From: Andres Salomon @ 2008-11-05 22:29 UTC (permalink / raw)
  To: jayakumar.alsa; +Cc: linux-kernel, akpm


We'd like to use the High Pass Filter and V_REFOUT bitshift values elsewhere,
so stick them into a ac97_codec.h.

Signed-off-by: Andres Salomon <dilinger@debian.org>
---
 include/sound/ac97_codec.h  |    2 ++
 sound/pci/ac97/ac97_patch.c |    5 +++--
 2 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/include/sound/ac97_codec.h b/include/sound/ac97_codec.h
index 9c309da..251fc1c 100644
--- a/include/sound/ac97_codec.h
+++ b/include/sound/ac97_codec.h
@@ -281,10 +281,12 @@
 /* specific - Analog Devices */
 #define AC97_AD_TEST		0x5a	/* test register */
 #define AC97_AD_TEST2		0x5c	/* undocumented test register 2 */
+#define AC97_AD_HPFD_SHIFT	12	/* High Pass Filter Disable */
 #define AC97_AD_CODEC_CFG	0x70	/* codec configuration */
 #define AC97_AD_JACK_SPDIF	0x72	/* Jack Sense & S/PDIF */
 #define AC97_AD_SERIAL_CFG	0x74	/* Serial Configuration */
 #define AC97_AD_MISC		0x76	/* Misc Control Bits */
+#define AC97_AD_VREFD_SHIFT	2	/* V_REFOUT Disable (AD1888) */
 
 /* specific - Cirrus Logic */
 #define AC97_CSR_ACMODE		0x5e	/* AC Mode Register */
diff --git a/sound/pci/ac97/ac97_patch.c b/sound/pci/ac97/ac97_patch.c
index 6e831af..7ad25f4 100644
--- a/sound/pci/ac97/ac97_patch.c
+++ b/sound/pci/ac97/ac97_patch.c
@@ -2054,8 +2054,9 @@ static const struct snd_kcontrol_new snd_ac97_ad1888_controls[] = {
 		.get = snd_ac97_ad1888_lohpsel_get,
 		.put = snd_ac97_ad1888_lohpsel_put
 	},
-	AC97_SINGLE("V_REFOUT Enable", AC97_AD_MISC, 2, 1, 1),
-	AC97_SINGLE("High Pass Filter Enable", AC97_AD_TEST2, 12, 1, 1),
+	AC97_SINGLE("V_REFOUT Enable", AC97_AD_MISC, AC97_AD_VREFD_SHIFT, 1, 1),
+	AC97_SINGLE("High Pass Filter Enable", AC97_AD_TEST2,
+			AC97_AD_HPFD_SHIFT, 1, 1),
 	AC97_SINGLE("Spread Front to Surround and Center/LFE", AC97_AD_MISC, 7, 1, 0),
 	{
 		.iface = SNDRV_CTL_ELEM_IFACE_MIXER,
-- 
1.5.6.5


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

* Re: [PATCH 1/4] ALSA: cs5535audio: stick AD1888 bitshift values into a header file
  2008-11-05 22:29 [PATCH 1/4] ALSA: cs5535audio: stick AD1888 bitshift values into a header file Andres Salomon
@ 2008-11-06  7:02 ` Takashi Iwai
  0 siblings, 0 replies; 2+ messages in thread
From: Takashi Iwai @ 2008-11-06  7:02 UTC (permalink / raw)
  To: Andres Salomon; +Cc: jayakumar.alsa, linux-kernel, akpm

At Wed, 5 Nov 2008 17:29:53 -0500,
Andres Salomon wrote:
> 
> 
> We'd like to use the High Pass Filter and V_REFOUT bitshift values elsewhere,
> so stick them into a ac97_codec.h.
> 
> Signed-off-by: Andres Salomon <dilinger@debian.org>

Thanks, applied patches from 1 to 3 now as they are trivial fixes.

The patch 4 is pending.  As Jaya comments, please split the patch
to his original one and additional fixes.


thanks,

Takashi

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

end of thread, other threads:[~2008-11-06  7:02 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-11-05 22:29 [PATCH 1/4] ALSA: cs5535audio: stick AD1888 bitshift values into a header file Andres Salomon
2008-11-06  7:02 ` Takashi Iwai

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®