Changeset 149dd52d in mainline for uspace/drv/audio/hdaudio/codec.c


Ignore:
Timestamp:
2014-08-27T15:52:16Z (11 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
3fec817
Parents:
a9be4d2
Message:

Fix 64-bit issues.

File:
1 edited

Legend:

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

    ra9be4d2 r149dd52d  
    6767        int rc = hda_cmd(codec->hda, verb, resp);
    6868
    69         if (resp != NULL) {
     69/*      if (resp != NULL) {
    7070                ddf_msg(LVL_NOTE, "verb 0x%" PRIx32 " -> 0x%" PRIx32, verb,
    7171                    *resp);
     
    7373                ddf_msg(LVL_NOTE, "verb 0x%" PRIx32, verb);
    7474        }
    75 
     75*/
    7676        return rc;
    7777}
     
    250250            ampcaps, offset);
    251251
    252         rc = hda_set_amp_gain_mute(codec, aw, 0xb000 + offset/2);
     252        rc = hda_set_amp_gain_mute(codec, aw, 0xb000 + offset);
    253253        if (rc != EOK)
    254254                goto error;
     
    286286
    287287        for (i = 0; i < 15; i++) {
    288                 rc = hda_set_amp_gain_mute(codec, aw, 0x7000 + (i << 8) + offset/2);
     288                rc = hda_set_amp_gain_mute(codec, aw, 0x7000 + (i << 8) + offset);
    289289                if (rc != EOK)
    290290                        goto error;
     
    466466                ddf_msg(LVL_NOTE, "hda_get_fgrp_type -> %d", rc);
    467467                ddf_msg(LVL_NOTE, "unsol: %d, grptype: %d", unsol, grptype);
     468
     469                rc = hda_power_ctl_init(codec, fg);
     470                if (rc != EOK)
     471                        goto error;
    468472
    469473                rc = hda_get_subnc(codec, fg, &saw, &naw);
Note: See TracChangeset for help on using the changeset viewer.