Uros Bizjak wrote: > This patch is a rework of OPL3 chip detection (again...): > > - detects OPL4 with by-the-book procedure. FM registers can not be > read in OPL4 mode (look at page 8 of OPL4 documentation)
The registers can be read with my OPL4 chip. The chip designers did not read the documentation. :-) > Mostly trivial stuff, but OPL3-L and OPL4 detection is untested as > I don't have the hardware. Could anybody test it? + /* OPL4 outputs 0x02 in status register after NEW2 bit is set */ + signature = inb(opl3->l_port); /* Status register */ + if (signature == 0x02) { This only works the first time after a cold boot. I think my old code has a better chance of working reliably. The OPL4 detection doesn't really matter as long as we don't have an OPL4 driver. That one would look at the OPL4 registers to detect it. (The Yamaha drivers test whether all 8 bits of PCM registers F8/F9 are R/W. This is undocumented for the upper 2 bits. :-) We cannot do this in the OPL3 driver without grabbing the OPL4 port addresses. I have source code for an OPL4 wavetable driver for NT, but didn't yet have enough time to port it to ALSA. Anybody interested? > OPL4 documents can be found at: > http://www.kss-loka.si/~uros/opl4.pdf (application manual) My copy (at <http://www.informatik.uni-halle.de/~ladischc/opl4.pdf>) has the same contents, but smaller file size. Different compression? Clemens ------------------------------------------------------- This sf.net email is sponsored by: Dice - The leading online job board for high-tech professionals. Search and apply for tech jobs today! http://seeker.dice.com/seeker.epl?rel_code=31 _______________________________________________ Alsa-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/alsa-devel