Subject: Re: AC '97 Modem chipet detection code, Attached
From: Sasha Khapyorsky <sashak@smlink.com>
Date: Wed, 25 Dec 2002 16:19:26 +0200

Hello,
In order to activate codec initialization code audio module should be 
loaded as well as ac97_codec:
# modprobe ac97_codec      - optional with kmod)
# modporbe i810_audio       - or trident with SiS630, etc
Best Regards. Sasha.

>Marvin Stodolsky wrote:
>  
>
>>This message is an explanation of an Open Source tool,  findAMR.sh. It
>>is crafted to reveal AMR modem chipset information and thus recommend
>>supporting URLs for software download.
>>It will be Attached to a following email. Some of your Virus protection
>>systems may reject it as potentially malicious code.  findAMR.sh will
>>also be available at Jacques site shortly:
>>http://linmodems.technion.ac.il.
>>
>>A Volunteer is needed to receive and apply improvements/patches to
>>findAMR.sh
>>lacking both the technical code depth and AMR modems for testing, both
>>Jacques (presumable) and I decline.
>>
>>The donor requests anonymity, so the following is very lightly edited
>>from the original.
>>------------------------------
>>
>>Some information about AMR/CNR modem detection
>>
>>1. Current/old AMR/CNR products.
>>
>>All the following can be found by the code knowledgeable within the
>>Linux kernel sources.
>>
>>As a temporary, partial way to detect correctly AMR/CNR/MDC modem chips,
>>there may be
>>used sthe tandard linux AC97 driver module from linux kernel
>>(linux-X.X.X/drivers/sound/ac97_codec.c). It is inserted into the kernel
>>with
>># modprobe ac97_codec
>>
>>ac97_codec is  generic ACLink driver in Linux. Currently it is used by
>>audio drivers (i810_audio - Intel, trident - SiS630, ALi, viaXXX -
>>VIA686
>>chipset).
>>
>>When loaded, an audio specific driver provides chipset specific codec
>>access services for the generic ac97_codec module and call
>>initialization
>>procedure ac97_init() for each codec. This procedure scans and PRINTs to
>>the
>>dmesg buffer, codec vendorIDs. From those IDs, there may be extracted
>>desired
>>information.
>>
>>For example with Intel 810, in dmesg output there will be something
>>like:
>>
>>i810: Intel ICH 82801AA found at IO 0xdc00 and 0xd800, IRQ 11
>>i810_audio: Audio Controller supports 2 channels.
>>ac97_codec: AC97 Audio codec, id: 0x4144:0x5340 (Analog Devices AD1881)
>>i810_audio: AC'97 codec 0 Unable to map surround DAC's (or DAC's not
>>present), total channels = 2
>>ac97_codec: AC97 Modem codec, id: 0x5349:0x4c22 (Silicon Laboratory
>>Si3036)
>>
>>The last line provides needed identifiers: '0x5349:0x4c22'  is
>>'AC97_VENDOR_ID1:AC97_VENDOR_ID2'.
>>The last 4 (or probably 8) bits of AC97_VENDOR_ID2 (0x22 in this case)
>>are
>>different according to modem manufacturers.
>>
>>The following list needs verification and expansion.
>>0x26 is Motorola.
>>0x22 is SmartLink
>>0x21 is PCTel
>>0x27 is Lucent.
>>discuss@linmodems.org  could serve in this task
>>
>>2.  New CNR modems (coming soon).
>>
>>CNR spec rev.1.2 (Nov.2001) provides the possibility to define uniq PCI
>>vendor and device IDs for CNR card itself.
>>
>>Such new CNR products will on the market soon and hopefully will
>>adhere to this identifier scheme. This would solve the identification
>>problem in the future,
>>
>>Note 1: Unfortunately this will not help with audio card deficient
>>Systems (most newer motherboards are equipped with audio).
>>
>>Note 2: With the linux-2.4.20 release, there is little different output
>>format:
>>ac97_codec: AC97 Modem codec, id: SIL34(Silicon Laboratory Si3036) :
>> SIL - is literal vendor id, 34 is decimal customer id (same as 0x22).
>>
>>Attached is an example script incorporating the above information, that
>>may be used for AMR detection - use it freely (modify,copy,delete -
>>all).
>>------------------------------------------
>>
>>    
>>
>>>idstewart@softhome.net wrote:
>>>
>>>You are receiving this message because you have expressed an interest in the
>>>AC '97 Modem Driver project.  If you believe you have received this message
>>>in error, please contact me at idstewart@softhome.net, and I will remove you
>>>from any future correspondance.
>>>
>>>This message is to announce the migration of the AC '97 Modem Driver
>>>project.  The new project page can be found at
>>>http://www.sourceforge.net/projects/ac97-modem/.  This page provides links
>>>to the CVS repository containing the source code to the AC '97 Modem Driver
>>>project, on-line forums, bug tracking, task lists and a read-only
>>>announcements mailing list.
>>>
>>>Regards,
>>>Ian D. Stewart
>>>      
>>>
>
>  
>