Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
PVR 150 not capturing audio
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
acomputerdood
n00b
n00b


Joined: 14 May 2006
Posts: 26

PostPosted: Mon Aug 26, 2013 6:48 pm    Post subject: PVR 150 not capturing audio Reply with quote

last week, i had a older system running kernel 2.6 something and the two pvr 150 cards worked perfectly in it.

i just upgraded the machine, and did a fresh reinstall of everything. now, under the 3.8.13 kernel i can't get audio from the cards. i used genkernel, so i don't know precisely all of kernel settings that were enabled, and i'm not really able to compare the two configs. it also seemed to compile every single thing as a module, so lsmod is a mile long.

for what it's worth, here it is:

Code:
Module                  Size  Used by
vmnet                  31426  13
vmblock                 7524  0
vsock                  28443  0
vmci                   53033  1 vsock
vmmon                  48529  0
rfcomm                 22815  8
bnep                    7214  2
ipv6                  190227  80
uinput                  5274  0
nvidia               8456709  40
ivtv_alsa               4701  0
snd_hda_codec_idt      38445  1
tuner_simple            9564  2
tuner_types             7837  1 tuner_simple
snd_hda_intel          21949  0
snd_hda_codec          59455  2 snd_hda_codec_idt,snd_hda_intel
wm8775                  2588  2
mperf                    847  0
freq_table              1738  0
coretemp                4306  0
kvm_intel             108363  0
kvm                   259765  1 kvm_intel
iTCO_wdt                3959  0
iTCO_vendor_support     1328  1 iTCO_wdt
tuner                  11739  2
snd_pcm                46961  3 snd_hda_codec,snd_hda_intel,ivtv_alsa
pcspkr                  1263  0
dcdbas                  3764  0
btusb                   8765  0
bluetooth             145673  24 bnep,btusb,rfcomm
microcode               5445  0
rfkill                 10611  1 bluetooth
lpc_ich                 9869  0
serio_raw               3181  0
snd_page_alloc          5146  2 snd_pcm,snd_hda_intel
cx25840                37128  2
i2c_i801                7169  0
r8169                  40548  0
snd_timer              12297  1 snd_pcm
mii                     2835  1 r8169
mfd_core                1961  1 lpc_ich
ivtv                  107796  1 ivtv_alsa
tveeprom                9749  1 ivtv
cx2341x                11789  1 ivtv
snd                    35889  6 snd_timer,snd_hda_codec_idt,snd_pcm,snd_hda_codec,snd_hda_intel,ivtv_alsa
v4l2_common             5519  5 ivtv,cx2341x,cx25840,tuner,wm8775
videodev               64044  7 ivtv,cx2341x,cx25840,tuner,v4l2_common,wm8775,ivtv_alsa
i2c_algo_bit            3711  1 ivtv
rtc_cmos                6628  0
intel_agp               7816  0
e1000e                130205  0
intel_gtt               8786  1 intel_agp
agpgart                17979  2 intel_agp,intel_gtt
button                  3465  0
i2c_core               13076  11 ivtv,i2c_i801,cx25840,tuner,i2c_algo_bit,nvidia,v4l2_common,tveeprom,tuner_simple,wm8775,videodev
processor              23287  0
thermal_sys            11920  1 processor
xts                     2147  0
gf128mul                5110  1 xts
cbc                     1862  0
sha256_generic         11165  0
tg3                   110827  0
libphy                 14268  1 tg3
ptp                     5596  1 tg3
pps_core                4781  1 ptp
e1000                  79031  0
fuse                   49437  0
xfs                   534884  1
exportfs                2522  1 xfs
nfs                    85113  0
dns_resolver            3144  1 nfs
lockd                  43538  1 nfs
sunrpc                125810  2 nfs,lockd
jfs                   134043  0
ext4                  346356  1
jbd2                   53681  1 ext4
multipath               4448  0
linear                  2915  0
raid10                 33358  0
dm_snapshot            22246  0
dm_crypt               10587  0
dm_mirror               9626  0
dm_region_hash          5199  1 dm_mirror
dm_log                  6376  2 dm_region_hash,dm_mirror
dm_mod                 50342  4 dm_log,dm_mirror,dm_crypt,dm_snapshot
hid_sunplus              989  0
hid_sony                1924  0
hid_samsung             2214  0
hid_pl                   857  0
hid_petalynx            1386  0
hid_monterey            1081  0
hid_microsoft           2063  0
hid_logitech            5365  0
hid_gyration            1548  0
hid_ezkey                930  0
hid_cypress             1274  0
hid_chicony             1633  0
hid_cherry              1033  0
hid_belkin              1118  0
hid_apple               3810  0
hid_a4tech              1348  0
sl811_hcd               7587  0
usbhid                 26099  0
xhci_hcd               61966  0
ohci_hcd               17270  0
uhci_hcd               16274  0
usb_storage            32444  0
ehci_pci                2544  0
ehci_hcd               29197  1 ehci_pci
usbcore                98677  10 btusb,uhci_hcd,usb_storage,hid_sony,ohci_hcd,ehci_hcd,ehci_pci,usbhid,xhci_hcd,sl811_hcd
usb_common               570  1 usbcore
aic94xx                55924  0
libsas                 49470  1 aic94xx
lpfc                  438036  0
qla2xxx               346787  0
megaraid_sas           55518  0
megaraid_mbox          21473  0
megaraid_mm             5562  1 megaraid_mbox
megaraid               32006  0
aacraid                58752  0
sx8                     9655  0
DAC960                 55270  0
cciss                  81730  0
3w_9xxx                24901  0
3w_xxxx                18667  0
mptsas                 39334  0
scsi_transport_sas     16994  3 libsas,mptsas,aic94xx
mptfc                  10365  0
scsi_transport_fc      31332  3 lpfc,qla2xxx,mptfc
scsi_tgt                6780  1 scsi_transport_fc
mptspi                 11529  0
mptscsih               21125  3 mptfc,mptsas,mptspi
mptbase                69161  4 mptfc,mptsas,mptspi,mptscsih
atp870u                21003  0
dc395x                 24064  0
qla1280                17198  0
imm                     7107  0
parport                21467  1 imm
dmx3191d                7593  0
sym53c8xx              55327  0
qlogicfas408            3581  0
gdth                   69951  0
advansys               45882  0
initio                 12860  0
BusLogic               17376  0
arcmsr                 20952  0
aic7xxx                91436  0
aic79xx                97034  0
scsi_transport_spi     15150  5 mptspi,sym53c8xx,aic79xx,aic7xxx,dmx3191d
sg                     20000  0
pdc_adma                3885  0
sata_inic162x           4957  0
sata_mv                19237  0
ata_piix               18311  0
ahci                   18256  3
libahci                14390  1 ahci
sata_qstor              3840  0
sata_vsc                2941  0
sata_uli                2060  0
sata_sis                2645  0
sata_sx4                6627  0
sata_nv                14394  0
sata_via                5267  0
sata_svw                3141  0
sata_sil24              8287  0
sata_sil                5435  0
sata_promise            7243  0
pata_pcmcia             6705  0
pcmcia                 25284  1 pata_pcmcia
pcmcia_core             8398  1 pcmcia


and my dmesg for ivtv|tveeprom|tuner:

Code:
# dmesg | egrep -i '(ivtv|tveeprom|tuner)'     
[   27.402919] ivtv: Start initialization, version 1.4.3
[   27.403025] ivtv0: Initializing card 0
[   27.403027] ivtv0: Autodetected Hauppauge card (cx23416 based)
[   27.457317] tveeprom 0-0050: Hauppauge model 26582, rev F0B2, serial# 9655026
[   27.457320] tveeprom 0-0050: tuner model is TCL M2523_5N_E (idx 112, type 50)
[   27.457322] tveeprom 0-0050: TV standards NTSC(M) (eeprom 0x08)
[   27.457324] tveeprom 0-0050: audio processor is CX25843 (idx 37)
[   27.457326] tveeprom 0-0050: decoder processor is CX25843 (idx 30)
[   27.457328] tveeprom 0-0050: has no radio
[   27.457330] ivtv0: Autodetected Hauppauge WinTV PVR-150
[   27.712234] cx25840 0-0044: cx25843-24 found @ 0x88 (ivtv i2c driver #0)
[   28.118870] tuner 0-0061: Tuner -1 found with type(s) Radio TV.
[   28.308504] wm8775 0-001b: chip found @ 0x36 (ivtv i2c driver #0)
[   28.358148] tuner-simple 0-0061: creating new instance
[   28.358151] tuner-simple 0-0061: type set to 50 (TCL 2002N)
[   28.359580] ivtv0: Registered device video0 for encoder MPG (4096 kB)
[   28.359631] ivtv0: Registered device video32 for encoder YUV (2048 kB)
[   28.359681] ivtv0: Registered device vbi0 for encoder VBI (1024 kB)
[   28.359728] ivtv0: Registered device video24 for encoder PCM (320 kB)
[   28.359730] ivtv0: Initialized card: Hauppauge WinTV PVR-150
[   28.359815] ivtv1: Initializing card 1
[   28.359817] ivtv1: Autodetected Hauppauge card (cx23416 based)
[   28.416047] tveeprom 2-0050: Hauppauge model 26132, rev F1B2, serial# 10062511
[   28.416051] tveeprom 2-0050: tuner model is TCL M2523_5N_E (idx 112, type 50)
[   28.416053] tveeprom 2-0050: TV standards NTSC(M) (eeprom 0x08)
[   28.416055] tveeprom 2-0050: audio processor is CX25841 (idx 35)
[   28.416057] tveeprom 2-0050: decoder processor is CX25841 (idx 28)
[   28.416059] tveeprom 2-0050: has no radio, has IR receiver, has IR transmitter
[   28.416061] ivtv1: Autodetected Hauppauge WinTV PVR-150
[   28.416062] ivtv1: Reopen i2c bus for IR-blaster support
[   28.419464] cx25840 2-0044: cx25841-24 found @ 0x88 (ivtv i2c driver #1)
[   28.448064] tuner 2-0061: Tuner -1 found with type(s) Radio TV.
[   28.449049] wm8775 2-001b: chip found @ 0x36 (ivtv i2c driver #1)
[   28.481766] tuner-simple 2-0061: creating new instance
[   28.481769] tuner-simple 2-0061: type set to 50 (TCL 2002N)
[   28.483262] ivtv1: Registered device video1 for encoder MPG (4096 kB)
[   28.483310] ivtv1: Registered device video33 for encoder YUV (2048 kB)
[   28.483358] ivtv1: Registered device vbi1 for encoder VBI (1024 kB)
[   28.483406] ivtv1: Registered device video25 for encoder PCM (320 kB)
[   28.483408] ivtv1: Initialized card: Hauppauge WinTV PVR-150
[   28.483438] ivtv: End initialization
[   28.563907] ivtv-alsa: module loading...
[   29.302183] ivtv0: Loaded v4l-cx2341x-enc.fw firmware (376836 bytes)
[   29.323337] ivtv1: Loaded v4l-cx2341x-enc.fw firmware (376836 bytes)
[   29.500305] ivtv0: Encoder revision: 0x02060039
[   29.520360] ivtv1: Encoder revision: 0x02060039


sound on the system works just fine - i can play other videos and audio on the computer - i just can't capture audio through the card itself.

trying to play a file the card captured appears that it's TRYING to get the audio, only muted?

Code:
# cat /dev/video0 > test0.mpg
$ mplayer test0.mpg
......
Playing test0.mpg.
........
==========================================================================
Requested audio codec family [mpg123] (afm=mpg123) not available.
Enable it at compilation.
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
AUDIO: 48000 Hz, 2 ch, floatle, 224.0 kbit/7.29% (ratio: 28000->384000)
Selected audio codec: [ffmp2float] afm: ffmpeg (FFmpeg MPEG layer-1 and layer-2 audio)
==========================================================================
AO: [pulse] 48000Hz 2ch floatle (4 bytes per sample)
Starting playback...
........


and the video plays just fine. just no audio.

i've forgotten the myriad of ivtv-ctrl and v4l2-ctrl commands i've run, but all of them report the card (and tuner) to be "muted=0".

one thing that i find odd, is that under alsamixer, i get my normal soundcard's levels. but then with F6 i can select either of my IVTV0 or IVTV1 cards, but it says "This sound device does not have any controls.". i can't recall what the old system said, or if i could modify it there, but it doesn't seem right to me.

i've emerged the following:

Code:
*  media-tv/ivtv-utils
      Latest version available: 1.4.1
      Latest version installed: 1.4.1
      Size of files: 185 kB
      Homepage:      http://www.ivtvdriver.org/
      Description:   IVTV utilities for Hauppauge PVR PCI cards
      License:       GPL-2

*  sys-firmware/ivtv-firmware
      Latest version available: 20080701-r1
      Latest version installed: 20080701-r1
      Size of files: 122 kB
      Homepage:      http://www.ivtvdriver.org/index.php/Firmware
      Description:   firmware for Hauppauge PVR-x50 and Conexant 2341x based cards
      License:       Hauppauge-Firmware



any help? i assume it's just some kernel module i've not compiled and added? or some module alias or option i've not set?
Back to top
View user's profile Send private message
trumee
Guru
Guru


Joined: 02 Mar 2003
Posts: 551
Location: London,UK

PostPosted: Wed Aug 28, 2013 9:50 pm    Post subject: Reply with quote

Not going to help you much, but i have a system running old Suse with kernel 2.6.34. I have PVR-500 cards and alsa doesnt list it as a mixer.
Code:

#lspci|grep video
02:08.0 Multimedia video controller: Internext Compression Inc iTVC16 (CX23416) MPEG-2 Encoder (rev 01)
02:09.0 Multimedia video controller: Internext Compression Inc iTVC16 (CX23416) MPEG-2 Encoder (rev 01)
03:08.0 Multimedia video controller: Internext Compression Inc iTVC16 (CX23416) MPEG-2 Encoder (rev 01)
03:09.0 Multimedia video controller: Internext Compression Inc iTVC16 (CX23416) MPEG-2 Encoder (rev 01)


#aplay -L
null
    Discard all samples (playback) or generate zero samples (capture)
default:CARD=NVidia
    HDA NVidia, ALC1200 Analog
    Default Audio Device
front:CARD=NVidia,DEV=0
    HDA NVidia, ALC1200 Analog
    Front speakers
surround40:CARD=NVidia,DEV=0
    HDA NVidia, ALC1200 Analog
    4.0 Surround output to Front and Rear speakers
surround41:CARD=NVidia,DEV=0
    HDA NVidia, ALC1200 Analog
    4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=NVidia,DEV=0
    HDA NVidia, ALC1200 Analog
    5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=NVidia,DEV=0
    HDA NVidia, ALC1200 Analog
    5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=NVidia,DEV=0
    HDA NVidia, ALC1200 Analog
    7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
iec958:CARD=NVidia,DEV=0
    HDA NVidia, ALC1200 Digital
    IEC958 (S/PDIF) Digital Audio Output
hdmi:CARD=NVidia,DEV=0
    HDA NVidia, NVIDIA HDMI
    HDMI Audio Output
Back to top
View user's profile Send private message
acomputerdood
n00b
n00b


Joined: 14 May 2006
Posts: 26

PostPosted: Wed Sep 04, 2013 3:19 pm    Post subject: Reply with quote

thanks! at least i'm not still trying to chase down that non-issue any more.

going to try mythbuntu tonight just to see if things work under there.
Back to top
View user's profile Send private message
acomputerdood
n00b
n00b


Joined: 14 May 2006
Posts: 26

PostPosted: Thu Sep 05, 2013 1:07 pm    Post subject: Reply with quote

ok, i just tried the mythbuntu (12.4 i think) livecd to test it out. i couldn't get the backend working (mysql wouldn't start), but i'm not 100% sure it can run a backend off the livecd. all the directions i saw wanted you to install it.

anyway, i booted the cd and dumped the /dev/video0 to a file:

$ cat /dev/video0 > test.mpg

and then played it on another computer. the video was all wonky, but there actually was sound!

this is, however, infuriating because i know it works somehow. i just downgraded my kernel to 3.4.55 (since that's closer to what the mythbuntu release was using. i copied the .config mythbuntu used and recompiled using that.

hopes were high, but the latest dump from the device still yielded no audio. just to ensure i wasn't crazy, i converted the file to a .wav using ffmpeg and played it in totem using one of their visualizers. it showed a flat line, whereas a known-good mpg converted the same way showed a jumpy line as expected.


does anybody have a working card that can send me their working .config? i'll just use whatever version you're using - hah.
Back to top
View user's profile Send private message
acomputerdood
n00b
n00b


Joined: 14 May 2006
Posts: 26

PostPosted: Thu Sep 05, 2013 5:58 pm    Post subject: Reply with quote

tried a few more things and think i found the crux of the problem:

# v4l2-ctl --log-status
Status Log:

[22412.447107] ivtv0: ================= START STATUS =================
[22412.447110] ivtv0: Version: 1.4.3 Card: Hauppauge WinTV PVR-150
[22412.500085] tveeprom 1-0050: Hauppauge model 26582, rev F0B2, serial# 9655026
[22412.500088] tveeprom 1-0050: tuner model is TCL M2523_5N_E (idx 112, type 50)
[22412.500092] tveeprom 1-0050: TV standards NTSC(M) (eeprom 0x08)
[22412.500095] tveeprom 1-0050: audio processor is CX25843 (idx 37)
[22412.500097] tveeprom 1-0050: decoder processor is CX25843 (idx 30)
[22412.500100] tveeprom 1-0050: has no radio
[22412.500106] ivtv0: GPIO status: DIR=0xdf00 OUT=0x26f3 IN=0x37f1
[22412.500110] ivtv0-gpio: Mute: false
[22412.503300] cx25840 1-0044: Video signal: not present
[22412.503303] cx25840 1-0044: Detected format: NTSC-M
[22412.503305] cx25840 1-0044: Specified standard: NTSC-M
[22412.503308] cx25840 1-0044: Specified video input: Composite 7
[22412.503310] cx25840 1-0044: Specified audioclock freq: 48000 Hz
[22412.510742] cx25840 1-0044: Detected audio mode: mono
[22412.510744] cx25840 1-0044: Detected audio standard: not defined
[22412.510747] cx25840 1-0044: Audio microcontroller: detecting
[22412.510749] cx25840 1-0044: Configured audio standard: BTSC
[22412.510752] cx25840 1-0044: Configured audio mode: undefined
[22412.510754] cx25840 1-0044: Specified audio input: Tuner (In8)
[22412.510757] cx25840 1-0044: Preferred audio mode: stereo
[22412.510759] cx25840 1-0044: Selected 65 MHz format: system DK
[22412.510762] cx25840 1-0044: Selected 45 MHz format: chroma

it seems that cx25840 can't detect audio from the coax?

i did some googling and found some threads talking about it, and the most promising one is this (though mine isn't fixed with a reboot - only by booting into mythbuntu):
http://www.gossamer-threads.com/lists/ivtv/devel/38502?do=post_view_threaded

but i don't really understand the solutions that were posted. how do i force the detection instead of letting it do it automatically?
Back to top
View user's profile Send private message
acomputerdood
n00b
n00b


Joined: 14 May 2006
Posts: 26

PostPosted: Fri Sep 06, 2013 11:32 am    Post subject: Reply with quote

muahhhahahaha! fixed it!

i didn't have "v4l-cx25840.fw" in /lib/firmware. i found a random copy of it, put it in there, then rebooted. worked perfectly.


it also looks like it might be in "media-tv/linuxtv-dvb-firmware", which is the proper way to do things, but the ebuild seems all jacked up.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum