Skip to contentSkip to conversation

: oops while removing au8810

ALSA - driver 0000322 [email protected] 1 participant 1 message Sep 7, 2005

lore
Share & tools
lore
#0 lore raw

A NOTE has been added to this issue.
======================================================================
<https://bugtrack.alsa-project.org/alsa-bug/view.php?id=322>
======================================================================

Reported By:                aris
Assigned To:                mjander
======================================================================
Project:                    ALSA - driver
Issue ID:                   322
Category:                   PCI - au88x0
Reproducibility:            always
Severity:                   crash
Priority:                   normal
Status:                     assigned
Distribution:               conectiva linux 10 snapshot with custom kernel
Kernel Version:             2.6.7-rc2
======================================================================
Date Submitted:             06-02-2004 13:24 CEST
Last Modified:              09-07-2005 02:22 CEST

======================================================================
Summary: oops while removing au8810
Description:
after getting an error on activating IRQ (not sure if this board is working)
and trying to remove module I get an oops. I tryed to dig in but couldn't find where exactly it is happening.
the IRQ error message:
PCI: Found IRQ 11 for device 0000:00:0b.0
PCI: Sharing IRQ 11 with 0000:00:01.1
Vortex: init.... <6>done.
vortex: IRQ reg error

======================================================================

----------------------------------------------------------------------
Raymond - 09-06-05 15:02
----------------------------------------------------------------------
au8830.h

#define VORTEX_CODEC_EN 0x29190
#define EN_AUDIO0 0x00000300 <- front channels
#define EN_MODEM 0x00000c00
#define EN_AUDIO1 0x00003000 <- rear channels
#define EN_SPORT 0x00030000
#define EN_SPDIF 0x000c0000
#define EN_CODEC (EN_AUDIO1 | EN_AUDIO0)

au8820
#define VORTEX_CODEC_CTRL 0x11984
#define VORTEX_CODEC_EN 0x11990
#define EN_CODEC 0x00000300

au8810.h
#define VORTEX_CODEC_CTRL 0x29184
#define VORTEX_CODEC_EN 0x29190
#define EN_CODEC0 0x00000300
#define EN_AC98 0x00000c00 /* Modem AC98 slots. */
#define EN_CODEC1 0x00003000
#define EN_CODEC (EN_CODEC0 | EN_CODEC1)
#define EN_SPORT 0x00030000
#define EN_SPDIF 0x000c0000

au88x0_core.c

static void vortex_codec_init(vortex_t * vortex)
{
...

	/* Enable codec channels 0 and 1. */
	hwwrite(vortex->mmio, VORTEX_CODEC_EN,
		hwread(vortex->mmio, VORTEX_CODEC_EN) | EN_CODEC);

}

static snd_pcm_hardware_t snd_vortex_playback_hw_adb = {
...

#ifdef CHIP_AU8830
	.channels_max = 4,
#else
	.channels_max = 2,

#endif
...
}

----------------------------------------------------------------------
aris - 09-07-05 02:22
----------------------------------------------------------------------
Hi Raymond,

here's the output of lspci -vvn:

0000:00:0b.0 0401: 12eb:0003 (rev 02)

	Subsystem: 12eb:0003
	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: 64 (500ns min, 20750ns max), Cache Line Size: 0x10 (64 bytes)
	Interrupt: pin A routed to IRQ 193
	Region 0: Memory at fdf00000 (32-bit, non-prefetchable) [size=256K]
	Region 1: I/O ports at b800 [size=8]
	Region 2: I/O ports at b400 [size=8]
	Capabilities: [dc] 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-

here's the output loading the stock 2.6.13 driver:
ACPI: PCI Interrupt 0000:00:0b.0[A] -> GSI 16 (level, low) -> IRQ 193
Vortex: init.... <6>done.
gameport: AU88x0 Gameport is pci0000:00:0b.0/gameport0, speed 1387kHz
vortex: IRQ reg error

the sound works fine!
I don't have a joystick here to test the gameport but tomorrow by morning I'll test it.
thanks for the great work ALSA team!

Issue History
Date Modified Username Field Change
======================================================================
06-02-04 13:24 aris New Issue
06-02-04 13:24 aris Distribution => conectiva linux 10
snapshot with custom kernel

06-02-04 13:24 aris           Kernel Version            => 2.6.7-rc2       
06-03-04 17:51 mjander        Note Added: 0001289                          
06-03-04 17:51 mjander        Note Added: 0001290                          
06-03-04 17:52 mjander        File Added: aureal-quadfix.patch                  

04-12-05 20:45 alien999999999 Issue Monitored: alien999999999

08-30-05 12:22 jdthood        Note Added: 0005973                          
09-06-05 11:03 Raymond        Note Added: 0006043                          
09-06-05 14:12 aris           Note Added: 0006044                          
09-06-05 14:32 Raymond        Note Added: 0006045                          
09-06-05 14:34 Raymond        Note Edited: 0006045                         
09-06-05 14:58 Raymond        Note Added: 0006046                          
09-06-05 15:02 Raymond        Note Edited: 0006046                         
09-07-05 02:22 aris           Note Added: 0006051                          

======================================================================

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