Changeset 1433ecda in mainline for uspace/drv/audio/sb16
- Timestamp:
- 2018-04-04T15:42:37Z (8 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 2c4e1cc
- Parents:
- 47b2d7e3
- Location:
- uspace/drv/audio/sb16
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/audio/sb16/dsp_commands.h
r47b2d7e3 r1433ecda 166 166 #define DSP_MODE_STEREO 0x20 167 167 168 static inline const char * 168 static inline const char *mode_to_str(uint8_t mode) 169 169 { 170 170 if (mode & 0xcf) 171 171 return "unknown"; 172 static const char * 172 static const char *names[] = { 173 173 "unsigned mono (8bit)", 174 174 "signed mono (16bit)", -
uspace/drv/audio/sb16/mixer_iface.c
r47b2d7e3 r1433ecda 46 46 } 47 47 48 static errno_t sb_get_info(ddf_fun_t *fun, const char **name, unsigned *items)48 static errno_t sb_get_info(ddf_fun_t *fun, const char **name, unsigned *items) 49 49 { 50 50 sb_mixer_t *mixer = fun_to_mixer(fun); … … 58 58 } 59 59 60 static errno_t sb_get_item_info(ddf_fun_t *fun, unsigned item, const char **name,60 static errno_t sb_get_item_info(ddf_fun_t *fun, unsigned item, const char **name, 61 61 unsigned *max_level) 62 62 { -
uspace/drv/audio/sb16/pcm_iface.c
r47b2d7e3 r1433ecda 47 47 } 48 48 49 static errno_t sb_get_info_str(ddf_fun_t *fun, const char **name)49 static errno_t sb_get_info_str(ddf_fun_t *fun, const char **name) 50 50 { 51 51 if (name) … … 79 79 } 80 80 81 static async_sess_t * 81 static async_sess_t *sb_get_event_session(ddf_fun_t *fun) 82 82 { 83 83 return sb_dsp_get_event_session(fun_to_dsp(fun)); -
uspace/drv/audio/sb16/sb16.c
r47b2d7e3 r1433ecda 60 60 unsigned major, unsigned minor) 61 61 { 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; 69 73 } 70 74 }
Note:
See TracChangeset
for help on using the changeset viewer.