[alsa-devel] PCM extra attributes

Vinod Koul vinod.koul at intel.com
Thu Jul 25 10:38:10 CEST 2013


On Thu, Jul 25, 2013 at 10:06:52AM +0200, Jaroslav Kysela wrote:
> Date 24.7.2013 19:09, Vinod Koul wrote:
> > Hey Takashi,
> > 
> > We were looking to find the substream index in the userspace for the device
> > opened (in case we support multiple substreams and mix them). Since we also
> > wanted to have some specific alsa controls for each substream the problem of not
> > knowing substream in usermode make stuff interesting!
> 
> The substream/subdevice index is in the snd_pcm_info field, so you can
> correlate the PCM with the controls from the control API.
> 
> snd_pcm_info_get_subdevice()
This looks intresting, Thanks Jarsolav and Raymond.

If I get snd_pcm_info after the stream has been created I should see the
subdevice and thus use alsa controls corrorsponding.

Let me test this, it should work

~Vinod


More information about the Alsa-devel mailing list