Linux OSS driver for C-Media audio codec (CMI9738, CMI9739) v0.36  .....modified by Angie

Notes:
1. This version implements GPIO on/off when active/disactive the driver which used for Mitac.

Features:
1. South Bridge: Intel ICH2/ICH4/ICH5, SiS 7012/7018, VIA 8233/82686, ALI 5451, nVidia nForce, AMD 8111.
2. Full-duplex and multiple applications playback and recording.
4. 16 bits 2/4/6 channels mono/stereo playback.
5. 16 bits stereo recording.
6. Support phone jacks configuration.
7. PCM SPDIF IN/OUT (CMI9739 only, recording only support 48 KHz).
8. Support analog hardware copy to rear channel.
9. Support xear mode to swap front and surround speakers output.
   For PCCHIPS LCD PC, you should change the following codes in cmaudio.h:

        // For PCCHIPS LCD PC
        #define FORCE_LINEINASREAR_MODE 1
        #define FORCE_XEAR_MODE 1

        //#define FORCE_LINEINASREAR_MODE 0
        //#define FORCE_XEAR_MODE 0

Known issues:
1. This driver only tested on RedHat 9.0.
2. /dev/sequencer is not supported.
3. AC3 S/PDIF out is not supported.


Installation:
For driver installation, please follow below steps. 

Step 1. Unzip source code
        tar xzf cmaudio-036.tar.gz

Step 2. Turn on sound support (soundcore module)

Step 3. Complied source code
	make
	make install
                   ***  You can see error   "make : warning : Clock skew detected.  You build may be incomplete." after executeing "make" & "make install".
                          You can ignore it.  
 
Step 4. Edit your /etc/modules.conf or conf.modules depending on the Distribution
        alias sound-slot-0 cmaudio    
        post-install sound-slot-0 /bin/aumix-minimal -f /etc/.aumixrc -L >/dev/null 2>&1 || :
        pre-remove sound-slot-0 /bin/aumix-minimal -f /etc/.aumixrc -S >/dev/null 2>&1 || :

Step 5. reboot your machine



Phone Jacks Configuration:
We provide a console mode program, cmconfig.c, in order to let you change jacks' configuration.
please follow below steps.

Step 1. Compiled source code, the source code is also in cmaudio-036.tar.gz.
        cc -o cmconfig cmconfig.c

Step 2. Execute and change the settings
        ./cmconfig




