summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Bainbridge <chrb@gentoo.org>2005-04-03 17:52:59 +0000
committerChris Bainbridge <chrb@gentoo.org>2005-04-03 17:52:59 +0000
commit524eb3499269fde89434c66acc56ae23c64aa723 (patch)
tree7ba56c888af786761efb0c67665c9517d42ce6c8 /media-sound/alsa-driver/files
parentuse a more standard char in banner (diff)
downloadhistorical-524eb3499269fde89434c66acc56ae23c64aa723.tar.gz
historical-524eb3499269fde89434c66acc56ae23c64aa723.tar.bz2
historical-524eb3499269fde89434c66acc56ae23c64aa723.zip
Re-added xbox support (bug #80989)
Package-Manager: portage-2.0.51.19
Diffstat (limited to 'media-sound/alsa-driver/files')
-rw-r--r--media-sound/alsa-driver/files/xbox-1.0.8.patch33
1 files changed, 33 insertions, 0 deletions
diff --git a/media-sound/alsa-driver/files/xbox-1.0.8.patch b/media-sound/alsa-driver/files/xbox-1.0.8.patch
new file mode 100644
index 000000000000..17a78c7f4f19
--- /dev/null
+++ b/media-sound/alsa-driver/files/xbox-1.0.8.patch
@@ -0,0 +1,33 @@
+diff -cr --exclude=sound alsa-driver-1.0.8.orig/alsa-kernel/pci/ac97/ac97_codec.c alsa-driver-1.0.8/alsa-kernel/pci/ac97/ac97_codec.c
+*** alsa-driver-1.0.8.orig/alsa-kernel/pci/ac97/ac97_codec.c Tue Jan 11 17:44:52 2005
+--- alsa-driver-1.0.8/alsa-kernel/pci/ac97/ac97_codec.c Sun Apr 3 17:52:06 2005
+***************
+*** 1920,1930 ****
+
+ /* test for AC'97 */
+ if (!(ac97->scaps & AC97_SCAP_SKIP_AUDIO) && !(ac97->scaps & AC97_SCAP_AUDIO)) {
+! /* test if we can write to the record gain volume register */
+! snd_ac97_write_cache(ac97, AC97_REC_GAIN, 0x8a06);
+! if (((err = snd_ac97_read(ac97, AC97_REC_GAIN)) & 0x7fff) == 0x0a06)
+! ac97->scaps |= AC97_SCAP_AUDIO;
+ }
+ if (ac97->scaps & AC97_SCAP_AUDIO) {
+ ac97->caps = snd_ac97_read(ac97, AC97_RESET);
+ ac97->ext_id = snd_ac97_read(ac97, AC97_EXTENDED_ID);
+--- 1920,1935 ----
+
+ /* test for AC'97 */
+ if (!(ac97->scaps & AC97_SCAP_SKIP_AUDIO) && !(ac97->scaps & AC97_SCAP_AUDIO)) {
+! if ((ac97->scaps & AC97_SCAP_DETECT_BY_VENDOR))
+! ac97->scaps |= AC97_SCAP_AUDIO;
+! else {
+! /* test if we can write to the record gain volume register */
+! snd_ac97_write_cache(ac97, AC97_REC_GAIN, 0x8a06);
+! if (((err = snd_ac97_read(ac97, AC97_REC_GAIN)) & 0x7fff) == 0x0a06)
+! ac97->scaps |= AC97_SCAP_AUDIO;
+! }
+ }
++
+ if (ac97->scaps & AC97_SCAP_AUDIO) {
+ ac97->caps = snd_ac97_read(ac97, AC97_RESET);
+ ac97->ext_id = snd_ac97_read(ac97, AC97_EXTENDED_ID);