[alsa-devel] Cannot combine audio devices with more than 64 channels

Jörg Müller joerg.mueller7744 at gmail.com
Wed Feb 8 18:22:16 CET 2017


In common/JackConstants.h, there is the line:
#define DRIVER_PORT_NUM 256
(https://github.com/jackaudio/jack2/blob/master/common/JackConstants.h#L53)

in linux/alsa/JackAlsaDriver.cpp, there are the lines throwing the error:
assert(fCaptureChannels < DRIVER_PORT_NUM);
assert(fPlaybackChannels < DRIVER_PORT_NUM);
(https://github.com/jackaudio/jack2/blob/master/linux/alsa/JackAlsaDriver.cpp#L122-L123)

They both compare against DRIVER_PORT_NUM, which always caps them at
256 since its a constant. So the problem may be there?

2017-02-08 17:31 GMT+01:00 John Rigg <aldev2 at jrigg.co.uk>:
> On Wed, Feb 08, 2017 at 04:20:12PM +0000, John Rigg wrote:
>> In jack2/common/JackGlobals.h it has the following:
>> #ifndefine PORT_NUM_MAX
>> #define PORT_NUM_MAX 4096
>> #endif
>>
>
> Sorry, that should be JackConstants.h
>
> John

2017-02-08 17:31 GMT+01:00 John Rigg <aldev2 at jrigg.co.uk>:
> On Wed, Feb 08, 2017 at 04:20:12PM +0000, John Rigg wrote:
>> In jack2/common/JackGlobals.h it has the following:
>> #ifndefine PORT_NUM_MAX
>> #define PORT_NUM_MAX 4096
>> #endif
>>
>
> Sorry, that should be JackConstants.h
>
> John


More information about the Alsa-devel mailing list