Changeset 7978d1e7 in mainline for uspace/drv/audio/hdaudio/hdaudio.c


Ignore:
Timestamp:
2014-08-14T08:56:27Z (11 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
8d070710
Parents:
b229062
Message:

Initialize CORB and RIRB.

File:
1 edited

Legend:

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

    rb229062 r7978d1e7  
    4444#include "hdactl.h"
    4545#include "hdaudio.h"
    46 #include "hdaudio_regs.h"
     46#include "spec/regs.h"
    4747
    4848#define NAME "hdaudio"
     
    7171        ddf_fun_t *fun_a;
    7272        hda_t *hda = NULL;
    73         const char *dev_name;
    7473        hw_res_list_parsed_t res;
    7574        void *regs;
    7675        int rc;
    7776
    78         dev_name = ddf_dev_get_name(dev);
    7977        ddf_msg(LVL_NOTE, "hda_dev_add()");
    8078
     
    127125        hda->regs = (hda_regs_t *)regs;
    128126
    129         hda->ctl = hda_ctl_init(hda);
    130         if (hda->ctl == NULL) {
     127        if (hda_ctl_init(hda) == NULL) {
    131128                rc = EIO;
    132129                goto error;
     
    151148
    152149        ddf_fun_add_to_category(fun_a, "virtual");
    153 
    154         ddf_msg(LVL_DEBUG, "Device `%s' accepted.", dev_name);
    155150        return EOK;
    156151error:
Note: See TracChangeset for help on using the changeset viewer.