* CMIPCI @ Asus A7M266-D bug...
@ 2002-02-26 16:55 Erik Inge Bolsø
2002-02-26 17:31 ` Takashi Iwai
0 siblings, 1 reply; 4+ messages in thread
From: Erik Inge Bolsø @ 2002-02-26 16:55 UTC (permalink / raw)
To: Takashi Iwai; +Cc: alsa-devel
Greets.
On my new PC, there's a cmipci chip built-in to the mainboard. It's noisy,
but that's as expected.
But there's a weird issue with it. I can play 16bit stereo 44.1khz sound
just fine. 22 khz, though, is inaudible. In fact, everything but 44khz
stereo 16bit gives me either white noise or inaudibility.
Facts about the board: The sound part has three jacks... which can be
configured as 6-channel output, or output/mic/line_in. No SPDIF, no
joystick/midi port, no FM part.
Board: Asus A7M266-D
ALSA version: 0.9.0beta11
Hope this gives someone an idea what to look for? More info available on
request, just ask...
root@monster:/home/knan# lspci -n -s 02:04
02:04.0 Class 0401: 13f6:0111 (rev 10)
root@monster:/home/knan# lspci -vvvx -s 02:04.0
02:04.0 Multimedia audio controller: C-Media Electronics Inc CM8738 (rev 10)
Subsystem: Asustek Computer, Inc.: Unknown device 8077
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 10
Region 0: I/O ports at c800 [size=256]
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 85 00 10 02 10 00 01 04 00 20 00 00
10: 01 c8 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 43 10 77 80
30: 00 00 00 00 c0 00 00 00 00 00 00 00 0a 01 02 18
knan@monster:~$ cat /proc/asound/cmi/cmipci
C-Media PCI CMI8738-MC6 (model 55) at 0xc800, irq 10
00: 02 00 00 00
04: c4 28 00 00
08: 0f 00 09 00
0c: 00 00 00 0a
10: c0 00 00 00
14: 00 60 c0 00
18: 00 00 c9 04
1c: 00 00 fe ff
20: 10 40 00 00
24: a3 30 00 06
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
When playing silently at 22khz:
knan@monster:~$ cat /proc/asound/cmi/pcm0p/sub0/hw_params
access: RW_INTERLEAVED
format: S16_LE
subformat: STD
channels: 2
rate: 22050 (22050/1)
period_size: 2048
buffer_size: 16384
tick_time: 10000
OSS format: S16_LE
OSS channels: 2
OSS rate: 22050
OSS period bytes: 8192
OSS periods: 8
knan@monster:~$ cat /proc/asound/cmi/pcm0p/sub0/sw_params
tstamp_mode: NONE
period_step: 1
sleep_min: 0
avail_min: 2048
xfer_align: 1
start_threshold: 1
stop_threshold: 16384
silence_threshold: 0
silence_size: 0
boundary: 1073741824
knan@monster:~$ cat /proc/asound/cmi/cmipci
C-Media PCI CMI8738-MC6 (model 55) at 0xc800, irq 10
00: 02 00 01 00
04: c4 28 00 00
08: 0f 00 09 00
0c: 00 00 01 0a
10: c0 00 00 00
14: 00 60 c0 00
18: 00 00 c9 04
1c: 00 00 fe ff
20: 10 40 00 00
24: a3 30 00 06
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
When playing just fine at 44kHz:
knan@monster:~$ cat /proc/asound/cmi/cmipci
C-Media PCI CMI8738-MC6 (model 55) at 0xc800, irq 10
00: 02 00 01 00
04: c4 2d 00 00
08: 0f 00 09 00
0c: 00 00 01 0a
10: c0 00 00 00
14: 00 60 c0 00
18: 00 00 c9 04
1c: 00 00 fe ff
20: 10 40 00 00
24: a3 30 00 06
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
--
Erik I. Bolsø | email: <knan at mo.himolde.no>
The UNIX philosophy basically involves giving you enough rope to
hang yourself. And then a couple of feet more, just to be sure.
_______________________________________________
Alsa-devel mailing list
Alsa-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-devel
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: CMIPCI @ Asus A7M266-D bug...
2002-02-26 16:55 CMIPCI @ Asus A7M266-D bug Erik Inge Bolsø
@ 2002-02-26 17:31 ` Takashi Iwai
2002-02-26 18:05 ` [Solved] " Erik Inge Bolsø
0 siblings, 1 reply; 4+ messages in thread
From: Takashi Iwai @ 2002-02-26 17:31 UTC (permalink / raw)
To: Erik Inge Bolsø; +Cc: alsa-devel
Hi,
At Tue, 26 Feb 2002 17:55:36 +0100 (CET),
Erik Inge Bolsø wrote:
>
> Greets.
>
> On my new PC, there's a cmipci chip built-in to the mainboard. It's noisy,
> but that's as expected.
>
> But there's a weird issue with it. I can play 16bit stereo 44.1khz sound
> just fine. 22 khz, though, is inaudible. In fact, everything but 44khz
> stereo 16bit gives me either white noise or inaudibility.
comparison between registers on two states gives only the difference
of regisister 0x05.. that is quite normal.
sorry, i have no idea...
well, could you run once arecord with 22kHz and then try aplay with
22kHz again?
also, doesn't 48khz playback work, too?
Takashi
_______________________________________________
Alsa-devel mailing list
Alsa-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-devel
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Solved] Re: CMIPCI @ Asus A7M266-D bug...
2002-02-26 17:31 ` Takashi Iwai
@ 2002-02-26 18:05 ` Erik Inge Bolsø
2002-02-26 18:40 ` Takashi Iwai
0 siblings, 1 reply; 4+ messages in thread
From: Erik Inge Bolsø @ 2002-02-26 18:05 UTC (permalink / raw)
To: Takashi Iwai; +Cc: alsa-devel
On Tue, 26 Feb 2002, Takashi Iwai wrote:
>At Tue, 26 Feb 2002 17:55:36 +0100 (CET),
>Erik Inge Bolsø wrote:
>> On my new PC, there's a cmipci chip built-in to the mainboard. It's noisy,
>> but that's as expected.
>>
>> But there's a weird issue with it. I can play 16bit stereo 44.1khz sound
>> just fine. 22 khz, though, is inaudible. In fact, everything but 44khz
>> stereo 16bit gives me either white noise or inaudibility.
>
>comparison between registers on two states gives only the difference
>of regisister 0x05.. that is quite normal.
>sorry, i have no idea...
>
>well, could you run once arecord with 22kHz and then try aplay with
>22kHz again?
>
>also, doesn't 48khz playback work, too?
Aha!
By accident, the "Exchange DAC" mixer switch was on. Turning that off, all
works as expected...
Or rather... by experimentation, I've determined this:
"Exchange DAC" switch on, "IEC958 In Monitor" switch on:
22050 Hz silent, 44100 Hz fine
"Exchange DAC" switch on, "IEC958 In Monitor" switch off:
22050 Hz silent, 44100 Hz silent
"Exchange DAC" switch off, "IEC958 In Monitor" switch on:
22050 Hz fine, 44100 Hz fine
"Exchange DAC" switch off, "IEC958 In Monitor" switch off:
22050 Hz fine, 44100 Hz silent
Just extremely weird signal routing on this one card, or is this common?
Please document this somewhere for others :)
( Perhaps match by subsystem id and modify mixer element names
accordingly to something sane? And/or mark all switches that have
something to do with signal routing as such, and let a specialized mixer
app take care of such things? )
--
Erik I. Bolsø | email: <knan at mo.himolde.no>
The UNIX philosophy basically involves giving you enough rope to
hang yourself. And then a couple of feet more, just to be sure.
_______________________________________________
Alsa-devel mailing list
Alsa-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-devel
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Solved] Re: CMIPCI @ Asus A7M266-D bug...
2002-02-26 18:05 ` [Solved] " Erik Inge Bolsø
@ 2002-02-26 18:40 ` Takashi Iwai
0 siblings, 0 replies; 4+ messages in thread
From: Takashi Iwai @ 2002-02-26 18:40 UTC (permalink / raw)
To: Erik Inge Bolsø; +Cc: alsa-devel
At Tue, 26 Feb 2002 19:05:10 +0100 (CET),
Erik Inge Bolsø wrote:
>
> On Tue, 26 Feb 2002, Takashi Iwai wrote:
> >At Tue, 26 Feb 2002 17:55:36 +0100 (CET),
> >Erik Inge Bolsø wrote:
> >> On my new PC, there's a cmipci chip built-in to the mainboard. It's noisy,
> >> but that's as expected.
> >>
> >> But there's a weird issue with it. I can play 16bit stereo 44.1khz sound
> >> just fine. 22 khz, though, is inaudible. In fact, everything but 44khz
> >> stereo 16bit gives me either white noise or inaudibility.
> >
> >comparison between registers on two states gives only the difference
> >of regisister 0x05.. that is quite normal.
> >sorry, i have no idea...
> >
> >well, could you run once arecord with 22kHz and then try aplay with
> >22kHz again?
> >
> >also, doesn't 48khz playback work, too?
>
> Aha!
>
> By accident, the "Exchange DAC" mixer switch was on. Turning that off, all
> works as expected...
ah, ok, relieved :)
> Or rather... by experimentation, I've determined this:
>
> "Exchange DAC" switch on, "IEC958 In Monitor" switch on:
> 22050 Hz silent, 44100 Hz fine
>
> "Exchange DAC" switch on, "IEC958 In Monitor" switch off:
> 22050 Hz silent, 44100 Hz silent
>
> "Exchange DAC" switch off, "IEC958 In Monitor" switch on:
> 22050 Hz fine, 44100 Hz fine
ok.
> "Exchange DAC" switch off, "IEC958 In Monitor" switch off:
> 22050 Hz fine, 44100 Hz silent
i don't understand this behavior..
> Just extremely weird signal routing on this one card, or is this common?
> Please document this somewhere for others :)
i cannot test the card at this moment since it's out of my box.
i'll examine this later (mine is another model, so it's worthy to
check it).
there is a bit switch (front/rear exchange) in the mixer regs which
works similarly like this switch. the switch is not implemented in
alsa, because we already have another one. but interestingly, we can
use even both switches at the same time.
> ( Perhaps match by subsystem id and modify mixer element names
> accordingly to something sane? And/or mark all switches that have
> something to do with signal routing as such, and let a specialized mixer
> app take care of such things? )
Takashi
_______________________________________________
Alsa-devel mailing list
Alsa-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-devel
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2002-02-26 18:40 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-02-26 16:55 CMIPCI @ Asus A7M266-D bug Erik Inge Bolsø
2002-02-26 17:31 ` Takashi Iwai
2002-02-26 18:05 ` [Solved] " Erik Inge Bolsø
2002-02-26 18:40 ` Takashi Iwai
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.