All of lore.kernel.org
 help / color / mirror / Atom feed
* [ALSA - driver 0000370]: CMedia 8768 Support
@ 2004-07-07  2:59 noreply
  0 siblings, 0 replies; 28+ messages in thread
From: noreply @ 2004-07-07  2:59 UTC (permalink / raw)
  To: alsa-devel


The following bug has been SUBMITTED.
======================================================================
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:              07-07-2004 04:59 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.
======================================================================

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           
======================================================================




-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 -
digital self defense, top technical experts, no vendor pitches,
unmatched networking opportunities. Visit www.blackhat.com

^ permalink raw reply	[flat|nested] 28+ messages in thread

* [ALSA - driver 0000370]: CMedia 8768 Support
@ 2004-07-07  3:03 noreply
  0 siblings, 0 replies; 28+ messages in thread
From: noreply @ 2004-07-07  3:03 UTC (permalink / raw)
  To: alsa-devel


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:              07-07-2004 05:03 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.

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                       
======================================================================




-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 -
digital self defense, top technical experts, no vendor pitches,
unmatched networking opportunities. Visit www.blackhat.com

^ permalink raw reply	[flat|nested] 28+ messages in thread

* [ALSA - driver 0000370]: CMedia 8768 Support
@ 2004-10-08  3:17 bugtrack
  0 siblings, 0 replies; 28+ messages in thread
From: bugtrack @ 2004-10-08  3:17 UTC (permalink / raw)
  To: alsa-devel


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-08-2004 05:17 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

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                       
======================================================================


-------------------------------------------------------
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

^ permalink raw reply	[flat|nested] 28+ messages in thread

* [ALSA - driver 0000370]: CMedia 8768 Support
@ 2004-10-08 10:49 bugtrack
  0 siblings, 0 replies; 28+ messages in thread
From: bugtrack @ 2004-10-08 10:49 UTC (permalink / raw)
  To: alsa-devel


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-08-2004 12:49 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.

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                       
======================================================================


-------------------------------------------------------
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

^ permalink raw reply	[flat|nested] 28+ messages in thread

* [ALSA - driver 0000370]: CMedia 8768 Support
@ 2004-10-08 13:26 bugtrack
  0 siblings, 0 replies; 28+ messages in thread
From: bugtrack @ 2004-10-08 13:26 UTC (permalink / raw)
  To: alsa-devel


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-08-2004 15:26 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?

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                       
======================================================================


-------------------------------------------------------
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

^ permalink raw reply	[flat|nested] 28+ messages in thread

* [ALSA - driver 0000370]: CMedia 8768 Support
@ 2004-10-08 13:36 bugtrack
  0 siblings, 0 replies; 28+ messages in thread
From: bugtrack @ 2004-10-08 13:36 UTC (permalink / raw)
  To: alsa-devel


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-08-2004 15:36 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.

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                       
======================================================================


-------------------------------------------------------
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

^ permalink raw reply	[flat|nested] 28+ messages in thread

* [ALSA - driver 0000370]: CMedia 8768 Support
@ 2004-10-09  7:29 bugtrack
  0 siblings, 0 replies; 28+ messages in thread
From: bugtrack @ 2004-10-09  7:29 UTC (permalink / raw)
  To: alsa-devel


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-09-2004 09:29 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:29 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!

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                       
======================================================================


-------------------------------------------------------
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

^ permalink raw reply	[flat|nested] 28+ messages in thread

* [ALSA - driver 0000370]: CMedia 8768 Support
@ 2004-10-10  2:48 bugtrack
  0 siblings, 0 replies; 28+ messages in thread
From: bugtrack @ 2004-10-10  2:48 UTC (permalink / raw)
  To: alsa-devel


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-10-2004 04:48 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.

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                       
======================================================================


-------------------------------------------------------
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

^ permalink raw reply	[flat|nested] 28+ messages in thread

* [ALSA - driver 0000370]: CMedia 8768 Support
@ 2004-10-10  2:57 bugtrack
  0 siblings, 0 replies; 28+ messages in thread
From: bugtrack @ 2004-10-10  2:57 UTC (permalink / raw)
  To: alsa-devel


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-10-2004 04:57 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

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                       
======================================================================


-------------------------------------------------------
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

^ permalink raw reply	[flat|nested] 28+ messages in thread

* [ALSA - driver 0000370]: CMedia 8768 Support
@ 2004-10-13 14:37 bugtrack
  0 siblings, 0 replies; 28+ messages in thread
From: bugtrack @ 2004-10-13 14:37 UTC (permalink / raw)
  To: alsa-devel


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-13-2004 16:37 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" ?

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                       
======================================================================


-------------------------------------------------------
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

^ permalink raw reply	[flat|nested] 28+ messages in thread

* [ALSA - driver 0000370]: CMedia 8768 Support
@ 2004-10-13 14:37 bugtrack
  0 siblings, 0 replies; 28+ messages in thread
From: bugtrack @ 2004-10-13 14:37 UTC (permalink / raw)
  To: alsa-devel


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-13-2004 16:37 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.

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                       
======================================================================


-------------------------------------------------------
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

^ permalink raw reply	[flat|nested] 28+ messages in thread

* [ALSA - driver 0000370]: CMedia 8768 Support
@ 2004-10-13 23:24 bugtrack
  0 siblings, 0 replies; 28+ messages in thread
From: bugtrack @ 2004-10-13 23:24 UTC (permalink / raw)
  To: alsa-devel


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 01:24 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.

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                       
======================================================================


-------------------------------------------------------
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

^ permalink raw reply	[flat|nested] 28+ messages in thread

* [ALSA - driver 0000370]: CMedia 8768 Support
@ 2004-10-14 10:02 bugtrack
  0 siblings, 0 replies; 28+ messages in thread
From: bugtrack @ 2004-10-14 10:02 UTC (permalink / raw)
  To: alsa-devel


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

^ permalink raw reply	[flat|nested] 28+ messages in thread

* [ALSA - driver 0000370]: CMedia 8768 Support
@ 2004-10-14 14:05 bugtrack
  0 siblings, 0 replies; 28+ messages in thread
From: bugtrack @ 2004-10-14 14:05 UTC (permalink / raw)
  To: alsa-devel


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 16:05 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).

----------------------------------------------------------------------
 patrick - 10-14-2004 16:05 CEST 
----------------------------------------------------------------------
I gave the patch a try just now and I can't seem to produce any different
results. I only had a moment to poke at it though since I am off to work
now.

Maybe some one else will have more luck with it?

Thank you for doing all of this by the way!

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                       
10-14-04 12:03 tiwai          File Added: cmipci-address.diff                    
10-14-04 16:05 patrick        Bugnote Added: 0002151                       
======================================================================


-------------------------------------------------------
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

^ permalink raw reply	[flat|nested] 28+ messages in thread

* [ALSA - driver 0000370]: CMedia 8768 Support
@ 2004-10-14 14:19 bugtrack
  0 siblings, 0 replies; 28+ messages in thread
From: bugtrack @ 2004-10-14 14:19 UTC (permalink / raw)
  To: alsa-devel


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 16:19 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).

----------------------------------------------------------------------
 patrick - 10-14-2004 16:05 CEST 
----------------------------------------------------------------------
I gave the patch a try just now and I can't seem to produce any different
results. I only had a moment to poke at it though since I am off to work
now.

Maybe some one else will have more luck with it?

Thank you for doing all of this by the way!

----------------------------------------------------------------------
 tiwai - 10-14-2004 16:19 CEST 
----------------------------------------------------------------------
Did you check /proc/asound/card0/cmipci?  Now it should address d400.

BTW, do you have a 32bit system on it?  It might be a problem of
64bit kernel.

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                       
10-14-04 12:03 tiwai          File Added: cmipci-address.diff                    
10-14-04 16:05 patrick        Bugnote Added: 0002151                       
10-14-04 16:19 tiwai          Bugnote Added: 0002152                       
======================================================================


-------------------------------------------------------
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

^ permalink raw reply	[flat|nested] 28+ messages in thread

* [ALSA - driver 0000370]: CMedia 8768 Support
@ 2004-10-14 21:57 bugtrack
  0 siblings, 0 replies; 28+ messages in thread
From: bugtrack @ 2004-10-14 21:57 UTC (permalink / raw)
  To: alsa-devel


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 23:57 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).

----------------------------------------------------------------------
 patrick - 10-14-2004 16:05 CEST 
----------------------------------------------------------------------
I gave the patch a try just now and I can't seem to produce any different
results. I only had a moment to poke at it though since I am off to work
now.

Maybe some one else will have more luck with it?

Thank you for doing all of this by the way!

----------------------------------------------------------------------
 tiwai - 10-14-2004 16:19 CEST 
----------------------------------------------------------------------
Did you check /proc/asound/card0/cmipci?  Now it should address d400.

BTW, do you have a 32bit system on it?  It might be a problem of
64bit kernel.

----------------------------------------------------------------------
 patrick - 10-14-2004 23:57 CEST 
----------------------------------------------------------------------
Yeah, it seems to be:

C-Media PCI CMI8738-MC6 (model 39) at 0xd400, irq 12

00: ff ff ff ff
04: ff ff ff ff
08: ff ff ff ff
0c: ff ff ff ff
10: ff ff ff ff
14: ff ff ff ff
18: ff ff ff ff
1c: ff ff ff ff
20: ff ff ff ff
24: ff ff ff ff
28: ff ff ff ff
2c: ff ff ff ff
30: ff ff ff ff
34: ff ff ff ff
38: ff ff ff ff
3c: ff ff ff ff

Yes I am using a 64-bit kernel. The motherboard this chip is built on is
an nforce3 250 board so as far as I know they are all 64 bit systems.
Maybe some one else has a 32bit kernel they can test it on but I do not.

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                       
10-14-04 12:03 tiwai          File Added: cmipci-address.diff                    
10-14-04 16:05 patrick        Bugnote Added: 0002151                       
10-14-04 16:19 tiwai          Bugnote Added: 0002152                       
10-14-04 23:57 patrick        Bugnote Added: 0002161                       
======================================================================


-------------------------------------------------------
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

^ permalink raw reply	[flat|nested] 28+ messages in thread

* [ALSA - driver 0000370]: CMedia 8768 Support
@ 2004-10-15 22:33 bugtrack
  0 siblings, 0 replies; 28+ messages in thread
From: bugtrack @ 2004-10-15 22:33 UTC (permalink / raw)
  To: alsa-devel


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-16-2004 00:33 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).

----------------------------------------------------------------------
 patrick - 10-14-2004 16:05 CEST 
----------------------------------------------------------------------
I gave the patch a try just now and I can't seem to produce any different
results. I only had a moment to poke at it though since I am off to work
now.

Maybe some one else will have more luck with it?

Thank you for doing all of this by the way!

----------------------------------------------------------------------
 tiwai - 10-14-2004 16:19 CEST 
----------------------------------------------------------------------
Did you check /proc/asound/card0/cmipci?  Now it should address d400.

BTW, do you have a 32bit system on it?  It might be a problem of
64bit kernel.

----------------------------------------------------------------------
 patrick - 10-14-2004 23:57 CEST 
----------------------------------------------------------------------
Yeah, it seems to be:

C-Media PCI CMI8738-MC6 (model 39) at 0xd400, irq 12

00: ff ff ff ff
04: ff ff ff ff
08: ff ff ff ff
0c: ff ff ff ff
10: ff ff ff ff
14: ff ff ff ff
18: ff ff ff ff
1c: ff ff ff ff
20: ff ff ff ff
24: ff ff ff ff
28: ff ff ff ff
2c: ff ff ff ff
30: ff ff ff ff
34: ff ff ff ff
38: ff ff ff ff
3c: ff ff ff ff

Yes I am using a 64-bit kernel. The motherboard this chip is built on is
an nforce3 250 board so as far as I know they are all 64 bit systems.
Maybe some one else has a 32bit kernel they can test it on but I do not.

----------------------------------------------------------------------
 cltien - 10-16-2004 00:33 CEST 
----------------------------------------------------------------------
Why increase I/O port address by 0x100? Is the port range assigned by BIOS
not working? Is this case for AMD 64-bit (and nForce3) system only?

ChenLi Tien
C-Media Inc.

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                       
10-14-04 12:03 tiwai          File Added: cmipci-address.diff                    
10-14-04 16:05 patrick        Bugnote Added: 0002151                       
10-14-04 16:19 tiwai          Bugnote Added: 0002152                       
10-14-04 23:57 patrick        Bugnote Added: 0002161                       
10-16-04 00:33 cltien         Bugnote Added: 0002177                       
======================================================================


-------------------------------------------------------
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

^ permalink raw reply	[flat|nested] 28+ messages in thread

* [ALSA - driver 0000370]: CMedia 8768 Support
@ 2004-10-16  5:32 bugtrack
  0 siblings, 0 replies; 28+ messages in thread
From: bugtrack @ 2004-10-16  5:32 UTC (permalink / raw)
  To: alsa-devel


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-16-2004 07:32 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).

----------------------------------------------------------------------
 patrick - 10-14-2004 16:05 CEST 
----------------------------------------------------------------------
I gave the patch a try just now and I can't seem to produce any different
results. I only had a moment to poke at it though since I am off to work
now.

Maybe some one else will have more luck with it?

Thank you for doing all of this by the way!

----------------------------------------------------------------------
 tiwai - 10-14-2004 16:19 CEST 
----------------------------------------------------------------------
Did you check /proc/asound/card0/cmipci?  Now it should address d400.

BTW, do you have a 32bit system on it?  It might be a problem of
64bit kernel.

----------------------------------------------------------------------
 patrick - 10-14-2004 23:57 CEST 
----------------------------------------------------------------------
Yeah, it seems to be:

C-Media PCI CMI8738-MC6 (model 39) at 0xd400, irq 12

00: ff ff ff ff
04: ff ff ff ff
08: ff ff ff ff
0c: ff ff ff ff
10: ff ff ff ff
14: ff ff ff ff
18: ff ff ff ff
1c: ff ff ff ff
20: ff ff ff ff
24: ff ff ff ff
28: ff ff ff ff
2c: ff ff ff ff
30: ff ff ff ff
34: ff ff ff ff
38: ff ff ff ff
3c: ff ff ff ff

Yes I am using a 64-bit kernel. The motherboard this chip is built on is
an nforce3 250 board so as far as I know they are all 64 bit systems.
Maybe some one else has a 32bit kernel they can test it on but I do not.

----------------------------------------------------------------------
 cltien - 10-16-2004 00:33 CEST 
----------------------------------------------------------------------
Why increase I/O port address by 0x100? Is the port range assigned by BIOS
not working? Is this case for AMD 64-bit (and nForce3) system only?

ChenLi Tien
C-Media Inc.

----------------------------------------------------------------------
 robg - 10-16-2004 07:32 CEST 
----------------------------------------------------------------------
I have been doing some additional testing and I think cltien is right.

I have rebuilt my system to run a 32 bit kernel (vanilla 2.6.7) on the
EQ3801 and I get the same problems.  So it is not a 64 bit kernel issue. 
I also installed an es1371 soundcard and it works properly so basic alsa
is ok.

I added a printk to snd_cmipci_proc_read:

printk(KERN_INFO "cmipci: proc read iobase=0x%lx\n", cm->iobase);

And dmesg shows:

cmipci: proc_read iobase=0xd200

And lspci -xvv shows I/O ports at 0xd200 so offset is not the problem.
But cat /proc/asound/card0/cmipci shows same as patrick posted with ff for
all register values.

There seems to be some success with 8768 PCI cards for current driver:
http://www.linuxquestions.org/questions/history/234279

So is it possible the Soltek EQ3801/nforce3 needs additional
initialization?
Anything else I can investigate?

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                       
10-14-04 12:03 tiwai          File Added: cmipci-address.diff                    
10-14-04 16:05 patrick        Bugnote Added: 0002151                       
10-14-04 16:19 tiwai          Bugnote Added: 0002152                       
10-14-04 23:57 patrick        Bugnote Added: 0002161                       
10-16-04 00:33 cltien         Bugnote Added: 0002177                       
10-16-04 07:32 robg           Bugnote Added: 0002184                       
======================================================================


-------------------------------------------------------
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

^ permalink raw reply	[flat|nested] 28+ messages in thread

* [ALSA - driver 0000370]: CMedia 8768 Support
@ 2004-10-18  9:32 bugtrack
  0 siblings, 0 replies; 28+ messages in thread
From: bugtrack @ 2004-10-18  9:32 UTC (permalink / raw)
  To: alsa-devel


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-18-2004 11:32 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).

----------------------------------------------------------------------
 patrick - 10-14-2004 16:05 CEST 
----------------------------------------------------------------------
I gave the patch a try just now and I can't seem to produce any different
results. I only had a moment to poke at it though since I am off to work
now.

Maybe some one else will have more luck with it?

Thank you for doing all of this by the way!

----------------------------------------------------------------------
 tiwai - 10-14-2004 16:19 CEST 
----------------------------------------------------------------------
Did you check /proc/asound/card0/cmipci?  Now it should address d400.

BTW, do you have a 32bit system on it?  It might be a problem of
64bit kernel.

----------------------------------------------------------------------
 patrick - 10-14-2004 23:57 CEST 
----------------------------------------------------------------------
Yeah, it seems to be:

C-Media PCI CMI8738-MC6 (model 39) at 0xd400, irq 12

00: ff ff ff ff
04: ff ff ff ff
08: ff ff ff ff
0c: ff ff ff ff
10: ff ff ff ff
14: ff ff ff ff
18: ff ff ff ff
1c: ff ff ff ff
20: ff ff ff ff
24: ff ff ff ff
28: ff ff ff ff
2c: ff ff ff ff
30: ff ff ff ff
34: ff ff ff ff
38: ff ff ff ff
3c: ff ff ff ff

Yes I am using a 64-bit kernel. The motherboard this chip is built on is
an nforce3 250 board so as far as I know they are all 64 bit systems.
Maybe some one else has a 32bit kernel they can test it on but I do not.

----------------------------------------------------------------------
 cltien - 10-16-2004 00:33 CEST 
----------------------------------------------------------------------
Why increase I/O port address by 0x100? Is the port range assigned by BIOS
not working? Is this case for AMD 64-bit (and nForce3) system only?

ChenLi Tien
C-Media Inc.

----------------------------------------------------------------------
 robg - 10-16-2004 07:32 CEST 
----------------------------------------------------------------------
I have been doing some additional testing and I think cltien is right.

I have rebuilt my system to run a 32 bit kernel (vanilla 2.6.7) on the
EQ3801 and I get the same problems.  So it is not a 64 bit kernel issue. 
I also installed an es1371 soundcard and it works properly so basic alsa
is ok.

I added a printk to snd_cmipci_proc_read:

printk(KERN_INFO "cmipci: proc read iobase=0x%lx\n", cm->iobase);

And dmesg shows:

cmipci: proc_read iobase=0xd200

And lspci -xvv shows I/O ports at 0xd200 so offset is not the problem.
But cat /proc/asound/card0/cmipci shows same as patrick posted with ff for
all register values.

There seems to be some success with 8768 PCI cards for current driver:
http://www.linuxquestions.org/questions/history/234279

So is it possible the Soltek EQ3801/nforce3 needs additional
initialization?
Anything else I can investigate?

----------------------------------------------------------------------
 tiwai - 10-18-2004 11:32 CEST 
----------------------------------------------------------------------
The offset 0x100 was just for testing because the value of BIOS setting
looks different from the default value in the spec.

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                       
10-14-04 12:03 tiwai          File Added: cmipci-address.diff                    
10-14-04 16:05 patrick        Bugnote Added: 0002151                       
10-14-04 16:19 tiwai          Bugnote Added: 0002152                       
10-14-04 23:57 patrick        Bugnote Added: 0002161                       
10-16-04 00:33 cltien         Bugnote Added: 0002177                       
10-16-04 07:32 robg           Bugnote Added: 0002184                       
10-17-04 05:47 ehrenkranz     Bug Monitored: ehrenkranz                    
10-18-04 11:32 tiwai          Bugnote Added: 0002194                       
======================================================================


-------------------------------------------------------
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

^ permalink raw reply	[flat|nested] 28+ messages in thread

* [ALSA - driver 0000370]: CMedia 8768 Support
@ 2004-10-18 21:00 bugtrack
  0 siblings, 0 replies; 28+ messages in thread
From: bugtrack @ 2004-10-18 21:00 UTC (permalink / raw)
  To: alsa-devel


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-18-2004 23:00 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).

----------------------------------------------------------------------
 patrick - 10-14-2004 16:05 CEST 
----------------------------------------------------------------------
I gave the patch a try just now and I can't seem to produce any different
results. I only had a moment to poke at it though since I am off to work
now.

Maybe some one else will have more luck with it?

Thank you for doing all of this by the way!

----------------------------------------------------------------------
 tiwai - 10-14-2004 16:19 CEST 
----------------------------------------------------------------------
Did you check /proc/asound/card0/cmipci?  Now it should address d400.

BTW, do you have a 32bit system on it?  It might be a problem of
64bit kernel.

----------------------------------------------------------------------
 patrick - 10-14-2004 23:57 CEST 
----------------------------------------------------------------------
Yeah, it seems to be:

C-Media PCI CMI8738-MC6 (model 39) at 0xd400, irq 12

00: ff ff ff ff
04: ff ff ff ff
08: ff ff ff ff
0c: ff ff ff ff
10: ff ff ff ff
14: ff ff ff ff
18: ff ff ff ff
1c: ff ff ff ff
20: ff ff ff ff
24: ff ff ff ff
28: ff ff ff ff
2c: ff ff ff ff
30: ff ff ff ff
34: ff ff ff ff
38: ff ff ff ff
3c: ff ff ff ff

Yes I am using a 64-bit kernel. The motherboard this chip is built on is
an nforce3 250 board so as far as I know they are all 64 bit systems.
Maybe some one else has a 32bit kernel they can test it on but I do not.

----------------------------------------------------------------------
 cltien - 10-16-2004 00:33 CEST 
----------------------------------------------------------------------
Why increase I/O port address by 0x100? Is the port range assigned by BIOS
not working? Is this case for AMD 64-bit (and nForce3) system only?

ChenLi Tien
C-Media Inc.

----------------------------------------------------------------------
 robg - 10-16-2004 07:32 CEST 
----------------------------------------------------------------------
I have been doing some additional testing and I think cltien is right.

I have rebuilt my system to run a 32 bit kernel (vanilla 2.6.7) on the
EQ3801 and I get the same problems.  So it is not a 64 bit kernel issue. 
I also installed an es1371 soundcard and it works properly so basic alsa
is ok.

I added a printk to snd_cmipci_proc_read:

printk(KERN_INFO "cmipci: proc read iobase=0x%lx\n", cm->iobase);

And dmesg shows:

cmipci: proc_read iobase=0xd200

And lspci -xvv shows I/O ports at 0xd200 so offset is not the problem.
But cat /proc/asound/card0/cmipci shows same as patrick posted with ff for
all register values.

There seems to be some success with 8768 PCI cards for current driver:
http://www.linuxquestions.org/questions/history/234279

So is it possible the Soltek EQ3801/nforce3 needs additional
initialization?
Anything else I can investigate?

----------------------------------------------------------------------
 tiwai - 10-18-2004 11:32 CEST 
----------------------------------------------------------------------
The offset 0x100 was just for testing because the value of BIOS setting
looks different from the default value in the spec.

----------------------------------------------------------------------
 cltien - 10-18-2004 23:00 CEST 
----------------------------------------------------------------------
The 0xd400 is just power-up value for PCI configuration, the BIOS can
change it when booting. Use the value returned in any case.

The problem looks like either I/O enabled or Bus Master Enabled not set in
PCI configuration, but the lspci output shown they are set. I am afraid
something wrong with nForce3 with Linux kernel.

Can you add pci_set_master() in the chip initialization procedure?

Regards,
ChenLi Tien

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                       
10-14-04 12:03 tiwai          File Added: cmipci-address.diff                    
10-14-04 16:05 patrick        Bugnote Added: 0002151                       
10-14-04 16:19 tiwai          Bugnote Added: 0002152                       
10-14-04 23:57 patrick        Bugnote Added: 0002161                       
10-16-04 00:33 cltien         Bugnote Added: 0002177                       
10-16-04 07:32 robg           Bugnote Added: 0002184                       
10-17-04 05:47 ehrenkranz     Bug Monitored: ehrenkranz                    
10-18-04 11:32 tiwai          Bugnote Added: 0002194                       
10-18-04 23:00 cltien         Bugnote Added: 0002199                       
======================================================================


-------------------------------------------------------
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

^ permalink raw reply	[flat|nested] 28+ messages in thread

* [ALSA - driver 0000370]: CMedia 8768 Support
@ 2004-10-19  3:35 bugtrack
  0 siblings, 0 replies; 28+ messages in thread
From: bugtrack @ 2004-10-19  3:35 UTC (permalink / raw)
  To: alsa-devel


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-19-2004 05:35 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).

----------------------------------------------------------------------
 patrick - 10-14-2004 16:05 CEST 
----------------------------------------------------------------------
I gave the patch a try just now and I can't seem to produce any different
results. I only had a moment to poke at it though since I am off to work
now.

Maybe some one else will have more luck with it?

Thank you for doing all of this by the way!

----------------------------------------------------------------------
 tiwai - 10-14-2004 16:19 CEST 
----------------------------------------------------------------------
Did you check /proc/asound/card0/cmipci?  Now it should address d400.

BTW, do you have a 32bit system on it?  It might be a problem of
64bit kernel.

----------------------------------------------------------------------
 patrick - 10-14-2004 23:57 CEST 
----------------------------------------------------------------------
Yeah, it seems to be:

C-Media PCI CMI8738-MC6 (model 39) at 0xd400, irq 12

00: ff ff ff ff
04: ff ff ff ff
08: ff ff ff ff
0c: ff ff ff ff
10: ff ff ff ff
14: ff ff ff ff
18: ff ff ff ff
1c: ff ff ff ff
20: ff ff ff ff
24: ff ff ff ff
28: ff ff ff ff
2c: ff ff ff ff
30: ff ff ff ff
34: ff ff ff ff
38: ff ff ff ff
3c: ff ff ff ff

Yes I am using a 64-bit kernel. The motherboard this chip is built on is
an nforce3 250 board so as far as I know they are all 64 bit systems.
Maybe some one else has a 32bit kernel they can test it on but I do not.

----------------------------------------------------------------------
 cltien - 10-16-2004 00:33 CEST 
----------------------------------------------------------------------
Why increase I/O port address by 0x100? Is the port range assigned by BIOS
not working? Is this case for AMD 64-bit (and nForce3) system only?

ChenLi Tien
C-Media Inc.

----------------------------------------------------------------------
 robg - 10-16-2004 07:32 CEST 
----------------------------------------------------------------------
I have been doing some additional testing and I think cltien is right.

I have rebuilt my system to run a 32 bit kernel (vanilla 2.6.7) on the
EQ3801 and I get the same problems.  So it is not a 64 bit kernel issue. 
I also installed an es1371 soundcard and it works properly so basic alsa
is ok.

I added a printk to snd_cmipci_proc_read:

printk(KERN_INFO "cmipci: proc read iobase=0x%lx\n", cm->iobase);

And dmesg shows:

cmipci: proc_read iobase=0xd200

And lspci -xvv shows I/O ports at 0xd200 so offset is not the problem.
But cat /proc/asound/card0/cmipci shows same as patrick posted with ff for
all register values.

There seems to be some success with 8768 PCI cards for current driver:
http://www.linuxquestions.org/questions/history/234279

So is it possible the Soltek EQ3801/nforce3 needs additional
initialization?
Anything else I can investigate?

----------------------------------------------------------------------
 tiwai - 10-18-2004 11:32 CEST 
----------------------------------------------------------------------
The offset 0x100 was just for testing because the value of BIOS setting
looks different from the default value in the spec.

----------------------------------------------------------------------
 cltien - 10-18-2004 23:00 CEST 
----------------------------------------------------------------------
The 0xd400 is just power-up value for PCI configuration, the BIOS can
change it when booting. Use the value returned in any case.

The problem looks like either I/O enabled or Bus Master Enabled not set in
PCI configuration, but the lspci output shown they are set. I am afraid
something wrong with nForce3 with Linux kernel.

Can you add pci_set_master() in the chip initialization procedure?

Regards,
ChenLi Tien

----------------------------------------------------------------------
 robg - 10-19-2004 05:35 CEST 
----------------------------------------------------------------------
pci_set_master() already exists in snd_cmipci_create() and is set before
the call to query_chip().
Anything else to look for?
Anything we can ask the manufacturer (Soltek?) that may shed some light?

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                       
10-14-04 12:03 tiwai          File Added: cmipci-address.diff                    
10-14-04 16:05 patrick        Bugnote Added: 0002151                       
10-14-04 16:19 tiwai          Bugnote Added: 0002152                       
10-14-04 23:57 patrick        Bugnote Added: 0002161                       
10-16-04 00:33 cltien         Bugnote Added: 0002177                       
10-16-04 07:32 robg           Bugnote Added: 0002184                       
10-17-04 05:47 ehrenkranz     Bug Monitored: ehrenkranz                    
10-18-04 11:32 tiwai          Bugnote Added: 0002194                       
10-18-04 23:00 cltien         Bugnote Added: 0002199                       
10-19-04 05:35 robg           Bugnote Added: 0002202                       
======================================================================


-------------------------------------------------------
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

^ permalink raw reply	[flat|nested] 28+ messages in thread

* [ALSA - driver 0000370]: CMedia 8768 Support
@ 2004-11-22 11:11 bugtrack
  0 siblings, 0 replies; 28+ messages in thread
From: bugtrack @ 2004-11-22 11:11 UTC (permalink / raw)
  To: alsa-devel


A NOTE has been added to this issue.
======================================================================
<https://bugtrack.alsa-project.org/alsa-bug/view.php?id=370> 
======================================================================
Reported By:                drbobguy
Assigned To:                tiwai
======================================================================
Project:                    ALSA - driver
Issue 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:              11-22-2004 12:11 CET
======================================================================
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.
======================================================================

----------------------------------------------------------------------
 robg - 10-19-04 05:35 
----------------------------------------------------------------------
pci_set_master() already exists in snd_cmipci_create() and is set before
the call to query_chip().
Anything else to look for?
Anything we can ask the manufacturer (Soltek?) that may shed some light?

----------------------------------------------------------------------
 Los_Andros - 11-22-04 12:11 
----------------------------------------------------------------------
Hello there,
I also have installed a QBIC 3801 Barebone and also have the problem with
the CMEDIA 8768.
Same problems as mentioned above. Is there a way to get this soundchip
working?

Issue History
Date Modified  Username       Field                    Change              
======================================================================
07-07-04 04:59 drbobguy       New Issue                                    
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       Note Added: 0001390                          
07-27-04 05:26 robg           Note Added: 0001475                          
07-30-04 16:56 tiwai          Note Added: 0001493                          
07-31-04 02:46 drbobguy       File Added: CMI8768.pdf                      
07-31-04 02:46 drbobguy       Note Added: 0001508                          
07-31-04 06:10 robg           Note Added: 0001509                          
08-22-04 22:13 masanetz       Issue Monitored: masanetz                    
09-06-04 18:02 patrick        Issue Monitored: patrick                     
10-08-04 05:17 robg           Note 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          Note Added: 0002050                          
10-08-04 15:26 tiwai          Note Added: 0002053                          
10-08-04 15:36 tiwai          Note 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        Note Added: 0002061                          
10-09-04 09:30 patrick        Note Edited: 0002061                         
10-10-04 04:48 robg           Note Added: 0002064                          
10-10-04 04:57 robg           Note Added: 0002065                          
10-13-04 16:37 tiwai          Note Added: 0002126                          
10-13-04 16:37 tiwai          Note Added: 0002127                          
10-14-04 01:24 patrick        Note Added: 0002136                          
10-14-04 12:02 tiwai          Note Added: 0002139                          
10-14-04 12:03 tiwai          File Added: cmipci-address.diff                   

10-14-04 16:05 patrick        Note Added: 0002151                          
10-14-04 16:19 tiwai          Note Added: 0002152                          
10-14-04 23:57 patrick        Note Added: 0002161                          
10-16-04 00:33 cltien         Note Added: 0002177                          
10-16-04 07:32 robg           Note Added: 0002184                          
10-17-04 05:47 ehrenkranz     Issue Monitored: ehrenkranz                    
10-18-04 11:32 tiwai          Note Added: 0002194                          
10-18-04 23:00 cltien         Note Added: 0002199                          
10-19-04 05:35 robg           Note Added: 0002202                          
11-22-04 12:11 Los_Andros     Note Added: 0002495                          
======================================================================




-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/

^ permalink raw reply	[flat|nested] 28+ messages in thread

* [ALSA - driver 0000370]: CMedia 8768 Support
@ 2004-12-25 16:13 bugtrack
  0 siblings, 0 replies; 28+ messages in thread
From: bugtrack @ 2004-12-25 16:13 UTC (permalink / raw)
  To: alsa-devel


A NOTE has been added to this issue.
======================================================================
<https://bugtrack.alsa-project.org/alsa-bug/view.php?id=370> 
======================================================================
Reported By:                drbobguy
Assigned To:                tiwai
======================================================================
Project:                    ALSA - driver
Issue 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:              12-25-2004 17:13 CET
======================================================================
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.
======================================================================

----------------------------------------------------------------------
 Los_Andros - 11-22-04 12:12 
----------------------------------------------------------------------
Hello there,
I also have installed a QBIC 3801 Barebone and also have the problem with
the CMEDIA 8768.
Same problems as mentioned above. Is there a way to get this soundchip
working?
Or how could I help supporting it, I'm no programmer but perhaps I can
help another way

edited on: 11-22-04 12:12

----------------------------------------------------------------------
 cltien - 12-25-04 17:13 
----------------------------------------------------------------------
I tested this board (Soltek EQ3801) and found that the on-board codec
cannot be accessed in DOS. It cannot betested by our DOS diagonal program
, but a add-on card can.

I guess that the BIOS doesn't initialize the on-board codec correctly.
Does ayone has this kind of problem with another mother board?

ChenLi Tien

Issue History
Date Modified  Username       Field                    Change              
======================================================================
07-07-04 04:59 drbobguy       New Issue                                    
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       Note Added: 0001390                          
07-27-04 05:26 robg           Note Added: 0001475                          
07-30-04 16:56 tiwai          Note Added: 0001493                          
07-31-04 02:46 drbobguy       File Added: CMI8768.pdf                      
07-31-04 02:46 drbobguy       Note Added: 0001508                          
07-31-04 06:10 robg           Note Added: 0001509                          
08-22-04 22:13 masanetz       Issue Monitored: masanetz                    
09-06-04 18:02 patrick        Issue Monitored: patrick                     
10-08-04 05:17 robg           Note 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          Note Added: 0002050                          
10-08-04 15:26 tiwai          Note Added: 0002053                          
10-08-04 15:36 tiwai          Note 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        Note Added: 0002061                          
10-09-04 09:30 patrick        Note Edited: 0002061                         
10-10-04 04:48 robg           Note Added: 0002064                          
10-10-04 04:57 robg           Note Added: 0002065                          
10-13-04 16:37 tiwai          Note Added: 0002126                          
10-13-04 16:37 tiwai          Note Added: 0002127                          
10-14-04 01:24 patrick        Note Added: 0002136                          
10-14-04 12:02 tiwai          Note Added: 0002139                          
10-14-04 12:03 tiwai          File Added: cmipci-address.diff                   

10-14-04 16:05 patrick        Note Added: 0002151                          
10-14-04 16:19 tiwai          Note Added: 0002152                          
10-14-04 23:57 patrick        Note Added: 0002161                          
10-16-04 00:33 cltien         Note Added: 0002177                          
10-16-04 07:32 robg           Note Added: 0002184                          
10-17-04 05:47 ehrenkranz     Issue Monitored: ehrenkranz                    
10-18-04 11:32 tiwai          Note Added: 0002194                          
10-18-04 23:00 cltien         Note Added: 0002199                          
10-19-04 05:35 robg           Note Added: 0002202                          
11-22-04 12:11 Los_Andros     Note Added: 0002495                          
11-22-04 12:12 Los_Andros     Note Edited: 0002495                         
12-25-04 17:13 cltien         Note Added: 0002933                          
======================================================================




-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/

^ permalink raw reply	[flat|nested] 28+ messages in thread

* [ALSA - driver 0000370]: CMedia 8768 Support
@ 2005-01-04  4:12 bugtrack
  0 siblings, 0 replies; 28+ messages in thread
From: bugtrack @ 2005-01-04  4:12 UTC (permalink / raw)
  To: alsa-devel


A NOTE has been added to this issue.
======================================================================
<https://bugtrack.alsa-project.org/alsa-bug/view.php?id=370> 
======================================================================
Reported By:                drbobguy
Assigned To:                tiwai
======================================================================
Project:                    ALSA - driver
Issue 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:              01-04-2005 05:12 CET
======================================================================
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.
======================================================================

----------------------------------------------------------------------
 cltien - 12-25-04 17:13 
----------------------------------------------------------------------
I tested this board (Soltek EQ3801) and found that the on-board codec
cannot be accessed in DOS. It cannot betested by our DOS diagonal program
, but a add-on card can.

I guess that the BIOS doesn't initialize the on-board codec correctly.
Does ayone has this kind of problem with another mother board?

ChenLi Tien

----------------------------------------------------------------------
 robg - 01-04-05 05:12 
----------------------------------------------------------------------
>From a thread on sfftech:
http://forums.sudhian.com/messageview.aspx?catid=102&threadid=70188&enterthread=y

The thread brought up cltien's note here about the codec not working. The
response from Soltek:

Actually some days ago, one customer reported to us that onboard audio of
EQ3801 does not work under "Fedora Core 3 Linux". So now our BIOS engineer
and C-Media support are working on this issue. If there is any progress, I
will let you know.

Best regards,
LydiAtSoltek

Issue History
Date Modified  Username       Field                    Change              
======================================================================
07-07-04 04:59 drbobguy       New Issue                                    
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       Note Added: 0001390                          
07-27-04 05:26 robg           Note Added: 0001475                          
07-30-04 16:56 tiwai          Note Added: 0001493                          
07-31-04 02:46 drbobguy       File Added: CMI8768.pdf                      
07-31-04 02:46 drbobguy       Note Added: 0001508                          
07-31-04 06:10 robg           Note Added: 0001509                          
08-22-04 22:13 masanetz       Issue Monitored: masanetz                    
09-06-04 18:02 patrick        Issue Monitored: patrick                     
10-08-04 05:17 robg           Note 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          Note Added: 0002050                          
10-08-04 15:26 tiwai          Note Added: 0002053                          
10-08-04 15:36 tiwai          Note 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        Note Added: 0002061                          
10-09-04 09:30 patrick        Note Edited: 0002061                         
10-10-04 04:48 robg           Note Added: 0002064                          
10-10-04 04:57 robg           Note Added: 0002065                          
10-13-04 16:37 tiwai          Note Added: 0002126                          
10-13-04 16:37 tiwai          Note Added: 0002127                          
10-14-04 01:24 patrick        Note Added: 0002136                          
10-14-04 12:02 tiwai          Note Added: 0002139                          
10-14-04 12:03 tiwai          File Added: cmipci-address.diff                   

10-14-04 16:05 patrick        Note Added: 0002151                          
10-14-04 16:19 tiwai          Note Added: 0002152                          
10-14-04 23:57 patrick        Note Added: 0002161                          
10-16-04 00:33 cltien         Note Added: 0002177                          
10-16-04 07:32 robg           Note Added: 0002184                          
10-17-04 05:47 ehrenkranz     Issue Monitored: ehrenkranz                    
10-18-04 11:32 tiwai          Note Added: 0002194                          
10-18-04 23:00 cltien         Note Added: 0002199                          
10-19-04 05:35 robg           Note Added: 0002202                          
11-22-04 12:11 Los_Andros     Note Added: 0002495                          
11-22-04 12:12 Los_Andros     Note Edited: 0002495                         
12-25-04 17:13 cltien         Note Added: 0002933                          
01-04-05 05:12 robg           Note Added: 0003078                          
======================================================================




-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt

^ permalink raw reply	[flat|nested] 28+ messages in thread

* [ALSA - driver 0000370]: CMedia 8768 Support
@ 2005-04-25  9:42 bugtrack
  0 siblings, 0 replies; 28+ messages in thread
From: bugtrack @ 2005-04-25  9:42 UTC (permalink / raw)
  To: alsa-devel


A NOTE has been added to this issue.
======================================================================
<https://bugtrack.alsa-project.org/alsa-bug/view.php?id=370> 
======================================================================
Reported By:                drbobguy
Assigned To:                tiwai
======================================================================
Project:                    ALSA - driver
Issue 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:              04-25-2005 11:42 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.
======================================================================

----------------------------------------------------------------------
 robg - 01-04-05 05:12 
----------------------------------------------------------------------
>From a thread on sfftech:
http://forums.sudhian.com/messageview.aspx?catid=102&threadid=70188&enterthread=y

The thread brought up cltien's note here about the codec not working. The
response from Soltek:

Actually some days ago, one customer reported to us that onboard audio of
EQ3801 does not work under "Fedora Core 3 Linux". So now our BIOS engineer
and C-Media support are working on this issue. If there is any progress, I
will let you know.

Best regards,
LydiAtSoltek

----------------------------------------------------------------------
 Los_Andros - 04-25-05 11:42 
----------------------------------------------------------------------
Good news,
There's a  new beta of the soltek bios availible,
just send Lydia an email and she will send you the BIOS beta for testing.
Here's the Link to the Forum and Lydias EMail:

http://forums.sudhian.com/messageview.aspx?catid=102&threadid=70188&STARTPAGE=2&FTVAR_FORUMVIEWTMP=Linear

lydia@soltek.com.tw

Issue History
Date Modified  Username       Field                    Change              
======================================================================
07-07-04 04:59 drbobguy       New Issue                                    
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       Note Added: 0001390                          
07-27-04 05:26 robg           Note Added: 0001475                          
07-30-04 16:56 tiwai          Note Added: 0001493                          
07-31-04 02:46 drbobguy       File Added: CMI8768.pdf                      
07-31-04 02:46 drbobguy       Note Added: 0001508                          
07-31-04 06:10 robg           Note Added: 0001509                          
08-22-04 22:13 masanetz       Issue Monitored: masanetz                    
09-06-04 18:02 patrick        Issue Monitored: patrick                     
10-08-04 05:17 robg           Note 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          Note Added: 0002050                          
10-08-04 15:26 tiwai          Note Added: 0002053                          
10-08-04 15:36 tiwai          Note 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        Note Added: 0002061                          
10-09-04 09:30 patrick        Note Edited: 0002061                         
10-10-04 04:48 robg           Note Added: 0002064                          
10-10-04 04:57 robg           Note Added: 0002065                          
10-13-04 16:37 tiwai          Note Added: 0002126                          
10-13-04 16:37 tiwai          Note Added: 0002127                          
10-14-04 01:24 patrick        Note Added: 0002136                          
10-14-04 12:02 tiwai          Note Added: 0002139                          
10-14-04 12:03 tiwai          File Added: cmipci-address.diff                   

10-14-04 16:05 patrick        Note Added: 0002151                          
10-14-04 16:19 tiwai          Note Added: 0002152                          
10-14-04 23:57 patrick        Note Added: 0002161                          
10-16-04 00:33 cltien         Note Added: 0002177                          
10-16-04 07:32 robg           Note Added: 0002184                          
10-17-04 05:47 ehrenkranz     Issue Monitored: ehrenkranz                    
10-18-04 11:32 tiwai          Note Added: 0002194                          
10-18-04 23:00 cltien         Note Added: 0002199                          
10-19-04 05:35 robg           Note Added: 0002202                          
11-22-04 12:11 Los_Andros     Note Added: 0002495                          
11-22-04 12:12 Los_Andros     Note Edited: 0002495                         
12-25-04 17:13 cltien         Note Added: 0002933                          
01-04-05 05:12 robg           Note Added: 0003078                          
01-11-05 12:49 henoux         Issue Monitored: henoux                      
01-11-05 13:18 henoux         Issue End Monitor: henoux                    
01-12-05 14:21 solus          Issue Monitored: solus                       
04-25-05 11:42 Los_Andros     Note Added: 0004576                          
======================================================================




-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click

^ permalink raw reply	[flat|nested] 28+ messages in thread

* [ALSA - driver 0000370]: CMedia 8768 Support
@ 2005-04-26  7:34 bugtrack
  0 siblings, 0 replies; 28+ messages in thread
From: bugtrack @ 2005-04-26  7:34 UTC (permalink / raw)
  To: alsa-devel


A NOTE has been added to this issue.
======================================================================
<https://bugtrack.alsa-project.org/alsa-bug/view.php?id=370> 
======================================================================
Reported By:                drbobguy
Assigned To:                tiwai
======================================================================
Project:                    ALSA - driver
Issue 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:              04-26-2005 09:34 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.
======================================================================

----------------------------------------------------------------------
 Los_Andros - 04-25-05 11:42 
----------------------------------------------------------------------
Good news,
There's a  new beta of the soltek bios availible,
just send Lydia an email and she will send you the BIOS beta for testing.
Here's the Link to the Forum and Lydias EMail:

http://forums.sudhian.com/messageview.aspx?catid=102&threadid=70188&STARTPAGE=2&FTVAR_FORUMVIEWTMP=Linear

lydia@soltek.com.tw

----------------------------------------------------------------------
 Los_Andros - 04-26-05 09:34 
----------------------------------------------------------------------
Ok, the BIOS engineer is has done a good job.
The BIOS works for me and I can use alsa with the cmedia soundchip.
After flashing the beta bios, I get a CRC Error on booting and have to
press F1 to continue, but everything works after that, so the Soltek
people are on a good way.

Issue History
Date Modified  Username       Field                    Change              
======================================================================
07-07-04 04:59 drbobguy       New Issue                                    
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       Note Added: 0001390                          
07-27-04 05:26 robg           Note Added: 0001475                          
07-30-04 16:56 tiwai          Note Added: 0001493                          
07-31-04 02:46 drbobguy       File Added: CMI8768.pdf                      
07-31-04 02:46 drbobguy       Note Added: 0001508                          
07-31-04 06:10 robg           Note Added: 0001509                          
08-22-04 22:13 masanetz       Issue Monitored: masanetz                    
09-06-04 18:02 patrick        Issue Monitored: patrick                     
10-08-04 05:17 robg           Note 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          Note Added: 0002050                          
10-08-04 15:26 tiwai          Note Added: 0002053                          
10-08-04 15:36 tiwai          Note 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        Note Added: 0002061                          
10-09-04 09:30 patrick        Note Edited: 0002061                         
10-10-04 04:48 robg           Note Added: 0002064                          
10-10-04 04:57 robg           Note Added: 0002065                          
10-13-04 16:37 tiwai          Note Added: 0002126                          
10-13-04 16:37 tiwai          Note Added: 0002127                          
10-14-04 01:24 patrick        Note Added: 0002136                          
10-14-04 12:02 tiwai          Note Added: 0002139                          
10-14-04 12:03 tiwai          File Added: cmipci-address.diff                   

10-14-04 16:05 patrick        Note Added: 0002151                          
10-14-04 16:19 tiwai          Note Added: 0002152                          
10-14-04 23:57 patrick        Note Added: 0002161                          
10-16-04 00:33 cltien         Note Added: 0002177                          
10-16-04 07:32 robg           Note Added: 0002184                          
10-17-04 05:47 ehrenkranz     Issue Monitored: ehrenkranz                    
10-18-04 11:32 tiwai          Note Added: 0002194                          
10-18-04 23:00 cltien         Note Added: 0002199                          
10-19-04 05:35 robg           Note Added: 0002202                          
11-22-04 12:11 Los_Andros     Note Added: 0002495                          
11-22-04 12:12 Los_Andros     Note Edited: 0002495                         
12-25-04 17:13 cltien         Note Added: 0002933                          
01-04-05 05:12 robg           Note Added: 0003078                          
01-11-05 12:49 henoux         Issue Monitored: henoux                      
01-11-05 13:18 henoux         Issue End Monitor: henoux                    
01-12-05 14:21 solus          Issue Monitored: solus                       
04-25-05 11:42 Los_Andros     Note Added: 0004576                          
04-26-05 09:34 Los_Andros     Note Added: 0004577                          
======================================================================




-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click

^ permalink raw reply	[flat|nested] 28+ messages in thread

* [ALSA - driver 0000370]: CMedia 8768 Support
@ 2005-05-24 10:36 bugtrack
  0 siblings, 0 replies; 28+ messages in thread
From: bugtrack @ 2005-05-24 10:36 UTC (permalink / raw)
  To: alsa-devel


The following issue has been RESOLVED.
======================================================================
<https://bugtrack.alsa-project.org/alsa-bug/view.php?id=370> 
======================================================================
Reported By:                drbobguy
Assigned To:                tiwai
======================================================================
Project:                    ALSA - driver
Issue ID:                   370
Category:                   PCI - cmipci
Reproducibility:            always
Severity:                   feature
Priority:                   normal
Status:                     resolved
Distribution:               Gentoo
Kernel Version:             2.6.7
Resolution:                 fixed
Fixed in Version:           
======================================================================
Date Submitted:             07-07-2004 04:59 CEST
Last Modified:              05-24-2005 12:36 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.
======================================================================

----------------------------------------------------------------------
 henoux - 05-09-05 12:08 
----------------------------------------------------------------------
Sound is working fine for me too with the beta bios without error message.
I've tested it on Fedora Core 3 x86_64 and Suse 9.2 x86_64. With FC3, the
C-Media PCI CMI8738 is automatically discovered and the snd-cmipci driver
loaded by alsasound. Yast from Suse found a CMI8738/C3DX audio device and
load the cmipci driver with alsasound. Everything seems to work fine.
In order to flash without floppy drive, i used a bootable cd from
http://www.nu2.nu/bootcd and just add the bios bin file and the flash
utility. It worked prefectly. 
So, it is a good new indeed.



----------------------------------------------------------------------
 tiwai - 05-24-05 12:36 
----------------------------------------------------------------------
OK, thanks for confirmatoin.
Let's close this long-standing issue now.

Issue History
Date Modified  Username       Field                    Change              
======================================================================
07-07-04 04:59 drbobguy       New Issue                                    
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       Note Added: 0001390                          
07-27-04 05:26 robg           Note Added: 0001475                          
07-30-04 16:56 tiwai          Note Added: 0001493                          
07-31-04 02:46 drbobguy       File Added: CMI8768.pdf                      
07-31-04 02:46 drbobguy       Note Added: 0001508                          
07-31-04 06:10 robg           Note Added: 0001509                          
08-22-04 22:13 masanetz       Issue Monitored: masanetz                    
09-06-04 18:02 patrick        Issue Monitored: patrick                     
10-08-04 05:17 robg           Note 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          Note Added: 0002050                          
10-08-04 15:26 tiwai          Note Added: 0002053                          
10-08-04 15:36 tiwai          Note 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        Note Added: 0002061                          
10-09-04 09:30 patrick        Note Edited: 0002061                         
10-10-04 04:48 robg           Note Added: 0002064                          
10-10-04 04:57 robg           Note Added: 0002065                          
10-13-04 16:37 tiwai          Note Added: 0002126                          
10-13-04 16:37 tiwai          Note Added: 0002127                          
10-14-04 01:24 patrick        Note Added: 0002136                          
10-14-04 12:02 tiwai          Note Added: 0002139                          
10-14-04 12:03 tiwai          File Added: cmipci-address.diff                   

10-14-04 16:05 patrick        Note Added: 0002151                          
10-14-04 16:19 tiwai          Note Added: 0002152                          
10-14-04 23:57 patrick        Note Added: 0002161                          
10-16-04 00:33 cltien         Note Added: 0002177                          
10-16-04 07:32 robg           Note Added: 0002184                          
10-17-04 05:47 ehrenkranz     Issue Monitored: ehrenkranz                    
10-18-04 11:32 tiwai          Note Added: 0002194                          
10-18-04 23:00 cltien         Note Added: 0002199                          
10-19-04 05:35 robg           Note Added: 0002202                          
11-22-04 12:11 Los_Andros     Note Added: 0002495                          
11-22-04 12:12 Los_Andros     Note Edited: 0002495                         
12-25-04 17:13 cltien         Note Added: 0002933                          
01-04-05 05:12 robg           Note Added: 0003078                          
01-11-05 12:49 henoux         Issue Monitored: henoux                      
01-11-05 13:18 henoux         Issue End Monitor: henoux                    
01-12-05 14:21 solus          Issue Monitored: solus                       
04-25-05 11:42 Los_Andros     Note Added: 0004576                          
04-26-05 09:34 Los_Andros     Note Added: 0004577                          
05-01-05 15:00 henoux         Note Added: 0004581                          
05-01-05 15:01 henoux         Note Edited: 0004581                         
05-01-05 15:04 henoux         Note Edited: 0004581                         
05-09-05 12:08 henoux         Note Edited: 0004581                         
05-20-05 10:38 masanetz       Issue End Monitor: masanetz                    
05-24-05 12:36 tiwai          Status                   assigned => resolved
05-24-05 12:36 tiwai          Resolution               open => fixed       
05-24-05 12:36 tiwai          Note Added: 0004723                          
======================================================================




-------------------------------------------------------
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_id=7412&alloc_id=16344&op=click

^ permalink raw reply	[flat|nested] 28+ messages in thread

* [ALSA - driver 0000370]: CMedia 8768 Support
@ 2005-08-09 11:44 bugtrack
  0 siblings, 0 replies; 28+ messages in thread
From: bugtrack @ 2005-08-09 11:44 UTC (permalink / raw)
  To: alsa-devel


The following issue has been CLOSED
======================================================================
<https://bugtrack.alsa-project.org/alsa-bug/view.php?id=370> 
======================================================================
Reported By:                drbobguy
Assigned To:                tiwai
======================================================================
Project:                    ALSA - driver
Issue ID:                   370
Category:                   PCI - cmipci
Reproducibility:            always
Severity:                   feature
Priority:                   normal
Status:                     closed
Distribution:               Gentoo
Kernel Version:             2.6.7
Resolution:                 fixed
Fixed in Version:           
======================================================================
Date Submitted:             07-07-2004 04:59 CEST
Last Modified:              08-09-2005 13:44 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.
======================================================================

----------------------------------------------------------------------
 henoux - 05-09-05 12:08 
----------------------------------------------------------------------
Sound is working fine for me too with the beta bios without error message.
I've tested it on Fedora Core 3 x86_64 and Suse 9.2 x86_64. With FC3, the
C-Media PCI CMI8738 is automatically discovered and the snd-cmipci driver
loaded by alsasound. Yast from Suse found a CMI8738/C3DX audio device and
load the cmipci driver with alsasound. Everything seems to work fine.
In order to flash without floppy drive, i used a bootable cd from
http://www.nu2.nu/bootcd and just add the bios bin file and the flash
utility. It worked prefectly. 
So, it is a good new indeed.



----------------------------------------------------------------------
 tiwai - 05-24-05 12:36 
----------------------------------------------------------------------
OK, thanks for confirmatoin.
Let's close this long-standing issue now.

Issue History
Date Modified  Username       Field                    Change              
======================================================================
07-07-04 04:59 drbobguy       New Issue                                    
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       Note Added: 0001390                          
07-27-04 05:26 robg           Note Added: 0001475                          
07-30-04 16:56 tiwai          Note Added: 0001493                          
07-31-04 02:46 drbobguy       File Added: CMI8768.pdf                      
07-31-04 02:46 drbobguy       Note Added: 0001508                          
07-31-04 06:10 robg           Note Added: 0001509                          
08-22-04 22:13 masanetz       Issue Monitored: masanetz                    
09-06-04 18:02 patrick        Issue Monitored: patrick                     
10-08-04 05:17 robg           Note 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          Note Added: 0002050                          
10-08-04 15:26 tiwai          Note Added: 0002053                          
10-08-04 15:36 tiwai          Note 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        Note Added: 0002061                          
10-09-04 09:30 patrick        Note Edited: 0002061                         
10-10-04 04:48 robg           Note Added: 0002064                          
10-10-04 04:57 robg           Note Added: 0002065                          
10-13-04 16:37 tiwai          Note Added: 0002126                          
10-13-04 16:37 tiwai          Note Added: 0002127                          
10-14-04 01:24 patrick        Note Added: 0002136                          
10-14-04 12:02 tiwai          Note Added: 0002139                          
10-14-04 12:03 tiwai          File Added: cmipci-address.diff                   

10-14-04 16:05 patrick        Note Added: 0002151                          
10-14-04 16:19 tiwai          Note Added: 0002152                          
10-14-04 23:57 patrick        Note Added: 0002161                          
10-16-04 00:33 cltien         Note Added: 0002177                          
10-16-04 07:32 robg           Note Added: 0002184                          
10-17-04 05:47 ehrenkranz     Issue Monitored: ehrenkranz                    
10-18-04 11:32 tiwai          Note Added: 0002194                          
10-18-04 23:00 cltien         Note Added: 0002199                          
10-19-04 05:35 robg           Note Added: 0002202                          
11-22-04 12:11 Los_Andros     Note Added: 0002495                          
11-22-04 12:12 Los_Andros     Note Edited: 0002495                         
12-25-04 17:13 cltien         Note Added: 0002933                          
01-04-05 05:12 robg           Note Added: 0003078                          
01-11-05 12:49 henoux         Issue Monitored: henoux                      
01-11-05 13:18 henoux         Issue End Monitor: henoux                    
01-12-05 14:21 solus          Issue Monitored: solus                       
04-25-05 11:42 Los_Andros     Note Added: 0004576                          
04-26-05 09:34 Los_Andros     Note Added: 0004577                          
05-01-05 15:00 henoux         Note Added: 0004581                          
05-01-05 15:01 henoux         Note Edited: 0004581                         
05-01-05 15:04 henoux         Note Edited: 0004581                         
05-09-05 12:08 henoux         Note Edited: 0004581                         
05-20-05 10:38 masanetz       Issue End Monitor: masanetz                    
05-24-05 12:36 tiwai          Status                   assigned => resolved
05-24-05 12:36 tiwai          Resolution               open => fixed       
05-24-05 12:36 tiwai          Note Added: 0004723                          
08-09-05 13:44 perex          Status                   resolved => closed  
======================================================================




-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf

^ permalink raw reply	[flat|nested] 28+ messages in thread

end of thread, other threads:[~2005-08-09 11:44 UTC | newest]

Thread overview: 28+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-07-07  3:03 [ALSA - driver 0000370]: CMedia 8768 Support noreply
  -- strict thread matches above, loose matches on Subject: below --
2005-08-09 11:44 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-14 10:02 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  2:59 noreply

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.