Changeset f0241bda in mainline for uspace/drv/audio/sb16/pcm_iface.c


Ignore:
Timestamp:
2012-08-17T16:57:29Z (12 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
82e4005
Parents:
2e01b3f
Message:

sb16: Implement capabilities query.

File:
1 edited

Legend:

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

    r2e01b3f rf0241bda  
    4646        return EOK;
    4747}
     48
     49static unsigned sb_query_cap(ddf_fun_t *fun, audio_cap_t cap)
     50{
     51        assert(fun);
     52        assert(fun->driver_data);
     53        sb_dsp_t *dsp = fun->driver_data;
     54        return sb_dsp_query_cap(dsp, cap);
     55}
     56
    4857static int sb_test_format(ddf_fun_t *fun, unsigned *channels, unsigned *rate,
    4958    pcm_sample_format_t *format)
     
    116125        .get_info_str = sb_get_info_str,
    117126        .test_format = sb_test_format,
     127        .query_cap = sb_query_cap,
    118128
    119129        .get_buffer = sb_get_buffer,
Note: See TracChangeset for help on using the changeset viewer.