From mboxrd@z Thu Jan 1 00:00:00 1970 From: Takashi Iwai Subject: Re: A couple of hardware problems Date: Tue, 14 Jan 2003 17:23:04 +0100 Sender: alsa-devel-admin@lists.sourceforge.net Message-ID: References: <20030114143440.GW22132@ecs.soton.ac.uk> Mime-Version: 1.0 (generated by SEMI 1.14.4 - "Hosorogi") Content-Type: multipart/mixed; boundary="Multipart_Tue_Jan_14_17:23:04_2003-1" Return-path: In-Reply-To: <20030114143440.GW22132@ecs.soton.ac.uk> Errors-To: alsa-devel-admin@lists.sourceforge.net List-Help: List-Post: List-Subscribe: , List-Unsubscribe: , List-Archive: To: Steve Harris Cc: alsa-devel@lists.sourceforge.net List-Id: alsa-devel@alsa-project.org --Multipart_Tue_Jan_14_17:23:04_2003-1 Content-Type: text/plain; charset=US-ASCII At Tue, 14 Jan 2003 14:34:40 +0000, Steve Harris wrote: > > The first one is not a problem with alsa, but I haven't been able to find > any mention of it online, so I wonrdered if anyone has any insight into it. > > I have a motherboard with a via82xx chipset [KT333] on it, the bios will > only alow me to select "auto" or "disabled" for the sound device, and > neither seems to make the device appear to lspci, Is it possible that the > motherboard is disabling it becasue it's detected my other soundcards? yes, usually "auto" means to activate the chip on mobo only when no other soundcards exist. > The other I dont know about: I bought an ESS Solo1 based card (Terratec > 128i PCI) to use the MIDI port, but it doesn't appear to work for MIDI > input. I've been messing with it for a couple of days and I'm ready to > give up and swap it for an old ens1371 based card. If anyone has anything > I should try before swtiching it please say. the last time i tried, i also couldn't get the midi-in working, and forgot this issue for a while. i just took a look at the code again. could you test the attached patch? it's to the latest cvs but likely applicable to your version, too. Takashi --Multipart_Tue_Jan_14_17:23:04_2003-1 Content-Type: application/octet-stream Content-Disposition: attachment; filename="es1938-midi.dif" Content-Transfer-Encoding: 7bit Index: alsa-kernel/pci/es1938.c =================================================================== RCS file: /suse/tiwai/cvs/alsa/alsa-kernel/pci/es1938.c,v retrieving revision 1.19 diff -u -r1.19 es1938.c --- alsa-kernel/pci/es1938.c 7 Jan 2003 10:54:55 -0000 1.19 +++ alsa-kernel/pci/es1938.c 14 Jan 2003 16:21:04 -0000 @@ -1341,6 +1341,8 @@ static int snd_es1938_free(es1938_t *chip) { + if (chip->rmidi) + snd_es1938_mixer_bits(chip, ESSSB_IREG_MPU401CONTROL, 0x40, 0); #if defined(CONFIG_GAMEPORT) || defined(CONFIG_GAMEPORT_MODULE) if (chip->gameport.io) gameport_unregister_port(&chip->gameport); @@ -1540,9 +1542,7 @@ /* MPU401 */ if (status & 0x80) { - /* ack */ - snd_es1938_mixer_bits(chip, ESSSB_IREG_MPU401CONTROL, 0x40, 0); - printk("midi interrupt..\n"); + // snd_es1938_mixer_bits(chip, ESSSB_IREG_MPU401CONTROL, 0x40, 0); /* ack? */ if (chip->rmidi) snd_mpu401_uart_interrupt(irq, chip->rmidi->private_data, regs); } @@ -1650,7 +1650,9 @@ if (snd_mpu401_uart_new(card, 0, MPU401_HW_MPU401, chip->mpu_port, 1, chip->irq, 0, &chip->rmidi) < 0) { printk(KERN_ERR "es1938: unable to initialize MPU-401\n"); - } + } else + snd_es1938_mixer_bits(chip, ESSSB_IREG_MPU401CONTROL, 0x40, 0x40); + #if defined(CONFIG_GAMEPORT) || defined(CONFIG_GAMEPORT_MODULE) chip->gameport.io = chip->game_port; gameport_register_port(&chip->gameport); --Multipart_Tue_Jan_14_17:23:04_2003-1-- ------------------------------------------------------- This SF.NET email is sponsored by: FREE SSL Guide from Thawte are you planning your Web Server Security? Click here to get a FREE Thawte SSL guide and find the answers to all your SSL security issues. http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en