Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/audio/sb16/pcm_iface.c

    r9bd4615 r92b638c  
    3939
    4040#include "dsp.h"
    41 #include "sb16.h"
    4241
    43 static inline sb_dsp_t *fun_to_dsp(ddf_fun_t *fun)
     42static inline sb_dsp_t * fun_to_dsp(ddf_fun_t *fun)
    4443{
    45         sb16_t *sb = (sb16_t *)ddf_dev_data_get(ddf_fun_get_dev(fun));
    46         return &sb->dsp;
     44        assert(fun);
     45        assert(fun->driver_data);
     46        return fun->driver_data;
    4747}
    4848
Note: See TracChangeset for help on using the changeset viewer.