Alsa-Devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Tobin Davis <tdavis@dsl-only.net>
To: Remy Bruno <remy.bruno@trinnov.com>
Cc: alsa-devel@lists.sourceforge.net
Subject: Re: Issue with Intel HDA Sound card 82801G (laptop	Medion)
Date: Wed, 11 Oct 2006 11:06:20 -0700	[thread overview]
Message-ID: <1160589980.17297.185.camel@razman> (raw)
In-Reply-To: <1160588317.17297.177.camel@razman>

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

Ok, need serious caffeine infusion here.  

That last patch added a new mixer control array, but didn't call it.
This patch calls it.

Sorry for the flood of bad patches.

Tobin

On Wed, 2006-10-11 at 10:38 -0700, Tobin Davis wrote:
> Oops.  Somehow my code reverted to the wrong subdevice id.  Change that
> in the patch before applying.
> 
> I have another patch to test as well (I'm going to start numbering
> them).
> 
> Tobin
> 
> On Wed, 2006-10-11 at 10:26 -0700, Tobin Davis wrote:
> > Here is a new patch.  I'm slowly peeling the onion on this.  Use this
> > along with Takashi's patch to fix the modem (disregard my previous
> > patches).
> > 
> > Tobin
> > 
> > On Tue, 2006-10-10 at 20:09 +0200, Remy Bruno wrote:
> > > On Tuesday 10 October at 19:48, albox@free.fr wrote:
> > > > I have just tried and it works...I guess the only thing to do now is to figure
> > > > it out what's the difference between this patched version and the alsa driver
> > > > 1.0.13.
> > > 
> > > Yes, that's exactly the point! But not a small one. There are big difference
> > > between the two. I think Tobin is working on this.
> > > 
> > > > 
> > > > And as I said, don't forget to "modprobe -r" the driver before suspending to
> > > > disk, or the kernel will crash.
> > > > => What type of message did you get ? Do you know how we can avoid this problem
> > > > (a  shell script to remove the module before suspending ?).
> > > 
> > > I get an oops... Indeed, it is possible to make a script, but you need to kill
> > > all the processes that use alsa before modprobing -r...
> > > 
> > > Regards,
> > > Remy
> > > 
> > > -------------------------------------------------------------------------
> > > Take Surveys. Earn Cash. Influence the Future of IT
> > > Join SourceForge.net's Techsay panel and you'll get the chance to share your
> > > opinions on IT & business topics through brief surveys -- and earn cash
> > > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> > > _______________________________________________
> > > Alsa-devel mailing list
> > > Alsa-devel@lists.sourceforge.net
> > > https://lists.sourceforge.net/lists/listinfo/alsa-devel
-- 
Tobin Davis <tdavis@dsl-only.net>

[-- Attachment #2: medion-test4.patch --]
[-- Type: text/x-patch, Size: 3300 bytes --]

--- alsa-driver/alsa-kernel/pci/hda/patch_realtek.c.orig	2006-10-08 10:58:28.000000000 -0700
+++ alsa-driver/alsa-kernel/pci/hda/patch_realtek.c	2006-10-11 11:03:13.000000000 -0700
@@ -112,6 +112,7 @@
 	ALC883_6ST_DIG,
 	ALC888_DEMO_BOARD,
 	ALC883_ACER,
+	ALC883_MEDION,
 	ALC883_AUTO,
 	ALC883_MODEL_LAST,
 };
@@ -4309,7 +4310,7 @@
 static struct hda_verb alc882_eapd_verbs[] = {
 	/* change to EAPD mode */
 	{0x20, AC_VERB_SET_COEF_INDEX, 0x07},
-	{0x20, AC_VERB_SET_PROC_COEF, 0x3060},
+	{0x20, AC_VERB_SET_PROC_COEF, 0x3070},
 	{ } 
 };
 
@@ -4875,6 +4876,41 @@
 	{ } /* end */
 };
 
+static snd_kcontrol_new_t alc883_fivestack_mixer[] = {
+	HDA_CODEC_VOLUME("Front Playback Volume", 0x0c, 0x0, HDA_OUTPUT),
+	HDA_CODEC_MUTE("Front Playback Switch", 0x14, 0x0, HDA_OUTPUT),
+	HDA_CODEC_VOLUME("Surround Playback Volume", 0x0d, 0x0, HDA_OUTPUT),
+	HDA_CODEC_MUTE("Surround Playback Switch", 0x15, 0x0, HDA_OUTPUT),
+	HDA_CODEC_VOLUME_MONO("Center Playback Volume", 0x0e, 1, 0x0, HDA_OUTPUT),
+	HDA_CODEC_VOLUME_MONO("LFE Playback Volume", 0x0e, 2, 0x0, HDA_OUTPUT),
+	HDA_CODEC_MUTE_MONO("Center Playback Switch", 0x16, 1, 0x0, HDA_OUTPUT),
+	HDA_CODEC_MUTE_MONO("LFE Playback Switch", 0x16, 2, 0x0, HDA_OUTPUT),
+	HDA_CODEC_MUTE("Headphone Playback Switch", 0x1b, 0x0, HDA_OUTPUT),
+	HDA_CODEC_VOLUME("CD Playback Volume", 0x0b, 0x04, HDA_INPUT),
+	HDA_CODEC_MUTE("CD Playback Switch", 0x0b, 0x04, HDA_INPUT),
+	HDA_CODEC_VOLUME("Line Playback Volume", 0x0b, 0x02, HDA_INPUT),
+	HDA_CODEC_MUTE("Line Playback Switch", 0x0b, 0x02, HDA_INPUT),
+	HDA_CODEC_VOLUME("Mic Playback Volume", 0x0b, 0x0, HDA_INPUT),
+	HDA_CODEC_MUTE("Mic Playback Switch", 0x0b, 0x0, HDA_INPUT),
+	HDA_CODEC_VOLUME("Front Mic Playback Volume", 0x0b, 0x1, HDA_INPUT),
+	HDA_CODEC_MUTE("Front Mic Playback Switch", 0x0b, 0x1, HDA_INPUT),
+	HDA_CODEC_VOLUME("PC Speaker Playback Volume", 0x0b, 0x05, HDA_INPUT),
+	HDA_CODEC_MUTE("PC Speaker Playback Switch", 0x0b, 0x05, HDA_INPUT),
+	HDA_CODEC_VOLUME("Capture Volume", 0x08, 0x0, HDA_INPUT),
+	HDA_CODEC_MUTE("Capture Switch", 0x08, 0x0, HDA_INPUT),
+
+	{
+		.iface = SNDRV_CTL_ELEM_IFACE_MIXER,
+		/* .name = "Capture Source", */
+		.name = "Input Source",
+		.count = 1,
+		.info = alc883_mux_enum_info,
+		.get = alc883_mux_enum_get,
+		.put = alc883_mux_enum_put,
+	},
+	{ } /* end */
+};
+
 static struct snd_kcontrol_new alc883_chmode_mixer[] = {
 	{
 		.iface = SNDRV_CTL_ELEM_IFACE_MIXER,
@@ -5080,6 +5116,8 @@
 	  .config = ALC883_ACER },
 	{ .pci_subvendor = 0x1025, .pci_subdevice = 0x009f,
 	  .config = ALC883_ACER },
+	{ .pci_subvendor = 0x161f, .pci_subdevice = 0x2054,
+	  .modelname = "medion", .config = ALC883_MEDION }
 	{ .modelname = "auto", .config = ALC883_AUTO },
 	{}
 };
@@ -5167,6 +5205,20 @@
 		.channel_mode = alc883_3ST_2ch_modes,
 		.input_mux = &alc883_capture_source,
 	},
+	[ALC883_MEDION] = {
+		.mixers = { alc883_fivestack_mixer,
+			    alc883_chmode_mixer },
+		.init_verbs = { alc883_init_verbs,
+				alc882_eapd_verbs },
+		.num_dacs = ARRAY_SIZE(alc883_dac_nids),
+		.dac_nids = alc883_dac_nids,
+		.num_adc_nids = ARRAY_SIZE(alc883_adc_nids),
+		.adc_nids = alc883_adc_nids,
+		.num_channel_mode = ARRAY_SIZE(alc883_sixstack_modes),
+		.channel_mode = alc883_sixstack_modes,
+		.input_mux = &alc883_capture_source,
+	}
+
 };
 
 

[-- Attachment #3: Type: text/plain, Size: 373 bytes --]

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642

[-- Attachment #4: Type: text/plain, Size: 161 bytes --]

_______________________________________________
Alsa-devel mailing list
Alsa-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-devel

  reply	other threads:[~2006-10-11 18:06 UTC|newest]

Thread overview: 35+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-10-10 17:48 Issue with Intel HDA Sound card 82801G (laptop Medion) albox
2006-10-10 18:09 ` Remy Bruno
2006-10-11 17:26   ` Tobin Davis
2006-10-11 17:38     ` Tobin Davis
2006-10-11 18:06       ` Tobin Davis [this message]
  -- strict thread matches above, loose matches on Subject: below --
2006-10-13 10:34 Issue with Intel HDA Sound card 82801G(laptop Medion) albox
2006-10-13 13:48 ` Lee Revell
2006-10-12 20:37 albox
2006-10-12 20:47 ` Lee Revell
2006-10-12 18:40 Issue with Intel HDA Sound card 82801G (laptop Medion) albox
2006-10-12 19:29 ` Tobin Davis
2006-10-12 18:13 albox
2006-10-12 18:20 ` Tobin Davis
2006-10-12 20:06   ` Issue with Intel HDA Sound card 82801G(laptop Medion) Andrew L. Neporada
2006-10-12 13:39 Issue with Intel HDA Sound card 82801G (laptop Medion) Andrew L. Neporada
2006-10-10  0:04 albox
2006-10-10  0:15 ` albox
2006-10-10 13:30   ` Remy Bruno
2006-10-07 23:00 albox
2006-10-09 17:55 ` Tobin Davis
2006-10-09 18:20   ` Takashi Iwai
2006-10-10  8:28     ` Issue with Intel HDA Sound card 82801G ( laptop Medion ) Faik Uygur
2006-10-09 22:21   ` Issue with Intel HDA Sound card 82801G (laptop Medion) Remy Bruno
2006-10-07 19:01 albox
2006-10-07 19:15 ` Lee Revell
2006-10-07 13:24 albox
2006-10-07 17:37 ` Tobin Davis
2006-10-08 11:03   ` Remy Bruno
2006-10-08 16:00     ` Lee Revell
2006-10-08 16:11       ` Tobin Davis
2006-10-08 16:52         ` Lee Revell
2006-10-08 17:15           ` Tobin Davis
2006-10-08 19:41             ` Lee Revell
2006-10-08 20:24               ` Tobin Davis
2006-10-09 13:42               ` 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=1160589980.17297.185.camel@razman \
    --to=tdavis@dsl-only.net \
    --cc=alsa-devel@lists.sourceforge.net \
    --cc=remy.bruno@trinnov.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