Skip to contentSkip to conversation

Problems with osprey 230 and snd-bt87x

DISCUSSION Luca Abeni 1 participant 2 messages Jul 10, 2006

lore
Share & tools
lore

Luca Abeni

author
#0 lore raw

Hi all,

I am trying to capture some audio from an osprey 230 card (using the snd-bt87x module), but it does not seem to work well.
I tried a lot of linux kernel versions, and I am currently using 2.6.18-pre1 hoping that it includes the latest alsa drivers.

Anyway, after
modprobe snd-bt87x
a card is detected (as card 1), but there are problems:
1) alsamixer -c 1 shows 3 inputs: "TV Tuner", "Mic/Line", and "FM", but the card does not have any tuner or radio device...

2) arecord -l says
**** List of CAPTURE Hardware Devices ****
card 1: Bt878 [Brooktree Bt878], device 0: Bt87x Digital [Bt87x Digital]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: Bt878 [Brooktree Bt878], device 1: Bt87x Analog [Bt87x Analog]
Subdevices: 1/1
Subdevice #0: subdevice #0
but it seems that the audio device is hw:1,0 (the output of arecord -l seems to indicate that it should be hw:1,1) - I have an audio source connected to the analog input of the card, and capturing from hw:1,1 only gives silence. Capturing from hw:1,0 gives some _very distorted_ audio. Changing the mixer setting with alsamixer does not change anything.

3) It seems that there is some problem with the captured audio rate: I capture about 122 seconds of audio with
time arecord -v -Dhw:1,0 -c 2 -t wav -f S16_LE -r44100 test.wav (I used the "time" command to measure how long arecord ran befoure I stopped it), but the resulting test.wav is only 88 seconds long. Changing the audio rate with "-r" does not seem to fix the problem.

I am pretty sure that the card is not broken, because the driver distributed by the manufacturer (a patched version of some old "btaudio") is able to correctly capture analog audio.

So, my question is: is the problem with osprey230 known? Or did I do something wrong? If this is a problem in the alsa drivers, is someone already working on it? I have the card, and I can provide more info or do more tests

Thanks,
Luca
P.S.: I tried to submit a bug using
https://bugtrack.alsa-project.org/alsa-bug/login_page.php
but when I try to register I get
PROBLEMS SENDING MAIL TO:
Mailer Error: SMTP Error: Could not connect to SMTP host.

Signature · 11 lines
_____________________________________________________________________________
Copy this in your signature, if you think it is important:
                               N O    W A R ! ! !



-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
author
#1 lore raw

Hi all,

Quoted 4 lines · Luca Abeni

Hi all,

I am trying to capture some audio from an osprey 230 card (using the snd-bt87x module), but it does not seem to work well.

[...]

Quoted 3 lines

I am pretty sure that the card is not broken, because the driver distributed by the manufacturer (a patched version of some old "btaudio") is able to correctly capture analog audio.

I had a look at such patched version of btaudio, and it seems that the osprey 230 card is handled in a different way respect to the osprey200 (which seems to be the one supported by snd-bt87x). In particular, the patched btaudio driver has some calls to bttv_I2CWrite(), gpio_andor(), and some other gpio_*. Such calls seem to be used to set the volume on the osprey230. Maybe this explains why the snd-bt87x driver is not working properly here.

I also contacted the technical support at ViewCast (the producer of osprey230), and I've been told that "the drivers are in the midst of a major rewrite. So, ALSA support should be available in the V4L2 drivers. Again, I expect, but cannot guarantee, this support in the 2.6.18 kernel". Can anyone confirm that someone is working on ALSA support for osprey230 cards? (I see that it will not be in 2.6.18, but this is not a problem... I just want to know if there really is some ongoing work).

Thanks,
Luca

Signature · 11 lines
_____________________________________________________________________________
Copy this in your signature, if you think it is important:
                               N O    W A R ! ! !



-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642