Re: Mixer problem with cmipci

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, 2007-08-30 23:43:26 +0200, Jan-Benedict Glaw <jbglaw@xxxxxxxxxx> wrote:
> 
> Just out of interest, I ordered another, similar card (Ultron
> Octosound 7.1, lspci: "C-Media Electronics Inc CM8738 (rev 10)",
> /proc/asound/cards: "C-Media PCI CMI8738-MC8 (model 68)")
> 
> Plugged all in, fired up speaker-test, everything seems to work right
> out of the box.
> 
> Fired up an alsaplayer to play some FLAC. Switched on "Four Channel
> Mode" for a test, which nicely adds sound to the rear left/right
> outputs.
> 
> After the FLAC ended, I fired up speaker-test again (and of course
> switched off "Four Channel Mode".)  This time, it's different than
> before: front center/LFE, front left/right and side left/right are
> okay, but rear right/left are highly distorted.

Did this now:

  * Power-cycle
  * speaker-test
  * dump registers (1)
  * alsaplayer (simple stereo FLAC)
  * dump registers (2)
  * speaker-test
  * dump registers (3)

Everything that's important to speaker-test should be the same in (1)
and (3), I guess.  (Hand-crafted register disassembly at the end.)

(1):
00: 00 00 00 00
04: 10 e0 00 00
08: 0c 00 09 80
0c: 00 00 00 2b
10: 80 00 00 00
14: 00 80 00 80
18: a0 20 c0 08
1c: 00 00 00 00
20: 10 00 d8 00
24: 01 01 00 04
28: ff ff ff ff
2c: ff ff ff ff
30: 00 00 00 00
34: 00 00 00 00
38: 00 00 00 00
3c: 00 00 00 00

(2):
00: 00 00 00 00
04: 10 fc 00 00
08: 0f 00 09 00
0c: 00 00 00 2b
10: 80 00 00 00
14: 00 00 00 00
18: 20 a0 80 08
1c: 00 00 00 00
20: 10 00 d8 00
24: 01 01 00 04
28: ff ff ff ff
2c: ff ff ff ff
30: 00 00 00 00
34: 00 00 00 00
38: 00 00 00 00
3c: 00 00 00 00

(3):
00: 00 00 00 00
04: 10 fc 00 00
08: 0f 00 09 80
0c: 00 00 00 2b
10: 80 00 00 00
14: 00 80 00 80
18: a0 a0 c0 08
1c: 00 00 00 00
20: 10 00 d8 00
24: 01 01 00 04
28: ff ff ff ff
2c: ff ff ff ff
30: 00 00 00 00
34: 00 00 00 00
38: 00 00 00 00
3c: 00 00 00 00


Diff (1) -> (3):
--- alsa.post-speaker-test1     2007-08-31 10:19:26.000000000 +0200
+++ alsa.post-speaker-test2     2007-08-31 10:25:00.000000000 +0200
@@ -1,12 +1,12 @@
 C-Media PCI CMI8738-MC8 (model 68) at 0x1800, irq 19
 
 00: 00 00 00 00
-04: 10 e0 00 00
-08: 0c 00 09 80
+04: 10 fc 00 00
+08: 0f 00 09 80
 0c: 00 00 00 2b
 10: 80 00 00 00
 14: 00 80 00 80
-18: a0 20 c0 08
+18: a0 a0 c0 08
 1c: 00 00 00 00
 20: 10 00 d8 00
 24: 01 01 00 04

Register 0x04
~~~~~~~~~~~~~
Before:	0x07 << CM_ASFC_SHIFT  |  0x00 << CM_DSFC_SHIFT  |  CM_BREQ
After:	0x07 << CM_ASFC_SHIFT  |  0x07 << CM_DSFC_SHIFT  |  CM_BREQ

(DAC Sample Frequency changed)


Register 0x08
~~~~~~~~~~~~~
Before:	CM_CHB3D5C  |  CM_SPDIF_SELECT1  |  0x03 << CM_CH1FMT_MASK  |  0x00 << CM_CH0FMT_SHIFT
After:	CM_CHB3D5C  |  CM_SPDIF_SELECT1  |  0x03 << CM_CH1FMT_MASK  |  0x03 << CM_CH0FMT_SHIFT

(Ch0 Format changed)


Register 0x18
~~~~~~~~~~~~~
Before:	CM_TXVX  |  CM_FM_EN  |  CM_AC3EN2  | CM_VIDWPPRT  |                  CM_ENCENTER  |  CM_FLINKOFF
After:	CM_TXVX  |  CM_FM_EN  |  CM_AC3EN2  | CM_VIDWPPRT  | CM_SPDF_AC97  |  CM_ENCENTER  |  CM_FLINKOFF

(SPDIF/Out changed from 44.1kHz to 48kHz)


My guess is that the change to SPDIF/Out frequency and DAC Sample
Frequency are annoying at best, but irrelevant here. Am I probably
right that the changed ch0 format is the cause of the distortion?

MfG, JBG

-- 
      Jan-Benedict Glaw      jbglaw@xxxxxxxxxx              +49-172-7608481
Signature of:              Alles sollte so einfach wie möglich gemacht sein.
the second  :                          Aber nicht einfacher.  (Einstein)

Attachment: signature.asc
Description: Digital signature

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Alsa-user mailing list
Alsa-user@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/alsa-user

[Index of Archives]     [ALSA Devel]     [Linux Audio Users]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]

  Powered by Linux