diff options
Diffstat (limited to 'src/screen/drm/encoder')
| -rw-r--r-- | src/screen/drm/encoder/root.zig | 50 | ||||
| -rw-r--r-- | src/screen/drm/encoder/type.zig | 18 |
2 files changed, 34 insertions, 34 deletions
diff --git a/src/screen/drm/encoder/root.zig b/src/screen/drm/encoder/root.zig index 0712c76..7b8932a 100644 --- a/src/screen/drm/encoder/root.zig +++ b/src/screen/drm/encoder/root.zig @@ -5,36 +5,36 @@ const Card = @import("../card.zig").Card; const Type = @import("type.zig").Type; pub const RawEncoder = extern struct { - id: u32, - type: Type, - crtc_id: u32, - possible_crtcs: u32, - possible_clones: u32, + id: u32, + type: Type, + crtc_id: u32, + possible_crtcs: u32, + possible_clones: u32, }; pub const Encoder = struct { - const Self = @This(); + const Self = @This(); - id: u32, - type: Type, - possible_crtcs: u32, - possible_clones: u32, - card: *Card, + id: u32, + type: Type, + possible_crtcs: u32, + possible_clones: u32, + card: *Card, - pub fn init(card: *Card, id: u32) !Self { - var raw = std.mem.zeroInit(RawEncoder, .{ .id = id }); - try Drm.get_encoder.request(card.file.handle, RawEncoder, &raw); + pub fn init(card: *Card, id: u32) !Self { + var raw = std.mem.zeroInit(RawEncoder, .{ .id = id }); + try Drm.get_encoder.request(card.file.handle, RawEncoder, &raw); - return .{ - .id = raw.id, - .type = raw.type, - .possible_crtcs = raw.possible_crtcs, - .possible_clones = raw.possible_clones, - .card = card - }; - } + return .{ + .id = raw.id, + .type = raw.type, + .possible_crtcs = raw.possible_crtcs, + .possible_clones = raw.possible_clones, + .card = card + }; + } - pub fn deinit(self: *Self) void { - _ = self; - } + pub fn deinit(self: *Self) void { + _ = self; + } }; diff --git a/src/screen/drm/encoder/type.zig b/src/screen/drm/encoder/type.zig index a26dc9c..12246d2 100644 --- a/src/screen/drm/encoder/type.zig +++ b/src/screen/drm/encoder/type.zig @@ -1,11 +1,11 @@ pub const Type = enum(u32) { - none = 0, - dac = 1, - tmds = 2, - lvds = 3, - tvdac = 4, - virtual = 5, - dsi = 6, - dpmst = 7, - dpi = 8, + none = 0, + dac = 1, + tmds = 2, + lvds = 3, + tvdac = 4, + virtual = 5, + dsi = 6, + dpmst = 7, + dpi = 8, }; |