Skip to contentSkip to conversation

concept of substream...

DISCUSSION Vinod Koul 3 participants 6 messages Feb 8, 2012

lore
Share & tools
lore

Vinod Koul

author
#0 lore raw

Hi,

I was trying to understand the concept of substream. So can we have a device which can have support say 5 substreams and these are controlled (start/stop) independent of each other.
At any instance we can have any number of substreams active and runtime we should be able to activate/deactivate a particular substream. Is that doable with this concept or should i look at something else?

--
~Vinod

#1 lore raw
Quoted 3 lines · Vinod Koul

I was trying to understand the concept of substream. So can we have a device which can have support say 5 substreams and these are controlled (start/stop) independent of each other.

Yes.

Quoted 2 lines

At any instance we can have any number of substreams active and runtime we should be able to activate/deactivate a particular substream.

If by "active" you mean opened or running, yes.

Please note that when opening a device without specifying a substream number, ALSA will open the first free one. This implies that all substreams should go the same output (i.e., be mixed together).

Regards,
Clemens

author
#2 lore raw
Quoted 10 lines · Clemens Ladisch
Quoted 3 lines · Vinod Koul

I was trying to understand the concept of substream. So can we have a device which can have support say 5 substreams and these are controlled (start/stop) independent of each other.

Yes.

Quoted 2 lines

At any instance we can have any number of substreams active and runtime we should be able to activate/deactivate a particular substream.

Quoted 6 lines

If by "active" you mean opened or running, yes.

Please note that when opening a device without specifying a substream number, ALSA will open the first free one. This implies that all substreams should go the same output (i.e., be mixed together).

Mixed in alsa or should be mixed by device?

#3 lore raw

At Wed, 08 Feb 2012 14:56:02 +0530,

Quoted 12 lines · Vinod Koul
Quoted 10 lines · Clemens Ladisch
Quoted 3 lines · Vinod Koul

I was trying to understand the concept of substream. So can we have a device which can have support say 5 substreams and these are controlled (start/stop) independent of each other.

Yes.

Quoted 2 lines

At any instance we can have any number of substreams active and runtime we should be able to activate/deactivate a particular substream.

Quoted 7 lines
Quoted 6 lines

If by "active" you mean opened or running, yes.

Please note that when opening a device without specifying a substream number, ALSA will open the first free one. This implies that all substreams should go the same output (i.e., be mixed together).

Mixed in alsa or should be mixed by device?

It's pretty much depending on the hardware and the driver implementation.

Takashi

author
#4 lore raw
Quoted 8 lines · Takashi Iwai
Quoted 1 line
Quoted 1 line

Please note that when opening a device without specifying a

substream

Quoted 3 lines
Quoted 2 lines

number, ALSA will open the first free one. This implies that all substreams should go the same output (i.e., be mixed together).

Mixed in alsa or should be mixed by device?

It's pretty much depending on the hardware and the driver implementation.

okay does it means its fair assumption that in driver I will get 5 opens/5 buffers. And driver is tasked with routing them to respective output?

Signature · 1 line
~Vinod
#5 lore raw

At Wed, 08 Feb 2012 15:03:47 +0530,

Quoted 6 lines · Vinod Koul
Quoted 4 lines · Takashi Iwai
Quoted 1 line
Quoted 1 line

Please note that when opening a device without specifying a

substream

Quoted 2 lines
Quoted 2 lines

number, ALSA will open the first free one. This implies that all substreams should go the same output (i.e., be mixed together).

Quoted 7 lines
Quoted 4 lines
Quoted 1 line

Mixed in alsa or should be mixed by device?

It's pretty much depending on the hardware and the driver implementation.

okay does it means its fair assumption that in driver I will get 5 opens/5 buffers. And driver is tasked with routing them to respective output?

Yes.

Takashi