[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH v5] sndif: add ABI for Para-virtual sound
On Thu, Jan 22, 2015 at 5:41 PM, Ian Jackson <Ian.Jackson@xxxxxxxxxxxxx> wrote: > Oleksandr Dmytryshyn writes ("[PATCH v5] sndif: add ABI for Para-virtual > sound"): >> This is ABI for the two halves of a Para-virtual >> sound driver to communicate with each to other. > ... >> + * Request open - open an pcm stream for playback or capture: > > So "channels" here is "stereo", "mono", etc. > > There doesn't seem to be anything in this interface that distinguishes > different input/output devices. > > So for example, much real hardware will have a headphone output and > also built-in speakers, and a mic input and built-in microphone. > > How is this to be exposed to the guest ? Every stream handled in the own thread in the frontend driver. Frontend sends command (read or write, etc) to the backend and this is blocking command (within current stream). So I just use different streams for playback and capture. In case if we have headphone output and also built-in speakers, and a mic input and built-in microphone we will use one stream for the headphone output, one stream for the built-in speakers and one stream for the mic input. And in this time all devices will be able to work simultaneously. > Ian. _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |