LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-16-2012, 07:37 AM   #1
ted_chou12
Member
 
Registered: Aug 2010
Location: Zhongli, Taoyuan
Distribution: slackware, windows, debian (armv4l GNU/Linux)
Posts: 431
Blog Entries: 32

Rep: Reputation: 3
bttv bt878 no audio


I have already got tuner card video working. I see the proper video but I can't get the audio working:
Code:
root:# dmesg | grep bt
[    4.791319] bttv: driver version 0.9.18 loaded
[    4.791326] bttv: using 8 buffers with 2080k (520 pages) each for capture
[    4.793288] bttv: Bt8xx card found (0).
[    4.793316] bttv 0000:01:04.0: PCI INT A -> GSI 18 (level, low) -> IRQ 18
[    4.793332] bttv0: Bt878 (rev 17) at 0000:01:04.0, irq: 18, latency: 32, mmio
: 0xf0100000
[    4.793375] bttv0: subsystem: 107d:6f09 (UNKNOWN)
[    4.793385] bttv0: using: AVerMedia TVCapture 98 [card=13,insmod option]
[    4.793425] bttv0: gpio: en=00000000, out=00000000 in=003fffff [init]
[    4.795934] bttv0: Hauppauge/Voodoo msp34xx: reset line init [11]
[    4.829034] bttv0: Avermedia eeprom[0xffff]: tuner=Unknown type radio:yes rem
ote control:yes
[    4.829045] bttv0: tuner type=2
[    5.118182] bttv0: audio absent, no audio device found!
[    5.310976] bttv0: registered device video0
[    5.312494] bttv0: registered device vbi0
[    5.312520] bttv0: PLL: 28636363 => 35468950 .. ok
[    5.436297] input: bttv IR (card=13) as /devices/pci0000:00/0000:00:1e.0/0000
:01:04.0/rc/rc0/input7
[    5.436455] rc0: bttv IR (card=13) as /devices/pci0000:00/0000:00:1e.0/0000:0
1:04.0/rc/rc0
[  188.381437] bttv0: PLL can sleep, using XTAL (28636363).
[  542.991350] bt878: AUDIO driver version 0.0.0 loaded
[  739.708202] bt878: AUDIO driver version 0.0.0 loaded
I believe that the bttv module is the video and bt878 has the audio module.
This is the output when I launch mplayer with tv://
Code:
ted:$ ./tv.sh
MPlayer SVN-r32634-4.4.4 (C) 2000-2010 MPlayer Team
160 audio & 349 video codecs
Can't open joystick device /dev/input/js0: No such file or directory
Can't init input joystick

Playing tv://.
TV file format detected.
Selected driver: v4l2
 name: Video 4 Linux 2 input
 author: Martin Olschewski <olschewski@zpr.uni-koeln.de> 
comment: first try, more to come ;-)
Selected device: BT878 video (AVerMedia TVCaptur
 Tuner cap:
 Tuner rxs: MONO
 Capabilities:  video capture  video overlay  VBI capture device  tuner  read/write  streaming
 supported norms: 0 = NTSC; 1 = NTSC-M; 2 = NTSC-M-JP; 3 = NTSC-M-KR; 4 = PAL; 5 = PAL-BG; 6 = PAL-H; 7 = PAL-I; 8 = PAL-DK; 9 = PAL-M; 10 = PAL-N; 11 = PAL-Nc; 12 = PAL-60; 13 = SECAM; 14 = SECAM-B; 15 = SECAM-G; 16 = SECAM-H; 17 = SECAM-DK; 18 = SECAM-L; 19 = SECAM-Lc;
 inputs: 0 = Television; 1 = Composite1; 2 = S-Video;
 Current input: 0
 Current format: BGR24
v4l2: current audio mode is : MONO
Selected channel: 31 (freq: 265.250)
==========================================================================
Opening video decoder: [raw] RAW Uncompressed Video
Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
VO: [xv] 640x480 => 854x480 Packed YUY2 
Selected video codec: [rawyuy2] vfm: raw (RAW YUY2)
==========================================================================
Audio: no sound
Starting playback...
V:   0.0 141/141 ??% ??% ??,?% 0 0 
v4l2: 143 frames successfully processed, 9 frames dropped.

Exiting... (Quit)
here is lspci
Code:
01:04.0 Multimedia video controller: Brooktree Corporation Bt878 Video Capture (
rev 11)
01:04.1 Multimedia controller: Brooktree Corporation Bt878 Audio Capture (rev 11
)
And the code I use to launch mplayer:
Code:
TV="-tv driver=v4l2:device=/dev/video0:norm=NTSC:chanlist=us-cable:channel=31:outfmt=yuy2"
AUD="adevice=/dev/dsp:alsa=on:audiorate=44100:amode=0:forceaudio"
PIC="-hue 0 -contrast 0 -brightness 50 -saturation 0"
DASH="-ao alsa,oss -aspect 16:9"
mplayer tv:// $TV:$AUD:quality=100 $PIC $DASH
How can I get the audio working?

Thanks,
Ted
 
Old 09-16-2012, 02:39 PM   #2
ted_chou12
Member
 
Registered: Aug 2010
Location: Zhongli, Taoyuan
Distribution: slackware, windows, debian (armv4l GNU/Linux)
Posts: 431

Original Poster
Blog Entries: 32

Rep: Reputation: 3
I have got the pcm for bt878 to show up:
Code:
ted:$ cat /proc/asound/pcm
00-00: Intel ICH : Intel ICH5 : playback 1 : capture 1
00-01: Intel ICH - MIC ADC : Intel ICH5 - MIC ADC : capture 1
00-02: Intel ICH - MIC2 ADC : Intel ICH5 - MIC2 ADC : capture 1
00-03: Intel ICH - ADC2 : Intel ICH5 - ADC2 : capture 1
00-04: Intel ICH - IEC958 : Intel ICH5 - IEC958 : playback 1
01-00: Bt87x Digital : Bt87x Digital : capture 1
01-01: Bt87x Analog : Bt87x Analog : capture 1
server://root
ted:$ cat /proc/asound/cards
 0 [ICH5           ]: ICH4 - Intel ICH5
                      Intel ICH5 with ALC650F at irq 17
 1 [Bt878          ]: Bt87x - Brooktree Bt878
                      Brooktree Bt878 at 0xf0101000, irq 18
With this http://www.mythtv.org/wiki/Snd-bt87x but I still cant get the sound. I have tried testing:
Code:
root:# cat /dev/dsp1
€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€blah blahblah
€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€!!!!!!!!!
€€€€€€€€€€€€€€€€cat: /dev/dsp1: Input/output error
server:/~
server://root

ted:$ dd if=/dev/dsp1 of=/dev/null bs=128
dd: 霈€????dev/dsp1?? 頛詨/頛詨?航炊
2+0 records in
2+0 records out
256 bytes (256 B) copied, 10.0334 s, 0.0 kB/s
EDIT!
I am able to use
Code:
sox -r 32000 -t alsa hw:1,1 -t alsa hw:0,0
To capture I believe radio! But I am not able to adjust the channel, there is a fm input on the video card. At the moment the sound isn't crisp due to no extension plugged into the fm input.
Thanks,
Ted

Last edited by ted_chou12; 09-16-2012 at 05:52 PM.
 
Old 09-19-2012, 12:07 PM   #3
ted_chou12
Member
 
Registered: Aug 2010
Location: Zhongli, Taoyuan
Distribution: slackware, windows, debian (armv4l GNU/Linux)
Posts: 431

Original Poster
Blog Entries: 32

Rep: Reputation: 3
bump
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Problems with audio link between BT878 tuner and HDA audio in 2.6.23 TheOneKEA Linux - Hardware 1 12-20-2007 12:15 AM
bt878 + bttv problem... ferradura Linux - Hardware 3 12-28-2006 12:27 PM
bttv tv card audio inputs pak Linux - Hardware 3 03-21-2006 03:34 PM
BT878: outputs tv audio instead of FM Radio mad_ady Linux - Hardware 4 02-05-2006 11:48 AM
TV Card, BT878, bttv: no sound breakerfall Linux - Hardware 5 03-20-2004 07:31 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:05 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration