Changeset bde691c in mainline for uspace/drv/audio/sb16/sb16.c


Ignore:
Timestamp:
2011-09-26T15:24:48Z (13 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
bf38143
Parents:
050d4fa
Message:

sb16: Add sb_ prefix to mixer functions and types.

File:
1 edited

Legend:

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

    r050d4fa rbde691c  
    4141    { .cmdcount = 1, .cmds = (irq_cmd_t*)irq_cmds };
    4242
    43 static mixer_type_t mixer_type_by_dsp_version(unsigned major, unsigned minor)
     43static inline sb_mixer_type_t sb_mixer_type_by_dsp_version(
     44    unsigned major, unsigned minor)
    4445{
    4546        switch (major)
     
    9192
    9293        /* Initialize mixer */
    93         const mixer_type_t mixer_type = mixer_type_by_dsp_version(
     94        const sb_mixer_type_t mixer_type = sb_mixer_type_by_dsp_version(
    9495            drv->dsp_version.major, drv->dsp_version.minor);
    9596
    96         ret = mixer_init(&drv->mixer, drv->regs, mixer_type);
     97        ret = sb_mixer_init(&drv->mixer, drv->regs, mixer_type);
    9798        if (ret != EOK) {
    9899                ddf_log_error("Failed to initialize SB mixer: %s.\n",
     
    101102        }
    102103        ddf_log_note("Initialized mixer: %s.\n",
    103             mixer_type_str(drv->mixer.type));
     104            sb_mixer_type_str(drv->mixer.type));
    104105
    105106        return EOK;
Note: See TracChangeset for help on using the changeset viewer.