Commit 69faf9a9 authored by sletz's avatar sletz
Browse files

Fix some assert in Linux drivers.

git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@2750 0c269be4-1314-0410-8aa9-9f06e86f4224
parent a51add6c
......@@ -2134,8 +2134,8 @@ int JackAlsaDriver::Attach()
char name[JACK_CLIENT_NAME_SIZE + JACK_PORT_NAME_SIZE];
char alias[JACK_CLIENT_NAME_SIZE + JACK_PORT_NAME_SIZE];
assert(fCaptureChannels < PORT_NUM);
assert(fPlaybackChannels < PORT_NUM);
assert(fCaptureChannels < DRIVER_PORT_NUM);
assert(fPlaybackChannels < DRIVER_PORT_NUM);
port_flags = JackPortIsOutput | JackPortIsPhysical | JackPortIsTerminal;
......
......@@ -639,8 +639,8 @@ int JackFFADODriver::Attach()
}
}
assert(fCaptureChannels < PORT_NUM);
assert(fPlaybackChannels < PORT_NUM);
assert(fCaptureChannels < DRIVER_PORT_NUM);
assert(fPlaybackChannels < DRIVER_PORT_NUM);
if (ffado_streaming_prepare(driver->dev)) {
printError("Could not prepare streaming device!");
......
......@@ -786,8 +786,8 @@ int JackFreebobDriver::Attach()
fCaptureChannels = driver->capture_nchannels_audio;
fPlaybackChannels = driver->playback_nchannels_audio;
assert(fCaptureChannels < PORT_NUM);
assert(fPlaybackChannels < PORT_NUM);
assert(fCaptureChannels < DRIVER_PORT_NUM);
assert(fPlaybackChannels < DRIVER_PORT_NUM);
// this makes no sense...
assert(fCaptureChannels + fPlaybackChannels > 0);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment