public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] Poor mans audio in the world of the great Jack D.
@ 2015-05-18 17:54 Meino.Cramer
  2015-05-18 18:39 ` Emanuele Rusconi
  2015-05-19  0:26 ` [gentoo-user] " James
  0 siblings, 2 replies; 16+ messages in thread
From: Meino.Cramer @ 2015-05-18 17:54 UTC (permalink / raw
  To: Gentoo

Hi,

From time to time I come across software, which directly wants
to talks to good ole' alsa and get kicked by Sensei Jack D. for accessing
a device, which already is occupied by him...

Is there any way to go or any software to install which enables me to use
Jack D.'ed software and alsa-acessing without shutting down and
restarting that grandmaster Jack D. ?

Thanks a lot for any Koan, which will light up my darkened ears!
Best regards,
Meino




^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [gentoo-user] Poor mans audio in the world of the great Jack D.
  2015-05-18 17:54 [gentoo-user] Poor mans audio in the world of the great Jack D Meino.Cramer
@ 2015-05-18 18:39 ` Emanuele Rusconi
  2015-05-19 15:24   ` Meino.Cramer
  2015-05-19  0:26 ` [gentoo-user] " James
  1 sibling, 1 reply; 16+ messages in thread
From: Emanuele Rusconi @ 2015-05-18 18:39 UTC (permalink / raw
  To: gentoo-user

On 18 May 2015 at 19:54, <Meino.Cramer@gmx.de> wrote:
>
> Hi,
>
> From time to time I come across software, which directly wants
> to talks to good ole' alsa and get kicked by Sensei Jack D. for accessing
> a device, which already is occupied by him...
>
> Is there any way to go or any software to install which enables me to use
> Jack D.'ed software and alsa-acessing without shutting down and
> restarting that grandmaster Jack D. ?
>
> Thanks a lot for any Koan, which will light up my darkened ears!
> Best regards,
> Meino
>
>
>

And so the wise ~/.asoundrc thus spake:


## http://jackaudio.org/faq/routing_alsa.html
## http://www.alsa-project.org/main/index.php/Asoundrc
pcm.jackplug {
        type plug
        slave { pcm "rawjack" }
        hint { description "JACK Audio Connection Kit" }
}
pcm.rawjack {
        type jack
        playback_ports {
                0 system:playback_1
                1 system:playback_2
        }
        capture_ports {
                0 system:capture_1
                1 system:capture_2
        }
}


-- Emanuele Rusconi


^ permalink raw reply	[flat|nested] 16+ messages in thread

* [gentoo-user] Re: Poor mans audio in the world of the great Jack D.
  2015-05-18 17:54 [gentoo-user] Poor mans audio in the world of the great Jack D Meino.Cramer
  2015-05-18 18:39 ` Emanuele Rusconi
@ 2015-05-19  0:26 ` James
  2015-05-19 15:29   ` Meino.Cramer
  1 sibling, 1 reply; 16+ messages in thread
From: James @ 2015-05-19  0:26 UTC (permalink / raw
  To: gentoo-user

 <Meino.Cramer <at> gmx.de> writes:


> From time to time I come across software, which directly wants
> to talks to good ole' alsa and get kicked by Sensei Jack D. for accessing
> a device, which already is occupied by him...

Well, this is a different question depending if you are asking for a
gentoo workstation/server or one of your 'embedded' gentoo boards....?


> Is there any way to go or any software to install which enables me to use
> Jack D.'ed software and alsa-acessing without shutting down and
> restarting that grandmaster Jack D. ?


I ran across this qt 'audio app' some time ago but have yet to download it
and see what it can do. *maybe* it'll fill the need you have?

 media-sound/qjackctl    http://qjackctl.sourceforge.net/


> Meino

hth,
James






^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [gentoo-user] Poor mans audio in the world of the great Jack D.
  2015-05-18 18:39 ` Emanuele Rusconi
@ 2015-05-19 15:24   ` Meino.Cramer
  2015-05-20  9:12     ` Emanuele Rusconi
  0 siblings, 1 reply; 16+ messages in thread
From: Meino.Cramer @ 2015-05-19 15:24 UTC (permalink / raw
  To: gentoo-user

Emanuele Rusconi <emarsk@gmail.com> [15-05-19 03:01]:
> On 18 May 2015 at 19:54, <Meino.Cramer@gmx.de> wrote:
> >
> > Hi,
> >
> > From time to time I come across software, which directly wants
> > to talks to good ole' alsa and get kicked by Sensei Jack D. for accessing
> > a device, which already is occupied by him...
> >
> > Is there any way to go or any software to install which enables me to use
> > Jack D.'ed software and alsa-acessing without shutting down and
> > restarting that grandmaster Jack D. ?
> >
> > Thanks a lot for any Koan, which will light up my darkened ears!
> > Best regards,
> > Meino
> >
> >
> >
> 
> And so the wise ~/.asoundrc thus spake:
> 
> 
> ## http://jackaudio.org/faq/routing_alsa.html
> ## http://www.alsa-project.org/main/index.php/Asoundrc
> pcm.jackplug {
>         type plug
>         slave { pcm "rawjack" }
>         hint { description "JACK Audio Connection Kit" }
> }
> pcm.rawjack {
>         type jack
>         playback_ports {
>                 0 system:playback_1
>                 1 system:playback_2
>         }
>         capture_ports {
>                 0 system:capture_1
>                 1 system:capture_2
>         }
> }
> 
> 
> -- Emanuele Rusconi
> 


Wise the words may sound and nice to hear.
But the shell spake

#>qsstv
using visual class 4, id 2b
hijackWindow() context created for QSplashScreen(0x7ffecb5760c0) 1 
Created Window Surface FBO QSize(736, 330) with samples 8 
Card  0 name:  HDA ATI SB 
Card  1 name:  HDA NVidia 
Card  2 name:  HDA NVidia 
ALSA lib /var/tmp/portage/media-libs/alsa-lib-1.0.28/work/alsa-lib-1.0.28/src/pcm/pcm_dmix.c:1022:(snd_pcm_dmix_open) unable to open slave
"Unable to open default: Device or resource busy" 
hijackWindow() context created for mainWindow(0x1820730, name = "MainWindow") 1 
Created Window Surface FBO QSize(897, 530) with samples 8 

The master control program (qsstv) raises its shield against Tron, displaying 
"Sound card error: Device or resource busy."

And silence was the only voice heard by the folks...
And nothing was displayed anymore.








^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [gentoo-user] Re: Poor mans audio in the world of the great Jack D.
  2015-05-19  0:26 ` [gentoo-user] " James
@ 2015-05-19 15:29   ` Meino.Cramer
  2015-05-19 18:03     ` James
  0 siblings, 1 reply; 16+ messages in thread
From: Meino.Cramer @ 2015-05-19 15:29 UTC (permalink / raw
  To: gentoo-user

James <wireless@tampabay.rr.com> [15-05-19 03:02]:
>  <Meino.Cramer <at> gmx.de> writes:
> 
> 
> > From time to time I come across software, which directly wants
> > to talks to good ole' alsa and get kicked by Sensei Jack D. for accessing
> > a device, which already is occupied by him...
> 
> Well, this is a different question depending if you are asking for a
> gentoo workstation/server or one of your 'embedded' gentoo boards....?
> 
> 
> > Is there any way to go or any software to install which enables me to use
> > Jack D.'ed software and alsa-acessing without shutting down and
> > restarting that grandmaster Jack D. ?
> 
> 
> I ran across this qt 'audio app' some time ago but have yet to download it
> and see what it can do. *maybe* it'll fill the need you have?
> 
>  media-sound/qjackctl    http://qjackctl.sourceforge.net/
> 
> 
> > Meino
> 
> hth,
> James
> 

And master James moved slightly and asked a simply question.
Suddenly the novice was enlighted.
He answers "It is used for my PC." And after a while he added:
"I want to decode sstv and weather fax."
And in the distant a little radio whispers
"Di da da di di da da da di da di di".
And the fog raises and everything becomes clear as it was in
the beginning.




^ permalink raw reply	[flat|nested] 16+ messages in thread

* [gentoo-user] Re: Poor mans audio in the world of the great Jack D.
  2015-05-19 15:29   ` Meino.Cramer
@ 2015-05-19 18:03     ` James
  0 siblings, 0 replies; 16+ messages in thread
From: James @ 2015-05-19 18:03 UTC (permalink / raw
  To: gentoo-user

 <Meino.Cramer <at> gmx.de> writes:


> >  media-sound/qjackctl    http://qjackctl.sourceforge.net/

> And master James moved slightly and asked a simply question.
> Suddenly the novice was enlighted.
> He answers "It is used for my PC." And after a while he added:
> "I want to decode sstv and weather fax."

SSTV? really?  now you are just teasing an old (EE) fart?
That's a real application, it just hard to keep the sync bit stable.....


> And in the distant a little radio whispers
> "Di da da di di da da da di da di di".

Once (in my youth) I dated a young, friendly lass, named 'Candy Morse'
do da da do da da..............!


> And the fog raises and everything becomes clear as it was in
> the beginning.

This is unknown to me; but you might find help if you get sstv audio
signals parsed out of your serial line signal, if I am to speculate
what you are really after? You may need a spectrum analyzer to identify
and isolate the audio signal since the signal is a superposition
(hybrid) signal. It might be best to filter the audio signal out
in the Rf domain, as opposed to it's digital derivative signal.

http://users.belgacom.net/hamradio/index.htm

under software he has rx-sstv for windoz. Get it working under doz
and then hunt for a linux setup, using windows to verify it
all works (hardware wise) first, is one possible path.

Also : http://www.dxatlas.com/SstvTools/

and in portage (just to be complete)  media-radio/qsstv

Also verify the chipsets used (dongle?) and their reliability at various
frequencies. Those chipssets that are wideband, are always problematic,
imho........ Most of the crap (dongles) floating around are not very good.
Me, I'd go to the trouble to find a new chipset, including filters and
LNAs (low noise amplifiers) to build a decoder box. You could probably
sell them. If you go that route, drop to me privately.

Dowload PDF - Image Communication on Short Waves
www.sstv-handbook.com/download/sstv_04.pdf


good hunting!
James






^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [gentoo-user] Poor mans audio in the world of the great Jack D.
  2015-05-19 15:24   ` Meino.Cramer
@ 2015-05-20  9:12     ` Emanuele Rusconi
  2015-05-20 16:23       ` Meino.Cramer
  0 siblings, 1 reply; 16+ messages in thread
From: Emanuele Rusconi @ 2015-05-20  9:12 UTC (permalink / raw
  To: gentoo-user

On 19 May 2015 at 17:24,  <Meino.Cramer@gmx.de> wrote:
>
> The master control program (qsstv) raises its shield against Tron, displaying
> "Sound card error: Device or resource busy."
>
> And silence was the only voice heard by the folks...
> And nothing was displayed anymore.

Oops, I forgot the last line of my koan:

pcm.!default { type plug; slave { pcm "rawjack" } }

-- Emanuele Rusconi


^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [gentoo-user] Poor mans audio in the world of the great Jack D.
  2015-05-20  9:12     ` Emanuele Rusconi
@ 2015-05-20 16:23       ` Meino.Cramer
  2015-05-20 17:28         ` Emanuele Rusconi
  2015-05-21  2:59         ` Bruce Schultz
  0 siblings, 2 replies; 16+ messages in thread
From: Meino.Cramer @ 2015-05-20 16:23 UTC (permalink / raw
  To: gentoo-user

Emanuele Rusconi <emarsk@gmail.com> [15-05-20 17:36]:
> On 19 May 2015 at 17:24,  <Meino.Cramer@gmx.de> wrote:
> >
> > The master control program (qsstv) raises its shield against Tron, displaying
> > "Sound card error: Device or resource busy."
> >
> > And silence was the only voice heard by the folks...
> > And nothing was displayed anymore.
> 
> Oops, I forgot the last line of my koan:
> 
> pcm.!default { type plug; slave { pcm "rawjack" } }
> 
> -- Emanuele Rusconi
> 

...and confusion reaches the head of great Jack D. and
from his mouth the words were heard:

#>sudo /etc/init.d/jackd restart
 * Starting JACK Daemon ...
 * JACK daemon can't be started! Check logfile: /var/log/jackd.log                                    [ !! ]
 * ERROR: jackd failed to start
[1]    6210 exit 1     sudo /etc/init.d/jackd restart

...but none of his words, which were good and wise in the past, were
written down for those who came after him:

#>ls -l /var/log/jackd.log
-rw-r--r-- 1 root root 0 2015-05-20 18:18 /var/log/jackd.log

And the children - left alone in the dark of this ancient machine -
stared into the empty LED eyes of their grandmaster not knowing
to where to go and whether to flee or stand still...

"Help - Oh help us brotheren of the Gentoo! Help!"
they cried.










^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [gentoo-user] Poor mans audio in the world of the great Jack D.
  2015-05-20 16:23       ` Meino.Cramer
@ 2015-05-20 17:28         ` Emanuele Rusconi
  2015-05-20 17:49           ` Meino.Cramer
  2015-05-21  2:59         ` Bruce Schultz
  1 sibling, 1 reply; 16+ messages in thread
From: Emanuele Rusconi @ 2015-05-20 17:28 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 1111 bytes --]

On 20 May 2015 at 18:23, <Meino.Cramer@gmx.de> wrote:

> ...and confusion reaches the head of great Jack D. and
> from his mouth the words were heard:
>
> #>sudo /etc/init.d/jackd restart
>  * Starting JACK Daemon ...
>  * JACK daemon can't be started! Check logfile: /var/log/jackd.log
>                             [ !! ]
>  * ERROR: jackd failed to start
> [1]    6210 exit 1     sudo /etc/init.d/jackd restart
>
> ...but none of his words, which were good and wise in the past, were
> written down for those who came after him:
>
> #>ls -l /var/log/jackd.log
> -rw-r--r-- 1 root root 0 2015-05-20 18:18 /var/log/jackd.log
>
> And the children - left alone in the dark of this ancient machine -
> stared into the empty LED eyes of their grandmaster not knowing
> to where to go and whether to flee or stand still...
>
> "Help - Oh help us brotheren of the Gentoo! Help!"
> they cried.
>

How does the ancient seer answer to this cunning riddle?
# sudo lsof /dev/snd/*

From the answer of the oracle we will know where our fate lies,
if the whimsical God of Knowledge will smile upon us.

-- Emanuele Rusconi

[-- Attachment #2: Type: text/html, Size: 1769 bytes --]

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [gentoo-user] Poor mans audio in the world of the great Jack D.
  2015-05-20 17:28         ` Emanuele Rusconi
@ 2015-05-20 17:49           ` Meino.Cramer
  2015-05-20 18:59             ` Emanuele Rusconi
  0 siblings, 1 reply; 16+ messages in thread
From: Meino.Cramer @ 2015-05-20 17:49 UTC (permalink / raw
  To: gentoo-user

Emanuele Rusconi <emarsk@gmail.com> [15-05-20 19:36]:
> On 20 May 2015 at 18:23, <Meino.Cramer@gmx.de> wrote:
> 
> > ...and confusion reaches the head of great Jack D. and
> > from his mouth the words were heard:
> >
> > #>sudo /etc/init.d/jackd restart
> >  * Starting JACK Daemon ...
> >  * JACK daemon can't be started! Check logfile: /var/log/jackd.log
> >                             [ !! ]
> >  * ERROR: jackd failed to start
> > [1]    6210 exit 1     sudo /etc/init.d/jackd restart
> >
> > ...but none of his words, which were good and wise in the past, were
> > written down for those who came after him:
> >
> > #>ls -l /var/log/jackd.log
> > -rw-r--r-- 1 root root 0 2015-05-20 18:18 /var/log/jackd.log
> >
> > And the children - left alone in the dark of this ancient machine -
> > stared into the empty LED eyes of their grandmaster not knowing
> > to where to go and whether to flee or stand still...
> >
> > "Help - Oh help us brotheren of the Gentoo! Help!"
> > they cried.
> >
> 
> How does the ancient seer answer to this cunning riddle?
> # sudo lsof /dev/snd/*
> 
> From the answer of the oracle we will know where our fate lies,
> if the whimsical God of Knowledge will smile upon us.
> 
> -- Emanuele Rusconi


(it become really fun to create Koans from problems! Nice 
and positive way to walk down the way to the solution...<grin)

While it was calm and silent on the surface of the system and
the spirit of nothing moves across the face of the tasklist,
the ancient seer spake
lsof /dev/snd/*

and an echo from the far answered:
/root>lsof /dev/snd/*
COMMAND    PID     USER   FD   TYPE DEVICE SIZE/OFF NODE NAME
volumeico 4231 mccramer    8u   CHR  116,2      0t0 4554 /dev/snd/controlC0
jackd     6539 mccramer  mem    CHR  116,3          4555 /dev/snd/pcmC0D0p
jackd     6539 mccramer  mem    CHR  116,4          4556 /dev/snd/pcmC0D0c
jackd     6539 mccramer    8u   CHR  116,2      0t0 4554 /dev/snd/controlC0
jackd     6539 mccramer   10u   CHR  116,3      0t0 4555 /dev/snd/pcmC0D0p
jackd     6539 mccramer   11u   CHR  116,4      0t0 4556 /dev/snd/pcmC0D0c
jackd     6539 mccramer   12u   CHR  116,1      0t0 2052 /dev/snd/seq
[1]    15019 exit 1     lsof /dev/snd/*

And again the great Jack D. displays its mighty so that all follows
him and no one and nothing leads him.

A lone voice in system he is...






^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [gentoo-user] Poor mans audio in the world of the great Jack D.
  2015-05-20 17:49           ` Meino.Cramer
@ 2015-05-20 18:59             ` Emanuele Rusconi
  2015-05-21  2:08               ` Meino.Cramer
  2015-05-21  2:17               ` Meino.Cramer
  0 siblings, 2 replies; 16+ messages in thread
From: Emanuele Rusconi @ 2015-05-20 18:59 UTC (permalink / raw
  To: gentoo-user

On 20 May 2015 at 19:49, <Meino.Cramer@gmx.de> wrote:
> (it become really fun to create Koans from problems! Nice
> and positive way to walk down the way to the solution...<grin)

:) I'm afraid my English is not quite up to the task, but it's fun to try.


> While it was calm and silent on the surface of the system and
> the spirit of nothing moves across the face of the tasklist,
> the ancient seer spake
> lsof /dev/snd/*
>
> and an echo from the far answered:
> /root>lsof /dev/snd/*
> COMMAND    PID     USER   FD   TYPE DEVICE SIZE/OFF NODE NAME
> volumeico 4231 mccramer    8u   CHR  116,2      0t0 4554 /dev/snd/controlC0
> jackd     6539 mccramer  mem    CHR  116,3          4555 /dev/snd/pcmC0D0p
> jackd     6539 mccramer  mem    CHR  116,4          4556 /dev/snd/pcmC0D0c
> jackd     6539 mccramer    8u   CHR  116,2      0t0 4554 /dev/snd/controlC0
> jackd     6539 mccramer   10u   CHR  116,3      0t0 4555 /dev/snd/pcmC0D0p
> jackd     6539 mccramer   11u   CHR  116,4      0t0 4556 /dev/snd/pcmC0D0c
> jackd     6539 mccramer   12u   CHR  116,1      0t0 2052 /dev/snd/seq
> [1]    15019 exit 1     lsof /dev/snd/*
>
> And again the great Jack D. displays its mighty so that all follows
> him and no one and nothing leads him.
>
> A lone voice in system he is...

It seem so, that no cunning foe is stealing the resource, for the
great Jack D.'s voice to be heard.

So the humble scholar found another word of hope, buried deep within
the arcane tomes:
for the .asoundrc spell, for the rite to be complete
that will allow the foreigners to be heard by Jack D.,
the caster needs an artifact, a mystic scroll from the Great Library,
and that scroll is named /usr/lib/alsa-lib/libasound_module_pcm_jack.so
and can be summoned with the magic words:
# sudo USE="jack" emerge -av media-plugins/alsa-plugins

-- Emanuele Rusconi


^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [gentoo-user] Poor mans audio in the world of the great Jack D.
  2015-05-20 18:59             ` Emanuele Rusconi
@ 2015-05-21  2:08               ` Meino.Cramer
  2015-05-21  2:17               ` Meino.Cramer
  1 sibling, 0 replies; 16+ messages in thread
From: Meino.Cramer @ 2015-05-21  2:08 UTC (permalink / raw
  To: gentoo-user

Emanuele Rusconi <emarsk@gmail.com> [15-05-21 03:08]:
> On 20 May 2015 at 19:49, <Meino.Cramer@gmx.de> wrote:
> > (it become really fun to create Koans from problems! Nice
> > and positive way to walk down the way to the solution...<grin)
> 
> :) I'm afraid my English is not quite up to the task, but it's fun to try.
> 
> 
> > While it was calm and silent on the surface of the system and
> > the spirit of nothing moves across the face of the tasklist,
> > the ancient seer spake
> > lsof /dev/snd/*
> >
> > and an echo from the far answered:
> > /root>lsof /dev/snd/*
> > COMMAND    PID     USER   FD   TYPE DEVICE SIZE/OFF NODE NAME
> > volumeico 4231 mccramer    8u   CHR  116,2      0t0 4554 /dev/snd/controlC0
> > jackd     6539 mccramer  mem    CHR  116,3          4555 /dev/snd/pcmC0D0p
> > jackd     6539 mccramer  mem    CHR  116,4          4556 /dev/snd/pcmC0D0c
> > jackd     6539 mccramer    8u   CHR  116,2      0t0 4554 /dev/snd/controlC0
> > jackd     6539 mccramer   10u   CHR  116,3      0t0 4555 /dev/snd/pcmC0D0p
> > jackd     6539 mccramer   11u   CHR  116,4      0t0 4556 /dev/snd/pcmC0D0c
> > jackd     6539 mccramer   12u   CHR  116,1      0t0 2052 /dev/snd/seq
> > [1]    15019 exit 1     lsof /dev/snd/*
> >
> > And again the great Jack D. displays its mighty so that all follows
> > him and no one and nothing leads him.
> >
> > A lone voice in system he is...
> 
> It seem so, that no cunning foe is stealing the resource, for the
> great Jack D.'s voice to be heard.
> 
> So the humble scholar found another word of hope, buried deep within
> the arcane tomes:
> for the .asoundrc spell, for the rite to be complete
> that will allow the foreigners to be heard by Jack D.,
> the caster needs an artifact, a mystic scroll from the Great Library,
> and that scroll is named /usr/lib/alsa-lib/libasound_module_pcm_jack.so
> and can be summoned with the magic words:
> # sudo USE="jack" emerge -av media-plugins/alsa-plugins
> 
> -- Emanuele Rusconi
> 

:)

And Gentoo folks they are and followed their prophet Emanuele in doing
so and finally found what he was telling them to be found in the great
system.
And the great system shouted out:

[I] media-plugins/alsa-plugins
     Available versions:  1.0.27-r1 ~1.0.27-r3 1.0.28 ~1.0.29 {debug ffmpeg jack libsamplerate pulseaudio speex ABI_MIPS="n32 n64 o32" ABI_PPC="32 64" ABI_S390="32 64" ABI_X86="32 64 x32"}
     Installed versions:  1.0.28(19:27:03 04/16/15)(ffmpeg jack libsamplerate speex -debug -pulseaudio ABI_MIPS="-n32 -n64 -o32" ABI_PPC="-32 -64" ABI_S390="-32 -64" ABI_X86="64 -32 -x32")
     Homepage:            http://www.alsa-project.org/
     Description:         ALSA extra plugins

#>locate libasound_module_pcm_jack.so
/usr/lib64/alsa-lib/libasound_module_pcm_jack.so
/usr/lib64/debug/usr/lib64/alsa-lib/libasound_module_pcm_jack.so.debug

But still the great Jack D. keeps its mouth shut and forbid to talk
with alsa tongues.

So the Gentoo folks asked themselves: Does the great system knows
about the alsa-plugins being part of it? Or does the great systems
need even more things to be told?





^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [gentoo-user] Poor mans audio in the world of the great Jack D.
  2015-05-20 18:59             ` Emanuele Rusconi
  2015-05-21  2:08               ` Meino.Cramer
@ 2015-05-21  2:17               ` Meino.Cramer
  1 sibling, 0 replies; 16+ messages in thread
From: Meino.Cramer @ 2015-05-21  2:17 UTC (permalink / raw
  To: gentoo-user

Emanuele Rusconi <emarsk@gmail.com> [15-05-21 03:08]:
> On 20 May 2015 at 19:49, <Meino.Cramer@gmx.de> wrote:
> > (it become really fun to create Koans from problems! Nice
> > and positive way to walk down the way to the solution...<grin)
> 
> :) I'm afraid my English is not quite up to the task, but it's fun to try.
> 
> 
> > While it was calm and silent on the surface of the system and
> > the spirit of nothing moves across the face of the tasklist,
> > the ancient seer spake
> > lsof /dev/snd/*
> >
> > and an echo from the far answered:
> > /root>lsof /dev/snd/*
> > COMMAND    PID     USER   FD   TYPE DEVICE SIZE/OFF NODE NAME
> > volumeico 4231 mccramer    8u   CHR  116,2      0t0 4554 /dev/snd/controlC0
> > jackd     6539 mccramer  mem    CHR  116,3          4555 /dev/snd/pcmC0D0p
> > jackd     6539 mccramer  mem    CHR  116,4          4556 /dev/snd/pcmC0D0c
> > jackd     6539 mccramer    8u   CHR  116,2      0t0 4554 /dev/snd/controlC0
> > jackd     6539 mccramer   10u   CHR  116,3      0t0 4555 /dev/snd/pcmC0D0p
> > jackd     6539 mccramer   11u   CHR  116,4      0t0 4556 /dev/snd/pcmC0D0c
> > jackd     6539 mccramer   12u   CHR  116,1      0t0 2052 /dev/snd/seq
> > [1]    15019 exit 1     lsof /dev/snd/*
> >
> > And again the great Jack D. displays its mighty so that all follows
> > him and no one and nothing leads him.
> >
> > A lone voice in system he is...
> 
> It seem so, that no cunning foe is stealing the resource, for the
> great Jack D.'s voice to be heard.
> 
> So the humble scholar found another word of hope, buried deep within
> the arcane tomes:
> for the .asoundrc spell, for the rite to be complete
> that will allow the foreigners to be heard by Jack D.,
> the caster needs an artifact, a mystic scroll from the Great Library,
> and that scroll is named /usr/lib/alsa-lib/libasound_module_pcm_jack.so
> and can be summoned with the magic words:
> # sudo USE="jack" emerge -av media-plugins/alsa-plugins
> 
> -- Emanuele Rusconi
> 

After rereading the wise words of the prophet who is Emanuele the
simple Gentoo folks a } was missing in their transcript of the
pergamentum.

And after correcting their unholy fault, great Jack D. was so merciful
to read and uynderstand their pergamentum.

Nonetheless great Jack D. does not talk with people of the alsa tribe.

-- Meino 


^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [gentoo-user] Poor mans audio in the world of the great Jack D.
  2015-05-20 16:23       ` Meino.Cramer
  2015-05-20 17:28         ` Emanuele Rusconi
@ 2015-05-21  2:59         ` Bruce Schultz
  2015-05-21  3:18           ` Bruce Schultz
  1 sibling, 1 reply; 16+ messages in thread
From: Bruce Schultz @ 2015-05-21  2:59 UTC (permalink / raw
  To: gentoo-user, Meino.Cramer

On 21 May 2015 2:23:54 AM AEST, Meino.Cramer@gmx.de wrote:
>Emanuele Rusconi <emarsk@gmail.com> [15-05-20 17:36]:
>> On 19 May 2015 at 17:24,  <Meino.Cramer@gmx.de> wrote:
>> >
>> > The master control program (qsstv) raises its shield against Tron,
>displaying
>> > "Sound card error: Device or resource busy."
>> >
>> > And silence was the only voice heard by the folks...
>> > And nothing was displayed anymore.
>> 
>> Oops, I forgot the last line of my koan:
>> 
>> pcm.!default { type plug; slave { pcm "rawjack" } }
>> 
>> -- Emanuele Rusconi
>> 
>
>...and confusion reaches the head of great Jack D. and
>from his mouth the words were heard:
>
>#>sudo /etc/init.d/jackd restart
> * Starting JACK Daemon ...
>* JACK daemon can't be started! Check logfile: /var/log/jackd.log      
>                             [ !! ]
> * ERROR: jackd failed to start
>[1]    6210 exit 1     sudo /etc/init.d/jackd restart
>
>...but none of his words, which were good and wise in the past, were
>written down for those who came after him:
>
>#>ls -l /var/log/jackd.log
>-rw-r--r-- 1 root root 0 2015-05-20 18:18 /var/log/jackd.log
>
>And the children - left alone in the dark of this ancient machine -
>stared into the empty LED eyes of their grandmaster not knowing
>to where to go and whether to flee or stand still...
>
>"Help - Oh help us brotheren of the Gentoo! Help!"
>they cried.

Perhaps the great Jack D. Is talking to itself?

The pcm.!default line says: when opening alsa, connect to rawjack

The earlier .asoundrc says: when opening alsa rawjack, direct the connection to the great Jack D.

If the jackd connects to the default alsa output, aka rawjack, coult it be tripping itself up? Is there maybe a jack option to direct the alsa output to the sound hardware instead?



-- 
:B


^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [gentoo-user] Poor mans audio in the world of the great Jack D.
  2015-05-21  2:59         ` Bruce Schultz
@ 2015-05-21  3:18           ` Bruce Schultz
  2015-05-22  8:00             ` Emanuele Rusconi
  0 siblings, 1 reply; 16+ messages in thread
From: Bruce Schultz @ 2015-05-21  3:18 UTC (permalink / raw
  To: gentoo-user, Meino.Cramer

[-- Attachment #1: Type: text/plain, Size: 2684 bytes --]

On Thu, May 21, 2015 at 12:59 PM, Bruce Schultz <brulzki@gmail.com> wrote:

> On 21 May 2015 2:23:54 AM AEST, Meino.Cramer@gmx.de wrote:
> >Emanuele Rusconi <emarsk@gmail.com> [15-05-20 17:36]:
> >> On 19 May 2015 at 17:24,  <Meino.Cramer@gmx.de> wrote:
> >> >
> >> > The master control program (qsstv) raises its shield against Tron,
> >displaying
> >> > "Sound card error: Device or resource busy."
> >> >
> >> > And silence was the only voice heard by the folks...
> >> > And nothing was displayed anymore.
> >>
> >> Oops, I forgot the last line of my koan:
> >>
> >> pcm.!default { type plug; slave { pcm "rawjack" } }
> >>
> >> -- Emanuele Rusconi
> >>
> >
> >...and confusion reaches the head of great Jack D. and
> >from his mouth the words were heard:
> >
> >#>sudo /etc/init.d/jackd restart
> > * Starting JACK Daemon ...
> >* JACK daemon can't be started! Check logfile: /var/log/jackd.log
> >                             [ !! ]
> > * ERROR: jackd failed to start
> >[1]    6210 exit 1     sudo /etc/init.d/jackd restart
> >
> >...but none of his words, which were good and wise in the past, were
> >written down for those who came after him:
> >
> >#>ls -l /var/log/jackd.log
> >-rw-r--r-- 1 root root 0 2015-05-20 18:18 /var/log/jackd.log
> >
> >And the children - left alone in the dark of this ancient machine -
> >stared into the empty LED eyes of their grandmaster not knowing
> >to where to go and whether to flee or stand still...
> >
> >"Help - Oh help us brotheren of the Gentoo! Help!"
> >they cried.
>
> Perhaps the great Jack D. Is talking to itself?
>
> The pcm.!default line says: when opening alsa, connect to rawjack
>
> The earlier .asoundrc says: when opening alsa rawjack, direct the
> connection to the great Jack D.
>
> If the jackd connects to the default alsa output, aka rawjack, coult it be
> tripping itself up? Is there maybe a jack option to direct the alsa output
> to the sound hardware instead?
>
>
> Looks like I'm off on the wrong track... by default, jack connects to the
hw:0 alsa device, which is the sound hardware.

This page has another example of asoundrc config which might work better
for you.
https://wiki.archlinux.org/index.php/JACK_Audio_Connection_Kit
(search for "Playing nice with ALSA")

The config file contents is:

# convert alsa API over jack API
# use it with
# % aplay foo.wav

# use this as default
pcm.!default {
    type plug
    slave { pcm "jack" }
}

ctl.mixer0 {
    type hw
    card 1
}

# pcm type jack
pcm.jack {
    type jack
    playback_ports {
        0 system:playback_1
        1 system:playback_2
    }
    capture_ports {
        0 system:capture_1
        1 system:capture_2
    }
}



> --
> :B
>

[-- Attachment #2: Type: text/html, Size: 4171 bytes --]

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [gentoo-user] Poor mans audio in the world of the great Jack D.
  2015-05-21  3:18           ` Bruce Schultz
@ 2015-05-22  8:00             ` Emanuele Rusconi
  0 siblings, 0 replies; 16+ messages in thread
From: Emanuele Rusconi @ 2015-05-22  8:00 UTC (permalink / raw
  To: gentoo-user; +Cc: Meino.Cramer

Staring into the dark abyss of the fathomless mysteries,
the humble scholar spake: "Shit! I'm out of ideas, dude…"

The .asoundrc snippet works out of the box for me, but I use it just
for Firefox, to be honest, every other audio software
There are more solutions at http://jackaudio.org/faq/routing_alsa.html

Failing that, I don't know. Maybe qsstv does not belong to the ALSA tribe
but to the OSS one, and uses the ALSA OSS emulation, and this prevents
the ALSA jack plugin to work?

-- Emanuele Rusconi


^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2015-05-22  8:01 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-05-18 17:54 [gentoo-user] Poor mans audio in the world of the great Jack D Meino.Cramer
2015-05-18 18:39 ` Emanuele Rusconi
2015-05-19 15:24   ` Meino.Cramer
2015-05-20  9:12     ` Emanuele Rusconi
2015-05-20 16:23       ` Meino.Cramer
2015-05-20 17:28         ` Emanuele Rusconi
2015-05-20 17:49           ` Meino.Cramer
2015-05-20 18:59             ` Emanuele Rusconi
2015-05-21  2:08               ` Meino.Cramer
2015-05-21  2:17               ` Meino.Cramer
2015-05-21  2:59         ` Bruce Schultz
2015-05-21  3:18           ` Bruce Schultz
2015-05-22  8:00             ` Emanuele Rusconi
2015-05-19  0:26 ` [gentoo-user] " James
2015-05-19 15:29   ` Meino.Cramer
2015-05-19 18:03     ` James

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox