All of lore.kernel.org
 help / color / mirror / Atom feed
* PCM substream
       [not found] <CABnBtVCEP0z_2_1NaPyvMpq1C=6CM9fPcM=6znpjGMZaT8STNQ@mail.gmail.com>
@ 2012-08-07  9:16 ` arun kumar
  2012-08-09 12:49   ` Clemens Ladisch
  0 siblings, 1 reply; 5+ messages in thread
From: arun kumar @ 2012-08-07  9:16 UTC (permalink / raw)
  To: alsa-devel

Hi All,


>From the last couple of days, I have been trying to understand the Linux
Alsa Subsystem.I have read the Alsa Driver API and Application API's. But I
could not understand the concept of PCM substreams, Could you please give
me some pointers to get a good understanding on the PCM substream.


regards,
Arun.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: PCM substream
  2012-08-07  9:16 ` PCM substream arun kumar
@ 2012-08-09 12:49   ` Clemens Ladisch
  2012-08-10  4:46     ` arun kumar
  2012-08-10  6:00     ` Raymond Yau
  0 siblings, 2 replies; 5+ messages in thread
From: Clemens Ladisch @ 2012-08-09 12:49 UTC (permalink / raw)
  To: arun kumar; +Cc: alsa-devel

arun kumar wrote:
> From the last couple of days, I have been trying to understand the Linux
> Alsa Subsystem.I have read the Alsa Driver API and Application API's. But I
> could not understand the concept of PCM substreams,

A PCM stream has one or more substreams.  Multiple substreams are used when
the hardware can mix them together for one output.  This was used in old
wavetable sound cards; nowadays, you almost always have one substream.


Regards,
Clemens

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: PCM substream
  2012-08-09 12:49   ` Clemens Ladisch
@ 2012-08-10  4:46     ` arun kumar
  2012-08-10  6:45       ` Clemens Ladisch
  2012-08-10  6:00     ` Raymond Yau
  1 sibling, 1 reply; 5+ messages in thread
From: arun kumar @ 2012-08-10  4:46 UTC (permalink / raw)
  To: Clemens Ladisch; +Cc: alsa-devel

Hi Clemens,

Thanks for the reply.So, if any application tries to open more than one
substream will it get the error? or alsa subsystem gives it one more
substream and helps in mixing of substreams considering my hardware has
only support for one substream.

regards,
Arun.
On Thu, Aug 9, 2012 at 6:19 PM, Clemens Ladisch <clemens@ladisch.de> wrote:

> arun kumar wrote:
> > From the last couple of days, I have been trying to understand the Linux
> > Alsa Subsystem.I have read the Alsa Driver API and Application API's.
> But I
> > could not understand the concept of PCM substreams,
>
> A PCM stream has one or more substreams.  Multiple substreams are used when
> the hardware can mix them together for one output.  This was used in old
> wavetable sound cards; nowadays, you almost always have one substream.
>
>
> Regards,
> Clemens
>

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: PCM substream
  2012-08-09 12:49   ` Clemens Ladisch
  2012-08-10  4:46     ` arun kumar
@ 2012-08-10  6:00     ` Raymond Yau
  1 sibling, 0 replies; 5+ messages in thread
From: Raymond Yau @ 2012-08-10  6:00 UTC (permalink / raw)
  To: alsa-devel

2012-8-9 下午8:49 於 "Clemens Ladisch" <clemens@ladisch.de> 寫道:
>
> arun kumar wrote:
> > From the last couple of days, I have been trying to understand the Linux
> > Alsa Subsystem.I have read the Alsa Driver API and Application API's.
But I
> > could not understand the concept of PCM substreams,
>
> A PCM stream has one or more substreams.  Multiple substreams are used
when
> the hardware can mix them together for one output.  This was used in old
> wavetable sound cards; nowadays, you almost always have one substream.
>

There are some hda controllers support multi-stream capture and some hda
codecs have two or more adc which allow two applications using different mic

> List of CAPTURE Hardware Devices ****
card 0: Intel [HDA Intel], device 0: AD198x Analog [AD198x Analog]
  Subdevices: 3/3
  Subdevice #0: subdevice #0
  Subdevice #1: subdevice #1
  Subdevice #2: subdevice #2
_______________________________________________
Alsa-devel mailing list
Alsa-devel@alsa-project.org
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: PCM substream
  2012-08-10  4:46     ` arun kumar
@ 2012-08-10  6:45       ` Clemens Ladisch
  0 siblings, 0 replies; 5+ messages in thread
From: Clemens Ladisch @ 2012-08-10  6:45 UTC (permalink / raw)
  To: arun kumar; +Cc: alsa-devel

(please don't top-post)

arun kumar wrote:
> So, if any application tries to open more than one substream will it
> get the error?

If there is no free substream available, the application will get an
error.

(If some mixing sound server like PulseAudio is used, this does not
matter.)


Regards,
Clemens

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2012-08-10  6:15 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <CABnBtVCEP0z_2_1NaPyvMpq1C=6CM9fPcM=6znpjGMZaT8STNQ@mail.gmail.com>
2012-08-07  9:16 ` PCM substream arun kumar
2012-08-09 12:49   ` Clemens Ladisch
2012-08-10  4:46     ` arun kumar
2012-08-10  6:45       ` Clemens Ladisch
2012-08-10  6:00     ` Raymond Yau

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.