Browse Source

don't mess with hwmon unless hwmonitoring, incr frame time after cycle, not before, no swmon

git-svn-id: svn+ssh://jackaudio.org/trunk/jack@418 0c269be4-1314-0410-8aa9-9f06e86f4224
tags/0.109.0
pbd 22 years ago
parent
commit
d950dc4497
3 changed files with 9 additions and 18 deletions
  1. +1
    -1
      configure.in
  2. +5
    -15
      drivers/alsa/alsa_driver.c
  3. +3
    -2
      jackd/engine.c

+ 1
- 1
configure.in View File

@@ -14,7 +14,7 @@ dnl changes are made
dnl ---
JACK_MAJOR_VERSION=0
JACK_MINOR_VERSION=72
JACK_MICRO_VERSION=3
JACK_MICRO_VERSION=4

dnl ---
dnl HOWTO: updating the jack protocal version


+ 5
- 15
drivers/alsa/alsa_driver.c View File

@@ -758,7 +758,9 @@ alsa_driver_audio_stop (alsa_driver_t *driver)
}
}
driver->hw->set_input_monitor_mask (driver->hw, 0);
if (driver->hw_monitoring) {
driver->hw->set_input_monitor_mask (driver->hw, 0);
}

return 0;
}
@@ -1208,19 +1210,7 @@ alsa_driver_write (alsa_driver_t* driver, jack_nframes_t nframes)
buf = jack_port_get_buffer (port, contiguous);

if (driver->all_monitor_in || (driver->input_monitor_mask & (1<<chn))) {
if (!driver->hw_monitoring) {
alsa_driver_copy_channel (driver, chn, chn, contiguous);
} else {
/* allow systems with mixdown for monitoring to playback
the stream even if monitoring is enabled (e.g. ice1712, hdsp)
*/
alsa_driver_write_to_channel (driver, chn, buf + nwritten, contiguous);
}
} else {
alsa_driver_write_to_channel (driver, chn, buf + nwritten, contiguous);
}

alsa_driver_write_to_channel (driver, chn, buf + nwritten, contiguous);
}

if (driver->channels_not_done) {
@@ -1472,7 +1462,7 @@ alsa_driver_new (char *name, char *playback_alsa_device, char *capture_alsa_devi

printf ("creating alsa driver ... %s|%s|%lu|%lu|%lu|%s|%s|%s\n",
playback_alsa_device, capture_alsa_device, frames_per_cycle, user_nperiods, rate,
hw_monitoring ? "hwmon":"swmon", hw_metering ? "hwmeter":"swmeter", soft_mode ? "soft-mode":"rt");
hw_monitoring ? "hwmon":"nomon", hw_metering ? "hwmeter":"swmeter", soft_mode ? "soft-mode":"rt");

driver = (alsa_driver_t *) calloc (1, sizeof (alsa_driver_t));



+ 3
- 2
jackd/engine.c View File

@@ -2040,8 +2040,6 @@ jack_run_cycle (jack_engine_t *engine, jack_nframes_t nframes, float delayed_use
consecutive_excessive_delays = 0;
}

jack_inc_frame_time (engine, nframes);

if (jack_try_lock_graph (engine)) {
/* engine can't run. just throw away an entire cycle */
driver->null_cycle (driver, nframes);
@@ -2062,6 +2060,9 @@ jack_run_cycle (jack_engine_t *engine, jack_nframes_t nframes, float delayed_use
}

jack_engine_post_process (engine);

jack_inc_frame_time (engine, nframes);

ret = 0;

unlock:


Loading…
Cancel
Save