9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* 9front on qemu with sound?
@ 2020-10-27  1:15 nydldmcd2
  2020-10-27  1:43 ` nydldmcd2
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: nydldmcd2 @ 2020-10-27  1:15 UTC (permalink / raw)
  To: 9fans

[-- Attachment #1: Type: text/plain, Size: 1003 bytes --]

Hi, has anyone here made sound work on qemu with 9front as a guest with either a linux, windows or bsd host?

I have been trying it on a Linux (amd64) and windows host, each attempt has been the same, a plan 9 environment with no audio devices (nothing in '#A0' or no /dev/audio) 


Here is what I have tried so far. 

qemu-system-x86_64 -hda 9front.img  -boot d -vga std -m 768 -device sb16

qemu-system-x86_64 -hda 9front.img  -boot d -vga std -m 768 -device AC97

qemu-system-x86_64 -hda 9front.img -enable-kvm -boot d -vga std -m 2512 -cpu host -soundhw ac97

qemu-system-x86_64 -hda 9front.img -enable-kvm -boot d -vga std -m 2512 -cpu host -device intel-hda -device hda-duplex

None of these seem to error out, the guest still starts fine.  I have been testing ina live environment as well as an already installed environment, audio works on 9front if I run the OS on baremetal, though.


I realize this isn't exactly an important thing to get working, but I really want to.

[-- Attachment #2: Type: text/html, Size: 1309 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: 9front on qemu with sound?
  2020-10-27  1:15 9front on qemu with sound? nydldmcd2
@ 2020-10-27  1:43 ` nydldmcd2
  2020-10-27  1:56 ` nydldmcd2
  2020-10-27 21:14 ` [9fans] " Pavel Renev
  2 siblings, 0 replies; 8+ messages in thread
From: nydldmcd2 @ 2020-10-27  1:43 UTC (permalink / raw)
  To: 9fans

[-- Attachment #1: Type: text/plain, Size: 142 bytes --]

I forgot to add.  when testing sb16, I did try adding this to plan9.ini
No luck. 



audio0=type=sb16 port=0x220 irq=5 dma=5




[-- Attachment #2: Type: text/html, Size: 537 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: 9front on qemu with sound?
  2020-10-27  1:15 9front on qemu with sound? nydldmcd2
  2020-10-27  1:43 ` nydldmcd2
@ 2020-10-27  1:56 ` nydldmcd2
  2020-10-27 19:59   ` [9fans] " Nick Owens
  2020-10-27 21:14 ` [9fans] " Pavel Renev
  2 siblings, 1 reply; 8+ messages in thread
From: nydldmcd2 @ 2020-10-27  1:56 UTC (permalink / raw)
  To: 9fans

[-- Attachment #1: Type: text/plain, Size: 169 bytes --]

Some suggested I do -device sb16,audiodev=snd0
However, snd0 does not exist. Neither does any other value I tested (hda, snd1, sound1,sound2,sound3, pa,pa1,pa0, 1,2,3)

[-- Attachment #2: Type: text/html, Size: 227 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [9fans] Re: 9front on qemu with sound?
  2020-10-27  1:56 ` nydldmcd2
@ 2020-10-27 19:59   ` Nick Owens
  0 siblings, 0 replies; 8+ messages in thread
From: Nick Owens @ 2020-10-27 19:59 UTC (permalink / raw)
  To: 9fans

hda should be fixed in
http://code.9front.org/hg/plan9front/rev/0e47f4a0c4d6. could you build
a new kernel and try it? you should see a message like "#A0: codec #0,
vendor 1af40022, rev 00100101" on the console, and #A/audio should be
present and writable.

On Mon, Oct 26, 2020 at 6:57 PM <nydldmcd2@mail.com> wrote:
>
> Some suggested I do -device sb16,audiodev=snd0
> However, snd0 does not exist. Neither does any other value I tested (hda, snd1, sound1,sound2,sound3, pa,pa1,pa0, 1,2,3)
> 9fans / 9fans / see discussions + participants + delivery options Permalink

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [9fans] 9front on qemu with sound?
  2020-10-27  1:15 9front on qemu with sound? nydldmcd2
  2020-10-27  1:43 ` nydldmcd2
  2020-10-27  1:56 ` nydldmcd2
@ 2020-10-27 21:14 ` Pavel Renev
  2020-10-27 22:40   ` Nick Owens
  2 siblings, 1 reply; 8+ messages in thread
From: Pavel Renev @ 2020-10-27 21:14 UTC (permalink / raw)
  To: 9fans

> Hi, has anyone here made sound work on qemu with 9front as a guest with either a linux, windows or bsd host?

I didn't even manage to make sound work on qemu with linux or windows
as a guest.

I don't have any links on hand, but general discusstions online
suggest that qemu audio emulation sucks and you should just buy a
PCI audiocard, put it in your PC and configure PCI pass-through
instead.


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [9fans] 9front on qemu with sound?
  2020-10-27 21:14 ` [9fans] " Pavel Renev
@ 2020-10-27 22:40   ` Nick Owens
  2020-10-27 23:43     ` nydldmcd2
  0 siblings, 1 reply; 8+ messages in thread
From: Nick Owens @ 2020-10-27 22:40 UTC (permalink / raw)
  To: 9fans

[-- Attachment #1: Type: text/plain, Size: 800 bytes --]

On Tue, Oct 27, 2020, 14:16 Pavel Renev <mikan@waifu.club> wrote:

> > Hi, has anyone here made sound work on qemu with 9front as a guest with
> either a linux, windows or bsd host?
>
> I didn't even manage to make sound work on qemu with linux or windows
> as a guest.
>
> I don't have any links on hand, but general discusstions online
> suggest that qemu audio emulation sucks and you should just buy a
> PCI audiocard, put it in your PC and configure PCI pass-through
> instead.
>

that's a rather expensive idea. it works fine here.


>
> ------------------------------------------
> 9fans: 9fans
> Permalink:
> https://9fans.topicbox.com/groups/9fans/T3f4bbef90063aae9-M0d83ae2b244b4bafd19a7497
> Delivery options: https://9fans.topicbox.com/groups/9fans/subscription
>

[-- Attachment #2: Type: text/html, Size: 1610 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [9fans] 9front on qemu with sound?
  2020-10-27 22:40   ` Nick Owens
@ 2020-10-27 23:43     ` nydldmcd2
  2020-10-28 17:38       ` nydldmcd2
  0 siblings, 1 reply; 8+ messages in thread
From: nydldmcd2 @ 2020-10-27 23:43 UTC (permalink / raw)
  To: 9fans

[-- Attachment #1: Type: text/plain, Size: 122 bytes --]

I see. if I am going to do that I might as well buy hardware 9front and ethernet works on so that I don't need to use qemu

[-- Attachment #2: Type: text/html, Size: 174 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [9fans] 9front on qemu with sound?
  2020-10-27 23:43     ` nydldmcd2
@ 2020-10-28 17:38       ` nydldmcd2
  0 siblings, 0 replies; 8+ messages in thread
From: nydldmcd2 @ 2020-10-28 17:38 UTC (permalink / raw)
  To: 9fans

[-- Attachment #1: Type: text/plain, Size: 139 bytes --]

Thanks to a patch by mischief, it is now working with intel hda. http://code.9front.org/hg/plan9front/rev/0e47f4a0c4d6 
Thanks mischief!

[-- Attachment #2: Type: text/html, Size: 1535 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2020-10-28 17:38 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-27  1:15 9front on qemu with sound? nydldmcd2
2020-10-27  1:43 ` nydldmcd2
2020-10-27  1:56 ` nydldmcd2
2020-10-27 19:59   ` [9fans] " Nick Owens
2020-10-27 21:14 ` [9fans] " Pavel Renev
2020-10-27 22:40   ` Nick Owens
2020-10-27 23:43     ` nydldmcd2
2020-10-28 17:38       ` nydldmcd2

9fans - fans of the OS Plan 9 from Bell Labs

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://inbox.vuxu.org/9fans

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V1 9fans 9fans/ http://inbox.vuxu.org/9fans \
		9fans@9fans.net
	public-inbox-index 9fans

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://inbox.vuxu.org/vuxu.archive.9fans


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git