Changeset 05b59393 in mainline for uspace/drv
- Timestamp:
- 2017-10-04T18:02:14Z (8 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- c9e88da
- Parents:
- 0b2d369
- Location:
- uspace/drv
- Files:
-
- 4 edited
-
audio/sb16/dsp.c (modified) (3 diffs)
-
bus/isa/i8237.c (modified) (2 diffs)
-
bus/usb/ohci/ohci_rh.c (modified) (2 diffs)
-
fb/amdm37x_dispc/amdm37x_dispc.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/audio/sb16/dsp.c
r0b2d369 r05b59393 75 75 [DSP_NO_BUFFER] = "NO BUFFER", 76 76 }; 77 if ( state < ARRAY_SIZE(state_names))77 if ((size_t)state < ARRAY_SIZE(state_names)) 78 78 return state_names[state]; 79 79 return "UNKNOWN"; … … 144 144 { 145 145 dsp_write(dsp, SET_SAMPLING_RATE_OUTPUT); 146 dsp_write(dsp, rate >> 8); 147 dsp_write(dsp, rate & 0xff); 148 ddf_log_verbose("Sampling rate: %hhx:%hhx.", rate >> 8, rate & 0xff); 146 uint8_t rate_lo = rate & 0xff; 147 uint8_t rate_hi = rate >> 8; 148 dsp_write(dsp, rate_hi); 149 dsp_write(dsp, rate_lo); 150 ddf_log_verbose("Sampling rate: %hhx:%hhx.", rate_hi, rate_lo); 149 151 } 150 152 … … 202 204 203 205 return ret; 204 }205 206 static inline size_t sample_count(pcm_sample_format_t format, size_t byte_count)207 {208 return byte_count / pcm_sample_format_size(format);209 206 } 210 207 -
uspace/drv/bus/isa/i8237.c
r0b2d369 r05b59393 371 371 372 372 /* 16 bit transfers are a bit special */ 373 ddf_msg(LVL_DEBUG, "Unspoiled address %#" PRIx32 " (size %" PRIu 16")",373 ddf_msg(LVL_DEBUG, "Unspoiled address %#" PRIx32 " (size %" PRIu32 ")", 374 374 pa, size); 375 375 if (is_dma16(channel)) { … … 388 388 389 389 ddf_msg(LVL_DEBUG, "Setting channel %u to address %#" PRIx32 " " 390 "(size %" PRIu 16"), mode %hhx.", channel, pa, size, mode);390 "(size %" PRIu32 "), mode %hhx.", channel, pa, size, mode); 391 391 392 392 /* Mask DMA request */ -
uspace/drv/bus/usb/ohci/ohci_rh.c
r0b2d369 r05b59393 367 367 case USB_HUB_FEATURE_C_PORT_RESET: /*20*/ 368 368 usb_log_debug2("Clearing port C_CONNECTION, C_ENABLE, " 369 "C_SUSPEND, C_OC or C_RESET on port % "PRIu16".\n", port);369 "C_SUSPEND, C_OC or C_RESET on port %u.\n", port); 370 370 /* Bit offsets correspond to the feature number */ 371 371 OHCI_WR(hub->registers->rh_port_status[port], … … 416 416 case USB_HUB_FEATURE_PORT_RESET: /*4*/ 417 417 usb_log_debug2("Setting port POWER, ENABLE, SUSPEND or RESET " 418 "on port % "PRIu16".\n", port);418 "on port %u.\n", port); 419 419 /* Bit offsets correspond to the feature number */ 420 420 OHCI_WR(hub->registers->rh_port_status[port], 1 << feature); -
uspace/drv/fb/amdm37x_dispc/amdm37x_dispc.c
r0b2d369 r05b59393 267 267 amdm37x_dispc_t *dispc = vis->dev_ctx; 268 268 const visual_t visual = mode.cell_visual.pixel_visual; 269 assert( visual < sizeof(pixel2visual_table) / sizeof(pixel2visual_table[0]));269 assert((size_t)visual < sizeof(pixel2visual_table) / sizeof(pixel2visual_table[0])); 270 270 const unsigned bpp = pixel2visual_table[visual].bpp; 271 271 pixel2visual_t p2v = pixel2visual_table[visual].func;
Note:
See TracChangeset
for help on using the changeset viewer.
