1 |
On Thu, May 21, 2015 at 12:59 PM, Bruce Schultz <brulzki@×××××.com> wrote: |
2 |
|
3 |
> On 21 May 2015 2:23:54 AM AEST, Meino.Cramer@×××.de wrote: |
4 |
> >Emanuele Rusconi <emarsk@×××××.com> [15-05-20 17:36]: |
5 |
> >> On 19 May 2015 at 17:24, <Meino.Cramer@×××.de> wrote: |
6 |
> >> > |
7 |
> >> > The master control program (qsstv) raises its shield against Tron, |
8 |
> >displaying |
9 |
> >> > "Sound card error: Device or resource busy." |
10 |
> >> > |
11 |
> >> > And silence was the only voice heard by the folks... |
12 |
> >> > And nothing was displayed anymore. |
13 |
> >> |
14 |
> >> Oops, I forgot the last line of my koan: |
15 |
> >> |
16 |
> >> pcm.!default { type plug; slave { pcm "rawjack" } } |
17 |
> >> |
18 |
> >> -- Emanuele Rusconi |
19 |
> >> |
20 |
> > |
21 |
> >...and confusion reaches the head of great Jack D. and |
22 |
> >from his mouth the words were heard: |
23 |
> > |
24 |
> >#>sudo /etc/init.d/jackd restart |
25 |
> > * Starting JACK Daemon ... |
26 |
> >* JACK daemon can't be started! Check logfile: /var/log/jackd.log |
27 |
> > [ !! ] |
28 |
> > * ERROR: jackd failed to start |
29 |
> >[1] 6210 exit 1 sudo /etc/init.d/jackd restart |
30 |
> > |
31 |
> >...but none of his words, which were good and wise in the past, were |
32 |
> >written down for those who came after him: |
33 |
> > |
34 |
> >#>ls -l /var/log/jackd.log |
35 |
> >-rw-r--r-- 1 root root 0 2015-05-20 18:18 /var/log/jackd.log |
36 |
> > |
37 |
> >And the children - left alone in the dark of this ancient machine - |
38 |
> >stared into the empty LED eyes of their grandmaster not knowing |
39 |
> >to where to go and whether to flee or stand still... |
40 |
> > |
41 |
> >"Help - Oh help us brotheren of the Gentoo! Help!" |
42 |
> >they cried. |
43 |
> |
44 |
> Perhaps the great Jack D. Is talking to itself? |
45 |
> |
46 |
> The pcm.!default line says: when opening alsa, connect to rawjack |
47 |
> |
48 |
> The earlier .asoundrc says: when opening alsa rawjack, direct the |
49 |
> connection to the great Jack D. |
50 |
> |
51 |
> If the jackd connects to the default alsa output, aka rawjack, coult it be |
52 |
> tripping itself up? Is there maybe a jack option to direct the alsa output |
53 |
> to the sound hardware instead? |
54 |
> |
55 |
> |
56 |
> Looks like I'm off on the wrong track... by default, jack connects to the |
57 |
hw:0 alsa device, which is the sound hardware. |
58 |
|
59 |
This page has another example of asoundrc config which might work better |
60 |
for you. |
61 |
https://wiki.archlinux.org/index.php/JACK_Audio_Connection_Kit |
62 |
(search for "Playing nice with ALSA") |
63 |
|
64 |
The config file contents is: |
65 |
|
66 |
# convert alsa API over jack API |
67 |
# use it with |
68 |
# % aplay foo.wav |
69 |
|
70 |
# use this as default |
71 |
pcm.!default { |
72 |
type plug |
73 |
slave { pcm "jack" } |
74 |
} |
75 |
|
76 |
ctl.mixer0 { |
77 |
type hw |
78 |
card 1 |
79 |
} |
80 |
|
81 |
# pcm type jack |
82 |
pcm.jack { |
83 |
type jack |
84 |
playback_ports { |
85 |
0 system:playback_1 |
86 |
1 system:playback_2 |
87 |
} |
88 |
capture_ports { |
89 |
0 system:capture_1 |
90 |
1 system:capture_2 |
91 |
} |
92 |
} |
93 |
|
94 |
|
95 |
|
96 |
> -- |
97 |
> :B |
98 |
> |