Kernel: Add ioctls to select audio device's output pin

This commit is contained in:
2026-01-06 21:54:32 +02:00
parent da6794c8ce
commit 8f1b314802
6 changed files with 138 additions and 0 deletions

View File

@@ -19,6 +19,10 @@ namespace Kernel
uint32_t get_channels() const override { return 2; }
uint32_t get_sample_rate() const override { return 48000; }
uint32_t get_total_pins() const override { return 1; }
uint32_t get_current_pin() const override { return 0; }
BAN::ErrorOr<void> set_current_pin(uint32_t pin) override { if (pin != 0) return BAN::Error::from_errno(EINVAL); return {}; }
private:
AC97AudioController(PCI::Device& pci_device)
: m_pci_device(pci_device)