/* This function will notity sof event to all of class. */
rt_err_t _sof_notify(udevice_t device)
/* This function will notity sof event to all of class. */
rt_err_t _sof_notify(udevice_t device)
{
    struct rt_list_node *i;
    uclass_t cls;
    RT_ASSERT(device != RT_NULL);
    for (i  = device->curr_cfg->cls_list.next;
         i != &device->curr_cfg->cls_list;
         i  = i->next)
    {
        cls = (uclass_t)rt_list_entry(i, struct uclass, list);
        if (cls->ops->sof_handler != RT_NULL)
            cls->ops->sof_handler(device, cls);
    }
    return RT_EOK;
}