<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=UTF-8" http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
The PA server has yet to deliver sound to my
speakers.  However, I noticed you had some special advice for someone
configuring their M-Audio Delta44... I have an M-Audio Delta 66 and
tried your suggestion for the M-Audio Delta 44:<br>
<br>
--------<br>
So, what you'll have to do is edit /etc/pulse/default.pa.  <br>
<br>
Comment out module-hal-detect and module-detect, and then add these
lines (if you don't need the sources, leave them out):
<br>
<br>
# Load Delta 44:<br>
load-module module-alsa-sink sink_name=delta_out device=hw:0
channels=10
channel_map=left,right,aux0,aux1,aux2,aux3,aux4,aux5,aux6,aux7<br>
load-module module-alsa-source source_name=delta_in device=hw:0
channels=12
channel_map=left,right,aux0,aux1,aux2,aux3,aux4,aux5,aux6,aux7,aux8,aux9<br>
<br>
# Set the default sink and source (not mandatory, intel-hda<br>
# would probably be used without this):<br>
set-default-sink delta_out <br>
set-default-source delta_in<br>
<br>
-----<br>
<br>
The PA daemon is not starting and PA Manager is say "connection
refused" .  Not sure what to make of it, but your suggestions are
welcome.<br>
<br>
Here's some output from /var/log/messages:<br>
<br>
<blockquote type="cite">pulseaudio[7278]: main.c: Module load failed.<br>
pulseaudio[7278]: main.c: failed to initialize daemon.<br>
pulseaudio[7288]: pid.c: daemon already running.<br>
pulseaudio[7288]: main.c: pa_pid_file_create() failed.<br>
pulseaudio[7291]: pid.c: daemon already running.<br>
pulseaudio[7291]: main.c: pa_pid_file_create() failed.<br>
pulseaudio[7285]: module-alsa-sink.c: Failed to set hardware
parameters: Operation not permitted<br>
pulseaudio[7285]: module.c: Failed to load  module "module-alsa-sink"
(argument: "sink_name=delta_out device=hw:0 channels=10
channel_map=left,right,aux0,aux1,aux2,aux3,aux4,aux5,aux6,aux7"):
initialization failed.<br>
pulseaudio[7285]: main.c: Module load failed.<br>
pulseaudio[7285]: main.c: failed to initialize daemon.<br>
pulseaudio[7294]: module-alsa-sink.c: Failed to set hardware
parameters: Operation not permitted<br>
pulseaudio[7294]: module.c: Failed to load  module "module-alsa-sink"
(argument: "sink_name=delta_out device=hw:0 channels=10
channel_map=left,right,aux0,aux1,aux2,aux3,aux4,aux5,aux6,aux7"):
initialization failed.<br>
pulseaudio[7294]: main.c: Module load failed.<br>
pulseaudio[7294]: main.c: failed to initialize daemon.<br>
</blockquote>
<br>
<br>
Tanu Kaskinen wrote:
<blockquote cite="mid:20080121201024.GA25554@a9a.mannikko1.tontut.fi"
 type="cite">
  <pre wrap="">On Sun, Jan 20, 2008 at 02:49:25PM -0500, Richard Geddes wrote:
  </pre>
  <blockquote type="cite">
    <pre wrap="">Thanks for the response.

Currently, I'd like to use PA as a replacement for esound... to
basically send audio from different programs and from my audio capture
card to my audio playback card (capture and playback are on the same
card), taking advantage of mixing and syncing features of PA.   Sending
sound packets out to the network is interesting and I'd like to try that
later.

Here's the uncommented part of my /etc/pulse/default.pa file:
    </pre>
  </blockquote>
  <pre wrap=""><!---->
The things that you wrote and pasted to your last message
looked a lot like you were experimenting with the rtp
modules, so I guess this is a different version of the file?
If not, then that would be really strange behaviour (the RTP
activity), I think. I haven't played with networking stuff
at all myself, though.

Anyway, I'll go through the file and give some comments.

  </pre>
  <blockquote type="cite">
    <pre wrap="">#!/usr/bin/pulseaudio -nF

.ifexists /usr/lib/pulse-0.9/modules/module-hal-detect.so
load-module module-hal-detect
.else
load-module module-detect
.endif
    </pre>
  </blockquote>
  <pre wrap=""><!---->
Here you have sound card autodetection set up. I think it's
not compatible with the autoload stuff here:

  </pre>
  <blockquote type="cite">
    <pre wrap="">add-autoload-sink output module-alsa-sink device=hw:0 sink_name=output
add-autoload-source input module-alsa-source device=hw:0 source_name=input
    </pre>
  </blockquote>
  <pre wrap=""><!---->
Do you have a hotpluggable sound card, or why are these
autoload entries here? module-hal-detect should take care of
the hotplugging stuff, so I think the autoload feature is
deprecated or for those cases when you do not want to use
HAL. I'm not sure about the last statement. Anyway, if you
don't have any special reason for these, remove them.

  </pre>
  <blockquote type="cite">
    <pre wrap="">.ifexists /usr/lib/pulse-0.9/modules/module-esound-protocol-unix.so
load-module module-esound-protocol-unix
.endif
    </pre>
  </blockquote>
  <pre wrap=""><!---->
With this line you should have support for esound
applications (assuming that the module is installed on the
system). You said that you wanted to replace esd. This
should achieve that goal (along with the
pulseaudio-esound-compat package, be sure to have that
installed too).

However, with this being the only loaded protocol, now your
system doesn't support anything but esound apps. So add
"load-module module-native-protocol-unix" too to have better
application support. This will allow native pulse clients to
connect. If you want support for applications using alsa as
the interface (and why wouldn't you?), see the instructions
at
<a class="moz-txt-link-freetext"
 href="http://www.pulseaudio.org/wiki/PerfectSetup#ALSAApplications">http://www.pulseaudio.org/wiki/PerfectSetup#ALSAApplications</a>.
Or maybe you've done that already.

Rest of the file seemed to be fine.

If problems arise, output of pulseaudio -vv will be useful.

  </pre>
</blockquote>
</body>
</html>