Browse Source

[alsa] fix initialisation of io functions for capture only mode

this is a quick fix for the problem reported by Felix Pfeifer.
whitespace cleanup and more thorough fixes of this code follow.

git-svn-id: svn+ssh://jackaudio.org/trunk/jack@4193 0c269be4-1314-0410-8aa9-9f06e86f4224
tags/0.120.2
torben 14 years ago
parent
commit
b1d74e2364
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      drivers/alsa/alsa_driver.c

+ 4
- 0
drivers/alsa/alsa_driver.c View File

@@ -233,6 +233,7 @@ alsa_driver_hw_specific (alsa_driver_t *driver, int hw_monitoring,
static void
alsa_driver_setup_io_function_pointers (alsa_driver_t *driver)
{
if (driver->playback_handle) {
if (SND_PCM_FORMAT_FLOAT_LE == driver->playback_sample_format) {
if (driver->playback_interleaved) {
driver->channel_copy = memcpy_interleave_d32_s32;
@@ -312,7 +313,9 @@ alsa_driver_setup_io_function_pointers (alsa_driver_t *driver)
exit (1);
}
}
}
if (driver->capture_handle) {
switch (driver->capture_sample_bytes) {
case 2:
driver->read_via_copy = driver->quirk_bswap?
@@ -330,6 +333,7 @@ alsa_driver_setup_io_function_pointers (alsa_driver_t *driver)
sample_move_dS_s32u24;
break;
}
}
}

static int


Loading…
Cancel
Save