SoundPro 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. Documentation for the SoundPro CMI8330 extensions in the WSS driver (ad1848.o)
  2. ------------------------------------------------------------------------------
  3. ( Be sure to read Documentation/sound/oss/CMI8330 too )
  4. Ion Badulescu, ionut@cs.columbia.edu
  5. February 24, 1999
  6. (derived from the OPL3-SA2 documentation by Scott Murray)
  7. The SoundPro CMI8330 (ISA) is a chip usually found on some Taiwanese
  8. motherboards. The official name in the documentation is CMI8330, SoundPro
  9. is the nickname and the big inscription on the chip itself.
  10. The chip emulates a WSS as well as a SB16, but it has certain differences
  11. in the mixer section which require separate support. It also emulates an
  12. MPU401 and an OPL3 synthesizer, so you probably want to enable support
  13. for these, too.
  14. The chip identifies itself as an AD1848, but its mixer is significantly
  15. more advanced than the original AD1848 one. If your system works with
  16. either WSS or SB16 and you are having problems with some mixer controls
  17. (no CD audio, no line-in, etc), you might want to give this driver a try.
  18. Detection should work, but it hasn't been widely tested, so it might still
  19. mis-identify the chip. You can still force soundpro=1 in the modprobe
  20. parameters for ad1848. Please let me know if it happens to you, so I can
  21. adjust the detection routine.
  22. The chip is capable of doing full-duplex, but since the driver sees it as an
  23. AD1848, it cannot take advantage of this. Moreover, the full-duplex mode is
  24. not achievable through the WSS interface, b/c it needs a dma16 line which is
  25. assigned only to the SB16 subdevice (with isapnp). Windows documentation
  26. says the user must use WSS Playback and SB16 Recording for full-duplex, so
  27. it might be possible to do the same thing under Linux. You can try loading
  28. up both ad1848 and sb then use one for playback and the other for
  29. recording. I don't know if this works, b/c I haven't tested it. Anyway, if
  30. you try it, be very careful: the SB16 mixer *mostly* works, but certain
  31. settings can have unexpected effects. Use the WSS mixer for best results.
  32. There is also a PCI SoundPro chip. I have not seen this chip, so I have
  33. no idea if the driver will work with it. I suspect it won't.
  34. As with PnP cards, some configuration is required. There are two ways
  35. of doing this. The most common is to use the isapnptools package to
  36. initialize the card, and use the kernel module form of the sound
  37. subsystem and sound drivers. Alternatively, some BIOS's allow manual
  38. configuration of installed PnP devices in a BIOS menu, which should
  39. allow using the non-modular sound drivers, i.e. built into the kernel.
  40. Since in this latter case you cannot use module parameters, you will
  41. have to enable support for the SoundPro at compile time.
  42. The IRQ and DMA values can be any that are considered acceptable for a
  43. WSS. Assuming you've got isapnp all happy, then you should be able to
  44. do something like the following (which *must* match the isapnp/BIOS
  45. configuration):
  46. modprobe ad1848 io=0x530 irq=11 dma=0 soundpro=1
  47. -and maybe-
  48. modprobe sb io=0x220 irq=5 dma=1 dma16=5
  49. -then-
  50. modprobe mpu401 io=0x330 irq=9
  51. modprobe opl3 io=0x388
  52. If all goes well and you see no error messages, you should be able to
  53. start using the sound capabilities of your system. If you get an
  54. error message while trying to insert the module(s), then make
  55. sure that the values of the various arguments match what you specified
  56. in your isapnp configuration file, and that there is no conflict with
  57. another device for an I/O port or interrupt. Checking the contents of
  58. /proc/ioports and /proc/interrupts can be useful to see if you're
  59. butting heads with another device.
  60. If you do not see the chipset version message, and none of the other
  61. messages present in the system log are helpful, try adding 'debug=1'
  62. to the ad1848 parameters, email me the syslog results and I'll do
  63. my best to help.
  64. Lastly, if you're using modules and want to set up automatic module
  65. loading with kmod, the kernel module loader, here is the section I
  66. currently use in my conf.modules file:
  67. # Sound
  68. post-install sound modprobe -k ad1848; modprobe -k mpu401; modprobe -k opl3
  69. options ad1848 io=0x530 irq=11 dma=0
  70. options sb io=0x220 irq=5 dma=1 dma16=5
  71. options mpu401 io=0x330 irq=9
  72. options opl3 io=0x388
  73. The above ensures that ad1848 will be loaded whenever the sound system
  74. is being used.
  75. Good luck.
  76. Ion
  77. NOT REALLY TESTED:
  78. - recording
  79. - recording device selection
  80. - full-duplex
  81. TODO:
  82. - implement mixer support for surround, loud, digital CD switches.
  83. - come up with a scheme which allows recording volumes for each subdevice.
  84. This is a major OSS API change.