linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Re: Linux 2.6.10-ac8
@ 2005-01-09 17:16 Jules Villard
  0 siblings, 0 replies; 2+ messages in thread
From: Jules Villard @ 2005-01-09 17:16 UTC (permalink / raw)
  To: Alan Cox; +Cc: linux-kernel

[-- Attachment #1: Type: text/plain, Size: 536 bytes --]

Hello,

I'm experiencing some troubles with the patches you included in
2.6.10-ac5 about ALSA : the files open and play ok, but no sound is
actually outputed...

I've found that the patch sound/pci/ac97/ac97_patch.c (hereby
attached) is responsible for that (ie when I boot with the full patch 
minus this one, the sound is ok).

Nothing special is printed in dmesg, so I've only attached my lspci 
output and my .config (along with the patch).

Feel free to CC me if more details are needed, for I'm not on the lkml.

Regards,

Jules


[-- Attachment #2: patch.ac97_patch --]
[-- Type: text/plain, Size: 2040 bytes --]

diff -u --new-file --recursive --exclude-from /usr/src/exclude linux.vanilla-2.6.10/sound/pci/ac97/ac97_patch.c linux-2.6.10/sound/pci/ac97/ac97_patch.c
--- linux.vanilla-2.6.10/sound/pci/ac97/ac97_patch.c	2004-12-25 21:15:54.000000000 +0000
+++ linux-2.6.10/sound/pci/ac97/ac97_patch.c	2005-01-06 19:29:28.000000000 +0000
@@ -1013,8 +1013,20 @@
  	return patch_build_controls(ac97, &snd_ac97_ad198x_spdif_source, 1);
 }
 
+static const snd_kcontrol_new_t snd_ac97_ad1981x_jack_sense[] = {
+	AC97_SINGLE("Headphone Jack Sense", AC97_AD_JACK_SPDIF, 11, 1, 0),
+	AC97_SINGLE("Line Jack Sense", AC97_AD_JACK_SPDIF, 12, 1, 0),
+};
+
+static int patch_ad1981a_specific(ac97_t * ac97)
+{
+	return patch_build_controls(ac97, snd_ac97_ad1981x_jack_sense,
+				    ARRAY_SIZE(snd_ac97_ad1981x_jack_sense));
+}
+
 static struct snd_ac97_build_ops patch_ad1981a_build_ops = {
-	.build_post_spdif = patch_ad198x_post_spdif
+	.build_post_spdif = patch_ad198x_post_spdif,
+	.build_specific = patch_ad1981a_specific
 };
 
 int patch_ad1981a(ac97_t *ac97)
@@ -1023,6 +1035,7 @@
 	ac97->build_ops = &patch_ad1981a_build_ops;
 	snd_ac97_update_bits(ac97, AC97_AD_MISC, AC97_AD198X_MSPLT, AC97_AD198X_MSPLT);
 	ac97->flags |= AC97_STEREO_MUTES;
+	snd_ac97_update_bits(ac97, AC97_AD_JACK_SPDIF, 1<<11, 1<<11); /* HP jack sense */
 	return 0;
 }
 
@@ -1031,7 +1044,12 @@
 
 static int patch_ad1981b_specific(ac97_t *ac97)
 {
-	return patch_build_controls(ac97, &snd_ac97_ad198x_2cmic, 1);
+	int err;
+
+	if ((err = patch_build_controls(ac97, &snd_ac97_ad198x_2cmic, 1)) < 0)
+		return err;
+	return patch_build_controls(ac97, snd_ac97_ad1981x_jack_sense,
+				    ARRAY_SIZE(snd_ac97_ad1981x_jack_sense));
 }
 
 static struct snd_ac97_build_ops patch_ad1981b_build_ops = {
@@ -1045,6 +1063,7 @@
 	ac97->build_ops = &patch_ad1981b_build_ops;
 	snd_ac97_update_bits(ac97, AC97_AD_MISC, AC97_AD198X_MSPLT, AC97_AD198X_MSPLT);
 	ac97->flags |= AC97_STEREO_MUTES;
+	snd_ac97_update_bits(ac97, AC97_AD_JACK_SPDIF, 1<<11, 1<<11); /* HP jack sense */
 	return 0;
 }
 


[-- Attachment #3: lspci --]
[-- Type: text/plain, Size: 1361 bytes --]

00:00.0 Host bridge: Intel Corp. 82855PM Processor to I/O Controller (rev 03)
00:01.0 PCI bridge: Intel Corp. 82855PM Processor to AGP Controller (rev 03)
00:1d.0 USB Controller: Intel Corp. 82801DB (ICH4) USB UHCI #1 (rev 01)
00:1d.1 USB Controller: Intel Corp. 82801DB (ICH4) USB UHCI #2 (rev 01)
00:1d.2 USB Controller: Intel Corp. 82801DB (ICH4) USB UHCI #3 (rev 01)
00:1d.7 USB Controller: Intel Corp. 82801DB (ICH4) USB2 EHCI Controller (rev 01)
00:1e.0 PCI bridge: Intel Corp. 82801BAM/CAM PCI Bridge (rev 81)
00:1f.0 ISA bridge: Intel Corp. 82801DBM LPC Interface Controller (rev 01)
00:1f.1 IDE interface: Intel Corp. 82801DBM (ICH4) Ultra ATA Storage Controller (rev 01)
00:1f.3 SMBus: Intel Corp. 82801DB/DBM (ICH4) SMBus Controller (rev 01)
00:1f.5 Multimedia audio controller: Intel Corp. 82801DB (ICH4) AC'97 Audio Controller (rev 01)
00:1f.6 Modem: Intel Corp. 82801DB (ICH4) AC'97 Modem Controller (rev 01)
01:00.0 VGA compatible controller: ATI Technologies Inc Radeon Mobility M7 LW [Radeon Mobility 7500]
02:00.0 CardBus bridge: Texas Instruments PCI4520 PC card Cardbus Controller (rev 01)
02:00.1 CardBus bridge: Texas Instruments PCI4520 PC card Cardbus Controller (rev 01)
02:01.0 Ethernet controller: Intel Corp. 82540EP Gigabit Ethernet Controller (Mobile) (rev 03)
02:02.0 Network controller: Intel Corp.: Unknown device 4220 (rev 05)

[-- Attachment #4: config.gz --]
[-- Type: application/x-gzip, Size: 8192 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread
* Linux 2.6.10-ac8
@ 2005-01-08 23:20 Alan Cox
  0 siblings, 0 replies; 2+ messages in thread
From: Alan Cox @ 2005-01-08 23:20 UTC (permalink / raw)
  To: Linux Kernel Mailing List

Arjan van de Ven is now building RPMS of the kernel and those can be found
in the RPM subdirectory and should be yum-able. Expect the RPMS to lag the
diff a little as the RPM builds and tests do take time.


Key:	o	- only in -ac
	*	- already fixed upstream
	X	- discarded later as wrong
	+	- ac specific (fix not relevant to non -ac)

2.6.10-ac8
o	I2O init/exit call fix				(Randy Dunlap)
o	More build ia-32 on x86-64 bits			(Arjan van de Ven)
*	NFS error path fixup				(Bill Rugolsky)
o	Swap the coda fix in ac7 with the official	(Jan Harkes)
	authors fix
o	Fix some problematic ptrace/kill interactions	(Roland McGrath)
o	Fix ptrace/coredump problems with threaded	(Roland McGrath)
	apps

2.6.10-ac7
+	Fix failure at boot with some setups and ac6	(Alan Cox)
	| Dumb bug indeed
o	Fix random poolsize sysctl			(Brad Spengler)
o	Fix scsi_ioctl leak				(Brad Spengler)
o	Fix rlimit memlock				(Brad Spengler)
o	Fix Moxa serial					(Alan Cox)
	| While moxa won't actually even build on 2.6 the grsecurity fix
	| is wrong (for 2.2, 2.4 as well). Without it being CAP_SYS_RAWIO
	| a user can insert alternative bios firmware into the card.

2.6.10-ac6
+	Fix ide-pnp build				(Alan Cox)
o	do_brk security fixes				(Marcelo Tosatti)
	| slightly reworked
o	Fixes for Coverity Inc reported bugs		(Alan Cox)
	- coda_pioctl
	- xfs_attrmulti_by_handle
	- br_ioctl
	- rose_rt_ioctl
	- sdla_xfer 
o	Improve the no-overcommit behaviour		(Andries Brouwer)

2.6.10-ac5
+	Remove obsolete usb_unlink_urb in pwc		(Alan Cox)
	| From instructions by Dwaine Garden
*	Subset of ALSA updates to fix sound bugs in .10	(Takashi Iwai)
	| This is the set Takashi kindly identified as being
	| worth applying for 10-ac.
o	First run at merging ISI and base isicom driver	(Alan Cox)
	into a working 2.6 driver
+	IDE mode selection fixes for IT821x PIO		(Alan Cox)
	| Bug noted by Bartlomiej
o	Fix a 32bit compatibility error in the cmsg	(Olaf Kirch)
	check logic
o	Hopefully fix CD-ROM autoclose			(Stas Sergeev)
o	Disable sidewinder debugging spew		(Michael Marineau)
o	Openprom fixes					(Al Viro)
o	Fix cosa module crash on load			(Jan Kasprzak)
o	Add the build environment bits to kernel	(Kevin Fenzi)
	make rpm output
*	Fix megaraid unload oops			(Al Viro)
*	Make gconfig work with current gtk 2.4		(J Magallon)
*	Fix harmless parport overflow by one		(Alexander Nyberg)
o	Fix drivers that put a '/' in /proc/irq/..	(Olaf Hering)

2.6.10-ac4
o	Initial fixes for /dev/tty v setsid() crash	(Alan Cox)
	[/dev/tty v vhangup needs more work]
+	Fixed AGP compile on ia-32			(Arjan van de Ven)
+	PPC fixes 					(Dave Jones)
o	Document irqpoll/irqfixup			(Alan Cox)
o	IBM ACPI reference __exit unsafely		(Arjan van de Ven)
o	Allow pwc to be compiled into the kernel	(Christian Hesse)

2.6.10-ac3
*	Fix a pile of mmc warnings/errors		(Russell King)
*	Fix acpi video memory corruption		(Linus Torvalds)
*	Fix module param breakage in parport_pc		(Randy Dunlap)
*	Intel ICH7 IDE support and $PIR support		(Jason Gaston)
o	Intel ICH7 SATA support				(Jason Gaston)
o	Intel ICH7 I2C support				(Jason Gaston)
o	Fix an IDE CD-ROM crash/BUG case		(Prarit Bhargava)
*	Swap -ac AGP annotations for head AGP fixes	(Dave Jones,
							 Bjorn Helgaas,
							 Masao Takahashi)
o	Add proper delaying/sleeping ide_pci_unregister	(Alan Cox)
o	Do the same for PCMCIA (ide_cs)	and ISA PnP	(Alan Cox)
o	Use msleep for ide-cd and ide-cs		(Nishanth Aravamudan)
o	Fix missing type in lapic_shutdown		(Miael Pettersson)
o	Fix some missing build dependancies for CX88	(Adrian Bunk)
o	Move pwc to use remap_pfn_range			(Arjan van de Ven)

2.6.10-ac2
o	Fix printk fixes for geometry free drives	(Alan Cox)
	| Found by Bartlomiej
o	Bartlomiej's requested cleanups for IT8212	(Alan Cox)
X	Drop unneeded i810 audio patch
X	Drop useless kmalloc size patch
+	Fix proposed ide ISA v PIO change to work	(Alan Cox)
	| Bug noted by .. everyone
*	Backport mxser compile fix			(Al Viro)
*	Backport via acpi irq routing fixes		(Len Brown, Shaohua Li)
	| Replaces the old -ac fix
*	Backport further aacraid chipset support	(Mark Haverkamp)
*	ULi 5281 support				(Peer Chen)
*	Backport several libata fixes notably problems	(Albert Lee)
	with PDC20275
o	FW_LOADER is needed by several dvb devices	(Michal Feix)
o	Add IT8211 PCI identifiers to IT8212 and	(Alan Cox)
	rename driver and functions it iT821x
	| Thanks to Philipp Imhof for the IT8211 idents
o	Clean up and merge LAN M526X support		(Clear Zhang)
	| 2.6 port/slight tidy done on the original

2.6.10-ac1
o	Revert AX.25 protocol breakage			(Alan Cox)
o	Remove bogus obsolete option junk from 2.6.10	(Alan Cox)
	ide changes
	| Options are often useful, so should be kept.
	| Especially stuff like serialize
o	Fix bogus dma_ naming in the 2.6.10 patch	(Alan Cox)
o	Initial CS5520 fixups for VDMA and 2.6.10
	| Must set vdma flag before command issue
	| ?? could we just set it at boot and leave it - probably (check)

Forward ported from 2.6.9-ac
o	Smbfs improved parsing fixes			(Chuck Ebbert)
o	Fix several IDE drivers that assumed > 0 was	(Alan Cox)
	also an error return for pci probe functions
*	Fix sys5 semaphore wakeups			(Manfred Spraul)
o	Suggest irqpoll when we get screaming irqs	(Alan Cox)
o	Fix reset problems with older 3c59x/3c90x	(John Linville)
o	Configurable 100/1Khz clock for x86		(James Bottomley)
	| 100Hz is great for battery life
o	Delkin cardbus IDE support			(Mark Lord)
o	IT8212 IDE support				(Alan Cox)
X	Add more AC97 table data
o	Token ring locking fix
o	Fix URL for lanana				(Alexander Stohr)
X	Add a 1620 byte slab cache for ethernet frames	(Arjan van de Ven)
*	EDD boot options				(Matt Domsch)
o	Don't probe legacy ISA ide2,3,4,5 on PCI boxes	(Alan Cox)
o	Restore PWC driver				(Luc Saillard)
	| Please port away from remap_page_range
o	Fix AT2701FX AMD PCnet32 on fibre		(Guido Guenther)
*	Fix build of CS461x gameport			(Adrian Bunk)
o	Fix crash with aacraid double complete	(Mark Salyzyn, Tom Coughlan,
						 Alan Cox)
*	Fix getblk_slow hang				(Chris Mason)
+	Fix SMP hang with IDE unregister		(Mark Lord)
o	Working IDE locking				(Alan Cox)
	| And a great deal of review by Bartlomiej
o	Allow IDE to grab all unknown generic IDE	(Alan Cox)
	devices (boot with "all-generic-ide")
o	More ATI IDE PCI identifiers			(Enrico Scholz)
o	Initial patch for ide_abort hang		(Alan Cox)
o	Fix serveral ide timing violations on reset	(Alan Cox)
*	Support CSB6-R Serverworks raid			(Alan Cox)
o	Teach ide-cd to use sense data for file system	(Alan Cox)
	requests
	- This means you get better diagonstics on CD errors
	- It means a partial I/O failure will get you back the ok sectors
	- It may fix the problem some users have with ISO copying and ide-cd
o	Lock ide-proc against driver unload		(Alan Cox)
	(very low severity)
o	Fix ide /proc and legacy devices problem	(Alan Cox)
*	Watchdog support for early cobalt ALi hardware	(Mike Waychison)
o	Make sx8 naming follow LANANA			(Jeremy Katz)
*	Don't warn on scsi ioctl kmalloc fail		(Arjan van de Ven)
*	Fix Paul Laufer's email address			(Paul Laufer)
*	Fix misleading microcode message		(Arjan van de Ven)
o	Allow cross compile of x86_32 kernel on x86_64	(Arjan van de Ven)
o	Kill "open failed" cdrom message.		(Alan Cox)
	| This is a natural event from code poking around
	| doing CD detection etc
*	Minor typo fix in cdrom driver			(efalk@google)
*	Add support for newer ALi AGP			(Clear Zhang)
o	Handle E7xxx boxes with USB legacy flaws	(Alan Cox)

Cleanups in porting
o	Drop ->taskfile hooks in the IDE layer 		(Alan Cox)
	(->fixup replaces)
o	Fix up IT8212 for 2.6.10 ide_use_dma cleanups	(Alan Cox)
	and other 2.6.10 cleaning

Dropped for now
o	VIA extra quirk
o	HP Cardbus routing fixup


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

end of thread, other threads:[~2005-01-09 17:16 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-01-09 17:16 Linux 2.6.10-ac8 Jules Villard
  -- strict thread matches above, loose matches on Subject: below --
2005-01-08 23:20 Alan Cox

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).