Skip to content

Commit

Permalink
cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
qwandor committed Jul 9, 2024
1 parent 4062ebd commit 29166e3
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions examples/riscv/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ use virtio_drivers::{
transport::{
mmio::{MmioTransport, VirtIOHeader},
DeviceType, Transport,
}
},
};
use virtio_impl::HalImpl;

Expand Down Expand Up @@ -226,8 +226,12 @@ fn virtio_sound<T: Transport>(transport: T) {
let music = include_bytes!("../music_44100Hz_u8_stereo.raw");
info!("[sound device] music len is {} bytes.", music.len());
// xfer buffer
sound.pcm_xfer(output_stream_id, &music[..]).expect("pcm_xfer error");
sound
.pcm_xfer(output_stream_id, &music[..])
.expect("pcm_xfer error");
sound.pcm_stop(output_stream_id).expect("pcm_stop error");
sound.pcm_release(output_stream_id).expect("pcm_release error");
sound
.pcm_release(output_stream_id)
.expect("pcm_release error");
}
}

0 comments on commit 29166e3

Please sign in to comment.