[pvrusb2] Hauppauge HVR-1900 - PAL-Nc, no audio
Dermot Buckley
dermot-lists at buckley.ie
Sat Apr 6 21:27:51 CDT 2013
On 6 Apr 2013, at 19:59, Lorne Shantz <lorne_shantz at yahoo.com> wrote:
> Yes, I think you are thinking too deep. :)
>
> You just need to get the audio stream directed to the mixer and then I think you will be ok. The trick is to figure out what the configuration is. Good luck.
>
>
You're probably right, but I don't see how the mixer is even involved here? The mpeg file is (or should be by my understanding) a direct dump of the mpeg2 stream from the device, there's no reason for any soundcard/alsa/mixer etc to be involved. (except of course during actual playback, but that happens on another machine).
Anyway, I did a little more debugging (below), this time on a pi (just for kicks). Same build of pvrusb2 as before.
No success, but two things strike me as interesting.
- The Chroma sub-carrier freq is set (correctly) to 3.58MHz, a value which is specific to PAL-N/Nc. As this is correct, I think it's quite likely that the audio offset is correct also. (it would be very odd if one were correct, but the other wrong).
- ctl_audio_modes_present contains "Mono Lang2". I was very hopeful when I saw this (as ctl_audio_mode is set to "Stereo"). It looks like it's "seeing" the SAP stream. But, alas, changing ctl_audio_mode didn't fix the issue (and for some reason I was unable to change it through sysfs - had to use v4l2-ctl to change it)
Anyway, any pointers would be appreciated.
Here's a copy/paste of what I have (sorry about the length):
***********
For starters, enable debug on any related module I could think of:
pi at rasptune ~ $ sudo rmmod pvrusb2
pi at rasptune ~ $ sudo rmmod cx25840
pi at rasptune ~ $ sudo rmmod tuner
pi at rasptune ~ $ sudo rmmod tda18271
pi at rasptune ~ $ sudo modprobe tda18271 debug=1
pi at rasptune ~ $ sudo modprobe tuner debug=1
pi at rasptune ~ $ sudo modprobe cx25840 debug=1
pi at rasptune ~ $ sudo modprobe pvrusb2 debug=1 video_std=0x00000400
(Note that video_std=0x00000400 is PAL-Nc)
Apr 6 22:21:23 rasptune kernel: [ 8892.220050] pvrusb2: Hardware description: WinTV HVR-1900 Model 73xxx
Apr 6 22:21:23 rasptune kernel: [ 8892.221540] usbcore: registered new interface driver pvrusb2
Apr 6 22:21:23 rasptune kernel: [ 8892.221564] pvrusb2: V4L in-tree version:Hauppauge WinTV-PVR-USB2 MPEG2 Encoder/Tuner
Apr 6 22:21:23 rasptune kernel: [ 8892.221575] pvrusb2: Debug mask is 1 (0x1)
Apr 6 22:21:23 rasptune kernel: [ 8892.256060] pvrusb2: Binding ir_rx_z8f0811_haup to i2c address 0x71.
Apr 6 22:21:23 rasptune kernel: [ 8892.256204] pvrusb2: Binding ir_tx_z8f0811_haup to i2c address 0x70.
Apr 6 22:21:23 rasptune kernel: [ 8892.288048] cx25840 0-0044: detecting cx25840 client on address 0x88
Apr 6 22:21:23 rasptune kernel: [ 8892.289829] cx25840 0-0044: device_id = 0x8434
Apr 6 22:21:23 rasptune kernel: [ 8892.289866] cx25840 0-0044: cx25843-24 found @ 0x88 (pvrusb2_a)
Apr 6 22:21:23 rasptune kernel: [ 8892.302647] pvrusb2: Attached sub-driver cx25840
Apr 6 22:21:23 rasptune kernel: [ 8892.335643] tuner 0-0042: tda829x detected
Apr 6 22:21:23 rasptune kernel: [ 8892.335670] tuner 0-0042: Setting mode_mask to 0x06
Apr 6 22:21:23 rasptune kernel: [ 8892.335686] tuner 0-0042: tuner 0x42: Tuner type absent
Apr 6 22:21:23 rasptune kernel: [ 8892.335700] tuner 0-0042: Tuner -1 found with type(s) Radio TV.
Apr 6 22:21:23 rasptune kernel: [ 8892.335748] pvrusb2: Attached sub-driver tuner
Apr 6 22:21:26 rasptune kernel: [ 8894.541224] cx25840 0-0044: loaded v4l-cx25840.fw firmware (16382 bytes)
Apr 6 22:21:26 rasptune kernel: [ 8894.554343] cx25840 0-0044: PLL regs = int: 15, frac: 2876158, post: 4
Apr 6 22:21:26 rasptune kernel: [ 8894.554374] cx25840 0-0044: PLL = 108.000011 MHz
Apr 6 22:21:26 rasptune kernel: [ 8894.554390] cx25840 0-0044: PLL/8 = 13.500001 MHz
Apr 6 22:21:26 rasptune kernel: [ 8894.554403] cx25840 0-0044: ADC Sampling freq = 14.317384 MHz
Apr 6 22:21:26 rasptune kernel: [ 8894.554416] cx25840 0-0044: Chroma sub-carrier freq = 3.579545 MHz
Apr 6 22:21:26 rasptune kernel: [ 8894.554439] cx25840 0-0044: hblank 122, hactive 720, vblank 26, vactive 487, vblank656 26, src_dec 543, burst 0x5b, luma_lpf 1,
uv_lpf 1, comb 0x66, sc 0x087c1f
Apr 6 22:21:26 rasptune kernel: [ 8894.571754] cx25840 0-0044: decoder set video input 7, audio input 8
Apr 6 22:21:26 rasptune kernel: [ 8894.602482] cx25840 0-0044: PLL regs = int: 15, frac: 2876158, post: 4
Apr 6 22:21:26 rasptune kernel: [ 8894.602514] cx25840 0-0044: PLL = 108.000011 MHz
Apr 6 22:21:26 rasptune kernel: [ 8894.602528] cx25840 0-0044: PLL/8 = 13.500001 MHz
Apr 6 22:21:26 rasptune kernel: [ 8894.602541] cx25840 0-0044: ADC Sampling freq = 14.317384 MHz
Apr 6 22:21:26 rasptune kernel: [ 8894.602555] cx25840 0-0044: Chroma sub-carrier freq = 3.579545 MHz
Apr 6 22:21:26 rasptune kernel: [ 8894.602577] cx25840 0-0044: hblank 122, hactive 720, vblank 26, vactive 487, vblank656 26, src_dec 543, burst 0x5b, luma_lpf 1,
uv_lpf 1, comb 0x66, sc 0x087c1f
Apr 6 22:21:26 rasptune kernel: [ 8894.652424] tveeprom 0-00a2: Hauppauge model 73219, rev D2F5, serial# 7836611
Apr 6 22:21:26 rasptune kernel: [ 8894.652455] tveeprom 0-00a2: MAC address is 00:0d:fe:77:93:c3
Apr 6 22:21:26 rasptune kernel: [ 8894.652469] tveeprom 0-00a2: tuner model is NXP 18271C2 (idx 155, type 54)
Apr 6 22:21:26 rasptune kernel: [ 8894.652486] tveeprom 0-00a2: TV standards PAL(B/G) PAL(I) SECAM(L/L') PAL(D/D1/K) ATSC/DVB Digital (eeprom 0xf4)
Apr 6 22:21:26 rasptune kernel: [ 8894.652499] tveeprom 0-00a2: audio processor is CX25843 (idx 37)
Apr 6 22:21:26 rasptune kernel: [ 8894.652512] tveeprom 0-00a2: decoder processor is CX25843 (idx 30)
Apr 6 22:21:26 rasptune kernel: [ 8894.652524] tveeprom 0-00a2: has radio, has IR receiver, has IR transmitter
Apr 6 22:21:26 rasptune kernel: [ 8894.652644] pvrusb2: Device initialization completed successfully.
Apr 6 22:21:28 rasptune kernel: [ 8896.882292] cx25840 0-0044: loaded v4l-cx25840.fw firmware (16382 bytes)
Apr 6 22:21:28 rasptune kernel: [ 8896.895672] cx25840 0-0044: PLL regs = int: 15, frac: 2876158, post: 4
Apr 6 22:21:28 rasptune kernel: [ 8896.895702] cx25840 0-0044: PLL = 108.000011 MHz
Apr 6 22:21:28 rasptune kernel: [ 8896.895717] cx25840 0-0044: PLL/8 = 13.500001 MHz
Apr 6 22:21:28 rasptune kernel: [ 8896.895730] cx25840 0-0044: ADC Sampling freq = 14.317384 MHz
Apr 6 22:21:28 rasptune kernel: [ 8896.895743] cx25840 0-0044: Chroma sub-carrier freq = 3.579545 MHz
Apr 6 22:21:28 rasptune kernel: [ 8896.895766] cx25840 0-0044: hblank 122, hactive 720, vblank 26, vactive 487, vblank656 26, src_dec 543, burst 0x5b, luma_lpf 1, uv_lpf 1, comb 0x66, sc 0x087c1f
Apr 6 22:21:28 rasptune kernel: [ 8896.912701] cx25840 0-0044: decoder set video input 7, audio input 8
Apr 6 22:21:28 rasptune kernel: [ 8896.943050] cx25840 0-0044: PLL regs = int: 15, frac: 2876158, post: 4
Apr 6 22:21:28 rasptune kernel: [ 8896.943081] cx25840 0-0044: PLL = 108.000011 MHz
Apr 6 22:21:28 rasptune kernel: [ 8896.943094] cx25840 0-0044: PLL/8 = 13.500001 MHz
Apr 6 22:21:28 rasptune kernel: [ 8896.943107] cx25840 0-0044: ADC Sampling freq = 14.317384 MHz
Apr 6 22:21:28 rasptune kernel: [ 8896.943120] cx25840 0-0044: Chroma sub-carrier freq = 3.579545 MHz
Apr 6 22:21:28 rasptune kernel: [ 8896.943143] cx25840 0-0044: hblank 122, hactive 720, vblank 26, vactive 487, vblank656 26, src_dec 543, burst 0x5b, luma_lpf 1, uv_lpf 1, comb 0x66, sc 0x087c1f
Apr 6 22:21:28 rasptune kernel: [ 8896.972736] tuner 0-0042: Calling set_type_addr for type=54, addr=0xff, mode=0x06, config=0x00
Apr 6 22:21:28 rasptune kernel: [ 8897.026097] tda829x 0-0042: setting tuner address to 60
Apr 6 22:21:28 rasptune kernel: [ 8897.056009] tda18271 0-0060: creating new instance
Apr 6 22:21:28 rasptune kernel: [ 8897.106110] TDA18271HD/C2 detected @ 0-0060
Apr 6 22:21:28 rasptune kernel: [ 8897.106149] tda18271_init_regs: [0-0060|M] initializing registers for device @ 0-0060
Apr 6 22:21:30 rasptune kernel: [ 8898.576170] tda18271: performing RF tracking filter calibration
Apr 6 22:21:54 rasptune kernel: [ 8922.656680] tda18271: RF tracking filter calibration complete
Apr 6 22:21:54 rasptune kernel: [ 8922.706724] tda18271_toggle_output: [0-0060|M] standby mode: xtal oscillator on, slave tuner loop thru on
Apr 6 22:21:54 rasptune kernel: [ 8922.726724] tda829x 0-0042: type set to tda8295+18271
Apr 6 22:21:54 rasptune kernel: [ 8922.764718] tuner 0-0042: type set to tda8295+18271
Apr 6 22:21:54 rasptune kernel: [ 8922.764748] tuner 0-0042: tv freq set to 400.00
Apr 6 22:21:54 rasptune kernel: [ 8922.856116] tda18271_set_analog_params: [0-0060|M] setting tda18271 to system xx
Apr 6 22:21:54 rasptune kernel: [ 8922.856154] tda18271_tune: [0-0060|M] freq = 400000000, ifc = 7250, bw = 0, agc_mode = 1, std = 6
Apr 6 22:21:55 rasptune kernel: [ 8923.676720] tuner 0-0042: pvrusb2_a tuner I2C addr 0x84 with type 54 used for 0x06
Apr 6 22:21:55 rasptune kernel: [ 8923.676756] cx25840 0-0044: changing video std to fmt 7
Apr 6 22:21:55 rasptune kernel: [ 8923.685540] cx25840 0-0044: PLL regs = int: 15, frac: 2876158, post: 4
Apr 6 22:21:55 rasptune kernel: [ 8923.685564] cx25840 0-0044: PLL = 108.000011 MHz
Apr 6 22:21:55 rasptune kernel: [ 8923.685580] cx25840 0-0044: PLL/8 = 13.500001 MHz
Apr 6 22:21:55 rasptune kernel: [ 8923.685593] cx25840 0-0044: ADC Sampling freq = 14.317384 MHz
Apr 6 22:21:55 rasptune kernel: [ 8923.685606] cx25840 0-0044: Chroma sub-carrier freq = 3.582056 MHz
Apr 6 22:21:55 rasptune kernel: [ 8923.685629] cx25840 0-0044: hblank 132, hactive 720, vblank 36, vactive 580, vblank656 40, src_dec 543, burst 0x5d, luma_lpf 2, uv_lpf 1, comb 0x20, sc 0x087da5
Apr 6 22:21:55 rasptune kernel: [ 8923.710095] tuner 0-0042: tv freq set to 400.00
Apr 6 22:21:55 rasptune kernel: [ 8923.796134] tda18271_set_analog_params: [0-0060|M] setting tda18271 to system MN
Apr 6 22:21:55 rasptune kernel: [ 8923.796172] tda18271_tune: [0-0060|M] freq = 400000000, ifc = 5400, bw = 0, agc_mode = 1, std = 4
Apr 6 22:21:56 rasptune kernel: [ 8924.620184] cx25840 0-0044: PLL regs = int: 15, frac: 2876158, post: 4
Apr 6 22:21:56 rasptune kernel: [ 8924.620214] cx25840 0-0044: PLL = 108.000011 MHz
Apr 6 22:21:56 rasptune kernel: [ 8924.620229] cx25840 0-0044: PLL/8 = 13.500001 MHz
Apr 6 22:21:56 rasptune kernel: [ 8924.620243] cx25840 0-0044: ADC Sampling freq = 14.317384 MHz
Apr 6 22:21:56 rasptune kernel: [ 8924.620256] cx25840 0-0044: Chroma sub-carrier freq = 3.582056 MHz
Apr 6 22:21:56 rasptune kernel: [ 8924.620278] cx25840 0-0044: hblank 132, hactive 720, vblank 36, vactive 580, vblank656 40, src_dec 543, burst 0x5d, luma_lpf 2, uv_lpf 1, comb 0x20, sc 0x087da5
Apr 6 22:21:56 rasptune kernel: [ 8924.658345] tuner 0-0042: tv freq set to 400.00
Apr 6 22:21:56 rasptune kernel: [ 8924.746160] tda18271_set_analog_params: [0-0060|M] setting tda18271 to system MN
Apr 6 22:21:56 rasptune kernel: [ 8924.746197] tda18271_tune: [0-0060|M] freq = 400000000, ifc = 5400, bw = 0, agc_mode = 1, std = 4
Apr 6 22:21:57 rasptune kernel: [ 8925.575842] tuner 0-0042: tv freq set to 61.25
Apr 6 22:21:57 rasptune kernel: [ 8925.666174] tda18271_set_analog_params: [0-0060|M] setting tda18271 to system MN
Apr 6 22:21:57 rasptune kernel: [ 8925.666209] tda18271_tune: [0-0060|M] freq = 61250000, ifc = 5400, bw = 0, agc_mode = 1, std = 4
Apr 6 22:21:58 rasptune kernel: [ 8926.489812] cx25840 0-0044: decoder set size 720x576 -> scale 0x0
Apr 6 22:21:58 rasptune kernel: [ 8926.507723] cx25840 0-0044: decoder set video input 7, audio input 8
Apr 6 22:21:58 rasptune kernel: [ 8926.536612] cx25840 0-0044: decoder set video input 7, audio input 8
Apr 6 22:21:58 rasptune kernel: [ 8926.843812] pvrusb2: registered device video0 [mpeg]
Apr 6 22:21:58 rasptune kernel: [ 8926.843847] DVB: registering new adapter (pvrusb2-dvb)
Apr 6 22:21:58 rasptune kernel: [ 8926.852262] tuner 0-0042: tv freq set to 61.25
Apr 6 22:21:58 rasptune kernel: [ 8926.966205] tda18271_set_analog_params: [0-0060|M] setting tda18271 to system MN
Apr 6 22:21:58 rasptune kernel: [ 8926.966241] tda18271_tune: [0-0060|M] freq = 61250000, ifc = 5400, bw = 0, agc_mode = 1, std = 4
Apr 6 22:21:59 rasptune kernel: [ 8927.790118] cx25840 0-0044: PLL regs = int: 15, frac: 2876158, post: 4
Apr 6 22:21:59 rasptune kernel: [ 8927.790149] cx25840 0-0044: PLL = 108.000011 MHz
Apr 6 22:21:59 rasptune kernel: [ 8927.790164] cx25840 0-0044: PLL/8 = 13.500001 MHz
Apr 6 22:21:59 rasptune kernel: [ 8927.790178] cx25840 0-0044: ADC Sampling freq = 14.317384 MHz
Apr 6 22:21:59 rasptune kernel: [ 8927.790190] cx25840 0-0044: Chroma sub-carrier freq = 3.582056 MHz
Apr 6 22:21:59 rasptune kernel: [ 8927.790212] cx25840 0-0044: hblank 132, hactive 720, vblank 36, vactive 580, vblank656 40, src_dec 543, burst 0x5d, luma_lpf 2, uv_lpf 1, comb 0x20, sc 0x087da5
Apr 6 22:21:59 rasptune kernel: [ 8927.821183] tuner 0-0042: tv freq set to 61.25
Apr 6 22:21:59 rasptune kernel: [ 8927.906228] tda18271_set_analog_params: [0-0060|M] setting tda18271 to system MN
Apr 6 22:21:59 rasptune kernel: [ 8927.906264] tda18271_tune: [0-0060|M] freq = 61250000, ifc = 5400, bw = 0, agc_mode = 1, std = 4
Apr 6 22:22:00 rasptune kernel: [ 8928.735903] tuner 0-0042: tv freq set to 61.25
Apr 6 22:22:00 rasptune kernel: [ 8928.826248] tda18271_set_analog_params: [0-0060|M] setting tda18271 to system MN
Apr 6 22:22:00 rasptune kernel: [ 8928.826284] tda18271_tune: [0-0060|M] freq = 61250000, ifc = 5400, bw = 0, agc_mode = 1, std = 4
Apr 6 22:22:01 rasptune kernel: [ 8929.646790] cx25840 0-0044: decoder set video input 0, audio input 8
Apr 6 22:22:01 rasptune kernel: [ 8929.646816] cx25840 0-0044: 0x0000 is not a valid video input!
Apr 6 22:22:01 rasptune kernel: [ 8929.646831] cx25840 0-0044: decoder set video input 7, audio input 0
Apr 6 22:22:01 rasptune kernel: [ 8929.681309] DVB: registering adapter 0 frontend 0 (NXP TDA10048HN DVB-T)...
Apr 6 22:22:01 rasptune kernel: [ 8929.683165] tda829x 0-0042: type set to tda8295
Apr 6 22:22:01 rasptune kernel: [ 8929.726178] tda18271 0-0060: attaching existing instance
Apr 6 22:22:01 rasptune kernel: [ 8929.726331] tda18271_update_std_map: [0-0060|M] Using custom std config for dvbt 6
Apr 6 22:22:01 rasptune kernel: [ 8929.726351] tda18271_update_std_map: [0-0060|M] Using custom std config for dvbt 7
Apr 6 22:22:01 rasptune kernel: [ 8929.726367] tda18271_update_std_map: [0-0060|M] Using custom std config for dvbt 8
Apr 6 22:22:01 rasptune kernel: [ 8929.726382] tda18271_update_std_map: [0-0060|M] Using custom std config for dvbt 6
Apr 6 22:22:01 rasptune kernel: [ 8929.726395] tda18271_update_std_map: [0-0060|M] Using custom std config for dvbt 7
Apr 6 22:22:01 rasptune kernel: [ 8929.726409] tda18271_update_std_map: [0-0060|M] Using custom std config for dvbt 8
pi at rasptune ~ $ v4l2-ctl --device=/dev/video0 --set-freq 163.25
Frequency set to 2612 (163.250000 MHz)
Apr 6 22:24:55 rasptune kernel: [ 9104.247964] cx25840 0-0044: loaded v4l-cx25840.fw firmware (16382 bytes)
Apr 6 22:24:55 rasptune kernel: [ 9104.268347] cx25840 0-0044: PLL regs = int: 15, frac: 2876158, post: 4
Apr 6 22:24:55 rasptune kernel: [ 9104.268378] cx25840 0-0044: PLL = 108.000011 MHz
Apr 6 22:24:55 rasptune kernel: [ 9104.268392] cx25840 0-0044: PLL/8 = 13.500001 MHz
Apr 6 22:24:55 rasptune kernel: [ 9104.268404] cx25840 0-0044: ADC Sampling freq = 14.317384 MHz
Apr 6 22:24:55 rasptune kernel: [ 9104.268418] cx25840 0-0044: Chroma sub-carrier freq = 3.582056 MHz
Apr 6 22:24:55 rasptune kernel: [ 9104.268440] cx25840 0-0044: hblank 132, hactive 720, vblank 36, vactive 580, vblank656 40, src_dec 543, burst 0x5d, luma_lpf 2, uv_lpf 1, comb 0x20, sc 0x087da5
Apr 6 22:24:55 rasptune kernel: [ 9104.282995] cx25840 0-0044: decoder set video input 7, audio input 0
Apr 6 22:24:55 rasptune kernel: [ 9104.312223] cx25840 0-0044: PLL regs = int: 15, frac: 2876158, post: 4
Apr 6 22:24:55 rasptune kernel: [ 9104.312254] cx25840 0-0044: PLL = 108.000011 MHz
Apr 6 22:24:55 rasptune kernel: [ 9104.312269] cx25840 0-0044: PLL/8 = 13.500001 MHz
Apr 6 22:24:55 rasptune kernel: [ 9104.312282] cx25840 0-0044: ADC Sampling freq = 14.317384 MHz
Apr 6 22:24:55 rasptune kernel: [ 9104.312295] cx25840 0-0044: Chroma sub-carrier freq = 3.582056 MHz
Apr 6 22:24:55 rasptune kernel: [ 9104.312317] cx25840 0-0044: hblank 132, hactive 720, vblank 36, vactive 580, vblank656 40, src_dec 543, burst 0x5d, luma_lpf 2, uv_lpf 1, comb 0x20, sc 0x087da5
Apr 6 22:24:55 rasptune kernel: [ 9104.336897] tuner 0-0042: tv freq set to 61.25
Apr 6 22:24:55 rasptune kernel: [ 9104.430266] tda18271_set_analog_params: [0-0060|M] setting tda18271 to system MN
Apr 6 22:24:55 rasptune kernel: [ 9104.430302] tda18271_tune: [0-0060|M] freq = 61250000, ifc = 5400, bw = 0, agc_mode = 1, std = 4
Apr 6 22:24:56 rasptune kernel: [ 9105.254231] cx25840 0-0044: PLL regs = int: 15, frac: 2876158, post: 4
Apr 6 22:24:56 rasptune kernel: [ 9105.254263] cx25840 0-0044: PLL = 108.000011 MHz
Apr 6 22:24:56 rasptune kernel: [ 9105.254279] cx25840 0-0044: PLL/8 = 13.500001 MHz
Apr 6 22:24:56 rasptune kernel: [ 9105.254293] cx25840 0-0044: ADC Sampling freq = 14.317384 MHz
Apr 6 22:24:56 rasptune kernel: [ 9105.254306] cx25840 0-0044: Chroma sub-carrier freq = 3.582056 MHz
Apr 6 22:24:56 rasptune kernel: [ 9105.254329] cx25840 0-0044: hblank 132, hactive 720, vblank 36, vactive 580, vblank656 40, src_dec 543, burst 0x5d, luma_lpf 2, uv_lpf 1, comb 0x20, sc 0x087da5
Apr 6 22:24:56 rasptune kernel: [ 9105.281264] tuner 0-0042: tv freq set to 61.25
Apr 6 22:24:56 rasptune kernel: [ 9105.370275] tda18271_set_analog_params: [0-0060|M] setting tda18271 to system MN
Apr 6 22:24:56 rasptune kernel: [ 9105.370310] tda18271_tune: [0-0060|M] freq = 61250000, ifc = 5400, bw = 0, agc_mode = 1, std = 4
Apr 6 22:24:57 rasptune kernel: [ 9106.199885] tuner 0-0042: tv freq set to 61.25
Apr 6 22:24:57 rasptune kernel: [ 9106.290306] tda18271_set_analog_params: [0-0060|M] setting tda18271 to system MN
Apr 6 22:24:57 rasptune kernel: [ 9106.290341] tda18271_tune: [0-0060|M] freq = 61250000, ifc = 5400, bw = 0, agc_mode = 1, std = 4
Apr 6 22:24:58 rasptune kernel: [ 9107.110895] cx25840 0-0044: decoder set video input 7, audio input 0
Apr 6 22:24:58 rasptune kernel: [ 9107.135514] cx25840 0-0044: decoder set video input 7, audio input 8
Apr 6 22:24:58 rasptune kernel: [ 9107.176382] tuner 0-0042: tv freq set to 163.25
Apr 6 22:24:58 rasptune kernel: [ 9107.270327] tda18271_set_analog_params: [0-0060|M] setting tda18271 to system MN
Apr 6 22:24:58 rasptune kernel: [ 9107.270365] tda18271_tune: [0-0060|M] freq = 163250000, ifc = 5400, bw = 0, agc_mode = 1, std = 4
pi at rasptune ~ $ v4l2-ctl -d /dev/video0 -L
brightness (int) : min=0 max=255 step=1 default=128 value=128
contrast (int) : min=0 max=127 step=1 default=68 value=68
saturation (int) : min=0 max=127 step=1 default=64 value=64
hue (int) : min=-128 max=127 step=1 default=0 value=0
volume (int) : min=0 max=65535 step=1 default=62000 value=62000
balance (int) : min=-32768 max=32767 step=1 default=0 value=0
bass (int) : min=-32768 max=32767 step=1 default=0 value=0
treble (int) : min=-32768 max=32767 step=1 default=0 value=0
mute (bool) : default=0 value=0
stream_type (menu) : min=0 max=5 default=0 value=0 flags=update
0: MPEG-2 Program Stream
1:
2: MPEG-1 System Stream
3: MPEG-2 DVD-compatible Stream
4: MPEG-1 VCD-compatible Stream
5: MPEG-2 SVCD-compatible Stream
audio_sampling_frequency (menu) : min=0 max=2 default=1 value=1
0: 44.1 kHz
1: 48 kHz
2: 32 kHz
audio_encoding (menu) : min=0 max=4 default=1 value=1 flags=update
0: MPEG-1/2 Layer I
1: MPEG-1/2 Layer II
2: MPEG-1/2 Layer III
3: MPEG-2/4 AAC
4: AC-3
audio_layer_ii_bitrate (menu) : min=0 max=13 default=10 value=10
0: 32 kbps
1: 48 kbps
2: 56 kbps
3: 64 kbps
4: 80 kbps
5: 96 kbps
6: 112 kbps
7: 128 kbps
8: 160 kbps
9: 192 kbps
10: 224 kbps
11: 256 kbps
12: 320 kbps
13: 384 kbps
audio_stereo_mode (menu) : min=0 max=3 default=0 value=0 flags=update
0: Stereo
1: Joint Stereo
2: Dual
3: Mono
audio_stereo_mode_extension (menu) : min=0 max=3 default=0 value=0 flags=inactive
0: Bound 4
1: Bound 8
2: Bound 12
3: Bound 16
audio_emphasis (menu) : min=0 max=2 default=0 value=0
0: No Emphasis
1: 50/15 us
2: CCITT J17
audio_crc (menu) : min=0 max=1 default=0 value=0
0: No CRC
1: 16-bit CRC
video_aspect (menu) : min=0 max=3 default=1 value=1
0: 1x1
1: 4x3
2: 16x9
3: 2.21x1
video_b_frames (int) : min=0 max=33 step=1 default=2 value=2 flags=update
video_gop_size (int) : min=1 max=34 step=1 default=15 value=12
video_gop_closure (bool) : default=1 value=1
video_bitrate_mode (menu) : min=0 max=1 default=0 value=0 flags=update
0: Variable Bitrate
1: Constant Bitrate
video_bitrate (int) : min=0 max=27000000 step=1 default=6000000 value=6000000
video_peak_bitrate (int) : min=0 max=27000000 step=1 default=8000000 value=8000000
video_temporal_decimation (int) : min=0 max=255 step=1 default=0 value=0
spatial_filter_mode (menu) : min=0 max=1 default=0 value=0 flags=update
0: Manual
1: Auto
spatial_filter (int) : min=0 max=15 step=1 default=0 value=0 flags=slider
spatial_luma_filter_type (menu) : min=0 max=4 default=1 value=1
0: Off
1: 1D Horizontal
2: 1D Vertical
3: 2D H/V Separable
4: 2D Symmetric non-separable
spatial_chroma_filter_type (menu) : min=0 max=1 default=1 value=1
0: Off
1: 1D Horizontal
temporal_filter_mode (menu) : min=0 max=1 default=0 value=0 flags=update
0: Manual
1: Auto
temporal_filter (int) : min=0 max=31 step=1 default=8 value=8 flags=slider
median_filter_type (menu) : min=0 max=4 default=0 value=0 flags=update
0: Off
1: Horizontal
2: Vertical
3: Horizontal/Vertical
4: Diagonal
median_luma_filter_minimum (int) : min=0 max=255 step=1 default=0 value=0 flags=inactive, slider
median_luma_filter_maximum (int) : min=0 max=255 step=1 default=255 value=255 flags=inactive, slider
median_chroma_filter_minimum (int) : min=0 max=255 step=1 default=0 value=0 flags=inactive, slider
median_chroma_filter_maximum (int) : min=0 max=255 step=1 default=255 value=255 flags=inactive, slider
pi at rasptune ~ $ for cur_val in /sys/class/pvrusb2/sn-7836611/ctl*/cur_val; do echo -n $cur_val ": "; cat $cur_val; done;
/sys/class/pvrusb2/sn-7836611/ctl_audio_bitrate/cur_val : 224 kbps
/sys/class/pvrusb2/sn-7836611/ctl_audio_crc/cur_val : No CRC
/sys/class/pvrusb2/sn-7836611/ctl_audio_emphasis/cur_val : No Emphasis
/sys/class/pvrusb2/sn-7836611/ctl_audio_layer/cur_val : MPEG-1/2 Layer II
/sys/class/pvrusb2/sn-7836611/ctl_audio_mode/cur_val : Stereo
/sys/class/pvrusb2/sn-7836611/ctl_audio_modes_present/cur_val : Mono Lang2
/sys/class/pvrusb2/sn-7836611/ctl_balance/cur_val : 0
/sys/class/pvrusb2/sn-7836611/ctl_bass/cur_val : 0
/sys/class/pvrusb2/sn-7836611/ctl_brightness/cur_val : 128
/sys/class/pvrusb2/sn-7836611/ctl_channel/cur_val : 0
/sys/class/pvrusb2/sn-7836611/ctl_contrast/cur_val : 68
/sys/class/pvrusb2/sn-7836611/ctl_cropcap_bounds_height/cur_val : 0
/sys/class/pvrusb2/sn-7836611/ctl_cropcap_bounds_left/cur_val : 0
/sys/class/pvrusb2/sn-7836611/ctl_cropcap_bounds_top/cur_val : 0
/sys/class/pvrusb2/sn-7836611/ctl_cropcap_bounds_width/cur_val : 0
/sys/class/pvrusb2/sn-7836611/ctl_cropcap_pixel_denominator/cur_val : 0
/sys/class/pvrusb2/sn-7836611/ctl_cropcap_pixel_numerator/cur_val : 0
/sys/class/pvrusb2/sn-7836611/ctl_crop_height/cur_val : 576
/sys/class/pvrusb2/sn-7836611/ctl_crop_left/cur_val : 0
/sys/class/pvrusb2/sn-7836611/ctl_crop_top/cur_val : 0
/sys/class/pvrusb2/sn-7836611/ctl_crop_width/cur_val : 720
/sys/class/pvrusb2/sn-7836611/ctl_freq_table_channel/cur_val : 0
/sys/class/pvrusb2/sn-7836611/ctl_freq_table_value/cur_val : 0
/sys/class/pvrusb2/sn-7836611/ctl_frequency/cur_val : 163250000
/sys/class/pvrusb2/sn-7836611/ctl_hue/cur_val : 0
/sys/class/pvrusb2/sn-7836611/ctl_input/cur_val : television
/sys/class/pvrusb2/sn-7836611/ctl_master_state/cur_val : ready
/sys/class/pvrusb2/sn-7836611/ctl_mpeg_audio_mode/cur_val : Stereo
/sys/class/pvrusb2/sn-7836611/ctl_mpeg_audio_mode_extension/cur_val : Bound 4
/sys/class/pvrusb2/sn-7836611/ctl_mute/cur_val : false
/sys/class/pvrusb2/sn-7836611/ctl_resolution_hor/cur_val : 720
/sys/class/pvrusb2/sn-7836611/ctl_resolution_ver/cur_val : 576
/sys/class/pvrusb2/sn-7836611/ctl_saturation/cur_val : 64
/sys/class/pvrusb2/sn-7836611/ctl_signal_present/cur_val : 65535
/sys/class/pvrusb2/sn-7836611/ctl_srate/cur_val : 48 kHz
/sys/class/pvrusb2/sn-7836611/ctl_streaming_enabled/cur_val : false
/sys/class/pvrusb2/sn-7836611/ctl_stream_type/cur_val : MPEG-2 Program Stream
/sys/class/pvrusb2/sn-7836611/ctl_treble/cur_val : 0
/sys/class/pvrusb2/sn-7836611/ctl_usb_speed/cur_val : High
/sys/class/pvrusb2/sn-7836611/ctl_video_aspect/cur_val : 4x3
/sys/class/pvrusb2/sn-7836611/ctl_video_b_frames/cur_val : 2
/sys/class/pvrusb2/sn-7836611/ctl_video_bitrate/cur_val : 6000000
/sys/class/pvrusb2/sn-7836611/ctl_video_bitrate_mode/cur_val : Variable Bitrate
/sys/class/pvrusb2/sn-7836611/ctl_video_bitrate_peak/cur_val : 8000000
/sys/class/pvrusb2/sn-7836611/ctl_video_chroma_median_filter_bottom/cur_val : 0
/sys/class/pvrusb2/sn-7836611/ctl_video_chroma_median_filter_top/cur_val : 255
/sys/class/pvrusb2/sn-7836611/ctl_video_chroma_spatial_filter_type/cur_val : 1D Horizontal
/sys/class/pvrusb2/sn-7836611/ctl_video_gop_closure/cur_val : true
/sys/class/pvrusb2/sn-7836611/ctl_video_gop_size/cur_val : 12
/sys/class/pvrusb2/sn-7836611/ctl_video_luma_median_filter_bottom/cur_val : 0
/sys/class/pvrusb2/sn-7836611/ctl_video_luma_median_filter_top/cur_val : 255
/sys/class/pvrusb2/sn-7836611/ctl_video_luma_spatial_filter_type/cur_val : 1D Horizontal
/sys/class/pvrusb2/sn-7836611/ctl_video_median_filter_type/cur_val : Off
/sys/class/pvrusb2/sn-7836611/ctl_video_spatial_filter/cur_val : 0
/sys/class/pvrusb2/sn-7836611/ctl_video_spatial_filter_mode/cur_val : Manual
/sys/class/pvrusb2/sn-7836611/ctl_video_standard_mask_active/cur_val : PAL-Nc
/sys/class/pvrusb2/sn-7836611/ctl_video_standard_mask_available/cur_val : PAL-B PAL-B1 PAL-G PAL-H PAL-I PAL-D PAL-D1 PAL-K PAL-N PAL-Nc SECAM-B SECAM-D SECAM-G SECAM-H SECAM-K SECAM-K1 SECAM-L SECAM-LC ATSC-8VSB ATSC-16VSB
/sys/class/pvrusb2/sn-7836611/ctl_video_standard_mask_detected/cur_val : PAL-B PAL-B1 PAL-G PAL-H PAL-I PAL-D PAL-D1 PAL-K PAL-N PAL-Nc SECAM-B SECAM-D SECAM-G SECAM-H SECAM-K SECAM-K1 SECAM-L SECAM-LC ATSC-8VSB ATSC-16VSB
/sys/class/pvrusb2/sn-7836611/ctl_video_temporal_decimation/cur_val : 0
/sys/class/pvrusb2/sn-7836611/ctl_video_temporal_filter/cur_val : 8
/sys/class/pvrusb2/sn-7836611/ctl_video_temporal_filter_mode/cur_val : Manual
/sys/class/pvrusb2/sn-7836611/ctl_volume/cur_val : 62000
(hmmmm, 'ctl_audio_modes_present' is curious ....)
pi at rasptune ~ $ v4l2-ctl --set-tuner mono
Apr 6 22:48:17 rasptune kernel: [10505.988426] tuner 0-0042: tv freq set to 163.25
Apr 6 22:48:17 rasptune kernel: [10506.073398] tda18271_set_analog_params: [0-0060|M] setting tda18271 to system MN
Apr 6 22:48:17 rasptune kernel: [10506.073436] tda18271_tune: [0-0060|M] freq = 163250000, ifc = 5400, bw = 0, agc_mode = 1, std = 4
pi at rasptune ~ $ cat /sys/class/pvrusb2/sn-7836611/ctl_audio_mode/cur_val
Mono
pi at rasptune ~ $ cat /dev/video0 > ~/sample_mpeg6.mpg
^C
Apr 6 22:48:57 rasptune kernel: [10545.909564] cx25840 0-0044: enable video output
Apr 6 22:48:57 rasptune kernel: [10545.912458] cx25840 0-0044: enable audio output
Apr 6 22:49:18 rasptune kernel: [10566.695827] cx25840 0-0044: disable video output
Apr 6 22:49:18 rasptune kernel: [10566.699200] cx25840 0-0044: disable audio output
(unfortunately, sample_mpeg6 was sans audio also, really had high hopes for this one)
pi at rasptune ~ $ v4l2-ctl --set-tuner lang2
Apr 6 22:51:26 rasptune kernel: [10694.813458] tuner 0-0042: tv freq set to 163.25
Apr 6 22:51:26 rasptune kernel: [10694.917791] tda18271_set_analog_params: [0-0060|M] setting tda18271 to system MN
Apr 6 22:51:26 rasptune kernel: [10694.917828] tda18271_tune: [0-0060|M] freq = 163250000, ifc = 5400, bw = 0, agc_mode = 1, std = 4
pi at rasptune ~ $ cat /dev/video0 > ~/sample_mpeg7.mpg
^C
Apr 6 22:55:41 rasptune kernel: [10949.764064] cx25840 0-0044: enable video output
Apr 6 22:55:41 rasptune kernel: [10949.766944] cx25840 0-0044: enable audio output
Apr 6 22:56:03 rasptune kernel: [10971.708865] cx25840 0-0044: disable video output
Apr 6 22:56:03 rasptune kernel: [10971.712001] cx25840 0-0044: disable audio output
(and ditto, silence in sample_mpeg7)
More information about the pvrusb2
mailing list