Changeset 365f259 in mainline for uspace/drv/audio/sb16/mixer.c
- Timestamp:
- 2013-03-03T17:14:26Z (12 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 90c1d80
- Parents:
- 80d5307
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/audio/sb16/mixer.c
r80d5307 r365f259 31 31 #include <errno.h> 32 32 #include <libarch/ddi.h> 33 #include <macros.h> 33 34 #include <unistd.h> 34 35 … … 128 129 129 130 static const struct { 131 const volume_item_t *table; 130 132 size_t count; 131 const volume_item_t *table;132 133 } volume_table[] = { 133 [SB_MIXER_NONE] = { 0, NULL }, 134 [SB_MIXER_UNKNOWN] = { 0, NULL }, 135 [SB_MIXER_CT1335] = { 136 sizeof(volume_ct1335) / sizeof(volume_item_t), volume_ct1335 }, 137 [SB_MIXER_CT1345] = { 138 sizeof(volume_ct1345) / sizeof(volume_item_t), volume_ct1345 }, 139 [SB_MIXER_CT1745] = { 140 sizeof(volume_ct1745) / sizeof(volume_item_t), volume_ct1745 }, 134 [SB_MIXER_NONE] = { NULL, 0 }, 135 [SB_MIXER_UNKNOWN] = { NULL, 0 }, 136 [SB_MIXER_CT1335] = { volume_ct1335, ARRAY_SIZE(volume_ct1335) }, 137 [SB_MIXER_CT1345] = { volume_ct1345, ARRAY_SIZE(volume_ct1345) }, 138 [SB_MIXER_CT1745] = { volume_ct1745, ARRAY_SIZE(volume_ct1745) }, 141 139 }; 142 140 143 141 const char * sb_mixer_type_str(sb_mixer_type_t type) 144 142 { 145 static const char * names[] = { 143 static const char *names[] = { 144 [SB_MIXER_NONE] = "No mixer", 146 145 [SB_MIXER_CT1335] = "CT 1335", 147 146 [SB_MIXER_CT1345] = "CT 1345",
Note:
See TracChangeset
for help on using the changeset viewer.