Bt87x Audio Capture
Hi
I have problems with audio capture function on my tv card. After `modprobe snd_bt87x', I have got nothing in logs (dmesg, messages).
Last relevant info is from bt878 module:
bt878: AUDIO driver version 0.0.0 loaded
bt878: Bt878 AUDIO function found (0).
PCI: Found IRQ 12 for device 0000:00:0a.1
PCI: Sharing IRQ 12 with 0000:00:0a.0
bt878(0): Bt878 (rev 17) at 00:0a.1, irq: 12, latency: 64, memory: 0xe9000000
PCI: Found IRQ 10 for device 0000:00:0c.0
PCI: Sharing IRQ 10 with 0000:00:07.2
lspci output:
$ lspci -s 00:0a -vn
00:0a.0 0400: 109e:036e (rev 11)
Subsystem: 11bd:0012
Flags: bus master, medium devsel, latency 64, IRQ 12
Memory at e9002000 (32-bit, prefetchable) [size=4K]
Capabilities: [44] Vital Product Data
Capabilities: [4c] Power Management version 200:0a.1 0480: 109e:0878 (rev 11)
Subsystem: 11bd:0012
Flags: bus master, medium devsel, latency 64, IRQ 12 Memory at e9000000 (32-bit, prefetchable) [size=4K]
Capabilities: [44] Vital Product Data
Capabilities: [4c] Power Management version 2
$ lspci -s 00:0a 00:0a.0 Multimedia video controller: Brooktree Corporation Bt878 Video Capture (rev 11) 00:0a.1 Multimedia controller: Brooktree Corporation Bt878 Audio Capture (rev 11)
alsa configuration:
alias snd-card-0 snd-ens1371
alias snd-card-1 snd-bt87x
alias sound-slot-0 snd-card-0
alias sound-slot-1 snd-card-1
options snd-bt87x id="tv" load_all=1
# OSS/Free portion - card #1
alias sound-service-0-0 snd-mixer-oss
alias sound-service-0-1 snd-seq-oss
alias sound-service-0-3 snd-pcm-oss
alias sound-service-0-8 snd-seq-oss
alias sound-service-0-12 snd-pcm-oss
## OSS/Free portion - card #2
alias sound-service-1-0 snd-mixer-oss
alias sound-service-1-3 snd-pcm-oss
alias sound-service-1-12 snd-pcm-oss
alias /dev/mixer snd-mixer-oss
alias /dev/dsp snd-pcm-oss
alias /dev/midi snd-seq-oss
options snd cards_limit=2
lsmod output:
$ lsmod Module Size Used by snd_bt87x 11496 0 snd_seq_midi 6816 0 snd_pcm_oss 49440 0 snd_mixer_oss 17088 1 snd_pcm_oss snd_seq_oss 31552 0 snd_seq_midi_event 5664 2 snd_seq_midi,snd_seq_oss snd_seq 47824 5 snd_seq_midi,snd_seq_oss,snd_seq_midi_event snd_ens1371 18596 0 snd_rawmidi 19840 2 snd_seq_midi,snd_ens1371 snd_seq_device 6732 4 snd_seq_midi,snd_seq_oss,snd_seq,snd_rawmidi snd_ac97_codec 93088 1 snd_ens1371 snd_ac97_bus 1728 1 snd_ac97_codec bt878 8088 0 tuner 43012 0 tda9887 14352 0 msp3400 32848 0 bttv 158480 1 bt878 video_buf 17060 1 bttv i2c_algo_bit 8360 1 bttv btcx_risc 3912 1 bttv tveeprom 13744 1 bttv i2c_core 16752 6 tuner,tda9887,msp3400,bttv,i2c_algo_bit,tveeprom snd_pcm 79976 4 snd_bt87x,snd_pcm_oss,snd_ens1371,snd_ac97_codec snd_timer 20580 2 snd_seq,snd_pcm snd 44804 11 snd_bt87x,snd_pcm_oss,snd_mixer_oss,snd_seq_oss,snd_seq,snd_ens1371,snd_rawmidi,snd_seq_device,snd_ac97_codec,snd_pcm,snd_timer soundcore 7168 1 snd snd_page_alloc 8424 2 snd_bt87x,snd_pcm
I don't have an idea what is wrong, because I can't found any output from snd_bt87x module.
Thanks
PS. I'm not on the list. Send CC to me, please.
Signature · 9 lines
Ondrej Ivanic ([email protected]) ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
Quoted 5 lines · Ondrej Ivani??
After `modprobe
snd_bt87x', I have got nothing in logs.Last relevant info is from bt878 module:
bt878: AUDIO driver version 0.0.0 loaded
This is the wrong module. "bt878" is the old OSS driver, but you want to use the "snd-bt87x" driver.
HTH
Clemens
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
Hi
Quoted 7 lines
Quoted 5 lines
After `modprobe
snd_bt87x', I have got nothing in logs.Last relevant info is from bt878 module:
bt878: AUDIO driver version 0.0.0 loaded
This is the wrong module. "bt878" is the old OSS driver, but you want
I didn't have OSS support in kernel and this module is from media/dvb:
filename: /lib/modules/2.6.15-gentoo-r1-3/kernel/drivers/media/dvb/bt8xx/bt878.ko license: GPL vermagic: 2.6.15-gentoo-r1-3 PENTIUMIII gcc-3.4 depends: bttv alias: pci:v0000109Ed00000878sv*sd*bc*sc*i* parm: debug:Turn on/off debugging, default is 0 (off). (int) parm: verbose:verbose startup messages, default is 1 (yes) (int)
Quoted 1 line
to use the "snd-bt87x" driver.
I was unloaded all modules form kernel and loaded only snd_bt87x module:
localhost init.d # lsmod
Module Size Used by
localhost init.d # modprobe snd_bt87x load_all=1 enable=1 localhost init.d # cat /proc/asound/cards
--- no soundcards ---
localhost init.d # ls -la /dev/snd/
total 0
drwxr-xr-x 2 root root 60 Mar 9 01:51 . drwxr-xr-x 13 root root 2720 Mar 9 01:51 .. crw-rw---- 1 root audio 116, 33 Mar 9 01:51 timer
In dmesg was't any output from snd_bt87x module...
Thanks
Signature · 9 lines
Ondrej Ivanic ([email protected]) ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
Quoted 5 lines · Ondrej Ivani??
Quoted 3 lines
Quoted 1 line
bt878: AUDIO driver version 0.0.0 loaded
This is the wrong module. "bt878" is the old OSS driver, but you want
I didn't have OSS support in kernel and this module is from media/dvb:
Oops. The OSS driver would have been "btaudio".
Quoted 1 line
/lib/modules/2.6.15-gentoo-r1-3/kernel/drivers/media/dvb/bt8xx/bt878.ko
The bt878 driver in the 2.6.15 kernel is buggy; it grabs the audio function even for non-DVB cards.
Quoted 7 lines
Quoted 1 line
to use the "snd-bt87x" driver.
I was unloaded all modules form kernel and loaded only
snd_bt87xmodule:localhost init.d # modprobe
snd_bt87xload_all=1 enable=1 localhost init.d # cat/proc/asound/cards
--- no soundcards ---
The snd-bt87x driver in the same kernel has a bug that prevents it from working with the load_all parameter. This was fixed with this patch:
http://www.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=blobdiff;h=c840a4c08e9814c197d30b631b782c420e26869a;hp=aaaa2e0d45c22aec11ac2325a488d27e392a0f96;hb=54c63cfc153c6909a5d5dbe6072e8704b091f30e;f=sound/pci/bt87x.c
HTH
Clemens
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
Quoted 3 lines · Clemens Ladisch
The snd-bt87x driver in the same kernel has a bug that prevents it from working with the
load_allparameter. This was fixed with this patch:
http://www.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=blobdiff;h=c840a4c08e9814c197d30b631b782c420e26869a;hp=aaaa2e0d45c22aec11ac2325a488d27e392a0f96;hb=54c63cfc153c6909a5d5dbe6072e8704b091f30e;f=sound/pci/bt87x.c
Yes, my card was detected as an unknown card 0x11bd:0x12. I don't have idea how to identify correct digital_rate value for card.
I playing with a tvtime and arecord. In the tvtime I was tuned a tv channel and with arecord I was tryied to record some sound from TV card capture device.
card 0: AudioPCI [Ensoniq AudioPCI], device 0: ES1371/1 [ES1371 DAC2/ADC]
Subdevices: 1/1
Subdevice #0: subdevice #0
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
$ arecord -Dhw:1,1 -f S16_LE -r 119466 -d 20 /tmp/out.wav
Output file contains only wav header and 0x7fff values.
BTW, it's possible to create interconnect between sound card and capture device in TV card? I would like to live without cable from TV card to sound card line in. I was read something about dmix and dsnoop plugins, but i have't idea.
Signature · 9 lines
Ondrej Ivanic ([email protected]) ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
Quoted 10 lines · Ondrej Ivani??
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$ arecord -Dhw:1,1 -f S16_LE -r 119466 -d 20 /tmp/out.wavOutput file contains only wav header and
0x7fffvalues.
It seems the analog input pin of the Bt878 chip isn't connected to the tuner.
I guess the digital input isn't connected, either.
Quoted 2 lines
BTW, it's possible to create interconnect between sound card and capture device in TV card?
It would be possible to write an application that records from one of the Bt878 input devices and then immediately plays the data to the sound card. There would be some milliseconds of latency, and it wouldn't work in most cases because few vendors bother to connect the audio input pins (as you've seen).
Regards,
Clemens
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642