• Home
  • Raw
  • Download

Lines Matching refs:h

309 				 struct saa6752hs_state *h)  in saa6752hs_set_bitrate()  argument
311 struct saa6752hs_mpeg_params *params = &h->params; in saa6752hs_set_bitrate()
360 struct saa6752hs_state *h = in saa6752hs_try_ctrl() local
367 h->video_bitrate_peak->val < h->video_bitrate->val) in saa6752hs_try_ctrl()
368 h->video_bitrate_peak->val = h->video_bitrate->val; in saa6752hs_try_ctrl()
376 struct saa6752hs_state *h = in saa6752hs_s_ctrl() local
378 struct saa6752hs_mpeg_params *params = &h->params; in saa6752hs_s_ctrl()
413 params->vi_bitrate = h->video_bitrate->val / 1000; in saa6752hs_s_ctrl()
414 params->vi_bitrate_peak = h->video_bitrate_peak->val / 1000; in saa6752hs_s_ctrl()
415 v4l2_ctrl_activate(h->video_bitrate_peak, in saa6752hs_s_ctrl()
427 struct saa6752hs_state *h = to_state(sd); in saa6752hs_init() local
435 set_reg8(client, 0x41, h->video_format); in saa6752hs_init()
438 set_reg8(client, 0x40, (h->standard & V4L2_STD_525_60) ? 1 : 0); in saa6752hs_init()
441 saa6752hs_set_bitrate(client, h); in saa6752hs_init()
463 localPAT[17] = 0xe0 | ((h->params.ts_pid_pmt >> 8) & 0x0f); in saa6752hs_init()
464 localPAT[18] = h->params.ts_pid_pmt & 0xff; in saa6752hs_init()
472 if (h->params.au_encoding == V4L2_MPEG_AUDIO_ENCODING_AC3) { in saa6752hs_init()
479 localPMT[3] = 0x40 | ((h->params.ts_pid_pmt >> 8) & 0x0f); in saa6752hs_init()
480 localPMT[4] = h->params.ts_pid_pmt & 0xff; in saa6752hs_init()
481 localPMT[15] = 0xE0 | ((h->params.ts_pid_pcr >> 8) & 0x0F); in saa6752hs_init()
482 localPMT[16] = h->params.ts_pid_pcr & 0xFF; in saa6752hs_init()
483 localPMT[20] = 0xE0 | ((h->params.ts_pid_video >> 8) & 0x0F); in saa6752hs_init()
484 localPMT[21] = h->params.ts_pid_video & 0xFF; in saa6752hs_init()
485 localPMT[25] = 0xE0 | ((h->params.ts_pid_audio >> 8) & 0x0F); in saa6752hs_init()
486 localPMT[26] = h->params.ts_pid_audio & 0xFF; in saa6752hs_init()
494 set_reg16(client, 0xc1, h->params.ts_pid_audio); in saa6752hs_init()
497 set_reg16(client, 0xc0, h->params.ts_pid_video); in saa6752hs_init()
500 set_reg16(client, 0xc4, h->params.ts_pid_pcr); in saa6752hs_init()
529 switch (h->params.vi_aspect) { in saa6752hs_init()
550 struct saa6752hs_state *h = to_state(sd); in saa6752hs_get_fmt() local
555 if (h->video_format == SAA6752HS_VF_UNKNOWN) in saa6752hs_get_fmt()
556 h->video_format = SAA6752HS_VF_D1; in saa6752hs_get_fmt()
557 f->width = v4l2_format_table[h->video_format].fmt.pix.width; in saa6752hs_get_fmt()
558 f->height = v4l2_format_table[h->video_format].fmt.pix.height; in saa6752hs_get_fmt()
570 struct saa6752hs_state *h = to_state(sd); in saa6752hs_set_fmt() local
618 h->video_format = SAA6752HS_VF_D1; in saa6752hs_set_fmt()
620 h->video_format = SAA6752HS_VF_2_3_D1; in saa6752hs_set_fmt()
622 h->video_format = SAA6752HS_VF_1_2_D1; in saa6752hs_set_fmt()
624 h->video_format = SAA6752HS_VF_SIF; in saa6752hs_set_fmt()
630 struct saa6752hs_state *h = to_state(sd); in saa6752hs_s_std() local
632 h->standard = std; in saa6752hs_s_std()
665 struct saa6752hs_state *h; in saa6752hs_probe() local
674 h = devm_kzalloc(&client->dev, sizeof(*h), GFP_KERNEL); in saa6752hs_probe()
675 if (h == NULL) in saa6752hs_probe()
677 sd = &h->sd; in saa6752hs_probe()
682 h->revision = (data[8] << 8) | data[9]; in saa6752hs_probe()
683 h->has_ac3 = 0; in saa6752hs_probe()
684 if (h->revision == 0x0206) { in saa6752hs_probe()
685 h->has_ac3 = 1; in saa6752hs_probe()
688 h->params = param_defaults; in saa6752hs_probe()
690 hdl = &h->hdl; in saa6752hs_probe()
694 h->has_ac3 ? V4L2_MPEG_AUDIO_ENCODING_AC3 : in saa6752hs_probe()
705 if (h->has_ac3) in saa6752hs_probe()
730 h->video_bitrate_peak = v4l2_ctrl_new_std(hdl, &saa6752hs_ctrl_ops, in saa6752hs_probe()
740 h->video_bitrate_mode = v4l2_ctrl_new_std_menu(hdl, &saa6752hs_ctrl_ops, in saa6752hs_probe()
744 h->video_bitrate = v4l2_ctrl_new_std(hdl, &saa6752hs_ctrl_ops, in saa6752hs_probe()
761 v4l2_ctrl_cluster(3, &h->video_bitrate_mode); in saa6752hs_probe()
763 h->standard = 0; /* Assume 625 input lines */ in saa6752hs_probe()