Lines Matching refs:intel_sdvo_connector
153 struct intel_sdvo_connector {
218 static struct intel_sdvo_connector *to_intel_sdvo_connector(struct drm_connector *connector)
220 return container_of(to_intel_connector(connector), struct intel_sdvo_connector, base);
227 struct intel_sdvo_connector *intel_sdvo_connector,
231 struct intel_sdvo_connector *intel_sdvo_connector);
1275 struct intel_sdvo_connector *intel_sdvo_connector =
1282 if (active_outputs & intel_sdvo_connector->output_flag)
1668 struct intel_sdvo_connector *intel_sdvo_connector = to_intel_sdvo_connector(connector);
1669 if (intel_sdvo_connector->force_audio != HDMI_AUDIO_AUTO)
1670 intel_sdvo->has_hdmi_audio = (intel_sdvo_connector->force_audio == HDMI_AUDIO_ON);
1677 intel_sdvo_connector_matches_edid(struct intel_sdvo_connector *sdvo,
1693 struct intel_sdvo_connector *intel_sdvo_connector = to_intel_sdvo_connector(connector);
1703 intel_sdvo_connector->output_flag);
1714 if ((intel_sdvo_connector->output_flag & response) == 0)
1716 else if (IS_TMDS(intel_sdvo_connector))
1726 if (intel_sdvo_connector_matches_edid(intel_sdvo_connector,
1919 struct intel_sdvo_connector *intel_sdvo_connector = to_intel_sdvo_connector(connector);
1921 if (IS_TV(intel_sdvo_connector))
1923 else if (IS_LVDS(intel_sdvo_connector))
1934 struct intel_sdvo_connector *intel_sdvo_connector = to_intel_sdvo_connector(connector);
1937 if (intel_sdvo_connector->left)
1938 drm_property_destroy(dev, intel_sdvo_connector->left);
1939 if (intel_sdvo_connector->right)
1940 drm_property_destroy(dev, intel_sdvo_connector->right);
1941 if (intel_sdvo_connector->top)
1942 drm_property_destroy(dev, intel_sdvo_connector->top);
1943 if (intel_sdvo_connector->bottom)
1944 drm_property_destroy(dev, intel_sdvo_connector->bottom);
1945 if (intel_sdvo_connector->hpos)
1946 drm_property_destroy(dev, intel_sdvo_connector->hpos);
1947 if (intel_sdvo_connector->vpos)
1948 drm_property_destroy(dev, intel_sdvo_connector->vpos);
1949 if (intel_sdvo_connector->saturation)
1950 drm_property_destroy(dev, intel_sdvo_connector->saturation);
1951 if (intel_sdvo_connector->contrast)
1952 drm_property_destroy(dev, intel_sdvo_connector->contrast);
1953 if (intel_sdvo_connector->hue)
1954 drm_property_destroy(dev, intel_sdvo_connector->hue);
1955 if (intel_sdvo_connector->sharpness)
1956 drm_property_destroy(dev, intel_sdvo_connector->sharpness);
1957 if (intel_sdvo_connector->flicker_filter)
1958 drm_property_destroy(dev, intel_sdvo_connector->flicker_filter);
1959 if (intel_sdvo_connector->flicker_filter_2d)
1960 drm_property_destroy(dev, intel_sdvo_connector->flicker_filter_2d);
1961 if (intel_sdvo_connector->flicker_filter_adaptive)
1962 drm_property_destroy(dev, intel_sdvo_connector->flicker_filter_adaptive);
1963 if (intel_sdvo_connector->tv_luma_filter)
1964 drm_property_destroy(dev, intel_sdvo_connector->tv_luma_filter);
1965 if (intel_sdvo_connector->tv_chroma_filter)
1966 drm_property_destroy(dev, intel_sdvo_connector->tv_chroma_filter);
1967 if (intel_sdvo_connector->dot_crawl)
1968 drm_property_destroy(dev, intel_sdvo_connector->dot_crawl);
1969 if (intel_sdvo_connector->brightness)
1970 drm_property_destroy(dev, intel_sdvo_connector->brightness);
1975 struct intel_sdvo_connector *intel_sdvo_connector = to_intel_sdvo_connector(connector);
1977 if (intel_sdvo_connector->tv_format)
1979 intel_sdvo_connector->tv_format);
1983 kfree(intel_sdvo_connector, sizeof(struct intel_sdvo_connector));
2010 struct intel_sdvo_connector *intel_sdvo_connector = to_intel_sdvo_connector(connector);
2024 if (i == intel_sdvo_connector->force_audio)
2027 intel_sdvo_connector->force_audio = i;
2071 if (intel_sdvo_connector->name == property) { \
2072 if (intel_sdvo_connector->cur_##name == temp_value) return 0; \
2073 if (intel_sdvo_connector->max_##name < temp_value) return -EINVAL; \
2075 intel_sdvo_connector->cur_##name = temp_value; \
2079 if (property == intel_sdvo_connector->tv_format) {
2084 intel_sdvo_connector->tv_format_supported[val])
2087 intel_sdvo->tv_format_index = intel_sdvo_connector->tv_format_supported[val];
2089 } else if (IS_TV_OR_LVDS(intel_sdvo_connector)) {
2091 if (intel_sdvo_connector->left == property) {
2093 intel_sdvo_connector->right, val);
2094 if (intel_sdvo_connector->left_margin == temp_value)
2097 intel_sdvo_connector->left_margin = temp_value;
2098 intel_sdvo_connector->right_margin = temp_value;
2099 temp_value = intel_sdvo_connector->max_hscan -
2100 intel_sdvo_connector->left_margin;
2103 } else if (intel_sdvo_connector->right == property) {
2105 intel_sdvo_connector->left, val);
2106 if (intel_sdvo_connector->right_margin == temp_value)
2109 intel_sdvo_connector->left_margin = temp_value;
2110 intel_sdvo_connector->right_margin = temp_value;
2111 temp_value = intel_sdvo_connector->max_hscan -
2112 intel_sdvo_connector->left_margin;
2115 } else if (intel_sdvo_connector->top == property) {
2117 intel_sdvo_connector->bottom, val);
2118 if (intel_sdvo_connector->top_margin == temp_value)
2121 intel_sdvo_connector->top_margin = temp_value;
2122 intel_sdvo_connector->bottom_margin = temp_value;
2123 temp_value = intel_sdvo_connector->max_vscan -
2124 intel_sdvo_connector->top_margin;
2127 } else if (intel_sdvo_connector->bottom == property) {
2129 intel_sdvo_connector->top, val);
2130 if (intel_sdvo_connector->bottom_margin == temp_value)
2133 intel_sdvo_connector->top_margin = temp_value;
2134 intel_sdvo_connector->bottom_margin = temp_value;
2135 temp_value = intel_sdvo_connector->max_vscan -
2136 intel_sdvo_connector->top_margin;
2336 intel_sdvo_connector_init(struct intel_sdvo_connector *connector,
2357 struct intel_sdvo_connector *connector)
2375 struct intel_sdvo_connector *intel_sdvo_connector;
2377 intel_sdvo_connector = kzalloc(sizeof(struct intel_sdvo_connector), GFP_KERNEL);
2378 if (!intel_sdvo_connector)
2383 intel_sdvo_connector->output_flag = SDVO_OUTPUT_TMDS0;
2386 intel_sdvo_connector->output_flag = SDVO_OUTPUT_TMDS1;
2389 intel_connector = &intel_sdvo_connector->base;
2392 intel_sdvo_connector->output_flag) {
2393 intel_sdvo->hotplug_active |= intel_sdvo_connector->output_flag;
2410 intel_sdvo_connector_init(intel_sdvo_connector, intel_sdvo);
2412 intel_sdvo_add_hdmi_properties(intel_sdvo, intel_sdvo_connector);
2423 struct intel_sdvo_connector *intel_sdvo_connector;
2425 intel_sdvo_connector = kzalloc(sizeof(struct intel_sdvo_connector), GFP_KERNEL);
2426 if (!intel_sdvo_connector)
2429 intel_connector = &intel_sdvo_connector->base;
2435 intel_sdvo_connector->output_flag = (u16)type;
2439 intel_sdvo_connector_init(intel_sdvo_connector, intel_sdvo);
2441 if (!intel_sdvo_tv_create_property(intel_sdvo, intel_sdvo_connector, type))
2444 if (!intel_sdvo_create_enhance_property(intel_sdvo, intel_sdvo_connector))
2460 struct intel_sdvo_connector *intel_sdvo_connector;
2462 intel_sdvo_connector = kzalloc(sizeof(struct intel_sdvo_connector), GFP_KERNEL);
2463 if (!intel_sdvo_connector)
2466 intel_connector = &intel_sdvo_connector->base;
2474 intel_sdvo_connector->output_flag = SDVO_OUTPUT_RGB0;
2477 intel_sdvo_connector->output_flag = SDVO_OUTPUT_RGB1;
2480 intel_sdvo_connector_init(intel_sdvo_connector,
2491 struct intel_sdvo_connector *intel_sdvo_connector;
2493 intel_sdvo_connector = kzalloc(sizeof(struct intel_sdvo_connector), GFP_KERNEL);
2494 if (!intel_sdvo_connector)
2497 intel_connector = &intel_sdvo_connector->base;
2504 intel_sdvo_connector->output_flag = SDVO_OUTPUT_LVDS0;
2507 intel_sdvo_connector->output_flag = SDVO_OUTPUT_LVDS1;
2510 intel_sdvo_connector_init(intel_sdvo_connector, intel_sdvo);
2511 if (!intel_sdvo_create_enhance_property(intel_sdvo, intel_sdvo_connector))
2594 struct intel_sdvo_connector *intel_sdvo_connector,
2614 intel_sdvo_connector->format_supported_num = 0;
2617 intel_sdvo_connector->tv_format_supported[intel_sdvo_connector->format_supported_num++] = (u8)i;
2620 intel_sdvo_connector->tv_format =
2622 "mode", intel_sdvo_connector->format_supported_num);
2623 if (!intel_sdvo_connector->tv_format)
2626 for (i = 0; i < intel_sdvo_connector->format_supported_num; i++)
2628 intel_sdvo_connector->tv_format, i,
2629 i, tv_format_names[intel_sdvo_connector->tv_format_supported[i]]);
2631 intel_sdvo->tv_format_index = intel_sdvo_connector->tv_format_supported[0];
2632 drm_object_attach_property(&intel_sdvo_connector->base.base.base,
2633 intel_sdvo_connector->tv_format, 0);
2643 intel_sdvo_connector->max_##name = data_value[0]; \
2644 intel_sdvo_connector->cur_##name = response; \
2645 intel_sdvo_connector->name = \
2647 if (!intel_sdvo_connector->name) return false; \
2649 intel_sdvo_connector->name, \
2650 intel_sdvo_connector->cur_##name); \
2658 struct intel_sdvo_connector *intel_sdvo_connector,
2662 struct drm_connector *connector = &intel_sdvo_connector->base.base;
2677 intel_sdvo_connector->max_hscan = data_value[0];
2678 intel_sdvo_connector->left_margin = data_value[0] - response;
2679 intel_sdvo_connector->right_margin = intel_sdvo_connector->left_margin;
2680 intel_sdvo_connector->left =
2682 if (!intel_sdvo_connector->left)
2686 intel_sdvo_connector->left,
2687 intel_sdvo_connector->left_margin);
2689 intel_sdvo_connector->right =
2691 if (!intel_sdvo_connector->right)
2695 intel_sdvo_connector->right,
2696 intel_sdvo_connector->right_margin);
2713 intel_sdvo_connector->max_vscan = data_value[0];
2714 intel_sdvo_connector->top_margin = data_value[0] - response;
2715 intel_sdvo_connector->bottom_margin = intel_sdvo_connector->top_margin;
2716 intel_sdvo_connector->top =
2719 if (!intel_sdvo_connector->top)
2723 intel_sdvo_connector->top,
2724 intel_sdvo_connector->top_margin);
2726 intel_sdvo_connector->bottom =
2729 if (!intel_sdvo_connector->bottom)
2733 intel_sdvo_connector->bottom,
2734 intel_sdvo_connector->bottom_margin);
2757 intel_sdvo_connector->max_dot_crawl = 1;
2758 intel_sdvo_connector->cur_dot_crawl = response & 0x1;
2759 intel_sdvo_connector->dot_crawl =
2761 if (!intel_sdvo_connector->dot_crawl)
2765 intel_sdvo_connector->dot_crawl,
2766 intel_sdvo_connector->cur_dot_crawl);
2775 struct intel_sdvo_connector *intel_sdvo_connector,
2779 struct drm_connector *connector = &intel_sdvo_connector->base.base;
2789 struct intel_sdvo_connector *intel_sdvo_connector)
2805 if (IS_TV(intel_sdvo_connector))
2806 return intel_sdvo_create_enhance_property_tv(intel_sdvo, intel_sdvo_connector, enhancements.reply);
2807 else if(IS_LVDS(intel_sdvo_connector))
2808 return intel_sdvo_create_enhance_property_lvds(intel_sdvo, intel_sdvo_connector, enhancements.reply);