[mythtv-users] HDPVR unable to record after upgrading to r20007 - in trunk

john jppoet at gmail.com
Tue Feb 17 02:03:02 UTC 2009


On Feb 16, 2009, at 6:51 PM, john wrote:

>
> On Feb 16, 2009, at 6:16 PM, John Hoyt wrote:
>
>> Hi,
>>
>> I just tried to upgrad to r20007 in trunk with the latest  
>> DeviceReadBuffer-polltimeout.2.patch and  
>> hdpvr_audio_codec_selection.diff patches applied.  When I swapped  
>> to live tv to test the latest build, my mythbackend crashed.  Here  
>> is the relevant mythbackend log output:
>>
>> 2009-02-16 14:40:46.949 TVRec(1): Changing from None to  
>> WatchingLiveTV
>> 2009-02-16 14:40:46.958 TVRec(1): HW Tuner: 1->1
>> 2009-02-16 14:40:48.039 ret_pid(0) child(16601) status(0x0)
>> 2009-02-16 14:40:49.041 ret_pid(0) child(16601) status(0x0)
>> 2009-02-16 14:40:49.313 ret_pid(16601) child(16601) status(0x0)
>> 2009-02-16 14:40:49.314 External Tuning program exited with no error
>> 2009-02-16 14:40:50.643 MPEGRec(/dev/video0) Warning: Unable to get  
>> supported audio codecs.
>>             eno: Success (0)
>> 2009-02-16 14:40:50.649 AutoExpire: CalcParams(): Max required Free  
>> Space: 6.0 GB w/freq: 15 min
>> 2009-02-16 14:40:59.204 MPEGRec(/dev/video0) Error: Device error  
>> detected
>> 2009-02-16 14:40:59.209 DevRdB(/dev/video0): Stop(): Not running.
>> 2009-02-16 14:41:03.643 MPEGRec(/dev/video0) Error: Device error  
>> detected
>> 2009-02-16 14:41:03.643 DevRdB(/dev/video0): Stop(): Not running.
>> 2009-02-16 14:41:08.410 MPEGRec(/dev/video0) Error: Device error  
>> detected
>> 2009-02-16 14:41:08.411 DevRdB(/dev/video0): Stop(): Not running.
>> 2009-02-16 14:41:13.217 TVRec(1): Changing from WatchingLiveTV to  
>> None
>> 2009-02-16 14:41:13.284 MPEGRec(/dev/video0) Error: Device error  
>> detected
>> 2009-02-16 14:41:13.286 DevRdB(/dev/video0): Stop(): Not running.
>> 2009-02-16 14:41:17.368 Finished recording Local Origination:  
>> channel 4001
>> 2009-02-16 14:41:18.905 DevRdB(
>> QMutex::lock: mutex lock failure:
>>
>> Since the latest build wasn't working, I tried rolling back to a  
>> previous build (r19988), after I unloaded and reloaded the HDPVR  
>> modules and verified that the HDPVR was still working outside of  
>> mythtv.  To my chagrin, my HDPVR still would not record in mythtv  
>> providing similar error outputs from mythbackend:
>>
>> 2009-02-16 15:20:40.991 TVRec(1): Changing from None to RecordingOnly
>> 2009-02-16 15:20:40.996 TVRec(1): HW Tuner: 1->1
>> 2009-02-16 15:20:42.073 ret_pid(0) child(10470) status(0x0)
>> 2009-02-16 15:20:43.074 ret_pid(0) child(10470) status(0x0)
>> 2009-02-16 15:20:43.351 ret_pid(10470) child(10470) status(0x0)
>> 2009-02-16 15:20:43.351 External Tuning program exited with no error
>> 2009-02-16 15:20:43.577 AutoExpire: CalcParams(): Max required Free  
>> Space: 6.0 GB w/freq: 15 min
>> 2009-02-16 15:20:43.583 Started recording: Car Crazy "Nick Mason":  
>> channel 4083 on cardid 1, sourceid 4
>> 2009-02-16 15:20:56.484 MPEGRec(/dev/video0) Error: Device error  
>> detected
>> 2009-02-16 15:20:56.488 DevRdB(/dev/video0): Stop(): Not running.
>> ...
>> 2009-02-16 15:23:00.092 MainServer::ANN Monitor
>> 2009-02-16 15:23:00.096 adding: mythtv as a client (events: 0)
>>
>> The only guess I can wager on what's causing the problem is that  
>> the "hdpvr_audio_codec_selection.diff" patch added new audio codec  
>> types to mpegrecorder as well as added flags for them in the  
>> recording profiles database.  Does anyone have a suggestion on how  
>> I might be able to get my HDPVR back up and running through mythtv?
>>
>> Thanks!
>> John
>
> hdpvr_audio_codec_selection.diff has a typo in it.  Try changing:
>
> if (ioctl(chanfd, VIDIOC_QUERYCTRL, &qctrl) == 0)
>
> to
>
> if (ioctl(chanfd, VIDIOC_QUERYCTRL, &qctrl) < 0)
>
> Don't know if that will solve your problem, but it is *a* problem.

I uploaded a fixed version of that patch to the ticket.  However,  
reading your log entries, I don't think that is your problem.  Have  
you tried power-cycling your HD-PVR?

John


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mythtv.org/pipermail/mythtv-users/attachments/20090216/67319475/attachment.htm>


More information about the mythtv-users mailing list