@@ -1495,7 +1495,9 @@ static ssize_t dp_dsc_clock_en_read(struct file *f, char __user *buf,
1495
1495
for (i = 0 ; i < MAX_PIPES ; i ++ ) {
1496
1496
pipe_ctx = & aconnector -> dc_link -> dc -> current_state -> res_ctx .pipe_ctx [i ];
1497
1497
if (pipe_ctx -> stream &&
1498
- pipe_ctx -> stream -> link == aconnector -> dc_link )
1498
+ pipe_ctx -> stream -> link == aconnector -> dc_link &&
1499
+ pipe_ctx -> stream -> sink &&
1500
+ pipe_ctx -> stream -> sink == aconnector -> dc_sink )
1499
1501
break ;
1500
1502
}
1501
1503
@@ -1596,7 +1598,9 @@ static ssize_t dp_dsc_clock_en_write(struct file *f, const char __user *buf,
1596
1598
for (i = 0 ; i < MAX_PIPES ; i ++ ) {
1597
1599
pipe_ctx = & aconnector -> dc_link -> dc -> current_state -> res_ctx .pipe_ctx [i ];
1598
1600
if (pipe_ctx -> stream &&
1599
- pipe_ctx -> stream -> link == aconnector -> dc_link )
1601
+ pipe_ctx -> stream -> link == aconnector -> dc_link &&
1602
+ pipe_ctx -> stream -> sink &&
1603
+ pipe_ctx -> stream -> sink == aconnector -> dc_sink )
1600
1604
break ;
1601
1605
}
1602
1606
@@ -1681,7 +1685,9 @@ static ssize_t dp_dsc_slice_width_read(struct file *f, char __user *buf,
1681
1685
for (i = 0 ; i < MAX_PIPES ; i ++ ) {
1682
1686
pipe_ctx = & aconnector -> dc_link -> dc -> current_state -> res_ctx .pipe_ctx [i ];
1683
1687
if (pipe_ctx -> stream &&
1684
- pipe_ctx -> stream -> link == aconnector -> dc_link )
1688
+ pipe_ctx -> stream -> link == aconnector -> dc_link &&
1689
+ pipe_ctx -> stream -> sink &&
1690
+ pipe_ctx -> stream -> sink == aconnector -> dc_sink )
1685
1691
break ;
1686
1692
}
1687
1693
@@ -1780,7 +1786,9 @@ static ssize_t dp_dsc_slice_width_write(struct file *f, const char __user *buf,
1780
1786
for (i = 0 ; i < MAX_PIPES ; i ++ ) {
1781
1787
pipe_ctx = & aconnector -> dc_link -> dc -> current_state -> res_ctx .pipe_ctx [i ];
1782
1788
if (pipe_ctx -> stream &&
1783
- pipe_ctx -> stream -> link == aconnector -> dc_link )
1789
+ pipe_ctx -> stream -> link == aconnector -> dc_link &&
1790
+ pipe_ctx -> stream -> sink &&
1791
+ pipe_ctx -> stream -> sink == aconnector -> dc_sink )
1784
1792
break ;
1785
1793
}
1786
1794
@@ -1865,7 +1873,9 @@ static ssize_t dp_dsc_slice_height_read(struct file *f, char __user *buf,
1865
1873
for (i = 0 ; i < MAX_PIPES ; i ++ ) {
1866
1874
pipe_ctx = & aconnector -> dc_link -> dc -> current_state -> res_ctx .pipe_ctx [i ];
1867
1875
if (pipe_ctx -> stream &&
1868
- pipe_ctx -> stream -> link == aconnector -> dc_link )
1876
+ pipe_ctx -> stream -> link == aconnector -> dc_link &&
1877
+ pipe_ctx -> stream -> sink &&
1878
+ pipe_ctx -> stream -> sink == aconnector -> dc_sink )
1869
1879
break ;
1870
1880
}
1871
1881
@@ -1964,7 +1974,9 @@ static ssize_t dp_dsc_slice_height_write(struct file *f, const char __user *buf,
1964
1974
for (i = 0 ; i < MAX_PIPES ; i ++ ) {
1965
1975
pipe_ctx = & aconnector -> dc_link -> dc -> current_state -> res_ctx .pipe_ctx [i ];
1966
1976
if (pipe_ctx -> stream &&
1967
- pipe_ctx -> stream -> link == aconnector -> dc_link )
1977
+ pipe_ctx -> stream -> link == aconnector -> dc_link &&
1978
+ pipe_ctx -> stream -> sink &&
1979
+ pipe_ctx -> stream -> sink == aconnector -> dc_sink )
1968
1980
break ;
1969
1981
}
1970
1982
@@ -2045,7 +2057,9 @@ static ssize_t dp_dsc_bits_per_pixel_read(struct file *f, char __user *buf,
2045
2057
for (i = 0 ; i < MAX_PIPES ; i ++ ) {
2046
2058
pipe_ctx = & aconnector -> dc_link -> dc -> current_state -> res_ctx .pipe_ctx [i ];
2047
2059
if (pipe_ctx -> stream &&
2048
- pipe_ctx -> stream -> link == aconnector -> dc_link )
2060
+ pipe_ctx -> stream -> link == aconnector -> dc_link &&
2061
+ pipe_ctx -> stream -> sink &&
2062
+ pipe_ctx -> stream -> sink == aconnector -> dc_sink )
2049
2063
break ;
2050
2064
}
2051
2065
@@ -2141,7 +2155,9 @@ static ssize_t dp_dsc_bits_per_pixel_write(struct file *f, const char __user *bu
2141
2155
for (i = 0 ; i < MAX_PIPES ; i ++ ) {
2142
2156
pipe_ctx = & aconnector -> dc_link -> dc -> current_state -> res_ctx .pipe_ctx [i ];
2143
2157
if (pipe_ctx -> stream &&
2144
- pipe_ctx -> stream -> link == aconnector -> dc_link )
2158
+ pipe_ctx -> stream -> link == aconnector -> dc_link &&
2159
+ pipe_ctx -> stream -> sink &&
2160
+ pipe_ctx -> stream -> sink == aconnector -> dc_sink )
2145
2161
break ;
2146
2162
}
2147
2163
@@ -2220,7 +2236,9 @@ static ssize_t dp_dsc_pic_width_read(struct file *f, char __user *buf,
2220
2236
for (i = 0 ; i < MAX_PIPES ; i ++ ) {
2221
2237
pipe_ctx = & aconnector -> dc_link -> dc -> current_state -> res_ctx .pipe_ctx [i ];
2222
2238
if (pipe_ctx -> stream &&
2223
- pipe_ctx -> stream -> link == aconnector -> dc_link )
2239
+ pipe_ctx -> stream -> link == aconnector -> dc_link &&
2240
+ pipe_ctx -> stream -> sink &&
2241
+ pipe_ctx -> stream -> sink == aconnector -> dc_sink )
2224
2242
break ;
2225
2243
}
2226
2244
@@ -2276,7 +2294,9 @@ static ssize_t dp_dsc_pic_height_read(struct file *f, char __user *buf,
2276
2294
for (i = 0 ; i < MAX_PIPES ; i ++ ) {
2277
2295
pipe_ctx = & aconnector -> dc_link -> dc -> current_state -> res_ctx .pipe_ctx [i ];
2278
2296
if (pipe_ctx -> stream &&
2279
- pipe_ctx -> stream -> link == aconnector -> dc_link )
2297
+ pipe_ctx -> stream -> link == aconnector -> dc_link &&
2298
+ pipe_ctx -> stream -> sink &&
2299
+ pipe_ctx -> stream -> sink == aconnector -> dc_sink )
2280
2300
break ;
2281
2301
}
2282
2302
@@ -2347,7 +2367,9 @@ static ssize_t dp_dsc_chunk_size_read(struct file *f, char __user *buf,
2347
2367
for (i = 0 ; i < MAX_PIPES ; i ++ ) {
2348
2368
pipe_ctx = & aconnector -> dc_link -> dc -> current_state -> res_ctx .pipe_ctx [i ];
2349
2369
if (pipe_ctx -> stream &&
2350
- pipe_ctx -> stream -> link == aconnector -> dc_link )
2370
+ pipe_ctx -> stream -> link == aconnector -> dc_link &&
2371
+ pipe_ctx -> stream -> sink &&
2372
+ pipe_ctx -> stream -> sink == aconnector -> dc_sink )
2351
2373
break ;
2352
2374
}
2353
2375
@@ -2418,7 +2440,9 @@ static ssize_t dp_dsc_slice_bpg_offset_read(struct file *f, char __user *buf,
2418
2440
for (i = 0 ; i < MAX_PIPES ; i ++ ) {
2419
2441
pipe_ctx = & aconnector -> dc_link -> dc -> current_state -> res_ctx .pipe_ctx [i ];
2420
2442
if (pipe_ctx -> stream &&
2421
- pipe_ctx -> stream -> link == aconnector -> dc_link )
2443
+ pipe_ctx -> stream -> link == aconnector -> dc_link &&
2444
+ pipe_ctx -> stream -> sink &&
2445
+ pipe_ctx -> stream -> sink == aconnector -> dc_sink )
2422
2446
break ;
2423
2447
}
2424
2448
0 commit comments