Commit 0ad3012
committed
Properly get frequency in kernel 6.15 and up
From kernel 6.15+, `v4l2_get_link_freq()` supports a pad-based lookup via `struct media_pad *`.
The in-kernel IVSC CSI driver also dropped its `V4L2_CID_LINK_FREQ` control in 6.15,
so the old ctrl_handler path returns `-ENOENT`.
Use the pad instead.
Signed-off-by: Aditya Tewari <adityaatewari@gmail.com>1 parent cde4eb4 commit 0ad3012
1 file changed
Lines changed: 11 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
102 | 102 | | |
103 | 103 | | |
104 | 104 | | |
105 | | - | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
106 | 116 | | |
107 | 117 | | |
108 | 118 | | |
| |||
0 commit comments