Kernel: Send set channel count on IHDA

This commit is contained in:
2026-08-19 21:32:36 +03:00
parent 4aead25970
commit 6cd3638a85
@@ -403,6 +403,13 @@ namespace Kernel
.node_index = path[i]->id, .node_index = path[i]->id,
.codec_address = m_cid, .codec_address = m_cid,
})); }));
// set channel count
TRY(m_controller->send_command({
.data = static_cast<uint8_t>(get_channels() - 1),
.command = 0x72D,
.node_index = path[i]->id,
.codec_address = m_cid,
}));
// set format // set format
TRY(m_controller->send_command({ TRY(m_controller->send_command({
.data = static_cast<uint8_t>(format & 0xFF), .data = static_cast<uint8_t>(format & 0xFF),