All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xen-devel] vsnd issue
@ 2019-11-25 10:19 Peng Fan
  2019-11-25 10:24 ` Julien Grall
  0 siblings, 1 reply; 7+ messages in thread
From: Peng Fan @ 2019-11-25 10:19 UTC (permalink / raw)
  To: xen-devel; +Cc: julien.grall, Stefano Stabellini

Hi All,

I am trying vsnd from xen-troops with xen 4.13 and Linux 5.4, but domu reports:
aplay compl.mp3
ALSA lib ../../../alsa-lib-1.1.9/src/pcm/pcm_direct.c:1156:(snd1_pcm_direct_initialize_slave) slave plugin does not support mmap interleaved or mmap noninterleaved access
ALSA lib ../../../alsa-lib-1.1.9/src/pcm/pcm_dmix.c:1120:(snd_pcm_dmix_open) unable to initialize slave
aplay: main:828: audio open error: Invalid argument

When executing aplay in domu, dom0 side log:
root@imx8qmmek:~# 13.11.19 08:24:57.484 | XenEvtchn       | DBG - Event received, port: 10
13.11.19 08:24:57.491 | StreamRing      | DBG - Request received, id: alsa<hw:2;0>, cmd:9
13.11.19 08:24:57.500 | CommandHandler  | DBG - Handle command [QUERY_HW_PARAM]
13.11.19 08:24:57.508 | AlsaPcm         | DBG - Query pcm device hw:2,0 for HW parameters
13.11.19 08:24:57.516 | CommandHandler  | DBG - Return status: [0]
13.11.19 08:24:57.523 | XenEvtchn       | DBG - Notify event channel, port: 10
13.11.19 08:24:57.531 | XenEvtchn       | DBG - Event received, port: 10
13.11.19 08:24:57.538 | StreamRing      | DBG - Request received, id: alsa<hw:2;0>, cmd:9
13.11.19 08:24:57.546 | CommandHandler  | DBG - Handle command [QUERY_HW_PARAM]
13.11.19 08:24:57.554 | AlsaPcm         | DBG - Query pcm device hw:2,0 for HW parameters
13.11.19 08:24:57.563 | CommandHandler  | DBG - Return status: [0]
13.11.19 08:24:57.570 | XenEvtchn       | DBG - Notify event channel, port: 10
13.11.19 08:24:57.577 | XenEvtchn       | DBG - Event received, port: 10
13.11.19 08:24:57.584 | StreamRing      | DBG - Request received, id: alsa<hw:2;0>, cmd:9
13.11.19 08:24:57.593 | CommandHandler  | DBG - Handle command [QUERY_HW_PARAM]
13.11.19 08:24:57.601 | AlsaPcm         | DBG - Query pcm device hw:2,0 for HW parameters
13.11.19 08:24:57.610 | CommandHandler  | DBG - Return status: [0]
13.11.19 08:24:57.616 | XenEvtchn       | DBG - Notify event channel, port: 10
13.11.19 08:24:57.624 | XenEvtchn       | DBG - Event received, port: 10
13.11.19 08:24:57.631 | StreamRing      | DBG - Request received, id: alsa<hw:2;0>, cmd:9
13.11.19 08:24:57.640 | CommandHandler  | DBG - Handle command [QUERY_HW_PARAM]
13.11.19 08:24:57.647 | AlsaPcm         | DBG - Query pcm device hw:2,0 for HW parameters
13.11.19 08:24:57.656 | CommandHandler  | DBG - Return status: [0]
13.11.19 08:24:57.663 | XenEvtchn       | DBG - Notify event channel, port: 10
13.11.19 08:24:57.671 | XenEvtchn       | DBG - Event received, port: 10
13.11.19 08:24:57.678 | StreamRing      | DBG - Request received, id: alsa<hw:2;0>, cmd:9
13.11.19 08:24:57.686 | CommandHandler  | DBG - Handle command [QUERY_HW_PARAM]
13.11.19 08:24:57.694 | AlsaPcm         | DBG - Query pcm device hw:2,0 for HW parameters
13.11.19 08:24:57.703 | CommandHandler  | DBG - Return status: [0]
13.11.19 08:24:57.709 | XenEvtchn       | DBG - Notify event channel, port: 10


My xl.cfg:
    vsnd = [
        ['CARD, short-name=Main, sample-formats=s16_le;s8;u32_be',
            'PCM, name=Main',
                'STREAM, unique-id=alsa<hw:2;0>, type=p',
                'STREAM, unique-id=alsa<hw:2;1>, type=c, channels-max=2'
        ],
    ]

The audio device on my board:
aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: imxaudmix [imx-audmix], device 0: HiFi-AUDMIX-FE (*) []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: imxaudmix [imx-audmix], device 1: HiFi-AUDMIX-FE (*) []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: cs42888audio [cs42888-audio], device 0: HiFi cs42888-0 [HiFi cs42888-0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: cs42888audio [cs42888-audio], device 1: HiFi-ASRC-FE (*) []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 2: wm8960audio [wm8960-audio], device 0: HiFi wm8960-hifi-0 []
  Subdevices: 0/1
  Subdevice #0: subdevice #0

Is there something wrong in my configuration?

Thanks,
Peng.

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel

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

end of thread, other threads:[~2019-11-25 13:34 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-11-25 10:19 [Xen-devel] vsnd issue Peng Fan
2019-11-25 10:24 ` Julien Grall
2019-11-25 10:40   ` Artem Mygaiev
2019-11-25 10:55     ` Oleksandr Andrushchenko
2019-11-25 12:22       ` Peng Fan
2019-11-25 13:31         ` Oleksandr Grytsov
2019-11-25 13:34           ` Oleksandr Andrushchenko

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.