Skip to contentSkip to conversation

C-Media CMI9761 -A- type , CONTINOUS NOT DISCRETE MASTER/PCM MIXER with 106, please branch, PCM PLAY not working

INFO thomas schorpp 3 participants 8 messages Feb 16, 2005 – Feb 17, 2005 1 message not in the archive

lore
Share & tools
lore
#0 lore raw

-----BEGIN PGP SIGNED MESSAGE-----
Hash: RIPEMD160

hello,

this device

http://www.cmedia.com.tw/product/CMI9761.htm

the -A- type ive got

has working continuous (slider) master mixer+balance and "working" pcm mixer slider with v106 (2.6.10 release kernel alsa) but no more with v108 alsa-driver or cvs from yesterday.

please branch for this device (on cheap asrock mass-seller K7VTA+ board with via8235 pci).

- -worse: pcm playback not working, capture works, seems no muting problem, klick sound on switching pcm mixer.

10 days left to fix it, or the board returns to the shop.

need a start point for pcm problem, please. somebody got a reg descrption? only harware datasheet is available from vendor.

?

y
tom

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)
Comment: Using GnuPG with Debian - http://enigmail.mozdev.org

iQCVAwUBQhLYYmqsze5HSzyoAQPQGAP+NkGJTBonfz23+wKI/YHGjGqfratVRFPL 0/gaV3PCa+SGcW82QHfs/QPY0W0f4F013QUz+EQUQOxeLnNEvHOaqFbddL5zAIL3 2LTthgN+rGqfG7RZHfjOkOoU3tE0jjXU5UljqNO1A9Jd2tFGfQUJUZIn+B3RKCya Buuk4eI11gQ=
=Q2Au
-----END PGP SIGNATURE-----

-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click

#1 lore raw

At Wed, 16 Feb 2005 06:21:42 +0100,

Quoted 10 lines · thomas schorpp

-----BEGIN PGP SIGNED MESSAGE-----
Hash: RIPEMD160

hello,

this device

http://www.cmedia.com.tw/product/CMI9761.htm

Quoted 8 lines

the -A- type ive got

has working continuous (slider) master mixer+balance and "working" pcm mixer slider with v106 (2.6.10 release kernel alsa) but no more with v108 alsa-driver or cvs from yesterday.

please branch for this device (on cheap asrock mass-seller K7VTA+ board with via8235 pci).

Interesting. How can one detect the difference of model? Does it have a different codec id?

Anyway, please attach the contents of /proc/asound/card0/codec97#0/* files.

Quoted 7 lines

- -worse: pcm playback not working, capture works, seems no muting problem, klick sound on switching pcm mixer.

10 days left to fix it, or the board returns to the shop.

need a start point for pcm problem, please. somebody got a reg descrption? only harware datasheet is available from vendor.

No. We have no datasheet for these codecs at all.

Takashi

-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click

A message that is not in the archive (sent off-list or not yet received): [email protected]

#3 lore raw

At Wed, 16 Feb 2005 19:20:19 +0100,

Quoted 10 lines · thomas schorpp

hello,

sorry, just seen bounces from the list, someone doesnt like me,it seems..

<[email protected]>:
66.35.250.206_does_not_like_recipient./Remote_host_said:_550_Administrative_prohibition/Giving_up_on_66.35.250.206./

<[email protected]>:
66.35.250.206_does_not_like_recipient./Remote_host_said:_550_Administrative_prohibition/Giving_up_on_66.35.250.206./

Seems like a temporary problem of sourceforge...

Quoted 26 lines

anyway:

Quoted 22 lines · Takashi Iwai

At Wed, 16 Feb 2005 06:21:42 +0100,

Quoted 17 lines · thomas schorpp

-----BEGIN PGP SIGNED MESSAGE-----
Hash: RIPEMD160

hello,

this device

http://www.cmedia.com.tw/product/CMI9761.htm

the -A- type ive got

has working continuous (slider) master mixer+balance and "working" pcm mixer slider with v106 (2.6.10 release kernel alsa) but no more with v108 alsa-driver or cvs from yesterday.

please branch for this device (on cheap asrock mass-seller K7VTA+ board with via8235 pci).

Quoted 8 lines
Quoted 2 lines

Interesting. How can one detect the difference of model? Does it have a different codec id?

im sorry, need to work in this... you got some indentifiers in +{ 0x434d4983, 0xffffffff, XXXXXXXXXX chip id? from where? XXXXXXXXXX
"CMI9761A", patch_cm9761a, NULL }, ?

last resort were a configure script switch (?)

Well, I'm working on the problem of CM9761 (model 83) with another guy. We found out that although the Master and PCM volumes look as if working, they don't affect any volumes in fact. So, removing these controls are correct (at least for his chip).

Please make sure that the Master and PCM volumes _really_ work with the older version of ALSA on your board. That means, when you change the PCM or Master volume, it really changes the output level.

Anyway, the patch below might fix the silent output of CM9761, which was already committed to CVS today.

Takashi

Index: alsa-kernel/pci/ac97/ac97_patch.c
===================================================================
RCS file: /suse/tiwai/cvs/alsa/alsa-kernel/pci/ac97/ac97_patch.c,v retrieving revision 1.74

pci/ac97/ac97_patch.c +3 -1
diff -u -r1.74 ac97_patch.c
@@ -2084,8 +2084,10 @@
 		val = 0x0214;
 	else
 		val = 0x321c;
-	snd_ac97_write_cache(ac97, AC97_CM9761_MULTI_CHAN, val);
 #endif
+	val = snd_ac97_read(ac97, AC97_CM9761_MULTI_CHAN);
+	val |= (1 << 4);
+	snd_ac97_write_cache(ac97, AC97_CM9761_MULTI_CHAN, val);
 
 	/* FIXME: set up GPIO */
 	snd_ac97_write_cache(ac97, 0x70, 0x0100);
#4 lore raw

Re: [INFO] C-Media CMI9761 -A- type , DEVICE REVISION IS 8D

good morning.

figured out the device rev. for A type.

its 8D.

now it can be done.

tom

-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click

#5 lore raw

Re: [INFO] C-Media CMI9761 -A- type , CODEC ID

In reply to Takashi Iwai
Quoted 18 lines · Takashi Iwai

At Wed, 16 Feb 2005 06:21:42 +0100,

Quoted 15 lines · thomas schorpp

-----BEGIN PGP SIGNED MESSAGE-----
Hash: RIPEMD160

hello,

this device

http://www.cmedia.com.tw/product/CMI9761.htm

the -A- type ive got

has working continuous (slider) master mixer+balance and "working" pcm mixer slider with v106 (2.6.10 release kernel alsa) but no more with v108 alsa-driver or cvs from yesterday.

Quoted 7 lines
Quoted 2 lines

please branch for this device (on cheap asrock mass-seller K7VTA+ board with via8235 pci).

Interesting. How can one detect the difference of model? Does it have a different codec id?

uh-oh!

{ 0x434d4941, 0xffffffff, "CMI9738", patch_cm9738, NULL },
{ 0x434d4961, 0xffffffff, "CMI9739", patch_cm9739, NULL },
{ 0x434d4978, 0xffffffff, "CMI9761", patch_cm9761, NULL },
{ 0x434d4982, 0xffffffff, "CMI9761", patch_cm9761, NULL },
/* { 0x434d4983, 0xffffffff, "CMI9761", patch_cm9761, NULL }, */
{ 0x434d4983, 0xffffffff, "CMI9761A", patch_cm9761a, NULL },

Feb 17 02:05:42 tom1 kernel: ALSA /usr/src/alsa/alsa-driver/alsa-kernel/pci/ac97/ac97_patch.c:2105: AC'97 0 is [0x434d4983] id.

can it be?

or im mistaking here:

int patch_cm9761a(ac97_t *ac97)

{
	snd_printk(KERN_ERR "AC'97 %d is [0x%x] id.\n", ac97->num, ac97->id); 

/*identify schorpp s -A- chip*/

ive seen you somewhere in the code branching by mainboard vendor.

	/* Special exception for ASUS W1000/CMI9739. It does not have an SPDIF 
in. */
	if (ac97->pci &&
	     ac97->subsystem_vendor == 0x1043 &&
	     ac97->subsystem_device == 0x1843) {

well see...

tom

Quoted 3 lines

Takashi

-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click

#6 lore raw

Re: [INFO] C-Media CMI9761 -A- type , CODEC ID BY MB

Quoted 52 lines · thomas schorpp
Quoted 18 lines · Takashi Iwai

At Wed, 16 Feb 2005 06:21:42 +0100,

Quoted 15 lines · thomas schorpp

-----BEGIN PGP SIGNED MESSAGE-----
Hash: RIPEMD160

hello,

this device

http://www.cmedia.com.tw/product/CMI9761.htm

the -A- type ive got

has working continuous (slider) master mixer+balance and "working" pcm mixer slider with v106 (2.6.10 release kernel alsa) but no more with v108 alsa-driver or cvs from yesterday.

Quoted 8 lines
Quoted 2 lines

please branch for this device (on cheap asrock mass-seller K7VTA+ board with via8235 pci).

Interesting. How can one detect the difference of model? Does it have a different codec id?

uh-oh!

{ 0x434d4941, 0xffffffff, "CMI9738",        patch_cm9738,    NULL },
{ 0x434d4961, 0xffffffff, "CMI9739",        patch_cm9739,    NULL },
{ 0x434d4978, 0xffffffff, "CMI9761",        patch_cm9761,    NULL },
{ 0x434d4982, 0xffffffff, "CMI9761",        patch_cm9761,    NULL },

/* { 0x434d4983, 0xffffffff, "CMI9761", patch_cm9761, NULL }, */
{ 0x434d4983, 0xffffffff, "CMI9761A", patch_cm9761a, NULL },

Feb 17 02:05:42 tom1 kernel: ALSA /usr/src/alsa/alsa-driver/alsa-kernel/pci/ac97/ac97_patch.c:2105: AC'97 0 is [0x434d4983] id.

can it be?

or im mistaking here:

int patch_cm9761a(ac97_t *ac97)

{
    snd_printk(KERN_ERR "AC'97 %d is [0x%x] id.\n", ac97->num, 

ac97->id); /*identify schorpp s -A- chip*/

ive seen you somewhere in the code branching by mainboard vendor.

Quoted 8 lines
    /* Special exception for ASUS W1000/CMI9739. It does not have an 
SPDIF in. */
    if (ac97->pci &&
         ac97->subsystem_vendor == 0x1043 &&
         ac97->subsystem_device == 0x1843) {

well see...

	snd_printk(KERN_ERR "AC'97 %d is [0x%x] id.  [0x%x] pci,  [0x%x] 

subsystem_vendor [0x%x] subsystem_device \n", ac97->num, ac97->id, ac97->pci, ac97->subsystem_vendor, ac97->subsystem_device); /*identify schorpp s -A- chip*/

Feb 17 02:48:34 tom1 kernel: ALSA /usr/src/alsa/alsa-driver/alsa-kernel/pci/ac97/ac97_patch.c:2105: AC'97 0 is [0x434d4983] id.  [0xdff32800] pci,  [0x1849] subsystem_vendor [0x9761] subsystem_device

hope this helps.

tom

Quoted 6 lines

tom

Quoted 3 lines

Takashi

-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click

#7 lore raw

Re: [INFO] C-Media CMI9761 -A- type , CODEC ID BY MB

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.

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,

Quoted 96 lines · thomas schorpp
Quoted 54 lines · thomas schorpp
Quoted 18 lines · Takashi Iwai

At Wed, 16 Feb 2005 06:21:42 +0100,

Quoted 15 lines · thomas schorpp

-----BEGIN PGP SIGNED MESSAGE-----
Hash: RIPEMD160

hello,

this device

http://www.cmedia.com.tw/product/CMI9761.htm

the -A- type ive got

has working continuous (slider) master mixer+balance and "working" pcm mixer slider with v106 (2.6.10 release kernel alsa) but no more with v108 alsa-driver or cvs from yesterday.

Quoted 8 lines
Quoted 2 lines

please branch for this device (on cheap asrock mass-seller K7VTA+ board with via8235 pci).

Interesting. How can one detect the difference of model? Does it have a different codec id?

uh-oh!

{ 0x434d4941, 0xffffffff, "CMI9738",        patch_cm9738,    NULL },
{ 0x434d4961, 0xffffffff, "CMI9739",        patch_cm9739,    NULL },
{ 0x434d4978, 0xffffffff, "CMI9761",        patch_cm9761,    NULL },
{ 0x434d4982, 0xffffffff, "CMI9761",        patch_cm9761,    NULL },

/* { 0x434d4983, 0xffffffff, "CMI9761", patch_cm9761, NULL }, */
{ 0x434d4983, 0xffffffff, "CMI9761A", patch_cm9761a, NULL },

Feb 17 02:05:42 tom1 kernel: ALSA 

/usr/src/alsa/alsa-driver/alsa-kernel/pci/ac97/ac97_patch.c:2105: AC'97 0 is [0x434d4983] id.

can it be?

or im mistaking here:

int patch_cm9761a(ac97_t *ac97)

{
    snd_printk(KERN_ERR "AC'97 %d is [0x%x] id.\n", ac97->num, 

ac97->id); /*identify schorpp s -A- chip*/

ive seen you somewhere in the code branching by mainboard vendor.

Quoted 8 lines
    /* Special exception for ASUS W1000/CMI9739. It does not have an 
SPDIF in. */
    if (ac97->pci &&
         ac97->subsystem_vendor == 0x1043 &&
         ac97->subsystem_device == 0x1843) {

well see...

	snd_printk(KERN_ERR "AC'97 %d is [0x%x] id.  [0x%x] pci,  [0x%x] 

subsystem_vendor [0x%x] subsystem_device \n", ac97->num, ac97->id,
ac97->pci, ac97->subsystem_vendor, ac97->subsystem_device); /*identify schorpp s -A- chip*/

Feb 17 02:48:34 tom1 kernel: ALSA 

/usr/src/alsa/alsa-driver/alsa-kernel/pci/ac97/ac97_patch.c:2105: AC'97 0 is [0x434d4983] id. [0xdff32800] pci, [0x1849] subsystem_vendor [0x9761] subsystem_device

hope this helps.

tom

Quoted 6 lines

tom

Quoted 3 lines

Takashi

-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Alsa-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/alsa-devel

Signature · 9 lines
Sérgio M.B.



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
#8 lore raw

Re: [PATCH V0.1] C-Media CMI9761 -A- type

-----BEGIN PGP SIGNED MESSAGE-----
Hash: RIPEMD160

hi,

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
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)
Comment: Using GnuPG with Debian - http://enigmail.mozdev.org

iQCVAwUBQhQZHWqsze5HSzyoAQMpmgP9EB7DJoUUkYMrLbBniIiXZ+4zzPYxfpRN Hv13zEvbxSs4LTzZtgD5Kbmtey55CV+mbaTArhGRKQ/O60RNrxk6pcri3ASxm6DM uTdAWGjk8F1tXoFYF5WWD8tvyIDvGIw/Zh1UGdmeIvpvEjpwrM7i3Ca9UVeYjMk9 z8Laxy3nhIk=
=ug02
-----END PGP SIGNATURE-----

Index: ac97_patch.c
===================================================================
RCS file: /cvsroot/alsa/alsa-kernel/pci/ac97/ac97_patch.c,v retrieving revision 1.74

ac97_patch.c +33 -2
diff -U3 -r1.74 ac97_patch.c
@@ -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