[mythtv-users] HVR-1600 issue

Stuart Auchterlonie stuarta at squashedfrog.net
Wed Dec 9 11:44:27 UTC 2015


On 07/12/15 17:14, Chris Porter wrote:
> 
> 
> 
>     On Sun, Dec 6, 2015 at 2:06 PM Chris Porter <hoodlum7 at gmail.com
>     <mailto:hoodlum7 at gmail.com>> wrote:
> 
>     > I recently upgraded from Kernel 3.10.17 to 4.1.13 and I have
>     encountered
>     > an issue recording analog. When on the kernel 4.1.13 I get the
>     following
>     > errors in the MythTV backend log
>     >
>     > 2015-12-06 00:39:16.684538 D [7969/8965] ProcessRequest
>     livetvchain.cpp:32
>     > (LiveTVChain) - LiveTVChain(): ctor
>     > 2015-12-06 00:39:16.685764 I [7969/7985] TVRecEvent tv_rec.cpp:1051
>     > (HandleStateChange) - TVRec[8]: Changing from None to
>     >  WatchingLiveTV
>     > 2015-12-06 00:39:16.688534 I [7969/7985] TVRecEvent tv_rec.cpp:3604
>     > (TuningCheckForHWChange) - TVRec[8]: HW Tuner: 8->8
>     > 2015-12-06 00:39:16.698083 I [7969/7985] TVRecEvent
>     > recorders/v4lchannel.cpp:558 (SetInputAndFormat) - V4LChannel[8](/dev
>     > /video-cx18-0): SetInputAndFormat(4, NTSC) (v4l v2) input_switch: 0
>     > mode_switch: 1
>     > 2015-12-06 00:39:16.698105 E [7969/7985] TVRecEvent
>     > recorders/v4lchannel.cpp:570 (SetInputAndFormat) - V4LChannel[8](/dev
>     > /video-cx18-0): SetInputAndFormat(4, NTSC)
>     >                         while disabling streaming (v4l v2)
>     >                         eno: Invalid argument (22)
>     > 2015-12-06 00:39:16.698857 I [7969/7985] TVRecEvent
>     > recorders/v4lchannel.cpp:558 (SetInputAndFormat) - V4LChannel[8](/dev
>     > /video-cx18-0): SetInputAndFormat(4, NTSC) (v4l v2) input_switch: 0
>     > mode_switch: 1
>     > 2015-12-06 00:39:16.698875 E [7969/7985] TVRecEvent
>     > recorders/v4lchannel.cpp:570 (SetInputAndFormat) - V4LChannel[8](/dev
>     > /video-cx18-0): SetInputAndFormat(4, NTSC)
>     >                         while disabling streaming (v4l v2)
>     >                         eno: Invalid argument (22)
>     > 2015-12-06 00:39:16.698883 E [7969/7985] TVRecEvent
>     > recorders/v4lchannel.cpp:652 (SwitchToInput) - V4LChannel[8](/dev/vid
>     > eo-cx18-0): SetInputAndFormat() failed
>     > 2015-12-06 00:39:16.698890 E [7969/7985] TVRecEvent tv_rec.cpp:3793
>     > (TuningFrequency) - TVRec[8]: Failed to set channel t
>     > o 10. Reverting to kState_None
>     > 2015-12-06 00:39:16.698907 I [7969/7985] TVRecEvent tv_rec.cpp:1051
>     > (HandleStateChange) - TVRec[8]: Changing from Watchin
>     > gLiveTV to None
>     >
>     >
>     > However, when I switch back to 3.10.17 it works normally.
>     >
>     > 2015-12-06 11:32:03.500783 I [1311/1337] TVRecEvent tv_rec.cpp:1051
>     > (HandleStateChange) - TVRec[8]: Changing from None to
>     >  WatchingLiveTV
>     > 2015-12-06 11:32:03.502609 I [1311/1337] TVRecEvent tv_rec.cpp:3604
>     > (TuningCheckForHWChange) - TVRec[8]: HW Tuner: 8->8
>     > 2015-12-06 11:32:03.507942 I [1311/1337] TVRecEvent
>     > recorders/v4lchannel.cpp:558 (SetInputAndFormat) - V4LChannel[8](/dev
>     > /video-cx18-0): SetInputAndFormat(4, NTSC) (v4l v2) input_switch: 0
>     > mode_switch: 0
>     > 2015-12-06 11:32:03.515234 N [1311/1311] CoreContext
>     autoexpire.cpp:264
>     > (CalcParams) - AutoExpire: CalcParams(): Max requ
>     > ired Free Space: 2.0 GB w/freq: 15 min
>     > 2015-12-06 11:32:03.692293 N [1311/1311] CoreContext
>     autoexpire.cpp:264
>     > (CalcParams) - AutoExpire: CalcParams(): Max requ
>     > ired Free Space: 2.0 GB w/freq: 15 min
>     > 2015-12-06 11:32:03.777436 E [1311/1337] TVRecEvent
>     recordinginfo.cpp:928
>     > (InsertProgram) - RecordingInfo::InsertProgram(
>     > ProgramInfo(4191_20151206193203.mpg): channame(KGTV) startts(Sun Dec 6
>     > 19:30:00 2015) endts(Sun Dec 6 20:00:00 2015)
>     >              recstartts(Sun Dec 6 19:32:03 2015) recendts(Sun Dec 6
>     > 20:00:00 2015)
>     >              title(Sea Rescue)): recording already exists...
>     >
>     >
>     > The problem seems to stem around the attempt to disable streaming
>     which
>     > does not appear to happen when on the 3.10.17 kernel. Has anyone
>     see this
>     > issue and if so have they found a work around?
>     <https://forum.mythtv.org>
>     >
> 
>     Take a look at https://code.mythtv.org/trac/ticket/12522
>     If you are in a position to compile from source, you could try the patch
>     attached to that ticket.
> 
>     John
> 
> 
> Thanks John. I will try compiling the source with the patch. I typically
> do a git pull every time just before I build. I do see the patch is
> slated for 0.27.6 release. I will do my usual pull and check to see if
> the patch is included. If it is not, I will patch and try. Thank you for
> the reply.
> 

I'm very interested in any feedback on this, because it is a *hack*.
In the longer term handling of v4l2 devices needs a complete rewrite

Regards
Stuart





More information about the mythtv-users mailing list