From: Takashi Iwai Subject: Re: Audigy4 support Date: Mon, 27 Feb 2006 12:33:19 +0100 Message-ID: References: <20060222194029.1709b043@localhost.localdomain> <20060224195835.457552d8@localhost.localdomain> <20060225120157.0fad0068@localhost.localdomain> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: multipart/mixed; boundary="Multipart_Mon_Feb_27_12:33:19_2006-1" Return-path: In-Reply-To: <20060225120157.0fad0068@localhost.localdomain> 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: wwp Cc: alsa-devel@lists.sourceforge.net List-Id: alsa-devel@alsa-project.org --Multipart_Mon_Feb_27_12:33:19_2006-1 Content-Type: text/plain; charset=US-ASCII At Sat, 25 Feb 2006 12:01:57 +0100, wwp wrote: > > Hello Takashi, > > > On Fri, 24 Feb 2006 20:02:22 +0100 Takashi Iwai wrote: > > > At Fri, 24 Feb 2006 19:58:35 +0100, > > wwp wrote: > > > > > > Hello Takashi, > > > > > > > > > On Fri, 24 Feb 2006 19:25:54 +0100 Takashi Iwai wrote: > > > > > > > At Wed, 22 Feb 2006 19:40:29 +0100, > > > > wwp wrote: > > > > > > > > > > [1 ] > > > > > [1.1 ] > > > > > Hello all, > > > > > > > > > > > > > > > I've got a brand new Audigy4 PCI sound-card, running on Debian > > > > > unstable (kernel 2.6.15, feat. Alsa 1.0.10+1.0.11-rc2-2). > > > > > > > > > > I'm able to get PCM out but can't get line-in to work: the alsa mixer > > > > > allows un-muting line-in but I can't get the input selector in > > > > > audacity for instance. > > > > > > > > > > > > > > > The exact model is a Creative SoundBlaster Audigy 4 retail (purchase > > > > > date: 20060219, UK) w/ remote controler RM-1500. > > > > > > > > > > 0000:00:0a.0 0401: 1102:0008 > > > > > Here was lspci says: > > > > > > > > > > 0000:00:0a.0 Multimedia audio controller: Creative Labs SB0400 Audigy2 > > > > > Value Subsystem: Creative Labs: Unknown device 1021 > > > > > Control: I/O+ Mem- BusMaster+ SpecCycle- MemWINV- > > > > > VGASnoop- ParErr- Stepping- SERR- FastB2B- Status: Cap+ 66MHz- UDF- > > > > > FastB2B+ ParErr- DEVSEL=medium >TAbort- SERR- > > > > > > > > > IRQ 12 Region 0: I/O ports at d400 [size=64] > > > > > Capabilities: [dc] Power Management version 2 > > > > > Flags: PMEClk- DSI+ D1+ D2+ > > > > > AuxCurrent=0mA PME(D0-,D1-,D2-,D3hot-,D3cold-) Status: D0 PME-Enable- > > > > > DSel=0 DScale=0 PME- > > > > > > > > > > > > > > > I've found that the emu10k1 sources (checked at 1.0.11-rc3) don't > > > > > include the card IDs, would the attached patch do it? Would that one > > > > > be enough to get proper line-in support? > > > > > > > > Are you sue that the patch really works for you? > > > > 1102:2008 are _not_ subsystem IDs but the normal PCI IDs. > > > > > > > > The subsystem number in the emu10k1's chip table is what you get as > > > > the serial number in /proc/asound/cards (perhaps 0x10211102). > > > > > > Well, I never said that the patch worked neither that I've applied it :-). > > > No, I just wrote it as I assumed, wrongly, that it was a possible > > > solution to submit before I set up a customized kernel configuration from > > > the sources. Sorry for this confusion. > > > > > > Here's what `cat /proc/asound/cards` shows: > > > > > > 0 [Audigy2 ]: Audigy2 - Audigy 2 Value [Unknown] > > > Audigy 2 Value [Unknown] (rev.0, serial:0x10211102) > > > at 0xd400, irq 12 1 [UART ]: MPU-401 UART - MPU-401 UART > > > MPU-401 UART at 0x330, irq 5 > > > > > > > > > Now.. what to do? Should I provide more information? What to expect? > > > > Try subsystem=0x10211102 module option with snd-emu10k1. > > It assumes that the subsystem is the given model. > > > > If that works, please create a write patch with correct parameters :) > > .vendor = 0x1102, .device = 0x0008, .subsystem = 0x20121102 > > ... > > and check whether the driver works without extra module option. > > Ouch! Seems that my cable was the culprit, line-in works now w/ a new cable > (wtf??). I'm really sorry for the noise. Anyway I'm still interested in > making Alsa recognizing this card.. what's next step, do you have all the > necessary information now? OK, that's good to hear the driver works :) To get rid of 'unknown' state, try the patch below. It also adds 7.1-output capability. Try speaker-test for testing 7.1 output. Takashi --Multipart_Mon_Feb_27_12:33:19_2006-1 Content-Type: text/plain; charset=US-ASCII 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.79 diff -u -r1.79 emu10k1_main.c --- alsa-kernel/pci/emu10k1/emu10k1_main.c 16 Jan 2006 16:40:06 -0000 1.79 +++ alsa-kernel/pci/emu10k1/emu10k1_main.c 27 Feb 2006 11:33:09 -0000 @@ -777,6 +777,13 @@ static struct snd_emu_chip_details emu_chip_details[] = { /* Audigy 2 Value AC3 out does not work yet. Need to find out how to turn off interpolators.*/ + {.vendor = 0x1102, .device = 0x0008, .subsystem = 0x20121102, + .driver = "Audigy2", .name = "Audigy 4 [SB0400]", + .id = "Audigy2", + .emu10k2_chip = 1, + .ca0108_chip = 1, + .spk71 = 1, + .ac97_chip = 1} , /* Tested by James@superbug.co.uk 3rd July 2005 */ /* DSP: CA0108-IAT * DAC: CS4382-KQ --Multipart_Mon_Feb_27_12:33:19_2006-1-- ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642