Skip to contentSkip to conversation

ALC650 + Mic input not working

DISCUSSION Takashi Iwai 2 participants 9 messages May 21, 2003 – Aug 27, 2003 1 message not in the archive

lore
Share & tools
lore

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

#1 lore raw

At Wed, 21 May 2003 08:04:44 +0200,

Quoted 10 lines · p z oooo

Hi,

I tested code and it doesn't work :-(.
When I deleted code to detect ALC650 rev.E, it worked perfect. :-)

May be:
1) MSI uses ALC650 rev.E and stil uses gpio0 to switch mic power on/off
2) detection code for ALC650 rev.E is wrong

most likely the latter...
perhaps chaging GPIO0 won't affect the behavior of rev.E. i'll remove it.

thanks,

Takashi

-------------------------------------------------------
This SF.net email is sponsored by: ObjectStore.
If flattening out C++ or Java code to make your application fit in a relational database is painful, don't do it! Check out ObjectStore. Now part of Progress Software. http://www.objectstore.net/sourceforge

#2 lore raw

Detection of ALC650 rev.E

Quoted 13 lines · Takashi Iwai

At Wed, 21 May 2003 08:04:44 +0200,

Quoted 8 lines · p z oooo

Hi,

I tested code and it doesn't work :-(.
When I deleted code to detect ALC650 rev.E, it worked perfect. :-)

May be:
1) MSI uses ALC650 rev.E and stil uses gpio0 to switch mic power on/off
2) detection code for ALC650 rev.E is wrong

Quoted 10 lines

most likely the latter...
perhaps chaging GPIO0 won't affect the behavior of rev.E. i'll remove it.

thanks,

Takashi

How is the ALC650 rev.E detected? I could not see anything in the alc650 pdf specifications to indicate how to detect the ALC650 rev.E or not.

Cheers
James

-------------------------------------------------------
This SF.net email is sponsored by: VM Ware
With VMware you can run multiple operating systems on a single machine. WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the same time. Free trial click here:http://www.vmware.com/wl/offer/358/0

#3 lore raw

Re: Detection of ALC650 rev.E

At Tue, 26 Aug 2003 19:00:38 +0100,

Quoted 21 lines · James Courtier-Dutton
Quoted 19 lines · Takashi Iwai

At Wed, 21 May 2003 08:04:44 +0200,

Quoted 9 lines · p z oooo

Hi,

I tested code and it doesn't work :-(.
When I deleted code to detect ALC650 rev.E, it worked perfect. :-)

May be:
1) MSI uses ALC650 rev.E and stil uses gpio0 to switch mic power on/off
2) detection code for ALC650 rev.E is wrong

most likely the latter...
perhaps chaging GPIO0 won't affect the behavior of rev.E. i'll remove it.

Quoted 7 lines
Quoted 5 lines

thanks,

Takashi

How is the ALC650 rev.E detected? I could not see anything in the alc650 pdf specifications to indicate how to detect the ALC650 rev.E or not.

no, the detection code was removed (as written above), because it simply didn't work as expected :)
please let me know if you have any idea how to detect it.

Takashi

-------------------------------------------------------
This SF.net email is sponsored by: VM Ware
With VMware you can run multiple operating systems on a single machine. WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the same time. Free trial click here:http://www.vmware.com/wl/offer/358/0

#4 lore raw

Re: Detection of ALC650 rev.E

Quoted 33 lines · Takashi Iwai

At Tue, 26 Aug 2003 19:00:38 +0100,

Quoted 21 lines · James Courtier-Dutton
Quoted 19 lines · Takashi Iwai

At Wed, 21 May 2003 08:04:44 +0200,

Quoted 8 lines · p z oooo

Hi,

I tested code and it doesn't work :-(.
When I deleted code to detect ALC650 rev.E, it worked perfect. :-)

May be:
1) MSI uses ALC650 rev.E and stil uses gpio0 to switch mic power on/off
2) detection code for ALC650 rev.E is wrong

most likely the latter...
perhaps chaging GPIO0 won't affect the behavior of rev.E. i'll remove it.

Quoted 7 lines
Quoted 5 lines

thanks,

Takashi

How is the ALC650 rev.E detected? I could not see anything in the alc650 pdf specifications to indicate how to detect the ALC650 rev.E or not.

Quoted 8 lines

no, the detection code was removed (as written above), because it simply didn't work as expected :)
please let me know if you have any idea how to detect it.

Takashi

Can you point me at the code you used to detect it. I have some code here that is supposed to detect it, and I just want to compare it with your previous code before I bother sending it as a patch. Cheers
James

-------------------------------------------------------
This SF.net email is sponsored by: VM Ware
With VMware you can run multiple operating systems on a single machine. WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the same time. Free trial click here:http://www.vmware.com/wl/offer/358/0

#5 lore raw

Re: Re: Detection of ALC650 rev.E

Quoted 42 lines · James Courtier-Dutton
Quoted 40 lines · Takashi Iwai

At Tue, 26 Aug 2003 19:00:38 +0100,

Quoted 22 lines · James Courtier-Dutton
Quoted 20 lines · Takashi Iwai

At Wed, 21 May 2003 08:04:44 +0200,

Quoted 8 lines · p z oooo

Hi,

I tested code and it doesn't work :-(.
When I deleted code to detect ALC650 rev.E, it worked perfect. :-)

May be:
1) MSI uses ALC650 rev.E and stil uses gpio0 to switch mic power on/off
2) detection code for ALC650 rev.E is wrong

most likely the latter...
perhaps chaging GPIO0 won't affect the behavior of rev.E. i'll remove it.

Quoted 7 lines
Quoted 5 lines

thanks,

Takashi

How is the ALC650 rev.E detected? I could not see anything in the alc650 pdf specifications to indicate how to detect the ALC650 rev.E or not.

no, the detection code was removed (as written above), because it simply didn't work as expected :)
please let me know if you have any idea how to detect it.

Quoted 8 lines
Quoted 3 lines

Takashi

Can you point me at the code you used to detect it. I have some code here that is supposed to detect it, and I just want to compare it with your previous code before I bother sending it as a patch. Cheers
James

P.S. The code I have depends on the contents of AC97 register 0x6e. Source of this code is: -
http://www.realtek.com.tw/downloads/dlac97-2.aspx?lineid=5&famid=12&series=8&Software=True

Then download the Linux driver. It is a version of the alsa kernel drivers, but with modifications.

/* reg = contents of AC97 reg 0x6e */
switch(ac97->id & 0xfffffff0) {

<snip>

case 0x414c4720: // ALC650
if (((reg & 0x3f) > 0) && ((reg & 0x3f) < 3))

    ac97->id = 0x414c4720;	// Early version.
  else if (((reg & 0x3f) > 2) && ((reg & 0x3f) < 0x10))
    ac97->id = 0x414c4721;          // D version
  else if ((reg&0x30) == 0x10)
    ac97->id = 0x414c4722;          // E version
  else if ((reg&0x30) == 0x20)
    ac97->id = 0x414c4723;          // F version

break;

-------------------------------------------------------
This SF.net email is sponsored by: VM Ware
With VMware you can run multiple operating systems on a single machine. WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the same time. Free trial click here:http://www.vmware.com/wl/offer/358/0

#6 lore raw

Re: Re: Detection of ALC650 rev.E

At Tue, 26 Aug 2003 21:56:38 +0100,

Quoted 22 lines · James Courtier-Dutton
Quoted 8 lines

Can you point me at the code you used to detect it. I have some code here that is supposed to detect it, and I just want to compare it with your previous code before I bother sending it as a patch. Cheers
James

P.S. The code I have depends on the contents of AC97 register 0x6e. Source of this code is: -
http://www.realtek.com.tw/downloads/dlac97-2.aspx?lineid=5&famid=12&series=8&Software=True

Then download the Linux driver. It is a version of the alsa kernel drivers, but with modifications.

/* reg = contents of AC97 reg 0x6e */
switch(ac97->id & 0xfffffff0) {

<snip>

case 0x414c4720: // ALC650
if (((reg & 0x3f) > 0) && ((reg & 0x3f) < 3))

Quoted 8 lines
     ac97->id = 0x414c4720;	// Early version.
   else if (((reg & 0x3f) > 2) && ((reg & 0x3f) < 0x10))
     ac97->id = 0x414c4721;          // D version
   else if ((reg&0x30) == 0x10)
     ac97->id = 0x414c4722;          // E version
   else if ((reg&0x30) == 0x20)
     ac97->id = 0x414c4723;          // F version

break;

oh, then it's apparently different.
i checked MULTICH register bits but it didn't work anyway.

the above looks better (hey where is such a thing described!). could you send me a patch?

Takashi

-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf

#7 lore raw

Re: Re: Detection of ALC650 rev.E

Quoted 32 lines · Takashi Iwai

At Tue, 26 Aug 2003 21:56:38 +0100,

Quoted 19 lines · James Courtier-Dutton
Quoted 5 lines

Can you point me at the code you used to detect it. I have some code here that is supposed to detect it, and I just want to compare it with your previous code before I bother sending it as a patch. Cheers
James

P.S. The code I have depends on the contents of AC97 register 0x6e. Source of this code is: -
http://www.realtek.com.tw/downloads/dlac97-2.aspx?lineid=5&famid=12&series=8&Software=True

Then download the Linux driver. It is a version of the alsa kernel drivers, but with modifications.

/* reg = contents of AC97 reg 0x6e */
switch(ac97->id & 0xfffffff0) {

<snip>

case 0x414c4720: // ALC650
if (((reg & 0x3f) > 0) && ((reg & 0x3f) < 3))

Quoted 8 lines
    ac97->id = 0x414c4720;	// Early version.
  else if (((reg & 0x3f) > 2) && ((reg & 0x3f) < 0x10))
    ac97->id = 0x414c4721;          // D version
  else if ((reg&0x30) == 0x10)
    ac97->id = 0x414c4722;          // E version
  else if ((reg&0x30) == 0x20)
    ac97->id = 0x414c4723;          // F version

break;

Quoted 10 lines

oh, then it's apparently different.
i checked MULTICH register bits but it didn't work anyway.

the above looks better (hey where is such a thing described!). could you send me a patch?

Takashi

If you go to the realtek site (url above) and download the linux drivers. They are source code, and look like a modified version of alsa-driver. I just extracted the info from the realtek source code.

Cheers
James

-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf

#8 lore raw

Re: Re: Detection of ALC650 rev.E

At Wed, 27 Aug 2003 16:08:19 +0100,

Quoted 44 lines · James Courtier-Dutton
Quoted 42 lines · Takashi Iwai

At Tue, 26 Aug 2003 21:56:38 +0100,

Quoted 22 lines · James Courtier-Dutton
Quoted 7 lines

Can you point me at the code you used to detect it. I have some code here that is supposed to detect it, and I just want to compare it with your previous code before I bother sending it as a patch. Cheers
James

P.S. The code I have depends on the contents of AC97 register 0x6e. Source of this code is: -
http://www.realtek.com.tw/downloads/dlac97-2.aspx?lineid=5&famid=12&series=8&Software=True

Then download the Linux driver. It is a version of the alsa kernel drivers, but with modifications.

/* reg = contents of AC97 reg 0x6e */
switch(ac97->id & 0xfffffff0) {

<snip>

case 0x414c4720: // ALC650
if (((reg & 0x3f) > 0) && ((reg & 0x3f) < 3))

Quoted 8 lines
    ac97->id = 0x414c4720;	// Early version.
  else if (((reg & 0x3f) > 2) && ((reg & 0x3f) < 0x10))
    ac97->id = 0x414c4721;          // D version
  else if ((reg&0x30) == 0x10)
    ac97->id = 0x414c4722;          // E version
  else if ((reg&0x30) == 0x20)
    ac97->id = 0x414c4723;          // F version

break;

oh, then it's apparently different.
i checked MULTICH register bits but it didn't work anyway.

the above looks better (hey where is such a thing described!). could you send me a patch?

Quoted 7 lines
Quoted 3 lines

Takashi

If you go to the realtek site (url above) and download the linux drivers. They are source code, and look like a modified version of alsa-driver.
I just extracted the info from the realtek source code.

yep, that i know. i did want to say "where is documetation!" ;)

for the time being, i have no time at all, so it'd be helpful if anyone can send us a patch...

Takashi

-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf

#9 lore raw

Re: Re: Detection of ALC650 rev.E

Quoted 53 lines · Takashi Iwai

At Wed, 27 Aug 2003 16:08:19 +0100,

Quoted 42 lines · James Courtier-Dutton
Quoted 40 lines · Takashi Iwai

At Tue, 26 Aug 2003 21:56:38 +0100,

Quoted 17 lines · James Courtier-Dutton
Quoted 5 lines

Can you point me at the code you used to detect it. I have some code here that is supposed to detect it, and I just want to compare it with your previous code before I bother sending it as a patch. Cheers
James

P.S. The code I have depends on the contents of AC97 register 0x6e. Source of this code is: -
http://www.realtek.com.tw/downloads/dlac97-2.aspx?lineid=5&famid=12&series=8&Software=True

Then download the Linux driver. It is a version of the alsa kernel drivers, but with modifications.

/* reg = contents of AC97 reg 0x6e */
switch(ac97->id & 0xfffffff0) {

<snip>

Quoted 10 lines

case 0x414c4720: // ALC650
if (((reg & 0x3f) > 0) && ((reg & 0x3f) < 3))
ac97->id = 0x414c4720; // Early version.
else if (((reg & 0x3f) > 2) && ((reg & 0x3f) < 0x10))
ac97->id = 0x414c4721; // D version
else if ((reg&0x30) == 0x10)
ac97->id = 0x414c4722; // E version
else if ((reg&0x30) == 0x20)
ac97->id = 0x414c4723; // F version
break;

oh, then it's apparently different.
i checked MULTICH register bits but it didn't work anyway.

the above looks better (hey where is such a thing described!). could you send me a patch?

Quoted 6 lines
Quoted 3 lines

Takashi

If you go to the realtek site (url above) and download the linux drivers. They are source code, and look like a modified version of alsa-driver. I just extracted the info from the realtek source code.

Quoted 9 lines

yep, that i know. i did want to say "where is documetation!" ;)

for the time being, i have no time at all, so it'd be helpful if anyone can send us a patch...

Takashi

I don't have time to create a patch from that code at the moment. I am working on getting audigy2 passthru working. Cheers
James

-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf