Skip to contentSkip to conversation

echoaudio disable device

PATCH In review Giuliano Pochini 3 participants 4 messages May 2, 2005 – May 3, 2005

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 echoaudio disable device

*sigh*

- Add missing calls to pci_disable_device()

pci/echoaudio/echoaudio.c +5 -1
diff -du alsa-driver__orig/pci/echoaudio/echoaudio.c alsa-driver/pci/echoaudio/echoaudio.c
@@ -1746,6 +1746,8 @@
 	}
 	DE_INIT(("MMIO freed.\n"));
 
+	pci_disable_device(chip->pci);
+
 	/* release chip data */
 	kfree(chip);
 	DE_INIT(("Chip freed.\n"));
@@ -1784,8 +1786,10 @@
 
 	/* allocate a chip-specific data */
 	chip = kcalloc(1, sizeof(echoaudio_t), GFP_KERNEL);
-	if (!chip)
+	if (!chip) {
+		pci_disable_device(pci);
 		return -ENOMEM;
+	}
 	DE_INIT(("chip=%p\n", chip));
 
 	spin_lock_init(&chip->lock);

--
Giuliano.

-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games.
Get your fingers limbered up and give it your best shot. 4 great events, 4 opportunities to win big! Highest score wins.NEC IT Guy Games. Play to win an NEC 61 plasma display. Visit http://www.necitguy.com/?r=20

#1 lore raw

ICH5 fails

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Yo All!

I have been trying to sign up gfor the bugzilla, but I keep getting this message:

PROBLEMS SENDING MAIL TO:
Mailer Error: SMTP Error: Could not connect to SMTP host.

I any case, I have the same issue as bug #1078, except I have more info on it. I have laptops and desktops with the ICH5 sound subsystem. They all work fine up to 2.6.8.1. Anything past that does not work. I figured I would just wait on it until someone fixed it. Now I have tested up to kernel 2.6.12-rc2 and from alsa driver 1.0.6 to 1.0.9rc2. I have mixed and matched various alsa-driver and kernel versions with no success.

Same problem. My distro is a basic Slackware 10.0, except for the now updated kerenels and gcc. Same problem with older gcc's as well.

Sadly, I updated my gcc to 4.0 and can no longer compile 2.6.8.1 or any alsa before 1.0.7. So now I need this fixed.

It is not just me because I can google for other folks with the same issue.

Here is what I get in dmesg when I load the failing modules:

Jan  7 20:04:09 satchel kernel: Advanced Linux Sound Architecture Driver Version
 1.0.6 (Sun Aug 15 07:17:53 2004 UTC).
Jan  7 20:04:09 satchel kernel: ACPI: PCI interrupt 0000:00:1f.5[B] -> GSI 17 (l
evel, low) -> IRQ 17
Jan  7 20:04:09 satchel kernel: intel8x0_measure_ac97_clock: measured 49768 usec
s
Jan  7 20:04:09 satchel kernel: intel8x0: clocking to 48000
Jan  7 20:04:09 satchel kernel: ACPI: PCI interrupt 0000:00:1f.6[B] -> GSI 17 (l
evel, low) -> IRQ 17
Jan  7 20:04:09 satchel kernel: ALSA device list:
Jan  7 20:04:09 satchel kernel:   #0: Intel ICH5 with unknown codec at 0xd0000c0

0, irq 17

Here is what I get when it works:

Jan  4 00:14:10 satchel kernel: Advanced Linux Sound Architecture Driver Version
 1.0.4 (Mon May 17 14:31:44 2004 UTC).
Jan  4 00:14:10 satchel kernel: ACPI: PCI interrupt 0000:00:1f.5[B] -> GSI 17 (l
evel, low) -> IRQ 17
Jan  4 00:14:10 satchel kernel: intel8x0_measure_ac97_clock: measured 49918 usec
s
Jan  4 00:14:10 satchel kernel: intel8x0: clocking to 48000
Jan  4 00:14:10 satchel kernel: ACPI: PCI interrupt 0000:00:1f.6[B] -> GSI 17 (l
evel, low) -> IRQ 17
Jan  4 00:14:10 satchel kernel: ALSA device list:
Jan  4 00:14:10 satchel kernel:   #0: Intel ICH5 at 0xd0000c00, irq 17
Jan  4 00:14:10 satchel kernel:   #1: Intel ICH5 Modem at 0x1800, irq 17

Here is my "cards file:

# cat /proc/asound/cards
0 [ICH5           ]: ICH4 - Intel ICH5
                     Intel ICH5 with unknown codec at 0xd0000c00, irq 17

Any ideas?

RGDS
GARY
- --------------------------------------------------------------------------- Gary E. Miller Rellim 20340 Empire Blvd, Suite E-3, Bend, OR 97701

	[email protected]  Tel:+1(541)382-8588 Fax: +1(541)382-8676

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)

iD8DBQFCdoAb8KZibdeR3qURAt53AKDEM29B4jaRx7gM7V/w9XD2gpFpnQCdG4R0 VJ5EOHodhHKAGcLnop3Y3k4=
=fYUA
-----END PGP SIGNATURE-----

-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games.
Get your fingers limbered up and give it your best shot. 4 great events, 4 opportunities to win big! Highest score wins.NEC IT Guy Games. Play to win an NEC 61 plasma display. Visit http://www.necitguy.com/?r=20

#2 lore raw

Re: ICH5 fails

Quoted 2 lines · Gary E. Miller

I have laptops and desktops with the ICH5 sound subsystem. They all work fine up to 2.6.8.1. Anything past that does not work.

What does "does not work" mean? No sound?

Quoted 2 lines

kernel: ALSA device list:
kernel: #0: Intel ICH5 with unknown codec at 0xd0000c0 0, irq 17

Please try ALSA 1.0.9rc3.

What are the contents of /proc/asound/card0/codec97#0/ac97#0-0?

Regards,
Clemens

-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games.
Get your fingers limbered up and give it your best shot. 4 great events, 4 opportunities to win big! Highest score wins.NEC IT Guy Games. Play to win an NEC 61 plasma display. Visit http://www.necitguy.com/?r=20

#3 lore raw

Re: ICH5 fails

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Yo Clemens!

Thank you for taking the time to look at my problem!

Quoted 5 lines · Clemens Ladisch
Quoted 2 lines · Gary E. Miller

I have laptops and desktops with the ICH5 sound subsystem. They all work fine up to 2.6.8.1. Anything past that does not work.

What does "does not work" mean? No sound?

- From my previous post you can see that the Intel audio chip does not even show up in /proc/asound/cards, so that is a show stopper right there. When it works I get to ALSA cards, one for the modem and one for the sound chip. When it does not work I get an "unkown codec" for the modem and nothing for the sound chip. Not a simple muting problem or some such.

Quoted 4 lines
Quoted 2 lines

kernel: ALSA device list:
kernel: #0: Intel ICH5 with unknown codec at 0xd0000c0 0, irq 17

Please try ALSA 1.0.9rc3.

Hmm, slightly better. At leaast there is some logging as to why the sound chip is not being found. Here is my dmesg:

ALSA /mnt/hobbes/u3/local/src/ALSA/alsa-driver-1.0.9rc3/pci/../alsa-kernel/pci/intel8x0m.c:978: Unable to initialize codec #0 Intel ICH Modem: probe of 0000:00:1f.6 failed with error -13
ALSA /usr/local/src/ALSA/alsa-driver-1.0.9rc3/pci/intel8x0.c:615: codec_read 0: semaphore is not ready for register 0x2c ALSA /usr/local/src/ALSA/alsa-driver-1.0.9rc3/pci/intel8x0.c:615: codec_read 0: semaphore is not ready for register 0x2c ALSA /usr/local/src/ALSA/alsa-driver-1.0.9rc3/pci/intel8x0.c:615: codec_read 0: semaphore is not ready for register 0x2c ALSA /usr/local/src/ALSA/alsa-driver-1.0.9rc3/pci/intel8x0.c:615: codec_read 0: semaphore is not ready for register 0x2c ALSA /usr/local/src/ALSA/alsa-driver-1.0.9rc3/pci/intel8x0.c:615: codec_read 0: semaphore is not ready for register 0x2c ALSA /usr/local/src/ALSA/alsa-driver-1.0.9rc3/pci/intel8x0.c:615: codec_read 0: semaphore is not ready for register 0x2c ALSA /usr/local/src/ALSA/alsa-driver-1.0.9rc3/pci/intel8x0.c:615: codec_read 0: semaphore is not ready for register 0x2c ALSA /usr/local/src/ALSA/alsa-driver-1.0.9rc3/pci/intel8x0.c:615: codec_read 0: semaphore is not ready for register 0x2c ALSA /usr/local/src/ALSA/alsa-driver-1.0.9rc3/pci/intel8x0.c:615: codec_read 0: semaphore is not ready for register 0x2c ALSA /usr/local/src/ALSA/alsa-driver-1.0.9rc3/pci/intel8x0.c:615: codec_read 0: semaphore is not ready for register 0x2c ALSA /usr/local/src/ALSA/alsa-driver-1.0.9rc3/pci/intel8x0.c:615: codec_read 0: semaphore is not ready for register 0x2c ALSA /usr/local/src/ALSA/alsa-driver-1.0.9rc3/pci/intel8x0.c:615: codec_read 0: semaphore is not ready for register 0x2c ALSA /usr/local/src/ALSA/alsa-driver-1.0.9rc3/pci/intel8x0.c:615: codec_read 0: semaphore is not ready for register 0x2c ALSA /usr/local/src/ALSA/alsa-driver-1.0.9rc3/pci/intel8x0.c:615: codec_read 0: semaphore is not ready for register 0x2c ALSA /usr/local/src/ALSA/alsa-driver-1.0.9rc3/pci/intel8x0.c:615: codec_read 0: semaphore is not ready for register 0x2c ALSA /usr/local/src/ALSA/alsa-driver-1.0.9rc3/pci/intel8x0.c:615: codec_read 0: semaphore is not ready for register 0x2c ALSA /usr/local/src/ALSA/alsa-driver-1.0.9rc3/pci/intel8x0.c:615: codec_read 0: semaphore is not ready for register 0x2c ALSA /usr/local/src/ALSA/alsa-driver-1.0.9rc3/pci/intel8x0.c:615: codec_read 0: semaphore is not ready for register 0x2c ALSA /usr/local/src/ALSA/alsa-driver-1.0.9rc3/pci/intel8x0.c:615: codec_read 0: semaphore is not ready for register 0x2c

Quoted 1 line

What are the contents of /proc/asound/card0/codec97#0/ac97#0-0?

# cat /proc/asound/card0/codec97#0/ac97#0-0
0-0/0: Conexant id 30

Revision : 0xff
Compat. Class : 0x1f
Subsys. Vendor ID: 0xffff
Subsys. ID : 0xffff

Capabilities : -reserved1- -headphone out-
DAC resolution : 18-bit
ADC resolution : 18-bit
3D enhancement : No 3D Stereo Enhancement

Current setup
Mic gain : +20dB [+0dB]
POP path : post 3D
Sim. stereo : on

3D enhancement   : on
Loudness         : on
Mono output      : Mic
Mic select       : Mic2

ADC/DAC loopback : on
Extended ID : codec=3 rev=3 AMAP LDAC SDAC CDAC DSA=3 VRM SPDIF DRA VRA
Extended status : PRL PRK PRJ PRI SPCV MADC LDAC SDAC CDAC SPDIF=10/11 VRM SPDIF DRA VRA
PCM front DAC : 65535Hz
PCM Surr DAC : 65535Hz
PCM LFE DAC : 65535Hz
PCM ADC : 65535Hz
PCM MIC ADC : 65535Hz
SPDIF Control : PRO Non-audio Preemph50/15 Category=0x7f Generation=1 Rate=32kHz DRS Validity

                    Gain     Inverted  Buffer delay  Location
Master Out       : -10.5 dBV    X      31/fs         NC/unused
AUX Out          : -10.5 dBV    X      31/fs         NC/unused
Center/LFE Out   : -10.5 dBV    X      31/fs         NC/unused
SPDIF Out        : -10.5 dBV    X      31/fs         NC/unused
Phone In         : -10.5 dBV    X      31/fs         NC/unused
Mic 1            : -10.5 dBV    X      31/fs         NC/unused
Mic 2            : -10.5 dBV    X      31/fs         NC/unused
Line In          : -10.5 dBV    X      31/fs         NC/unused
CD In            : -10.5 dBV    X      31/fs         NC/unused
Video In         : -10.5 dBV    X      31/fs         NC/unused
Aux In           : -10.5 dBV    X      31/fs         NC/unused
Mono Out         : -10.5 dBV    X      31/fs         NC/unused

Extended modem ID: codec=3 CID2 CID1 HSET LIN2 LIN1
Modem status : GPIO MREF ADC1 DAC1 ADC2 DAC2 HADC HDAC PRA(GPIO) PRB(res) PRC(ADC1) PRD(DAC1) PRE(ADC2) PRF(DAC2) PRG(HADC) PRH(HDAC)
Line1 rate : 65535Hz
Line2 rate : 65535Hz
Headset rate : 65535Hz
#

Someone suggested that I add inte8x0m to /etc/hotplug/blacklist, that had no effect, the intel8x0m module still loaded. So I deleted that module so only the sound would be loaded, same results.

RGDS
GARY
- --------------------------------------------------------------------------- Gary E. Miller Rellim 20340 Empire Blvd, Suite E-3, Bend, OR 97701

	[email protected]  Tel:+1(541)382-8588 Fax: +1(541)382-8676

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)

iD8DBQFCd89z8KZibdeR3qURAoBmAJ9ZEUL1YdqD3BobSLRsjZ/G8tS+lQCfRtf4 4cfSMVnhsRtmLCYNyzDvLIc=
=tk2C
-----END PGP SIGNATURE-----

-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games.
Get your fingers limbered up and give it your best shot. 4 great events, 4 opportunities to win big! Highest score wins.NEC IT Guy Games. Play to win an NEC 61 plasma display. Visit http://www.necitguy.com/?r=20