RE: [patch] Staging: intel_sst: off by one bug

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



 
> 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[0]?
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 [0] 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.

HTH
Vinod
_______________________________________________
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxx
http://driverdev.linuxdriverproject.org/mailman/listinfo/devel


[Index of Archives]     [Linux Driver Backports]     [DMA Engine]     [Linux GPIO]     [Linux SPI]     [Video for Linux]     [Linux USB Devel]     [Linux Coverity]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux