Skip to contentSkip to conversation

make i810_audio mmio aware/support for >2 codecs

PATCH New Juergen Sawinski 1 participant 1 message Aug 9, 2002

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 make i810_audio mmio aware/support for >2 codecs

patch-2.4.20-pre1-ac1-ac97_codec-4codecs:
-cosmetics (report about primary and secondary codec
expanded for tertiary codec)

patch-2.4.20-pre1-ac1-i810_audio-mmio-step-1:
-mmio for accessing the AC97 with ICH4
-workaround for a bug on the Intel D845GBV mother board:
Board reports a tertiary codec while it is accessed as a primary codec. Maybe IO/MMIO space ordering is consecutive instead of ID based???

Don't know how to automatically work around this bug, so for now there is a module option "d845gbv_bug=1" (try setting this option if your log says
"Primary codec not ready."
but you are sure, you have a builtin codec)

TODO:
-access the bus master operations via mmio, too

George

Signature · 13 lines
Juergen "George" Sawinski
Max-Planck Institute for Medical Research
Dept. of Biomedical Optics
Jahnstr. 29
D-69120 Heidelberg
Germany

Phone:  +49-6221-486-308
Fax:    +49-6221-486-325

priv.
Phone:  +49-6221-418 858
Mobile: +49-171-532 5302
drivers/sound/ac97_codec.c +2 -1
@@ -698,7 +698,8 @@
 
 	if ((audio = codec->codec_read(codec, AC97_RESET)) & 0x8000) {
 		printk(KERN_ERR "ac97_codec: %s ac97 codec not present\n",
-		       codec->id ? "Secondary" : "Primary");
+		       (codec->id & 0x2) ? (codec->id&1 ? "4th" : "Tertiary") 
+		       : (codec->id&1 ? "Secondary":  "Primary"));
 		return 0;
 	}
 
drivers/sound/i810_audio.c +211 -24

421 lines not on this page · raw message