LAVA: qemu-system sound option changes

Fixed

Description

the way a sound card is added changed in recent qemu version that we use now.

update the tests to use the new format.

 

qemu-system-x86_64: -soundhw: invalid option

{{}}

Environment

None

Activity

Show:

Jan-Simon Moeller 
May 10, 2023 at 9:04 PM

Not yet. It needs to end-up in the job templates.

Walt Miner 
May 10, 2023 at 8:30 PM

  Can this be resolved?

Jan-Simon Moeller 
March 29, 2023 at 2:38 PM
(edited)

After a few tries:
-audiodev none,id=agl,out.channels=2,in.channels=1 -device ich9-intel-hda -device hda-micro,audiodev=agl

 

Does a dummy soundcard with stereo output and mic input .

 

[ 24.504031] snd_hda_intel 0000:00:06.0: enabling device (0000 -> 0002)
[ 24.540838] snd_hda_intel 0000:00:06.0: Force to snoop mode by module option
[ 25.425962] snd_hda_codec_generic hdaudioC0D0: autoconfig for Generic: line_outs=1 (0x3/0x0/0x0/0x0/0x0) type:speaker
[ 25.426793] snd_hda_codec_generic hdaudioC0D0: speaker_outs=0 (0x0/0x0/0x0/0x0/0x0)
[ 25.449133] snd_hda_codec_generic hdaudioC0D0: hp_outs=0 (0x0/0x0/0x0/0x0/0x0)
[ 25.450044] snd_hda_codec_generic hdaudioC0D0: mono: mono_out=0x0
[ 25.450700] snd_hda_codec_generic hdaudioC0D0: inputs:
[ 25.451929] snd_hda_codec_generic hdaudioC0D0: Mic=0x5

 

 

Which should be usable for our purposes.

Jan-Simon Moeller 
March 29, 2023 at 2:04 PM

Jan-Simon Moeller 
March 29, 2023 at 12:32 PM

Plan is to use:

 

         -audiodev alsa,id=audio0 -device intel-hda -device hda-duplex,audiodev=audio0

Details

Assignee

Reporter

Components

Affects versions

Priority

Created March 29, 2023 at 11:43 AM
Updated October 13, 2023 at 8:24 PM
Resolved September 5, 2023 at 12:27 PM