Lines Matching refs:hdmi_read

502 static inline int hdmi_read(struct v4l2_subdev *sd, u8 reg)
518 return hdmi_write(sd, reg, (hdmi_read(sd, reg) & mask) | val);
888 reg->val = hdmi_read(sd, reg->reg & 0xff);
1163 bool hdmi_signal = hdmi_read(sd, 0x05) & 0x80;
1361 return hdmi_read(sd, 0x05) & 0x80;
1552 bt->width = (hdmi_read(sd, 0x07) & 0x0f) * 256 + hdmi_read(sd, 0x08);
1553 bt->height = (hdmi_read(sd, 0x09) & 0x0f) * 256 + hdmi_read(sd, 0x0a);
1554 freq = ((hdmi_read(sd, 0x51) << 1) + (hdmi_read(sd, 0x52) >> 7)) * 1000000;
1555 freq += ((hdmi_read(sd, 0x52) & 0x7f) * 7813);
1558 freq = freq * 8 / (((hdmi_read(sd, 0x0b) & 0xc0) >> 6) * 2 + 8);
1561 bt->hfrontporch = (hdmi_read(sd, 0x20) & 0x03) * 256 +
1562 hdmi_read(sd, 0x21);
1563 bt->hsync = (hdmi_read(sd, 0x22) & 0x03) * 256 +
1564 hdmi_read(sd, 0x23);
1565 bt->hbackporch = (hdmi_read(sd, 0x24) & 0x03) * 256 +
1566 hdmi_read(sd, 0x25);
1567 bt->vfrontporch = ((hdmi_read(sd, 0x2a) & 0x1f) * 256 +
1568 hdmi_read(sd, 0x2b)) / 2;
1569 bt->vsync = ((hdmi_read(sd, 0x2e) & 0x1f) * 256 +
1570 hdmi_read(sd, 0x2f)) / 2;
1571 bt->vbackporch = ((hdmi_read(sd, 0x32) & 0x1f) * 256 +
1572 hdmi_read(sd, 0x33)) / 2;
1573 bt->polarities = ((hdmi_read(sd, 0x05) & 0x10) ? V4L2_DV_VSYNC_POS_POL : 0) |
1574 ((hdmi_read(sd, 0x05) & 0x20) ? V4L2_DV_HSYNC_POS_POL : 0);
1576 bt->height += (hdmi_read(sd, 0x0b) & 0x0f) * 256 +
1577 hdmi_read(sd, 0x0c);
1578 bt->il_vfrontporch = ((hdmi_read(sd, 0x2c) & 0x1f) * 256 +
1579 hdmi_read(sd, 0x2d)) / 2;
1580 bt->il_vsync = ((hdmi_read(sd, 0x30) & 0x1f) * 256 +
1581 hdmi_read(sd, 0x31)) / 2;
1582 bt->il_vbackporch = ((hdmi_read(sd, 0x34) & 0x1f) * 256 +
1583 hdmi_read(sd, 0x35)) / 2;
2604 if (!(hdmi_read(sd, 0x05) & 0x80)) {
2686 bool audio_pll_locked = hdmi_read(sd, 0x04) & 0x01;
2687 bool audio_sample_packet_detect = hdmi_read(sd, 0x18) & 0x01;
2812 (hdmi_read(sd, 0x05) & 0x40) ? "true" : "false");
2814 (hdmi_read(sd, 0x04) & 0x20) ? "yes" : "no",
2815 (hdmi_read(sd, 0x04) & 0x10) ? "ERROR" : "");
2825 (hdmi_read(sd, 0x07) & 0x40) ? "multi-channel" : "stereo");
2827 v4l2_info(sd, "Audio CTS: %u\n", (hdmi_read(sd, 0x5b) << 12) +
2828 (hdmi_read(sd, 0x5c) << 8) +
2829 (hdmi_read(sd, 0x5d) & 0xf0));
2830 v4l2_info(sd, "Audio N: %u\n", ((hdmi_read(sd, 0x5d) & 0x0f) << 16) +
2831 (hdmi_read(sd, 0x5e) << 8) +
2832 hdmi_read(sd, 0x5f));
2834 (hdmi_read(sd, 0x04) & 0x40) ? "on" : "off");
2836 deep_color_mode_txt[hdmi_read(sd, 0x0b) >> 6]);