From: bugtrack@alsa-project.org
To: alsa-devel@alsa-project.org
Subject: [ALSA - driver 0000370]: CMedia 8768 Support
Date: Thu, 14 Oct 2004 12:02:48 +0200 (CEST) [thread overview]
Message-ID: <20041014100248.B70412C014@server.perex-int.cz> (raw)
A BUGNOTE has been added to this bug.
======================================================================
https://bugtrack.alsa-project.org/alsa-bug/bug_view_page.php?bug_id=0000370
======================================================================
Reported By: drbobguy
Assigned To: tiwai
======================================================================
Project: ALSA - driver
Bug ID: 370
Category: PCI - cmipci
Reproducibility: always
Severity: feature
Priority: normal
Status: assigned
Distribution: Gentoo
Kernel Version: 2.6.7
======================================================================
Date Submitted: 07-07-2004 04:59 CEST
Last Modified: 10-14-2004 12:02 CEST
======================================================================
Summary: CMedia 8768 Support
Description:
I've recently built a new computer with an on-board CMedia 8768 chip. This
chip is not listed as one of the supported CMedia chips (8738, etc.),
although I suspect that is because it is so new. Just wanted to let you
guys know it apparently doesn't work with the standard cmipci driver (at
least I think I'm doing everthing correctly -- I have a decent amount of
Linux experience but I'm no guru). Here is what I see though:
The card is recognized in /proc/asound as a CMedia 8738M6. However, if I
use a mixer like amixer or gnome-alsamixer none of the mixer settings I
change will take effect (and I am running these as root).
Any advice or comments would be appreciated. I'd be happy to help if you
think there is a possible fix.
======================================================================
----------------------------------------------------------------------
drbobguy - 07-07-2004 05:03 CEST
----------------------------------------------------------------------
By the way I'm on an AMD 64 machine if that makes a difference.
----------------------------------------------------------------------
robg - 07-27-2004 05:26 CEST
----------------------------------------------------------------------
Is there any progress on a driver for this chip?
It is used on the Soltek EQ3801 amd64 computer and a lot of people in
forums on other websites are interested in sound support.
I have the same problems as listed by drbobguy. I tested it under 64bit
kernel 2.6.7 I believe he did as well. I can setup a 32bit kernel and
retest if you fell its useful.
----------------------------------------------------------------------
tiwai - 07-30-2004 16:56 CEST
----------------------------------------------------------------------
Any datasheet available?
I don't know of...
----------------------------------------------------------------------
drbobguy - 07-31-2004 02:46 CEST
----------------------------------------------------------------------
I found this file off the CMedia website (I've attached it here):
http://www.cmedia.com.tw/doc/CMI8768%20Datasheet%20Rev%200.9.pdf
----------------------------------------------------------------------
robg - 07-31-2004 06:10 CEST
----------------------------------------------------------------------
The file from cmedia website does not contain any info for programming the
chip unfortunately. I have sent an email to cmedia requesting full
information. Will advise when I get a response.
Since the chip gives an ID of CMI8738-MC6 it may be very close to the
existing driver.
In the interim, is there any more information we can provide from /proc
that is useful?
----------------------------------------------------------------------
robg - 10-08-2004 05:17 CEST
----------------------------------------------------------------------
Finally get some feedback from Cmedia. Following is copy of email
exchanges. I will attach documentation also received.
---------------------------------------------------------------
Date: Thu, 07 Oct 2004 15:41:28 +0800
From: "Liang, Jason - ???" <jason.liang@cmedia.com.tw>
Subject: RE: [Fwd: technical information for 8768]
To: Rob Gordon <snip>
Cc: "Tien, C.L. - ???" <cltien@cmedia.com.tw>,
"Yao, Alan - ???" <alanyao@cmedia.com.tw>,
"Chang, Kinkon - ???" <kinkon.chang@cmedia.com.tw>
Dear Rob,
I'm sorry I missed your previous mail. I enclosed 8768 datasheet, register
spec and programming guide to you. 8768 is basically modified from 8738
and hence the 8738 programming guide is applicable. Hope them helpful.
Shall you have any specific question or further need, you can tell us
then.
BTW, our Linux driver developer is Chen-Li Tien (in CC list) and he is
also working on this. You can have a talk if you would like.
Regards,
Jason
-----Original Message-----
From: Rob Gordon [snip]
Sent: Thursday, October 07, 2004 10:00 AM
To: Liang, Jason
Subject: [Fwd: technical information for 8768]
Dear Mr. Liang,
I am still looking for information on programming the 8768 soundchip.
Can you provide a contact so I can can pursue this information.
Thank you for your time,
Rob
-------- Original Message --------
Subject: technical information for 8768
Date: Fri, 03 Sep 2004 01:19:11 -0600
From: Rob Gordon <snip>
To: jason.liang@cmedia.com.tw
Dear Mr Liang,
I am working with the ALSA linux sound media team to implement a driver
for the new 8768 soundchip. This is currently used in the Soltek EQ3801
computer and there is a lot of interest in the Linux community to obtain
a working driver.
Since the technical details and an open source driver were available for
the 8738, I was hoping that the same level of information would be
published for the 8768 as well.
I am willing to work on the driver development if sufficient technical
documentation is provided, assuming a driver has not been prepared
already.
I have tried contacting the support group at Cmedia
(support@cmedia.com.tw ) several times but have not received any reply.
Can you assist in obtaining the information required or provide the name
of a contact person who could help?
Thank-you for your time.
Regards,
Rob Gordon
----------------------------------------------------------------------
tiwai - 10-08-2004 12:49 CEST
----------------------------------------------------------------------
A good news! It will help for debugging. Thanks.
----------------------------------------------------------------------
tiwai - 10-08-2004 15:26 CEST
----------------------------------------------------------------------
According to the datasheet, CM8768 seems almost backward compatible
with CM8738 (6ch).
What did you mean in the original post, "none of the mixer settings I
change will take effect"? Isn't the mixer value changed at all, or
you get only the silent output, although the playback looks as if
working?
----------------------------------------------------------------------
tiwai - 10-08-2004 15:36 CEST
----------------------------------------------------------------------
Also, attach /etc/asound.state and /proc/asound/card0/cmipci for
debugging.
----------------------------------------------------------------------
patrick - 10-09-2004 09:30 CEST
----------------------------------------------------------------------
When I run a command like "amixer set Master 10" I get what looks like
proper output. The adjustments don't seem to stick though. Volume for
Master/PCM etc are always listed at 100% in alsamixer and even after
issuing the unmute command for PCM it is always listed as muted.
But if I try to use the ncurses program alsamixer none of the settings are
adjustable. Likewise if I try to use beep-media-player it says it "can't
open audio."
So yeah, I can't get any sound out of it and most audio programs either
give an error about not being able to access the device or just sit there
and do nothing (like aplay).
If you need any more information let me know, I'll try to help as best I
can. Thank you!
ps: Linux Kawaii64 2.6.9-rc3-nitro2 https://bugtrack.alsa-project.org/alsa-bug/bug_view_page.php?bug_id=0000002 Sat Oct 9 03:24:19 EDT 2004 x86_64
AMD Athlon(tm) 64 Processor 3000+ AuthenticAMD GNU/Linux
edited on: 10-09-04 09:30
----------------------------------------------------------------------
robg - 10-10-2004 04:48 CEST
----------------------------------------------------------------------
I get the same problems as patrick for amixer and alsamixer operation. To
verify proper alsa setup, I disabled the 8768 in bios and installed a SB
es1371 and all controls and audio output works.
I use AMD 64-bit kernel 2.6.8-rc2.
I will attach /etc/asound.state and /proc/asound/card0/cmipci as
suggested.
----------------------------------------------------------------------
robg - 10-10-2004 04:57 CEST
----------------------------------------------------------------------
I checked and my /etc/asound.state and /proc/asound/card0/cmipci were
identical to those uploaded by patrick so I didn't upload them.
Using aplay I get the following error:
#aplay /usr/lib/mozilla/res/samples/test.wav
Playing WAVE '/usr/lib/mozilla/res/samples/test.wav' : Unsigned 8 bit,
Rate
22050 Hz, Mono
aplay: pcm_write:1115: write error: Input/output error
----------------------------------------------------------------------
tiwai - 10-13-2004 16:37 CEST
----------------------------------------------------------------------
The register dump is all ff, that is, the driver is reading wrong I/O
ports.
Can you show the output of "lspci -xvv" ?
----------------------------------------------------------------------
tiwai - 10-13-2004 16:37 CEST
----------------------------------------------------------------------
Also, please use 1.0.7-rc2 for avoid unnecessary differences.
----------------------------------------------------------------------
patrick - 10-14-2004 01:24 CEST
----------------------------------------------------------------------
0000:02:08.0 Multimedia audio controller: C-Media Electronics Inc CM8738
(rev 10)
Subsystem: C-Media Electronics Inc CMI8738/C3DX PCI Audio Device
Control: I/O+ Mem- BusMaster+ SpecCycle- MemWINV- VGASnoop-
ParErr- Stepping- SERR- FastB2B-
Status: Cap+ 66Mhz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort-
<TAbort- <MAbort- >SERR- <PERR-
Latency: 32 (500ns min, 6000ns max)
Interrupt: pin A routed to IRQ 12
Region 0: I/O ports at d300
Capabilities: [c0] Power Management version 2
Flags: PMEClk- DSI- D1+ D2+ AuxCurrent=0mA
PME(D0-,D1-,D2-,D3hot-,D3cold-)
Status: D0 PME-Enable- DSel=0 DScale=0 PME-
00: f6 13 11 01 05 00 10 02 10 00 01 04 00 20 00 00
10: 01 d3 00 00 00 00 00 00 00 00 00 00 00 00 00 00
20: 00 00 00 00 00 00 00 00 00 00 00 00 f6 13 11 01
30: 00 00 00 00 c0 00 00 00 00 00 00 00 0c 01 02 18
If you want the entire output let me know, this was the only listing
referring to the cmedia card.
----------------------------------------------------------------------
tiwai - 10-14-2004 12:02 CEST
----------------------------------------------------------------------
Please try the attached patch (just for testing).
Bug History
Date Modified Username Field Change
======================================================================
07-07-04 04:59 drbobguy New Bug
07-07-04 04:59 drbobguy Distribution => Gentoo
07-07-04 04:59 drbobguy Kernel Version => 2.6.7
07-07-04 05:03 drbobguy Bugnote Added: 0001390
07-27-04 05:26 robg Bugnote Added: 0001475
07-30-04 16:56 tiwai Bugnote Added: 0001493
07-31-04 02:46 drbobguy File Added: CMI8768.pdf
07-31-04 02:46 drbobguy Bugnote Added: 0001508
07-31-04 06:10 robg Bugnote Added: 0001509
08-22-04 22:13 masanetz Bug Monitored: masanetz
09-06-04 18:02 patrick Bug Monitored: patrick
10-08-04 05:17 robg Bugnote Added: 0002043
10-08-04 05:18 robg File Added: CMI8768 register spec v1.0.pdf
10-08-04 05:19 robg File Added: Programming Guide to CMI8738 PCI Audio Chip_v16_0311.pdf
10-08-04 12:49 tiwai Bugnote Added: 0002050
10-08-04 15:26 tiwai Bugnote Added: 0002053
10-08-04 15:36 tiwai Bugnote Added: 0002054
10-09-04 09:05 patrick File Added: asound.state
10-09-04 09:08 patrick File Added: cmipci
10-09-04 09:29 patrick Bugnote Added: 0002061
10-09-04 09:30 patrick Bugnote Edited: 0002061
10-10-04 04:48 robg Bugnote Added: 0002064
10-10-04 04:57 robg Bugnote Added: 0002065
10-13-04 16:37 tiwai Bugnote Added: 0002126
10-13-04 16:37 tiwai Bugnote Added: 0002127
10-14-04 01:24 patrick Bugnote Added: 0002136
10-14-04 12:02 tiwai Bugnote Added: 0002139
======================================================================
-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
next reply other threads:[~2004-10-14 10:02 UTC|newest]
Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-10-14 10:02 bugtrack [this message]
-- strict thread matches above, loose matches on Subject: below --
2005-08-09 11:44 [ALSA - driver 0000370]: CMedia 8768 Support bugtrack
2005-05-24 10:36 bugtrack
2005-04-26 7:34 bugtrack
2005-04-25 9:42 bugtrack
2005-01-04 4:12 bugtrack
2004-12-25 16:13 bugtrack
2004-11-22 11:11 bugtrack
2004-10-19 3:35 bugtrack
2004-10-18 21:00 bugtrack
2004-10-18 9:32 bugtrack
2004-10-16 5:32 bugtrack
2004-10-15 22:33 bugtrack
2004-10-14 21:57 bugtrack
2004-10-14 14:19 bugtrack
2004-10-14 14:05 bugtrack
2004-10-13 23:24 bugtrack
2004-10-13 14:37 bugtrack
2004-10-13 14:37 bugtrack
2004-10-10 2:57 bugtrack
2004-10-10 2:48 bugtrack
2004-10-09 7:29 bugtrack
2004-10-08 13:36 bugtrack
2004-10-08 13:26 bugtrack
2004-10-08 10:49 bugtrack
2004-10-08 3:17 bugtrack
2004-07-07 3:03 noreply
2004-07-07 2:59 noreply
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=20041014100248.B70412C014@server.perex-int.cz \
--to=bugtrack@alsa-project.org \
--cc=alsa-devel@alsa-project.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.