All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: softvol plugin [Fwd: Re: [Alsa-devel] [PATCH V0.1] C-Media CMI9761 -A- type]
@ 2005-02-19  3:04 Sergio Monteiro Basto
  2005-02-19  3:41 ` softvol plugin [Fwd: Re: [PATCH V0.1] C-Media CMI9761A ] thomas schorpp
  2005-02-19  3:52 ` C-Media CMI9761A REV thomas schorpp
  0 siblings, 2 replies; 6+ messages in thread
From: Sergio Monteiro Basto @ 2005-02-19  3:04 UTC (permalink / raw)
  To: t.schorpp, alsa-user; +Cc: alsa-devel, Takashi Iwai, Jakob Schurdak

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

Sorry for cross posting, I am replying to 2 different threads 1 is alsa-
user and other in alsa-devel!

Please cc to me!

Like Jakob Schurdak, I reinstall alsa from CVS (alsa-driver, alsa-lib,
alsa-utils),  that already have Takashi patch,  but the mixer still have
exactly the same behavior. 

I have one ASRock P4VT8+ with CMedia CMI9761 (not the same of Jakob) but
same rev. of sound card.
00:11.5 Multimedia audio controller: VIA Technologies, Inc. VT8233/A/8235/8237 AC97 Audio Controller (rev 60)

Applying this patch from Thomas Schorpp, I have a better mixer and don't
have mute nothing as before, I just unmute PCM and have sound, Master
volume appears but don't have any effect when mute or unmute or change
volume.

For me, try to set up a PCM config manually on my own ~/.asoundrc ,
doesn't change noting ( unless when I forget close  "}") :)

thanks and regards,

-------- Forwarded Message --------
> From: thomas schorpp <t.schorpp@gmx.de>
> Reply-To: t.schorpp@gmx.de
> To: alsa-devel <alsa-devel@lists.sourceforge.net>
> Subject: Re: [Alsa-devel] [PATCH V0.1] C-Media CMI9761 -A- type
> Date: Thu, 17 Feb 2005 05:10:08 +0100
> created a patch with branch -A- type support by Mainboard for the start.
> 
> like youve done it before for a mainboard in the code.
> 
> 
> and now i want a pcm slider. lets see...
> 
> 
> 
> hello,
> 
> Sergio Monteiro Basto wrote:
> | Hi,
> |
> | After search on https://bugtrack.alsa-project.org/ for CMI9761, 1
> | issues, resolved !
> | with some similarity is one ASRock k7vt4a+ with CMedia CMI9761, I have
> | one ASRock P4VT8+ with CMedia CMI9761.
> 
> ive got the follower CMI9761A.
> 
> got ascreenshot from cmedia windosdriver app, for "unbeliefers" ;)
> 
> |
> | After play around with alsamixer,
> | I got sound when unmute PCM and Off (mute) IEC958 Capture Monitor.
> |
> | All others controls does change anything include mute or unmute the
> | Master.
> | Except VIA DXS (this one can do sound balance, left and right).
> | VIA DXS 1, VIA DXS 2 and VIA DXS 3 also doesn't do nothing.
> |
> | Play around with
> | options snd-via82xx dxs_support
> | on file /etc/modprobe.conf
> | only with "options snd-via82xx dxs_support=2" I see any difference but
> | for worst, make disappear VIA DXS, VIA DXS 1, VIA DXS 2 and VIA DXS 3
> | controls.
> |
> | So, can help you testing alsa CVS ?
> | Now I have to sleep and tomorrow, I am a little busy but, have you some
> | patch in specific to test this C-MEDIA sound card ?
> |
> | Sorry for my weak English, if you don't understand something just ask
> | me, that I will try explain again.
> |
> | thanks,
> |
> 
> all verified yet yesterday, negative
> 
> thx
> tom

-- 
Sérgio M.B.

[-- Attachment #2: alsa-driver-CM9761A-0.1.diff --]
[-- Type: text/x-patch, Size: 1779 bytes --]

Index: ac97_patch.c
===================================================================
RCS file: /cvsroot/alsa/alsa-kernel/pci/ac97/ac97_patch.c,v
retrieving revision 1.74
diff -U3 -r1.74 ac97_patch.c
--- ac97_patch.c	16 Feb 2005 18:27:17 -0000	1.74
+++ ac97_patch.c	17 Feb 2005 03:24:52 -0000
@@ -2035,7 +2035,11 @@
 int patch_cm9761(ac97_t *ac97)
 {
 	unsigned short val;
-
+	
+	/* CM9761A only on this Mainboard Series for now, due to diverting infos(?) */
+	if( !ac97->pci && ac97->subsystem_vendor != 0x1849 && ac97->subsystem_device != 0x9761)
+	{
+	
 	/* CM9761 has no Master and PCM volume although the register reacts */
 	ac97->flags |= AC97_HAS_NO_MASTER_VOL | AC97_HAS_NO_PCM_VOL;
 	snd_ac97_write_cache(ac97, AC97_MASTER, 0x8000);
@@ -2085,6 +2089,31 @@
 	else
 		val = 0x321c;
 #endif
+
+	/* FIXME: set up GPIO */
+	snd_ac97_write_cache(ac97, 0x70, 0x0100);
+	snd_ac97_write_cache(ac97, 0x72, 0x0020);
+
+	}
+	else
+	{
+	
+	/* CM9761A */
+
+	unsigned short val;
+
+	ac97->build_ops = &patch_cm9761_ops;
+	
+#if 0
+	/* enable spdif */
+	/* force the SPDIF bit in ext_id - codec doesn't set this bit! */
+        ac97->ext_id |= AC97_EI_SPDIF;
+	/* to be sure: we overwrite the ext status bits */
+	snd_ac97_write_cache(ac97, AC97_EXTENDED_STATUS, 0x05c0);
+	snd_ac97_write_cache(ac97, AC97_CM9761_SPDIF_CTRL, 0x0209);
+	ac97->rates[AC97_RATES_SPDIF] = SNDRV_PCM_RATE_48000; /* 48k only */
+#endif
+	/* set-up multi channel */
 	val = snd_ac97_read(ac97, AC97_CM9761_MULTI_CHAN);
 	val |= (1 << 4);
 	snd_ac97_write_cache(ac97, AC97_CM9761_MULTI_CHAN, val);
@@ -2092,10 +2121,12 @@
 	/* FIXME: set up GPIO */
 	snd_ac97_write_cache(ac97, 0x70, 0x0100);
 	snd_ac97_write_cache(ac97, 0x72, 0x0020);
-
+	}
+	
 	return 0;
 }
        
+       
 
 /*
  * VIA VT1616 codec

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

end of thread, other threads:[~2005-02-20 22:15 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-02-19  3:04 softvol plugin [Fwd: Re: [Alsa-devel] [PATCH V0.1] C-Media CMI9761 -A- type] Sergio Monteiro Basto
2005-02-19  3:41 ` softvol plugin [Fwd: Re: [PATCH V0.1] C-Media CMI9761A ] thomas schorpp
2005-02-20 22:15   ` softvol plugin [Fwd: Re: [Alsa-devel] " Sergio Monteiro Basto
2005-02-19  3:52 ` C-Media CMI9761A REV thomas schorpp
2005-02-19 16:26   ` Sergio Monteiro Basto
2005-02-19 19:11     ` Re: C-Media testing thomas schorpp

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.