Re: [Jack-Devel] Problems with audioadapter used with capture only interface

PrevNext  Index
DateSun, 29 Dec 2013 11:43:13 +0100
From Wojciech Zabolotny <[hidden] at gmail dot com>
ToJACK Developers <[hidden] at jackaudio dot org>
In-Reply-ToWojciech Zabolotny [Jack-Devel] Problems with audioadapter used with capture only interface
Follow-UpWojciech Zabolotny Re: [Jack-Devel] Problems with audioadapter used with capture only interface
Follow-UpJeremy Jongepier Re: [Jack-Devel] Problems with audioadapter used with capture only interface
What worked for me, was (in three different consoles of the embedded system):
# jackd -r -dnet -i -C0 -P1
# alsa_in -d hw:0,1 -r48000 -p256 -n3
# jack_connect alsa_in:capture_1 system:playback_1
however then I had some problems with xruns/latency

Is such solution acceptable as a substitute of not working audioadapter?
Can I expect that with fixed audioadapter I should be able to reach lower
latency and less risk of xrun?


On Sun, Dec 29, 2013 at 1:27 AM, Wojciech Zabolotny <[hidden]> wrote:
> Hi,
>
> I wanted to use jack2 with an embedded system equipped with capture
> only interface.
> I can start the server with the net backend:
>
> # jackd -r -dnet  -C0 -P1
> jackdmp 1.9.10
> Copyright 2001-2005 Paul Davis and others.
> Copyright 2004-2013 Grame.
> jackdmp comes with ABSOLUTELY NO WARRANTY
> This is free software, and you are welcome to redistribute it
> under certain conditions; see the file COPYING for details
> JACK server starting in non-realtime mode
> NetDriver started in async mode without Master's transport sync.
> Waiting for a master...
> Initializing connection with WZlap...
> **************** Network parameters ****************
> Name : buildroot
> Protocol revision : 7
> MTU : 1500
> Master name : WZlap
> Slave name : buildroot
> ID : 26
> Transport Sync : no
> Send channels (audio - midi) : 0 - 0
> Return channels (audio - midi) : 1 - 0
> Sample rate : 48000 frames per second
> Period size : 256 frames per period
> Network latency : 5 cycles
> SampleEncoder : Float
> Slave mode : async
> ****************************************************
>
> However, when I try to load the audioadapter i get:
>
> # jack_load audioadapter -i "-C hw:0,1 -r48000 -p256 -n3 "
> could not load audioadapter, intclient = 0 status = 0x 1
>
> and the server displays:
> Ringbuffer automatic adaptative mode size = 4096 frames
> ../linux/alsa/JackAlsaAdapter.h:226, alsa error -2 : No such file or directory
>
> I have checked the line ../linux/alsa/JackAlsaAdapter.h:226 and found,
> that the "open" function defined here ALWAYS tries to open the
> soundcard both as capture and playback device.
>
> How can I patch this function so that the playback part is attemted to
> open only if the audiodapter is loaded for playback or both for
> capture and playback?
>
> Probably people wanting to use audioadapter with playback only devices
> will face the similar problem...
>
>
> --
> TIA & Reagrds,
> Wojciech M. Zabołotny
> My GPG/PGP keys:
> standard: B191 ACF0 7909 83FA 3F9B  450C 407E 3C4B 4569 D119
> confidential: 2BF3 F90F 6EA8 7D35 59FD  5080 78ED 33DE 1312 D8F8



-- 
Wojciech M. Zabołotny
My GPG/PGP keys:
standard: B191 ACF0 7909 83FA 3F9B  450C 407E 3C4B 4569 D119
confidential: 2BF3 F90F 6EA8 7D35 59FD  5080 78ED 33DE 1312 D8F8
PrevNext  Index

1388313809.5598_0.ltw:2, <CAMduVEe=oium-5a+6Lb+bw4HHRDKpgQ0Ro-6Ct1Co-ywbs6kSg at mail dot gmail dot com>