Changeset 1433ecda in mainline for uspace/drv/audio/sb16


Ignore:
Timestamp:
2018-04-04T15:42:37Z (8 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
2c4e1cc
Parents:
47b2d7e3
Message:

Fix cstyle: make ccheck-fix and commit only files where all the changes are good.

Location:
uspace/drv/audio/sb16
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/audio/sb16/dsp_commands.h

    r47b2d7e3 r1433ecda  
    166166#define DSP_MODE_STEREO 0x20
    167167
    168 static inline const char * mode_to_str(uint8_t mode)
     168static inline const char *mode_to_str(uint8_t mode)
    169169{
    170170        if (mode & 0xcf)
    171171                return "unknown";
    172         static const char * names[] = {
     172        static const char *names[] = {
    173173                "unsigned mono (8bit)",
    174174                "signed mono (16bit)",
  • uspace/drv/audio/sb16/mixer_iface.c

    r47b2d7e3 r1433ecda  
    4646}
    4747
    48 static errno_t sb_get_info(ddf_fun_t *fun, const char** name, unsigned *items)
     48static errno_t sb_get_info(ddf_fun_t *fun, const char **name, unsigned *items)
    4949{
    5050        sb_mixer_t *mixer = fun_to_mixer(fun);
     
    5858}
    5959
    60 static errno_t sb_get_item_info(ddf_fun_t *fun, unsigned item, const char** name,
     60static errno_t sb_get_item_info(ddf_fun_t *fun, unsigned item, const char **name,
    6161    unsigned *max_level)
    6262{
  • uspace/drv/audio/sb16/pcm_iface.c

    r47b2d7e3 r1433ecda  
    4747}
    4848
    49 static errno_t sb_get_info_str(ddf_fun_t *fun, const char** name)
     49static errno_t sb_get_info_str(ddf_fun_t *fun, const char **name)
    5050{
    5151        if (name)
     
    7979}
    8080
    81 static async_sess_t * sb_get_event_session(ddf_fun_t *fun)
     81static async_sess_t *sb_get_event_session(ddf_fun_t *fun)
    8282{
    8383        return sb_dsp_get_event_session(fun_to_dsp(fun));
  • uspace/drv/audio/sb16/sb16.c

    r47b2d7e3 r1433ecda  
    6060    unsigned major, unsigned minor)
    6161{
    62         switch (major)
    63         {
    64         case 1: return SB_MIXER_NONE; /* SB 1.5 and early 2.0 = no mixer chip */
    65         case 2: return (minor == 0) ? SB_MIXER_NONE : SB_MIXER_CT1335;
    66         case 3: return SB_MIXER_CT1345; /* SB Pro */
    67         case 4: return SB_MIXER_CT1745; /* SB 16  */
    68         default: return SB_MIXER_UNKNOWN;
     62        switch (major) {
     63        case 1:
     64                return SB_MIXER_NONE; /* SB 1.5 and early 2.0 = no mixer chip */
     65        case 2:
     66                return (minor == 0) ? SB_MIXER_NONE : SB_MIXER_CT1335;
     67        case 3:
     68                return SB_MIXER_CT1345; /* SB Pro */
     69        case 4:
     70                return SB_MIXER_CT1745; /* SB 16  */
     71        default:
     72                return SB_MIXER_UNKNOWN;
    6973        }
    7074}
Note: See TracChangeset for help on using the changeset viewer.