View unanswered posts | View active topics It is currently Tue Dec 10, 2019 4:46 am



Reply to topic  [ 7 posts ] 
 Fit-PC2i audio codec pin configuration 
Author Message

Joined: Tue Aug 16, 2011 10:41 am
Posts: 16
Post Fit-PC2i audio codec pin configuration
Hi,
I have noticed that the default pin configuration of ALC662 (presumably set by the BIOS) indicates that there are a few more pins connected than there actually are. As a result, mixer applications (e.g. alsamixer on Linux) show a number of extraneous non-functional controls.
This can usually be resolved by tweaking the driver parameters, but in order to do that one needs to know the correct pin configuration. Can someone please share that information? Which pins of the codec chip are connected to which external connectors of fit-PC2i (rev. 1.2)? This is not so much about the physical pins, but about the NID in terms of HD-Audio specification.
Any help is greatly appreciated.

Thanks in advance,
Sergei.


Tue Sep 06, 2011 5:50 pm
Profile

Joined: Sun Apr 26, 2009 3:24 pm
Posts: 301
Post Re: Fit-PC2i audio codec pin configuration
The default NID settings are set by BIOS, but after they controlled only by the Linux/Windows driver.

You can view ALC662 driver code in Linux kernel to see NID controls. Also there is kernel option SND_HDA_RECONFIG that may be useful for you. Our kernel compiled without it, you will need to recompile.
Code:
config SND_HDA_RECONFIG
   bool "Allow dynamic codec reconfiguration (EXPERIMENTAL)"
   depends on SND_HDA_HWDEP && EXPERIMENTAL
   help
     Say Y here to enable the HD-audio codec re-configuration feature.
     This adds the sysfs interfaces to allow user to clear the whole
     codec configuration, change the codec setup, add extra verbs,
     and re-configure the codec dynamically.


On Windows as I know it NID`s configuration related to registry stuff and also not straightforward at all.

If you need hardware schematic look at the SB-iAM design - schematics, dimensions, layout. The design is the same as on fitPC2i.

_________________
Compulab's Linux support


Wed Sep 07, 2011 3:04 pm
Profile

Joined: Tue Aug 16, 2011 10:41 am
Posts: 16
Post Re: Fit-PC2i audio codec pin configuration
Thank you for your response.

I know those Linux features. I compile the kernel myself, so that is not a problem. And by now I've learnt about sound on Linux more than I ever wanted to know. The thing is that Linux has to trust the default settings provided by BIOS, and if those are incorrect Linux has no other source of information to make the things right. The driver contains hard-coded pin configurations for some types of hardware, but not for fit-PC2i. So I have to figure it out myself.

The schematic would help a lot, but unfortunately the link you have posted seems to be dead (404 Not Found). Could you post a working one please?

Thanks,
Sergei.


Wed Sep 07, 2011 5:35 pm
Profile

Joined: Sun Apr 26, 2009 3:24 pm
Posts: 301
Post Re: Fit-PC2i audio codec pin configuration
Link above is fixed.

It would be really nice if you create some nice kernel patch for it!

_________________
Compulab's Linux support


Thu Sep 08, 2011 8:32 am
Profile

Joined: Tue Aug 16, 2011 10:41 am
Posts: 16
Post Re: Fit-PC2i audio codec pin configuration
Thanks, the link is indeed fixed. But I'm a bit confused now. That schematic seems to be using a completely different audio codec chip with a different set of inputs and outputs, so as far as I can tell, it has nothing in common with fit-PC2i...


Thu Sep 08, 2011 8:55 pm
Profile

Joined: Sun Apr 26, 2009 3:24 pm
Posts: 301
Post Re: Fit-PC2i audio codec pin configuration
Sorry for wrong reference. Here is the correct one.


Attachments:
alc662.jpg
alc662.jpg [ 53.83 KiB | Viewed 7051 times ]

_________________
Compulab's Linux support
Sun Sep 11, 2011 1:27 pm
Profile

Joined: Tue Aug 16, 2011 10:41 am
Posts: 16
Post Re: Fit-PC2i audio codec pin configuration
Thank you. The schematic clarifies a lot. With its help and a bit of experimenting I have come up with what I believe to be the correct pin configuration. Fortunately, no code changes in Linux are necessary. The pin configuration can be "fixed" as follows.

1. The kernel should be built with "CONFIG_SND_HDA_PATCH_LOADER=y".
2. Create a text file "/lib/firmware/alc662.cfg" with the following content:
Code:
[codec]
0x10ec0662 0x10ec0662 0

[pincfg]
0x14 0x411111f0
0x15 0x01014030
0x16 0x411111f0
0x18 0x01a19051
0x19 0x411111f0
0x1a 0x01813050
0x1b 0x411111f0
0x1c 0x411111f0
0x1d 0x411111f0
0x1e 0x01441170

3. Add the following line to modprobe configuration:
Code:
options snd_hda_intel position_fix=1 patch=alc662.cfg

Note: the "position_fix=1" part is not needed for pin configuration, but in my case it was needed to avoid warnings during boot.


Sat Sep 17, 2011 10:24 am
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 7 posts ] 

Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.