Use audiohw: instead of hda:

This commit is contained in:
Jeremy Soller
2022-11-15 12:43:22 -07:00
parent c993b0ef40
commit 2cdfb46a71
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -919,7 +919,7 @@ impl SchemeBlockMut for IntelHDA {
let _handle = handles.get_mut(&id).ok_or(Error::new(EBADF))?;
let mut i = 0;
let scheme_path = b"hda:";
let scheme_path = b"audiohw:";
while i < buf.len() && i < scheme_path.len() {
buf[i] = scheme_path[i];
i += 1;
+1 -1
View File
@@ -106,7 +106,7 @@ fn main() {
let vend_prod:u32 = ((vend as u32) << 16) | (prod as u32);
let device = Arc::new(RefCell::new(unsafe { hda::IntelHDA::new(address, vend_prod).expect("ihdad: failed to allocate device") }));
let socket_fd = syscall::open(":hda", syscall::O_RDWR | syscall::O_CREAT | syscall::O_NONBLOCK).expect("IHDA: failed to create hda scheme");
let socket_fd = syscall::open(":audiohw", syscall::O_RDWR | syscall::O_CREAT | syscall::O_NONBLOCK).expect("IHDA: failed to create hda scheme");
let socket = Arc::new(RefCell::new(unsafe { File::from_raw_fd(socket_fd as RawFd) }));
daemon.ready().expect("IHDA: failed to signal readiness");