~ubuntu-branches/ubuntu/precise/linux-ti-omap4/precise

« back to all changes in this revision

Viewing changes to drivers/media/video/ivtv/ivtv-firmware.c

  • Committer: Bazaar Package Importer
  • Author(s): Paolo Pisati
  • Date: 2011-06-29 15:23:51 UTC
  • mfrom: (26.1.1 natty-proposed)
  • Revision ID: james.westby@ubuntu.com-20110629152351-xs96tm303d95rpbk
Tags: 3.0.0-1200.2
* Rebased against 3.0.0-6.7
* BSP from TI based on 3.0.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
179
179
{
180
180
        int i;
181
181
 
182
 
        /* mailbox is preceeded by a 16 byte 'magic cookie' starting at a 256-byte
 
182
        /* mailbox is preceded by a 16 byte 'magic cookie' starting at a 256-byte
183
183
           address boundary */
184
184
        for (i = 0; i < size; i += 0x100) {
185
185
                if (readl(mem + i)      == 0x12345678 &&
280
280
{
281
281
        int rc = 0;
282
282
        v4l2_std_id std;
283
 
        struct ivtv_open_id fh;
284
 
        fh.itv = itv;
285
283
 
286
284
        if (itv->v4l2_cap & V4L2_CAP_VIDEO_OUTPUT)
287
285
                /* Display test image during restart */
301
299
        /* Allow settings to reload */
302
300
        ivtv_mailbox_cache_invalidate(itv);
303
301
 
304
 
        /* Restore video standard */
 
302
        /* Restore encoder video standard */
305
303
        std = itv->std;
306
304
        itv->std = 0;
307
 
        ivtv_s_std(NULL, &fh, &std);
 
305
        ivtv_s_std_enc(itv, &std);
308
306
 
309
307
        if (itv->v4l2_cap & V4L2_CAP_VIDEO_OUTPUT) {
310
308
                ivtv_init_mpeg_decoder(itv);
311
309
 
 
310
                /* Restore decoder video standard */
 
311
                std = itv->std_out;
 
312
                itv->std_out = 0;
 
313
                ivtv_s_std_dec(itv, &std);
 
314
 
312
315
                /* Restore framebuffer if active */
313
316
                if (itv->ivtvfb_restore)
314
317
                        itv->ivtvfb_restore(itv);
377
380
                          "Reloading\n", where);
378
381
                res = ivtv_firmware_restart(itv);
379
382
                /*
380
 
                 * Even if restarted ok, still signal a problem had occured.
 
383
                 * Even if restarted ok, still signal a problem had occurred.
381
384
                 * The caller can come through this function again to check
382
385
                 * if things are really ok after the restart.
383
386
                 */