@@ -455,7 +455,7 @@ nv50_outp_get_old_connector(struct nouveau_encoder *outp,
455
455
* DAC
456
456
*****************************************************************************/
457
457
static void
458
- nv50_dac_disable (struct drm_encoder * encoder )
458
+ nv50_dac_disable (struct drm_encoder * encoder , struct drm_atomic_state * state )
459
459
{
460
460
struct nouveau_encoder * nv_encoder = nouveau_encoder (encoder );
461
461
struct nv50_core * core = nv50_disp (encoder -> dev )-> core ;
@@ -467,7 +467,7 @@ nv50_dac_disable(struct drm_encoder *encoder)
467
467
}
468
468
469
469
static void
470
- nv50_dac_enable (struct drm_encoder * encoder )
470
+ nv50_dac_enable (struct drm_encoder * encoder , struct drm_atomic_state * state )
471
471
{
472
472
struct nouveau_encoder * nv_encoder = nouveau_encoder (encoder );
473
473
struct nouveau_crtc * nv_crtc = nouveau_crtc (encoder -> crtc );
@@ -525,8 +525,8 @@ nv50_dac_detect(struct drm_encoder *encoder, struct drm_connector *connector)
525
525
static const struct drm_encoder_helper_funcs
526
526
nv50_dac_help = {
527
527
.atomic_check = nv50_outp_atomic_check ,
528
- .enable = nv50_dac_enable ,
529
- .disable = nv50_dac_disable ,
528
+ .atomic_enable = nv50_dac_enable ,
529
+ .atomic_disable = nv50_dac_disable ,
530
530
.detect = nv50_dac_detect
531
531
};
532
532
@@ -1055,7 +1055,7 @@ nv50_dp_bpc_to_depth(unsigned int bpc)
1055
1055
}
1056
1056
1057
1057
static void
1058
- nv50_msto_enable (struct drm_encoder * encoder )
1058
+ nv50_msto_enable (struct drm_encoder * encoder , struct drm_atomic_state * state )
1059
1059
{
1060
1060
struct nv50_head * head = nv50_head (encoder -> crtc );
1061
1061
struct nv50_head_atom * armh = nv50_head_atom (head -> base .base .state );
@@ -1101,7 +1101,7 @@ nv50_msto_enable(struct drm_encoder *encoder)
1101
1101
}
1102
1102
1103
1103
static void
1104
- nv50_msto_disable (struct drm_encoder * encoder )
1104
+ nv50_msto_disable (struct drm_encoder * encoder , struct drm_atomic_state * state )
1105
1105
{
1106
1106
struct nv50_msto * msto = nv50_msto (encoder );
1107
1107
struct nv50_mstc * mstc = msto -> mstc ;
@@ -1118,8 +1118,8 @@ nv50_msto_disable(struct drm_encoder *encoder)
1118
1118
1119
1119
static const struct drm_encoder_helper_funcs
1120
1120
nv50_msto_help = {
1121
- .disable = nv50_msto_disable ,
1122
- .enable = nv50_msto_enable ,
1121
+ .atomic_disable = nv50_msto_disable ,
1122
+ .atomic_enable = nv50_msto_enable ,
1123
1123
.atomic_check = nv50_msto_atomic_check ,
1124
1124
};
1125
1125
@@ -1645,8 +1645,7 @@ nv50_sor_disable(struct drm_encoder *encoder,
1645
1645
}
1646
1646
1647
1647
static void
1648
- nv50_sor_enable (struct drm_encoder * encoder ,
1649
- struct drm_atomic_state * state )
1648
+ nv50_sor_enable (struct drm_encoder * encoder , struct drm_atomic_state * state )
1650
1649
{
1651
1650
struct nouveau_encoder * nv_encoder = nouveau_encoder (encoder );
1652
1651
struct nouveau_crtc * nv_crtc = nouveau_crtc (encoder -> crtc );
@@ -1873,7 +1872,7 @@ nv50_pior_atomic_check(struct drm_encoder *encoder,
1873
1872
}
1874
1873
1875
1874
static void
1876
- nv50_pior_disable (struct drm_encoder * encoder )
1875
+ nv50_pior_disable (struct drm_encoder * encoder , struct drm_atomic_state * state )
1877
1876
{
1878
1877
struct nouveau_encoder * nv_encoder = nouveau_encoder (encoder );
1879
1878
struct nv50_core * core = nv50_disp (encoder -> dev )-> core ;
@@ -1885,7 +1884,7 @@ nv50_pior_disable(struct drm_encoder *encoder)
1885
1884
}
1886
1885
1887
1886
static void
1888
- nv50_pior_enable (struct drm_encoder * encoder )
1887
+ nv50_pior_enable (struct drm_encoder * encoder , struct drm_atomic_state * state )
1889
1888
{
1890
1889
struct nouveau_encoder * nv_encoder = nouveau_encoder (encoder );
1891
1890
struct nouveau_crtc * nv_crtc = nouveau_crtc (encoder -> crtc );
@@ -1921,14 +1920,14 @@ nv50_pior_enable(struct drm_encoder *encoder)
1921
1920
}
1922
1921
1923
1922
core -> func -> pior -> ctrl (core , nv_encoder -> or , ctrl , asyh );
1924
- nv_encoder -> crtc = encoder -> crtc ;
1923
+ nv_encoder -> crtc = & nv_crtc -> base ;
1925
1924
}
1926
1925
1927
1926
static const struct drm_encoder_helper_funcs
1928
1927
nv50_pior_help = {
1929
1928
.atomic_check = nv50_pior_atomic_check ,
1930
- .enable = nv50_pior_enable ,
1931
- .disable = nv50_pior_disable ,
1929
+ .atomic_enable = nv50_pior_enable ,
1930
+ .atomic_disable = nv50_pior_disable ,
1932
1931
};
1933
1932
1934
1933
static void
0 commit comments