SB Live! (5.1) has gone silent again with ALSA CVS
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.
02:0a.0 Class 0401: 1102:0002 (rev 07)
Subsystem: 1102:8061
Control: I/O+ Mem- BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR-
FastB2B-
Status: Cap+ 66Mhz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR-
<PERR-
Latency: 32 (500ns min, 5000ns max)
Interrupt: pin A routed to IRQ 19
Region 0: I/O ports at d800 [size=32]
Capabilities: <available only to root>
02:0a.1 Class 0980: 1102:7002 (rev 07)
Subsystem: 1102:0020
Control: I/O+ Mem- BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR-
FastB2B-
Status: Cap+ 66Mhz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR-
<PERR-
Latency: 32
Region 0: I/O ports at d400 [size=8]
Capabilities: <available only to root>$ amixer Simple mixer control 'Headphone LFE',1 Capabilities: pswitch pswitch-joined Playback channels: Mono Mono: Playback [on] Simple mixer control 'Headphone',1 Capabilities: pvolume Playback channels: Front Left - Front Right Limits: Playback 0 - 100 Mono: Front Left: Playback 0 [0%] Front Right: Playback 0 [0%] Simple mixer control 'Headphone Center',1 Capabilities: pswitch pswitch-joined Playback channels: Mono Mono: Playback [on] Simple mixer control 'Tone',0 Capabilities: pswitch Playback channels: Front Left - Front Right Mono: Front Left: Playback [on] Front Right: Playback [on] Simple mixer control 'Bass',0 Capabilities: volume Playback channels: Front Left - Front Right Capture channels: Front Left - Front Right Limits: 0 - 40 Front Left: 20 [50%] Front Right: 20 [50%] Simple mixer control 'Treble',0 Capabilities: volume Playback channels: Front Left - Front Right Capture channels: Front Left - Front Right Limits: 0 - 40 Front Left: 20 [50%] Front Right: 20 [50%] Simple mixer control 'Front',0 Capabilities: pvolume cvolume cswitch cswitch-joined Playback channels: Front Left - Front Right Capture channels: Front Left - Front Right Limits: Playback 0 - 100 Capture 0 - 100 Front Left: Playback 100 [100%] Capture 0 [0%] [off] Front Right: Playback 100 [100%] Capture 0 [0%] [off] Simple mixer control 'Surround',0 Capabilities: pvolume cvolume cswitch Playback channels: Front Left - Front Right Capture channels: Front Left - Front Right Limits: Playback 0 - 100 Capture 0 - 100 Front Left: Playback 72 [72%] Capture 0 [0%] [off] Front Right: Playback 72 [72%] Capture 0 [0%] [off] Simple mixer control 'Center',0 Capabilities: pvolume pvolume-joined Playback channels: Mono Limits: Playback 0 - 100 Mono: Playback 76 [76%] Simple mixer control 'LFE',0 Capabilities: pvolume pvolume-joined Playback channels: Mono Limits: Playback 0 - 100 Mono: Playback 76 [76%] Simple mixer control 'Synth',0 Capabilities: pvolume cvolume cswitch Playback channels: Front Left - Front Right Capture channels: Front Left - Front Right Limits: Playback 0 - 100 Capture 0 - 100 Front Left: Playback 76 [76%] Capture 76 [76%] [off] Front Right: Playback 76 [76%] Capture 76 [76%] [off] Simple mixer control 'Wave',0 Capabilities: pvolume cvolume cswitch Playback channels: Front Left - Front Right Capture channels: Front Left - Front Right Limits: Playback 0 - 100 Capture 0 - 100 Front Left: Playback 76 [76%] Capture 76 [76%] [off] Front Right: Playback 76 [76%] Capture 76 [76%] [off] Simple mixer control 'Wave Center',0 Capabilities: pvolume pvolume-joined Playback channels: Mono Limits: Playback 0 - 100 Mono: Playback 76 [76%] Simple mixer control 'Wave LFE',0 Capabilities: pvolume pvolume-joined Playback channels: Mono Limits: Playback 0 - 100 Mono: Playback 76 [76%] Simple mixer control 'Wave Surround',0 Capabilities: pvolume Playback channels: Front Left - Front Right Limits: Playback 0 - 100 Mono: Front Left: Playback 84 [84%] Front Right: Playback 84 [84%] Simple mixer control 'Line LiveDrive',0 Capabilities: pvolume cvolume cswitch Playback channels: Front Left - Front Right Capture channels: Front Left - Front Right Limits: Playback 0 - 100 Capture 0 - 100 Front Left: Playback 0 [0%] Capture 0 [0%] [off] Front Right: Playback 0 [0%] Capture 0 [0%] [off] Simple mixer control 'Line2 LiveDrive',1 Capabilities: pvolume cvolume cswitch Playback channels: Front Left - Front Right Capture channels: Front Left - Front Right Limits: Playback 0 - 100 Capture 0 - 100 Front Left: Playback 0 [0%] Capture 0 [0%] [off] Front Right: Playback 0 [0%] Capture 0 [0%] [off] Simple mixer control 'IEC958 Coaxial',0 Capabilities: pvolume cvolume cswitch Playback channels: Front Left - Front Right Capture channels: Front Left - Front Right Limits: Playback 0 - 100 Capture 0 - 100 Front Left: Playback 0 [0%] Capture 0 [0%] [off] Front Right: Playback 0 [0%] Capture 0 [0%] [off] Simple mixer control 'IEC958 LiveDrive',0 Capabilities: pvolume cvolume cswitch Playback channels: Front Left - Front Right Capture channels: Front Left - Front Right Limits: Playback 0 - 100 Capture 0 - 100 Front Left: Playback 0 [0%] Capture 0 [0%] [off] Front Right: Playback 0 [0%] Capture 0 [0%] [off] Simple mixer control 'IEC958 Optical Raw',0 Capabilities: pswitch Playback channels: Front Left - Front Right Mono: Front Left: Playback [off] Front Right: Playback [off] Simple mixer control 'IEC958 TTL',0 Capabilities: pvolume cvolume cswitch Playback channels: Front Left - Front Right Capture channels: Front Left - Front Right Limits: Playback 0 - 100 Capture 0 - 100 Front Left: Playback 0 [0%] Capture 0 [0%] [off] Front Right: Playback 0 [0%] Capture 0 [0%] [off] Simple mixer control 'AC97',0 Capabilities: pvolume cvolume Playback channels: Front Left - Front Right Capture channels: Front Left - Front Right Limits: Playback 0 - 100 Capture 0 - 100 Front Left: Playback 0 [0%] Capture 100 [100%] Front Right: Playback 0 [0%] Capture 100 [100%] Simple mixer control 'SB Live Analog/Digital Output Jack',0 Capabilities: pswitch pswitch-joined Playback channels: Mono Mono: Playback [off]
Cheers,
Chris
___________________________________________________________
To help you stay safe and secure online, we've developed the all new Yahoo! Security Centre. http://uk.security.yahoo.com
-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl
At Thu, 29 Sep 2005 15:28:25 +0100 (BST),
Quoted 5 lines · Chris Rankin
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.
Takashi
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
pci/emu10k1/emu10k1_main.c +1 -0
@@ -759,6 +759,7 @@ .driver = "EMU10K1", .name = "SBLive! Platinum 5.1 [SB0060]", .id = "Live", .emu10k1_chip = 1, + .ac97_chip = 1, .sblive51 = 1} , {.vendor = 0x1102, .device = 0x0002, .subsystem = 0x80511102, .driver = "EMU10K1", .name = "SBLive! Value [CT4850]",
-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl
At Thu, 29 Sep 2005 16:54:17 +0200,
Quoted 6 lines · I wrote:
At Thu, 29 Sep 2005 15:28:25 +0100 (BST),
Quoted 3 lines · Chris Rankin
Hi,
Quoted 7 lines
Quoted 2 lines
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
include/emu10k1.h +1 -1
@@ -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
pci/emu10k1/emu10k1_main.c +4 -1
@@ -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
pci/emu10k1/emumixer.c +8 -2
@@ -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
Quoted 4 lines · --- Takashi Iwai
Quoted 4 lines
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.
$ cat /proc/asound/cards
0 [SB-Live ]: EMU10K1 - SBLive! Platinum 5.1 [SB0060]
SBLive! Platinum 5.1 [SB0060] (rev.7, serial:0x80611102) at 0xd800, irq 19I've always thought that this was an "SBLive! Gamer". However, the 2nd fix seems to have worked.
Thanks,
Chris
___________________________________________________________
To help you stay safe and secure online, we've developed the all new Yahoo! Security Centre. http://uk.security.yahoo.com
-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl