How to read from device?
<p>I have a multi-channel interface connected via USB. The documentation states that in order to configure the interface //the API messages should be embedded in the audio stream and sent to a control endpoint that processes those messages. Responses are also transmitted on that endpoint. Messages are sent and received via USB in their entirety; no special formatting//.</p>

<p>Any idea how this could be implemented using alsa. I figured I could use <code>snd_pcm_open</code>, <code>snd_pcm_set_params</code> and <code>snd_pcm_writei</code> to send the API message as raw bytes but how can I read the response?</p>