Lines Matching refs:hdmi_read
524 static inline int hdmi_read(struct v4l2_subdev *sd, u8 reg)
540 return hdmi_write(sd, reg, (hdmi_read(sd, reg) & mask) | val);
900 reg->val = hdmi_read(sd, reg->reg & 0xff);
1175 bool hdmi_signal = hdmi_read(sd, 0x05) & 0x80;
1373 return hdmi_read(sd, 0x05) & 0x80;
1564 bt->width = (hdmi_read(sd, 0x07) & 0x0f) * 256 + hdmi_read(sd, 0x08);
1565 bt->height = (hdmi_read(sd, 0x09) & 0x0f) * 256 + hdmi_read(sd, 0x0a);
1566 freq = ((hdmi_read(sd, 0x51) << 1) + (hdmi_read(sd, 0x52) >> 7)) * 1000000;
1567 freq += ((hdmi_read(sd, 0x52) & 0x7f) * 7813);
1570 freq = freq * 8 / (((hdmi_read(sd, 0x0b) & 0xc0) >> 6) * 2 + 8);
1573 bt->hfrontporch = (hdmi_read(sd, 0x20) & 0x03) * 256 +
1574 hdmi_read(sd, 0x21);
1575 bt->hsync = (hdmi_read(sd, 0x22) & 0x03) * 256 +
1576 hdmi_read(sd, 0x23);
1577 bt->hbackporch = (hdmi_read(sd, 0x24) & 0x03) * 256 +
1578 hdmi_read(sd, 0x25);
1579 bt->vfrontporch = ((hdmi_read(sd, 0x2a) & 0x1f) * 256 +
1580 hdmi_read(sd, 0x2b)) / 2;
1581 bt->vsync = ((hdmi_read(sd, 0x2e) & 0x1f) * 256 +
1582 hdmi_read(sd, 0x2f)) / 2;
1583 bt->vbackporch = ((hdmi_read(sd, 0x32) & 0x1f) * 256 +
1584 hdmi_read(sd, 0x33)) / 2;
1585 bt->polarities = ((hdmi_read(sd, 0x05) & 0x10) ? V4L2_DV_VSYNC_POS_POL : 0) |
1586 ((hdmi_read(sd, 0x05) & 0x20) ? V4L2_DV_HSYNC_POS_POL : 0);
1588 bt->height += (hdmi_read(sd, 0x0b) & 0x0f) * 256 +
1589 hdmi_read(sd, 0x0c);
1590 bt->il_vfrontporch = ((hdmi_read(sd, 0x2c) & 0x1f) * 256 +
1591 hdmi_read(sd, 0x2d)) / 2;
1592 bt->il_vsync = ((hdmi_read(sd, 0x30) & 0x1f) * 256 +
1593 hdmi_read(sd, 0x31)) / 2;
1594 bt->il_vbackporch = ((hdmi_read(sd, 0x34) & 0x1f) * 256 +
1595 hdmi_read(sd, 0x35)) / 2;
2595 if (!(hdmi_read(sd, 0x05) & 0x80)) {
2677 bool audio_pll_locked = hdmi_read(sd, 0x04) & 0x01;
2678 bool audio_sample_packet_detect = hdmi_read(sd, 0x18) & 0x01;
2803 (hdmi_read(sd, 0x05) & 0x40) ? "true" : "false");
2805 (hdmi_read(sd, 0x04) & 0x20) ? "yes" : "no",
2806 (hdmi_read(sd, 0x04) & 0x10) ? "ERROR" : "");
2816 (hdmi_read(sd, 0x07) & 0x40) ? "multi-channel" : "stereo");
2818 v4l2_info(sd, "Audio CTS: %u\n", (hdmi_read(sd, 0x5b) << 12) +
2819 (hdmi_read(sd, 0x5c) << 8) +
2820 (hdmi_read(sd, 0x5d) & 0xf0));
2821 v4l2_info(sd, "Audio N: %u\n", ((hdmi_read(sd, 0x5d) & 0x0f) << 16) +
2822 (hdmi_read(sd, 0x5e) << 8) +
2823 hdmi_read(sd, 0x5f));
2825 (hdmi_read(sd, 0x04) & 0x40) ? "on" : "off");
2827 deep_color_mode_txt[hdmi_read(sd, 0x0b) >> 6]);