Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Wed, 6 Dec 2000 13:42:25 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Wed, 6 Dec 2000 13:42:16 -0500 Received: from grace.speakeasy.org ([216.254.0.2]:8461 "HELO grace.speakeasy.org") by vger.kernel.org with SMTP id ; Wed, 6 Dec 2000 13:42:05 -0500 Date: Wed, 6 Dec 2000 13:12:13 -0500 (EST) From: Pavel Roskin To: cc: Jaroslav Kysela , Pete Zaitcev , , Subject: YMF PCI - thanks, glitches, patches (fwd) Message-ID: MIME-Version: 1.0 Content-Type: MULTIPART/Mixed; BOUNDARY="839566344-936960036-976062106=:825" Content-ID: Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. Send mail to mime@docserver.cac.washington.edu for more info. --839566344-936960036-976062106=:825 Content-Type: TEXT/PLAIN; CHARSET=US-ASCII Content-ID: Hello! The Linux-sound list appears to be dead (I don't see my message in http://www.kernelnotes.org/lnxlists/linux-sound/), so I'm sending to the authors and the people discussing the problem on the linux-kernel mailing list. An additional problem is that opl3 cannot find the device unless I load and unload the old driver (ymf_sb). Probably the new driver should put the OPL3 interface to the legacy mode if it cannot handle it directly. This confirms my point that you should not disable building both drivers as modules at this stage. Regards, Pavel Roskin ---------- Forwarded message ---------- Date: Tue, 5 Dec 2000 19:26:34 -0500 (EST) From: Pavel Roskin To: linux-sound@vger.kernel.org Subject: YMF PCI - thanks, glitches, patches Hello! The native YMF PCI driver from Linux-2.4.0-test12-pre5 works on my card: Dec 5 18:07:11 fonzie kernel: ymfpci0: YMF740C at 0xf0000000 IRQ 10 Dec 5 18:07:11 fonzie kernel: ac97_codec: AC97 Audio codec, id: 0x4144:0x5303 (Unknown) Thanks to everybody who made it! Now about problems. Sometimes I get such messages in the log: Dec 5 18:08:16 fonzie kernel: ymfpci: ioctl cmd 0x5401 Dec 5 18:08:50 fonzie last message repeated 9 times While playing some sounds I'm getting $ play spinout.wav sox: Unable to set audio speed to 5512 (set to 8000) $ file spinout.wav spinout.wav: RIFF (little-endian) data, WAVE audio, Microsoft PCM, 8 bit, mono 5512 Hz This always happens for some sounds, and never happens for others. This message doesn't appear with the old driver (ymf_sb). I'm attaching spinout.wav. The next problem is the configuration file, linux/drivers/sound/Config.in. I'm sending you a patch that fixes the following problems: 1) The new driver does not depend (directly or indirectly) on the OSS sound.o module, thus CONFIG_SOUND_YMFPCI should not depend on CONFIG_SOUND_OSS. 2) CONFIG_SOUND_YMFPCI should depend on CONFIG_PCI. You cannot compile the driver without PCI support. 3) Both drivers (native and legacy) should disable the other driver if eigther of them is to be compiled into the kernel. However, it should be possible to compile both drivers as modules. I did it so I can compare them. 4) Don't forget about spaces in the description. You may also want to add a dependency to CONFIG_EXPERIMENTAL for CONFIG_SOUND_YMFPCI (not in my patch) if you feel that the driver is not ready for everybody. Just writing (EXPERIMENTAL) doesn't disable the question about the driver when CONFIG_EXPERIMENTAL is not set. The patch also contains minimal descriptions for CONFIG_SOUND_YMPCI and CONFIG_SOUND_YMFPCI. I hope somebody will add more stuff there. By the way, I'm surprised why many drivers for PCI sound cards don't depend on CONFIG_PCI. Regards, Pavel Roskin _______________________ --- linux/Documentation/Configure.help Tue Dec 5 10:08:10 2000 +++ linux/Documentation/Configure.help Tue Dec 5 17:57:26 2000 @@ -14250,6 +14250,18 @@ If unsure, say Y. +Yamaha PCI native mode support (EXPERIMENTAL) +CONFIG_SOUND_YMFPCI + This is an experimental driver that uses Yamaha PCI sound cards in + the native mode. You may also want to try another driver, + "Yamaha PCI legacy mode support" under the OSS drivers. + +Yamaha PCI legacy mode support +CONFIG_SOUND_YMPCI + This is a driver for Yamaha PCI sound cards that turns them + to the Sound Blaster compatible mode. You don't need to enable + Sound Blaster support to use it. + ACI mixer (miroPCM12/PCM20) CONFIG_SOUND_ACI_MIXER ACI (Audio Command Interface) is a protocol used to communicate with --- linux/drivers/sound/Config.in Tue Dec 5 10:08:13 2000 +++ linux/drivers/sound/Config.in Tue Dec 5 17:59:30 2000 @@ -79,6 +79,9 @@ fi dep_tristate ' VIA 82C686 Audio Codec' CONFIG_SOUND_VIA82CXXX $CONFIG_PCI +if [ "$CONFIG_SOUND_YMPCI" != "y" ]; then + dep_tristate ' Yamaha PCI native mode support (EXPERIMENTAL)' CONFIG_SOUND_YMFPCI $CONFIG_SOUND $CONFIG_PCI +fi dep_tristate ' OSS sound modules' CONFIG_SOUND_OSS $CONFIG_SOUND @@ -142,9 +145,8 @@ dep_tristate ' Yamaha FM synthesizer (YM3812/OPL-3) support' CONFIG_SOUND_YM3812 $CONFIG_SOUND_OSS dep_tristate ' Yamaha OPL3-SA1 audio controller' CONFIG_SOUND_OPL3SA1 $CONFIG_SOUND_OSS dep_tristate ' Yamaha OPL3-SA2, SA3, and SAx based PnP cards' CONFIG_SOUND_OPL3SA2 $CONFIG_SOUND_OSS - dep_tristate ' Yamaha PCI legacy mode support' CONFIG_SOUND_YMPCI $CONFIG_SOUND_OSS $CONFIG_PCI - if [ "$CONFIG_SOUND_YMPCI" = "n" ]; then - dep_tristate 'Yamaha PCI native mode support (EXPERIMENTAL)' CONFIG_SOUND_YMFPCI $CONFIG_SOUND_OSS + if [ "$CONFIG_SOUND_YMFPCI" != "y" ]; then + dep_tristate ' Yamaha PCI legacy mode support' CONFIG_SOUND_YMPCI $CONFIG_SOUND_OSS $CONFIG_PCI fi dep_tristate ' 6850 UART support' CONFIG_SOUND_UART6850 $CONFIG_SOUND_OSS _______________________ --839566344-936960036-976062106=:825 Content-Type: AUDIO/X-WAV; NAME="spinout.wav" Content-Transfer-Encoding: BASE64 Content-ID: Content-Description: Content-Disposition: ATTACHMENT; FILENAME="spinout.wav" UklGRv4PAABXQVZFZm10IBAAAAABAAEAiBUAAIgVAAABAAgAZGF0Ya0PAACK fot7jX6MfY97jnyJf4aBhIV+h4KKfI57kHuTe5B5knKMepB7iHiFgomGi4eA iYG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AASWZhY3QE AAAArQ8AAA== --839566344-936960036-976062106=:825-- - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org Please read the FAQ at http://www.tux.org/lkml/