-
Notifications
You must be signed in to change notification settings - Fork 604
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Add audio device to limayaml and qemu #1527
Conversation
Signed-off-by: Anders F Björklund <anders.f.bjorklund@gmail.com>
audio: | ||
# QEMU audiodev, e.g., "none", "coreaudio", "pa", "alsa", "oss". | ||
# Choosing "none" will mute the audio output, and not play any sound. | ||
# 🟢 Builtin default: "" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The default should be "none"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It was mostly to make it backwards-compatible, the "" means that it won't have any device at all
-audiodev none,id=id[,prop[=value][,...]]
Creates a dummy backend that discards all outputs. This backend
has no backend specific properties.
Maybe it could have been documented better, the default yaml was a bit of copy/paste from video
audiodev += fmt.Sprintf(",id=%s", id) | ||
args = append(args, "-audiodev", audiodev) | ||
// audio controller | ||
args = append(args, "-device", "ich9-intel-hda") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this work for aarch64 and riscv64?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Have not had the opportunity to try it yet
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
But the options are there, at least (in help)
name "hda-duplex", bus HDA, desc "HDA Audio Codec, duplex (line-out, line-in)"
name "hda-micro", bus HDA, desc "HDA Audio Codec, duplex (speaker, microphone)"
name "hda-output", bus HDA, desc "HDA Audio Codec, output-only (line-out)"
name "ich9-intel-hda", bus PCI, desc "Intel HD Audio Controller (ich9)"
name "intel-hda", bus PCI, desc "Intel HD Audio Controller (ich6)"
It (Intel HDA) was also mentioned in the man
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM :)
Tested with
mikmod
and https://modarchive.org/, seems to work fine (used ALSA)Only tricky part was that the kernel module was in
linux-modules-extra
, thenalsa
Closes #1526