Open Cuda-Chen opened 1 month ago
we can use VirtIO sound with ALSA architecture.
Can you illustrate the progress and the potential integration considerations?
Hi @jserv ,
For the progress:
make check
but not sudo make check
as it will complains incorrect parameter related errors). ALSA plug-in [semu]
in Volume Levels).For potential integration considerations:
alsa-utils
for testing the sound device.semu
is aiming for a lightweight emulator.Hi @jserv ,
For the supporting operations mentioned in https://github.com/sysprog21/semu/pull/53, to let semu
plays sound I consider it requires to support more operations (and the operations are mentioned in VirtIO official document), should we investigate then list the operations that have to be implemented to support the common sound operation (e.g., playing sound, querying sound device information, etc.)?
should we investigate then list the operations that have to be implemented to support the common sound operation (e.g., playing sound, querying sound device information, etc.)?
Yes, go ahead.
For this issue, I am going to implement VirtIO sound device supporting these operations:
VIRTIO_SND_R_PCM_INFO
VIRTIO_SND_R_CHMAP_INFO
VIRTIO_SND_R_JACK_INFO
VIRTIO_SND_R_PCM_SET_PARAMS
VIRTIO_SND_R_PCM_PREPARE
VIRTIO_SND_R_PCM_RELEASE
VIRTIO_SND_R_PCM_START
VIRTIO_SND_R_PCM_STOP
Currently, semu lacks of sound playing feature.
To implement, we can use VirtIO sound with ALSA architecture.