|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [alsa-devel] [PATCH 0/2] sndif: add explicit back and front synchronization
On 03/06/2018 12:52 PM, Takashi Iwai wrote: On Mon, 05 Feb 2018 09:24:58 +0100, Oleksandr Andrushchenko wrote: Thank you, the driver is at [1] Now, going back to a big picture: I took a look at the previous patchset, and wonder what about the hw_params setup. Basically the (frontend) application may request any size of buffer and periods unless the driver sets up the hw constraints at open callback. That is, app may request even the 16 bytes of buffer size, or 1GB of buffer. The periods aren't always integer, so it can be 1024 bytes of buffer with 400 bytes of periods. And, if such parameters are set up freely in the frontend side, how the backend is supposed to behave? From the frontend POV, it expects receiving the wakeup/notification at each period processing (e.g. 400 bytes in the case above). But, the backend is another application, so how would it work for such requirements? Am I missing something here? Well, the frontend is not that free to decide as it might look like, e.g. please see [2]. Basically part of hw_params configuration is writtento XenStore [3] as a part of domain configuration which depends on system/backend capabilities. E.g., we usually set buffer sizes to match real HW at backend side if we use ALSA and we have more freedom if we use PulseAudio there. Finally, if backend decides that the requested buffer/period sizes are not acceptable it will reject such a configuration. [1] https://github.com/andr2000/linux/commits/tiwai_sound_for_next_pv_snd_upstream_v1 [2] https://github.com/andr2000/linux/blob/tiwai_sound_for_next_pv_snd_upstream_v1/sound/xen/xen_snd_front_cfg.c#L239thanks, TakashiWaiting for your valuable comments, Thank you, Oleksandr [1] https://github.com/andr2000/linux/commits/snd_upstream_v1 [2] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/include/xen/interface/io/sndif.h [3] https://github.com/xen-troops/snd_be [4] https://github.com/xen-troops/libxenbe [5] https://lkml.org/lkml/2017/8/7/363 [6] http://mailman.alsa-project.org/pipermail/alsa-devel/2017-August/123617.html [7] http://mailman.alsa-project.org/pipermail/alsa-devel/2017-August/123744.html Oleksandr Andrushchenko (2): sndif: introduce protocol version sndif: add explicit back and front synchronization xen/include/public/io/sndif.h | 173 +++++++++++++++++++++++++++++++++++++++++- 1 file changed, 170 insertions(+), 3 deletions(-) -- 2.7.4 _______________________________________________ Alsa-devel mailing list Alsa-devel@xxxxxxxxxxxxxxxx http://mailman.alsa-project.org/mailman/listinfo/alsa-devel [3] https://www.mail-archive.com/xen-devel@xxxxxxxxxxxxx/msg124356.html _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxxx https://lists.xenproject.org/mailman/listinfo/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |