Re: cx18: "missing audio" for analog recordings
Andy Walls wrote: On Sat, 2010-04-10 at 23:21 -0400, Mark Lord wrote: On 10/04/10 06:54 PM, Andy Walls wrote: Hmmm. Darren's having problems (loss of video/black screen) with my patches under my cx18-audio repo, but I'm not quite convinced he doesn't have some other PCI bus problem either. Anyway, my plan now is this: 1. on cx18-av-core.c:input_change() a. set register 0x808 for audio autodetection b. restart the format detection loop c. set or reset a 1.5 second timeout 2. after the timer expires, if no audio standard was detected, a. force the audio standard by programming register 0x808 (e.g. BTSC for NTSC-M) b. restart the format detection loop so the micrcontroller will do the unmute when it detects audio Darren is in NTSC-M/BTSC land. What TV standard are you dealing with? .. I'm in Canada, using the tuner for over-the-air NTSC broadcasts. Try this: http://linuxtv.org/hg/~awalls/cx18-audio2 this waits 1.5 seconds after an input/channel change to see if the audio standard micrcontroller can detect the standard. If it can't, the driver tells it to try a fallback detection. Right now, only the NTSC-M fallback detection is set to force a mode (i.e. BTSC), all the others "fall back" to their same auto-detection. Some annoyances with the fallback to a forced audio standard, mode, and format: 1. Static gets unmuted on stations with no signal. :( 2. I can't seem to force mode "MONO2 (LANGUAGE B)". I'm guessing the microcontroller keeps setting it back down to "MONO1 (LANGUAGE A/Mono L +R channel for BTSC, EIAJ, A2)" Feel free to experiment with the LSB of the fallback setting magic number (0x1101) in cx18-av-core.c:input_change(). Regards, Andy So far, it seems fine, no black screens, and audio seems to be fine. -- To unsubscribe from this list: send the line "unsubscribe linux-media" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
OOPS: cx18
I recieved an oops today while loading the cx18 driver: [342153.973342] cx18: Start initialization, version 1.4.0 [342153.974007] cx18-0: Initializing card 0 [342153.974012] cx18-0: Autodetected Hauppauge card [342153.974451] cx18 :07:01.0: PCI INT A -> GSI 17 (level, low) -> IRQ 17 [342153.976826] cx18-0: cx23418 revision 0101 (B) [342154.197416] tveeprom 0-0050: Hauppauge model 74041, rev C6B2, serial# 7037045 [342154.197420] tveeprom 0-0050: MAC address is 00:0d:fe:6b:60:75 [342154.197424] tveeprom 0-0050: tuner model is TCL M2523_5N_E (idx 112, type 50) [342154.197427] tveeprom 0-0050: TV standards NTSC(M) (eeprom 0x08) [342154.197430] tveeprom 0-0050: audio processor is CX23418 (idx 38) [342154.197433] tveeprom 0-0050: decoder processor is CX23418 (idx 31) [342154.197435] tveeprom 0-0050: has no radio, has IR receiver, has IR transmitter [342154.197439] cx18-0: Autodetected Hauppauge HVR-1600 [342154.197441] cx18-0: Simultaneous Digital and Analog TV capture supported [342154.280378] IRQ 17/cx18-0: IRQF_DISABLED is not guaranteed on shared IRQs [342154.292388] tuner 1-0061: chip found @ 0xc2 (cx18 i2c driver #0-1) [342154.305399] cs5345 0-004c: chip found @ 0x98 (cx18 i2c driver #0-0) [342154.371726] tuner-simple 1-0061: creating new instance [342154.371731] tuner-simple 1-0061: type set to 50 (TCL 2002N) [342154.380824] cx18-0: Couldn't allocate buffers for encoder YUV stream [342154.381088] BUG: unable to handle kernel NULL pointer dereference at 0008 [342154.381092] IP: [] cx18_queue_flush+0x60/0xf0 [cx18] [342154.381106] PGD 0 [342154.381109] Oops: [#1] SMP [342154.381112] last sysfs file: /sys/devices/pci:00/:00:1f.2/host2/target2:0:0/2:0:0:0/block/sdc/sdc1/stat [342154.381116] CPU 0 [342154.381118] Modules linked in: tuner_simple tuner_types cs5345 tuner cx18(+) dvb_core cbc cryptd aes_x86_64 aes_generic ecb usblp nls_iso8859_1 nls_cp437 vfat fat usb_storage binfmt_misc vboxdrv kvm_intel kvm vmnet ppdev parport_pc vmblock vsock vmci vmmon cx8800 cx88xx ivtv cx2341x bttv v4l2_common videodev v4l1_compat v4l2_compat_ioctl32 ir_common i2c_algo_bit videobuf_dma_sg videobuf_core btcx_risc tveeprom ir_core lirc_i2c lirc_dev snd_hda_codec_atihdmi snd_hda_codec_realtek snd_seq_dummy snd_hda_intel snd_seq_oss snd_hda_codec snd_seq_midi snd_hwdep snd_rawmidi snd_pcm_oss snd_seq_midi_event snd_mixer_oss snd_pcm snd_seq iptable_filter snd_timer snd_seq_device lp ip_tables snd x_tables parport soundcore snd_page_alloc asus_atk0110 fglrx(P) dm_raid45 xor ohci1394 usbhid ieee1394 r8169 mii [342154.381180] Pid: 31669, comm: work_for_cpu Tainted: P 2.6.31-19-generic #56-Ubuntu System Product Name [342154.381183] RIP: 0010:[] [] cx18_queue_flush+0x60/0xf0 [cx18] [342154.381192] RSP: 0018:880193dcdc70 EFLAGS: 00010282 [342154.381195] RAX: RBX: 880144e52220 RCX: 8800273c2800 [342154.381197] RDX: 880144e52208 RSI: 880144e52218 RDI: 880144e52220 [342154.381200] RBP: 880193dcdc90 R08: R09: [342154.381202] R10: 0390 R11: 0001 R12: 880144e521e0 [342154.381205] R13: 880144e521c8 R14: 880144e52208 R15: [342154.381208] FS: () GS:880028034000() knlGS: [342154.381211] CS: 0010 DS: 0018 ES: 0018 CR0: 8005003b [342154.381213] CR2: 0008 CR3: 01001000 CR4: 26f0 [342154.381216] DR0: DR1: DR2: [342154.381219] DR3: DR6: 0ff0 DR7: 0400 [342154.381222] Process work_for_cpu (pid: 31669, threadinfo 880193dcc000, task 8800024edac0) [342154.381224] Stack: [342154.381225] 880144e52220 880144e52138 880144e52208 003f [342154.381229] <0> 880193dcdcc0 a0763cae 8801965ff5c0 880144e52138 [342154.381234] <0> 880144e52208 0006 880193dcdcf0 a0763e20 [342154.381239] Call Trace: [342154.381248] [] cx18_unload_queues+0x2e/0xf0 [cx18] [342154.381256] [] cx18_stream_free+0x30/0x120 [cx18] [342154.381265] [] cx18_streams_cleanup+0xe7/0x120 [cx18] [342154.381273] [] cx18_streams_setup+0x332/0x3c0 [cx18] [342154.381282] [] cx18_probe+0x134f/0x148a [cx18] [342154.381289] [] ? __switch_to+0xcb/0x370 [342154.381294] [] ? finish_task_switch+0x65/0x120 [342154.381301] [] ? do_work_for_cpu+0x0/0x30 [342154.381306] [] local_pci_probe+0x12/0x20 [342154.381310] [] do_work_for_cpu+0x13/0x30 [342154.381314] [] kthread+0xa6/0xb0 [342154.381317] [] child_rip+0xa/0x20 [342154.381321] [] ? kthread+0x0/0xb0 [342154.381324] [] ? child_rip+0x0/0x20 [342154.381326] Code: 84 a3 00 00 00 4c 8d 66 18 49 8d 5e 18 4c 89 e7 e8 b6 60 dc e0 48 89 df e8 ae 60 dc e0 49 8b 45 00 49 39 c5 74 56 49 8d 76 10 90 <48> 8b 50 08 48 8b 08 48 89 51 08 48 89 0a 49 8b 56 08 49 89 46 [342154.381360] RIP [