18c2ecf20Sopenharmony_ci=================
28c2ecf20Sopenharmony_ciALSA BT87x Driver
38c2ecf20Sopenharmony_ci=================
48c2ecf20Sopenharmony_ci
58c2ecf20Sopenharmony_ciIntro
68c2ecf20Sopenharmony_ci=====
78c2ecf20Sopenharmony_ci
88c2ecf20Sopenharmony_ciYou might have noticed that the bt878 grabber cards have actually
98c2ecf20Sopenharmony_ci*two* PCI functions:
108c2ecf20Sopenharmony_ci::
118c2ecf20Sopenharmony_ci
128c2ecf20Sopenharmony_ci  $ lspci
138c2ecf20Sopenharmony_ci  [ ... ]
148c2ecf20Sopenharmony_ci  00:0a.0 Multimedia video controller: Brooktree Corporation Bt878 (rev 02)
158c2ecf20Sopenharmony_ci  00:0a.1 Multimedia controller: Brooktree Corporation Bt878 (rev 02)
168c2ecf20Sopenharmony_ci  [ ... ]
178c2ecf20Sopenharmony_ci
188c2ecf20Sopenharmony_ciThe first does video, it is backward compatible to the bt848.  The second
198c2ecf20Sopenharmony_cidoes audio.  snd-bt87x is a driver for the second function.  It's a sound
208c2ecf20Sopenharmony_cidriver which can be used for recording sound (and *only* recording, no
218c2ecf20Sopenharmony_ciplayback).  As most TV cards come with a short cable which can be plugged
228c2ecf20Sopenharmony_ciinto your sound card's line-in you probably don't need this driver if all
238c2ecf20Sopenharmony_ciyou want to do is just watching TV...
248c2ecf20Sopenharmony_ci
258c2ecf20Sopenharmony_ciSome cards do not bother to connect anything to the audio input pins of
268c2ecf20Sopenharmony_cithe chip, and some other cards use the audio function to transport MPEG
278c2ecf20Sopenharmony_civideo data, so it's quite possible that audio recording may not work
288c2ecf20Sopenharmony_ciwith your card.
298c2ecf20Sopenharmony_ci
308c2ecf20Sopenharmony_ci
318c2ecf20Sopenharmony_ciDriver Status
328c2ecf20Sopenharmony_ci=============
338c2ecf20Sopenharmony_ci
348c2ecf20Sopenharmony_ciThe driver is now stable.  However, it doesn't know about many TV cards,
358c2ecf20Sopenharmony_ciand it refuses to load for cards it doesn't know.
368c2ecf20Sopenharmony_ci
378c2ecf20Sopenharmony_ciIf the driver complains ("Unknown TV card found, the audio driver will
388c2ecf20Sopenharmony_cinot load"), you can specify the ``load_all=1`` option to force the driver to
398c2ecf20Sopenharmony_citry to use the audio capture function of your card.  If the frequency of
408c2ecf20Sopenharmony_cirecorded data is not right, try to specify the ``digital_rate`` option with
418c2ecf20Sopenharmony_ciother values than the default 32000 (often it's 44100 or 64000).
428c2ecf20Sopenharmony_ci
438c2ecf20Sopenharmony_ciIf you have an unknown card, please mail the ID and board name to
448c2ecf20Sopenharmony_ci<alsa-devel@alsa-project.org>, regardless of whether audio capture works
458c2ecf20Sopenharmony_cior not, so that future versions of this driver know about your card.
468c2ecf20Sopenharmony_ci
478c2ecf20Sopenharmony_ci
488c2ecf20Sopenharmony_ciAudio modes
498c2ecf20Sopenharmony_ci===========
508c2ecf20Sopenharmony_ci
518c2ecf20Sopenharmony_ciThe chip knows two different modes (digital/analog).  snd-bt87x
528c2ecf20Sopenharmony_ciregisters two PCM devices, one for each mode.  They cannot be used at
538c2ecf20Sopenharmony_cithe same time.
548c2ecf20Sopenharmony_ci
558c2ecf20Sopenharmony_ci
568c2ecf20Sopenharmony_ciDigital audio mode
578c2ecf20Sopenharmony_ci==================
588c2ecf20Sopenharmony_ci
598c2ecf20Sopenharmony_ciThe first device (hw:X,0) gives you 16 bit stereo sound.  The sample
608c2ecf20Sopenharmony_cirate depends on the external source which feeds the Bt87x with digital
618c2ecf20Sopenharmony_cisound via I2S interface.
628c2ecf20Sopenharmony_ci
638c2ecf20Sopenharmony_ci
648c2ecf20Sopenharmony_ciAnalog audio mode (A/D)
658c2ecf20Sopenharmony_ci=======================
668c2ecf20Sopenharmony_ci
678c2ecf20Sopenharmony_ciThe second device (hw:X,1) gives you 8 or 16 bit mono sound.  Supported
688c2ecf20Sopenharmony_cisample rates are between 119466 and 448000 Hz (yes, these numbers are
698c2ecf20Sopenharmony_cithat high).  If you've set the CONFIG_SND_BT87X_OVERCLOCK option, the
708c2ecf20Sopenharmony_cimaximum sample rate is 1792000 Hz, but audio data becomes unusable
718c2ecf20Sopenharmony_cibeyond 896000 Hz on my card.
728c2ecf20Sopenharmony_ci
738c2ecf20Sopenharmony_ciThe chip has three analog inputs.  Consequently you'll get a mixer
748c2ecf20Sopenharmony_cidevice to control these.
758c2ecf20Sopenharmony_ci
768c2ecf20Sopenharmony_ci
778c2ecf20Sopenharmony_ciHave fun,
788c2ecf20Sopenharmony_ci
798c2ecf20Sopenharmony_ci  Clemens
808c2ecf20Sopenharmony_ci
818c2ecf20Sopenharmony_ci
828c2ecf20Sopenharmony_ciWritten by Clemens Ladisch <clemens@ladisch.de>
838c2ecf20Sopenharmony_cibig parts copied from btaudio.txt by Gerd Knorr <kraxel@bytesex.org>
84