btaudio 3.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. Intro
  2. =====
  3. people start bugging me about this with questions, looks like I
  4. should write up some documentation for this beast. That way I
  5. don't have to answer that much mails I hope. Yes, I'm lazy...
  6. You might have noticed that the bt878 grabber cards have actually
  7. _two_ PCI functions:
  8. $ lspci
  9. [ ... ]
  10. 00:0a.0 Multimedia video controller: Brooktree Corporation Bt878 (rev 02)
  11. 00:0a.1 Multimedia controller: Brooktree Corporation Bt878 (rev 02)
  12. [ ... ]
  13. The first does video, it is backward compatible to the bt848. The second
  14. does audio. btaudio is a driver for the second function. It's a sound
  15. driver which can be used for recording sound (and _only_ recording, no
  16. playback). As most TV cards come with a short cable which can be plugged
  17. into your sound card's line-in you probably don't need this driver if all
  18. you want to do is just watching TV...
  19. Driver Status
  20. =============
  21. Still somewhat experimental. The driver should work stable, i.e. it
  22. should'nt crash your box. It might not work as expected, have bugs,
  23. not being fully OSS API compliant, ...
  24. Latest versions are available from http://bytesex.org/bttv/, the
  25. driver is in the bttv tarball. Kernel patches might be available too,
  26. have a look at http://bytesex.org/bttv/listing.html.
  27. The chip knows two different modes. btaudio registers two dsp
  28. devices, one for each mode. They can not be used at the same time.
  29. Digital audio mode
  30. ==================
  31. The chip gives you 16 bit stereo sound. The sample rate depends on
  32. the external source which feeds the bt878 with digital sound via I2S
  33. interface. There is a insmod option (rate) to tell the driver which
  34. sample rate the hardware uses (32000 is the default).
  35. One possible source for digital sound is the msp34xx audio processor
  36. chip which provides digital sound via I2S with 32 kHz sample rate. My
  37. Hauppauge board works this way.
  38. The Osprey-200 reportly gives you digital sound with 44100 Hz sample
  39. rate. It is also possible that you get no sound at all.
  40. analog mode (A/D)
  41. =================
  42. You can tell the driver to use this mode with the insmod option "analog=1".
  43. The chip has three analog inputs. Consequently you'll get a mixer device
  44. to control these.
  45. The analog mode supports mono only. Both 8 + 16 bit. Both are _signed_
  46. int, which is uncommon for the 8 bit case. Sample rate range is 119 kHz
  47. to 448 kHz. Yes, the number of digits is correct. The driver supports
  48. downsampling by powers of two, so you can ask for more usual sample rates
  49. like 44 kHz too.
  50. With my Hauppauge I get noisy sound on the second input (mapped to line2
  51. by the mixer device). Others get a useable signal on line1.
  52. some examples
  53. =============
  54. * read audio data from btaudio (dsp2), send to es1730 (dsp,dsp1):
  55. $ sox -w -r 32000 -t ossdsp /dev/dsp2 -t ossdsp /dev/dsp
  56. * read audio data from btaudio, send to esound daemon (which might be
  57. running on another host):
  58. $ sox -c 2 -w -r 32000 -t ossdsp /dev/dsp2 -t sw - | esdcat -r 32000
  59. $ sox -c 1 -w -r 32000 -t ossdsp /dev/dsp2 -t sw - | esdcat -m -r 32000
  60. Have fun,
  61. Gerd
  62. --
  63. Gerd Knorr <kraxel@bytesex.org>