Alsa-Devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Zinx Verituse <zinx@epicsol.org>
To: Takashi Iwai <tiwai@suse.de>
Cc: alsa-devel@alsa-project.org
Subject: Re: CMI9739A
Date: Mon, 29 Nov 2004 20:05:25 -0600	[thread overview]
Message-ID: <20041130020525.GA2591@bliss> (raw)
In-Reply-To: <s5hact5oqa6.wl@alsa2.suse.de>

[-- Attachment #1: Type: text/plain, Size: 1722 bytes --]

On Thu, Nov 25, 2004 at 05:18:57PM +0100, Takashi Iwai wrote:
> At Wed, 24 Nov 2004 18:46:49 -0600,
> Zinx Verituse wrote:
> > 
> > I recently purchased a motherboard with an on-board CMI9739A (or so it claims)
> > 
> > the id is: 0x434d4983
> > 
> > Unfortunately, simply adding the line:
> > 
> > { 0x434d4983, 0xffffffff, "CMI9739A",           patch_cm9739,   NULL },
> > 
> > causes the card to be muted, reguardless of the mixer, because of the init
> > code in patch_cm9739 -- the init code apparently isn't compatible.
> > 
> > Removing the initialization code, but leaving the ops, gives a few more
> > functional mixer options (like "Line-In as Surround" and "Mic as Center/LFE")
> 
> According to the datasheet, CM9739A is indeed compatible with 9739
> except for pins.
> 
> Could you get the ac97 register dump of the good- and bad-running
> states (from /proc/asound/card0/codec97#0/* files) ?
> 
> I guess the GPIO initialization (for using HP) is wrong there.  Doing
> the following helps?
> 
> 	# echo 72 0001 > /proc/asound/card0/codec97#0/ac97#0-0+regs

Sorry it took so long to get back to you -- I've attached the following files:
cmi9739a-working-ac97.txt       - output from working */codec97#0/ac97#0-0
cmi9739a-working-ac97-regs.txt  - output from working */codec97#0/ac97#0-0+regs
cmi9739a-muted-ac97.txt         - output from muted */codec97#0/ac97#0-0
cmi9739a-muted-ac97-regs.txt    - output from muted */codec97#0/ac97#0-0+regs

attempting to write to ac97#0-0+regs with the following:
72 0001
0:72 0001
72=0001
72 = 0001
0:72 = 0001
met with the error:
-su: /proc/asound/card1/codec97#0/ac97#0-0+regs: No such device

-- 
Zinx Verituse                                    http://zinx.xmms.org/

[-- Attachment #2: cmi9739a-working-ac97.txt --]
[-- Type: text/plain, Size: 566 bytes --]

0-0/0: C-Media Electronics CMI9739A

Revision         : 0x01
Compat. Class    : 0x03
Subsys. Vendor ID: 0xffff
Subsys. ID       : 0xffff

Capabilities     :
DAC resolution   : 16-bit
ADC resolution   : 16-bit
3D enhancement   : No 3D Stereo Enhancement

Current setup
Mic gain         : +0dB [+0dB]
POP path         : pre 3D
Sim. stereo      : off
3D enhancement   : off
Loudness         : off
Mono output      : MIX
Mic select       : Mic1
ADC/DAC loopback : off
Extended ID      : codec=0 rev=2 AMAP LDAC SDAC CDAC DSA=0 DRA
Extended status  : SPCV LDAC SDAC CDAC

[-- Attachment #3: cmi9739a-working-ac97-regs.txt --]
[-- Type: text/plain, Size: 768 bytes --]

0:00 = 0000
0:02 = 0101
0:04 = 0000
0:06 = 0000
0:08 = 0000
0:0a = 801e
0:0c = 0000
0:0e = 9f1f
0:10 = 9f1f
0:12 = 9f1f
0:14 = 0000
0:16 = 9f1f
0:18 = 0808
0:1a = 0000
0:1c = 0000
0:1e = 0000
0:20 = 0000
0:22 = 0000
0:24 = 0000
0:26 = 000f
0:28 = 0bc2
0:2a = 05f0
0:2c = 0000
0:2e = 0000
0:30 = 0000
0:32 = 0000
0:34 = 0000
0:36 = 8080
0:38 = 0000
0:3a = 2000
0:3c = 0000
0:3e = 0000
0:40 = 0000
0:42 = 0000
0:44 = 0000
0:46 = 0000
0:48 = 0000
0:4a = 0000
0:4c = 0000
0:4e = 0000
0:50 = 0000
0:52 = 0000
0:54 = 0000
0:56 = 0000
0:58 = 0000
0:5a = 0000
0:5c = 0004
0:5e = 0000
0:60 = 0000
0:62 = 0000
0:64 = 1438
0:66 = 0012
0:68 = 0000
0:6a = 0000
0:6c = 0000
0:6e = 0000
0:70 = 0000
0:72 = 0000
0:74 = c000
0:76 = 3833
0:78 = 0000
0:7a = 0000
0:7c = 434d
0:7e = 4983

[-- Attachment #4: cmi9739a-muted-ac97-regs.txt --]
[-- Type: text/plain, Size: 768 bytes --]

0:00 = 0000
0:02 = 0101
0:04 = 0000
0:06 = 0000
0:08 = 0000
0:0a = 801e
0:0c = 0000
0:0e = 9f1f
0:10 = 9f1f
0:12 = 9f1f
0:14 = 0000
0:16 = 9f1f
0:18 = 0808
0:1a = 0000
0:1c = 0000
0:1e = 0000
0:20 = 0000
0:22 = 0000
0:24 = 0000
0:26 = 000f
0:28 = 0bc2
0:2a = 05f0
0:2c = 0000
0:2e = 0000
0:30 = 0000
0:32 = 0000
0:34 = 0000
0:36 = 8080
0:38 = 0000
0:3a = 2000
0:3c = 0000
0:3e = 0000
0:40 = 0000
0:42 = 0000
0:44 = 0000
0:46 = 0000
0:48 = 0000
0:4a = 0000
0:4c = 0000
0:4e = 0000
0:50 = 0000
0:52 = 0000
0:54 = 0000
0:56 = 0000
0:58 = 0000
0:5a = 0000
0:5c = 0004
0:5e = 0000
0:60 = 0000
0:62 = 0000
0:64 = 5400
0:66 = 0012
0:68 = 0000
0:6a = 0000
0:6c = 2001
0:6e = 0000
0:70 = 0100
0:72 = 0000
0:74 = c000
0:76 = 3833
0:78 = 0000
0:7a = 0000
0:7c = 434d
0:7e = 4983

[-- Attachment #5: cmi9739a-muted-ac97.txt --]
[-- Type: text/plain, Size: 566 bytes --]

0-0/0: C-Media Electronics CMI9739A

Revision         : 0x01
Compat. Class    : 0x03
Subsys. Vendor ID: 0xffff
Subsys. ID       : 0xffff

Capabilities     :
DAC resolution   : 16-bit
ADC resolution   : 16-bit
3D enhancement   : No 3D Stereo Enhancement

Current setup
Mic gain         : +0dB [+0dB]
POP path         : pre 3D
Sim. stereo      : off
3D enhancement   : off
Loudness         : off
Mono output      : MIX
Mic select       : Mic1
ADC/DAC loopback : off
Extended ID      : codec=0 rev=2 AMAP LDAC SDAC CDAC DSA=0 DRA
Extended status  : SPCV LDAC SDAC CDAC

  reply	other threads:[~2004-11-30  2:05 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-11-25  0:46 CMI9739A Zinx Verituse
2004-11-25 16:18 ` CMI9739A Takashi Iwai
2004-11-30  2:05   ` Zinx Verituse [this message]
2004-11-30 10:09     ` CMI9739A Takashi Iwai
2004-12-12  9:30       ` CMI9739A Zinx Verituse
2004-12-12 10:57         ` CMI9739A Zinx Verituse
2004-12-20 14:04         ` CMI9739A Takashi Iwai

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20041130020525.GA2591@bliss \
    --to=zinx@epicsol.org \
    --cc=alsa-devel@alsa-project.org \
    --cc=tiwai@suse.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox