[patch] Staging: intel_sst: off by one bug
vinod.koul at intel.com
Sun Oct 17 03:52:32 PDT 2010
> Btw I don't understand the sst_drv_ctx->streams array.
This is used to store the runtime information related to the stream
> What is stored in streams?
Nothing :) its unused
In this array, the index refers to stream id which starts from 1 to x.
So I instead of adding stream id as field and subtracting one to get index,
left  as unused....
> What does MRST from MAX_NUM_STREAMS_MRST and get_mrst_stream_id() stand
> for? I understand that MRST streams are SND_SST_DEVICE_HEADSET,
> SND_SST_DEVICE_IHF, and SND_SST_DEVICE_VIBRA. What makes them different
> from SND_SST_DEVICE_HAPTIC and SND_SST_DEVICE_CAPTURE?
The driver supports two platforms, Moorestown (MRST) and Medfield (MFLD)
The capabilities of each are different. In former we support 3 streams
and in latter 5.
The driver assigns the stream id, for mrst, just in first come first server
basis. In mfld, based on type of device opened, for instance Vibra will always
be stream 3 and capture 5.
More information about the devel