/* Helper calls to extract info from desriptors and other trivial state from regs.  */
static int stream_desc_sof(struct SDesc *d)
/* Helper calls to extract info from desriptors and other trivial state from regs.  */
static int stream_desc_sof(struct SDesc *d)
{
    return d->control & SDESC_CTRL_SOF;
}