Changeset 94694a4 in mainline


Ignore:
Timestamp:
2012-07-09T08:17:13Z (12 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
346643c
Parents:
ce047249
Message:

Add new audio-pcm category and register sb16/pcm in this categgory.

Location:
uspace
Files:
2 edited

Legend:

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

    rce047249 r94694a4  
    112112                ddf_log_error("Failed to initialize SB DSP: %s.",
    113113                    str_error(ret));
     114                ddf_fun_destroy(dsp_fun);
    114115                return ret;
    115116        }
     
    122123        if (ret != EOK) {
    123124                ddf_log_error(
    124                     "Failed to bind DSP function: %s.", str_error(ret));
    125                 dsp_fun->driver_data = NULL;
     125                    "Failed to bind PCM function: %s.", str_error(ret));
     126                dsp_fun->driver_data = NULL;
     127                ddf_fun_destroy(dsp_fun);
     128                return ret;
     129        }
     130
     131        ret = ddf_fun_add_to_category(dsp_fun, "audio-pcm");
     132        if (ret != EOK) {
     133                ddf_log_error("Failed register PCM function in category: %s.",
     134                    str_error(ret));
     135                dsp_fun->driver_data = NULL;
     136                ddf_fun_unbind(dsp_fun);
    126137                ddf_fun_destroy(dsp_fun);
    127138                return ret;
  • uspace/srv/locsrv/locsrv.c

    rce047249 r94694a4  
    13681368        categ_dir_add_cat(&cdir, cat);
    13691369       
     1370        cat = category_new("audio-pcm");
     1371        categ_dir_add_cat(&cdir, cat);
     1372       
    13701373        return true;
    13711374}
Note: See TracChangeset for help on using the changeset viewer.