From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id E25A0138CD0 for ; Thu, 21 May 2015 03:18:57 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id E08ADE095A; Thu, 21 May 2015 03:18:49 +0000 (UTC) Received: from mail-wg0-f46.google.com (mail-wg0-f46.google.com [74.125.82.46]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 470E8E08F8 for ; Thu, 21 May 2015 03:18:48 +0000 (UTC) Received: by wghq2 with SMTP id q2so71716502wgh.1 for ; Wed, 20 May 2015 20:18:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=JvZtV/ClmyN1E7/C2rjGLs91ZLHIGCN9qDR6eblnBWI=; b=ZjAR3kZOdyHnPyf0Wd4MpO2ffWEJccTZ7Y/3fCkIMtnepf5Ldl80TGBuVJG++fehXZ aENb2Rl+boKQV2shTF6DjGb7EWAwpBBTd0el4MwoFjHYdlYge8uoxpzPai15cpw9ZDtb WsJTp/DGCqNVIUUZFLQX4cDQAf2XvR2yv2/eL6wjoYFieaYAwNNfeKDKoRPZmScjsMwN uYpo3FHM42REVkMgtRQKI4ihD6qVbXeXSwjQ/0dUi0yXflcjRI1kq3pLjOWu/SCHVW30 ON3axSbDDwEI/BOVebigsnliEEwxF5Lm8D/6pctvaKuIXJgB5OENVhMPJB7oMbQ6TzAn EWqQ== Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 X-Received: by 10.194.57.109 with SMTP id h13mr945563wjq.67.1432178326933; Wed, 20 May 2015 20:18:46 -0700 (PDT) Received: by 10.28.174.212 with HTTP; Wed, 20 May 2015 20:18:46 -0700 (PDT) In-Reply-To: References: <20150518175429.GC4658@solfire> <20150519152409.GA4383@solfire> <20150520162354.GA6013@solfire> Date: Thu, 21 May 2015 13:18:46 +1000 Message-ID: Subject: Re: [gentoo-user] Poor mans audio in the world of the great Jack D. From: Bruce Schultz To: gentoo-user@lists.gentoo.org, Meino.Cramer@gmx.de Content-Type: multipart/alternative; boundary=047d7ba96ef06e98ac05168f0024 X-Archives-Salt: 7f30b9e1-b4d6-4c81-a2af-817dc7aa9624 X-Archives-Hash: 8f76e8e746d8b4925f2d6ca5b67f7976 --047d7ba96ef06e98ac05168f0024 Content-Type: text/plain; charset=UTF-8 On Thu, May 21, 2015 at 12:59 PM, Bruce Schultz wrote: > On 21 May 2015 2:23:54 AM AEST, Meino.Cramer@gmx.de wrote: > >Emanuele Rusconi [15-05-20 17:36]: > >> On 19 May 2015 at 17:24, 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 > --047d7ba96ef06e98ac05168f0024 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable


On Thu, May 21, 2015 at 12:59 PM, Bruce Schultz <<= a href=3D"mailto:brulzki@gmail.com" target=3D"_blank">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,=C2=A0 <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 >=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0[ !! ]
> * ERROR: jackd failed to start
>[1]=C2=A0 =C2=A0 6210 exit 1=C2=A0 =C2=A0 =C2=A0sudo /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 connectio= n 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 tra= ck... by default, jack connects to the hw:0 alsa device, which is the sound= hardware.

This page has another example of asound= rc config which might work better for you.=C2=A0
<= div>(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

--047d7ba96ef06e98ac05168f0024--