From: Takashi Iwai Subject: Re: SB Live! (5.1) has gone silent again with ALSA CVS Date: Thu, 29 Sep 2005 17:52:25 +0200 Message-ID: References: <20050929142826.9947.qmail@web52902.mail.yahoo.com> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Return-path: In-Reply-To: Sender: alsa-devel-admin@lists.sourceforge.net Errors-To: alsa-devel-admin@lists.sourceforge.net List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , List-Archive: To: Chris Rankin Cc: alsa-devel@lists.sourceforge.net List-Id: alsa-devel@alsa-project.org At Thu, 29 Sep 2005 16:54:17 +0200, I wrote: > > At Thu, 29 Sep 2005 15:28:25 +0100 (BST), > Chris Rankin wrote: > > > > Hi, > > > > This happened before, then fixed itself but is now broken again: my SB Live! 5.1 (rev 7) card has > > lost its Master Volume mixer control, and is now languishing in silence. > > What shows /proc/asound/cards? > > If it's "SBLive! Platinum 5.1 [SB0060]", you hit a known bug. > The below is a workaround, but it's not a right fix. The below is a slightly better fix. Try it and let me know whether it works. Takashi Index: alsa-kernel/include/emu10k1.h =================================================================== RCS file: /home/iwai/cvs/alsa/alsa-kernel/include/emu10k1.h,v retrieving revision 1.68 diff -u -r1.68 emu10k1.h --- alsa-kernel/include/emu10k1.h 7 Sep 2005 12:56:34 -0000 1.68 +++ alsa-kernel/include/emu10k1.h 29 Sep 2005 15:50:51 -0000 @@ -1059,7 +1059,7 @@ unsigned char spk71; /* Has 7.1 speakers */ unsigned char sblive51; /* SBLive! 5.1 - extout 0x11 -> center, 0x12 -> lfe */ unsigned char spdif_bug; /* Has Spdif phasing bug */ - unsigned char ac97_chip; /* Has an AC97 chip */ + unsigned char ac97_chip; /* Has an AC97 chip: 1 = mandatory, 2 = optional */ unsigned char ecard; /* APS EEPROM */ const char *driver; const char *name; Index: alsa-kernel/pci/emu10k1/emu10k1_main.c =================================================================== RCS file: /home/iwai/cvs/alsa/alsa-kernel/pci/emu10k1/emu10k1_main.c,v retrieving revision 1.65 diff -u -r1.65 emu10k1_main.c --- alsa-kernel/pci/emu10k1/emu10k1_main.c 10 Sep 2005 14:34:45 -0000 1.65 +++ alsa-kernel/pci/emu10k1/emu10k1_main.c 29 Sep 2005 15:50:51 -0000 @@ -756,9 +756,12 @@ .sblive51 = 1} , /* Tested by alsa bugtrack user "hus" bug #1297 12th Aug 2005 */ {.vendor = 0x1102, .device = 0x0002, .subsystem = 0x80611102, - .driver = "EMU10K1", .name = "SBLive! Platinum 5.1 [SB0060]", + .driver = "EMU10K1", .name = "SBLive 5.1 [SB0060]", .id = "Live", .emu10k1_chip = 1, + .ac97_chip = 2, /* ac97 is optional; both SBLive 5.1 and platinum + * share the same IDs! + */ .sblive51 = 1} , {.vendor = 0x1102, .device = 0x0002, .subsystem = 0x80511102, .driver = "EMU10K1", .name = "SBLive! Value [CT4850]", Index: alsa-kernel/pci/emu10k1/emumixer.c =================================================================== RCS file: /home/iwai/cvs/alsa/alsa-kernel/pci/emu10k1/emumixer.c,v retrieving revision 1.37 diff -u -r1.37 emumixer.c --- alsa-kernel/pci/emu10k1/emumixer.c 3 Aug 2005 12:54:39 -0000 1.37 +++ alsa-kernel/pci/emu10k1/emumixer.c 29 Sep 2005 15:50:51 -0000 @@ -802,8 +802,13 @@ .read = snd_emu10k1_ac97_read, }; - if ((err = snd_ac97_bus(emu->card, 0, &ops, NULL, &pbus)) < 0) - return err; + if ((err = snd_ac97_bus(emu->card, 0, &ops, NULL, &pbus)) < 0) { + if (emu->card_capabilities->ac97_chip == 1) + return err; + snd_printd(KERN_INFO "emu10k1: AC97 is optional on this board\n"); + snd_printd(KERN_INFO" Proceeding without ac97 mixers...\n"); + goto no_ac97; /* FIXME: get rid of ugly gotos.. */ + } pbus->no_vra = 1; /* we don't need VRA */ memset(&ac97, 0, sizeof(ac97)); @@ -836,6 +841,7 @@ for (; *c; c++) remove_ctl(card, *c); } else { + no_ac97: if (emu->card_capabilities->ecard) strcpy(emu->card->mixername, "EMU APS"); else if (emu->audigy) ------------------------------------------------------- This SF.Net email is sponsored by: Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl