[pulseaudio-discuss] HAL detect, USB audio bit rates not right
Jon Smirl
jonsmirl at gmail.com
Tue Jul 24 18:19:44 PDT 2007
On 7/24/07, Lennart Poettering <lennart at poettering.net> wrote:
> On Fri, 13.07.07 11:51, Jon Smirl (jonsmirl at gmail.com) wrote:
>
> > When I use HAL autodetect I see this and USB audio isn't working, the
> > sample rates are wrong from pulse and the audio is garbled.
>
> Hmm, does this work if you use plain aplay or similar?
>
> > If I load the pulse ALSA driver manually and add RATE=48000 CHANNELS=6
> > pulse works properly.
> >
> > What's up with the duplicate network names? Do I have something
> > configured wrong in zero config?
>
> Seems you're loading every module twice?
I have three audio devices, default.pa at bottom of message
motherboard in/out
USB audio in/out
webcam in
main.c: WARNING: called SUID root, but not in group 'pulse-rt'.
module-hal-detect.c: Trying capability 0 (alsa)
alsa-util.c: Using mixer control "PCM".
sink.c: created 0 "alsa_output.pci_8086_24d5_alsa_playback_0" with
sample spec "s16le 2ch 44100Hz"
source.c: created 0
"alsa_output.pci_8086_24d5_alsa_playback_0.monitor" with sample spec
"s16le 2ch 44100Hz"
module-alsa-sink.c: using 8 fragments of size 1376 bytes.
module.c: Loaded "module-alsa-sink" (index: #0; argument: "device=hw:2
sink_name=alsa_output.pci_8086_24d5_alsa_playback_0").
alsa-util.c: Using mixer control "Capture".
source.c: created 1 "alsa_input.pci_8086_24d5_alsa_capture_0" with
sample spec "s16le 2ch 44100Hz"
module-alsa-source.c: using 12 fragments of size 1376 bytes.
module.c: Loaded "module-alsa-source" (index: #1; argument:
"device=hw:2 source_name=alsa_input.pci_8086_24d5_alsa_capture_0").
alsa-util.c: device doesn't support 44100 Hz, changed to 48000 Hz.
alsa-util.c: device doesn't support 2 channels, changed to 6.
alsa-util.c: Using mixer control "PCM".
sink.c: created 1
"alsa_output.usb_device_471_155_noserial_if0_alsa_playback_0" with
sample spec "s16le 6ch 48000Hz"
source.c: created 2
"alsa_output.usb_device_471_155_noserial_if0_alsa_playback_0.monitor"
with sample spec "s16le 6ch 48000Hz"
module-alsa-sink.c: using 8 fragments of size 1376 bytes.
module.c: Loaded "module-alsa-sink" (index: #2; argument: "device=hw:0
sink_name=alsa_output.usb_device_471_155_noserial_if0_alsa_playback_0").
alsa-util.c: device doesn't support 44100 Hz, changed to 48000 Hz.
alsa-util.c: Cannot find mixer control "Capture".
alsa-util.c: Cannot find fallback mixer control "Mic".
source.c: created 3
"alsa_input.usb_device_471_155_noserial_if0_alsa_capture_0" with
sample spec "s16le 2ch 48000Hz"
module-alsa-source.c: using 12 fragments of size 1376 bytes.
module.c: Loaded "module-alsa-source" (index: #3; argument:
"device=hw:0 source_name=alsa_input.usb_device_471_155_noserial_if0_alsa_capture_0").
alsa-util.c: device doesn't support 44100 Hz, changed to 16000 Hz.
alsa-util.c: device doesn't support 2 channels, changed to 1.
alsa-util.c: Cannot find mixer control "Capture".
alsa-util.c: Cannot find fallback mixer control "Mic".
source.c: created 4
"alsa_input.usb_device_5a9_8519_noserial_if1_alsa_capture_0" with
sample spec "s16le 1ch 16000Hz"
module-alsa-source.c: using 12 fragments of size 1376 bytes.
module.c: Loaded "module-alsa-source" (index: #4; argument:
"device=hw:1 source_name=alsa_input.usb_device_5a9_8519_noserial_if1_alsa_capture_0").
module-hal-detect.c: loaded 5 modules.
module.c: Loaded "module-hal-detect" (index: #5; argument: "").
module.c: Loaded "module-esound-protocol-unix" (index: #6; argument: "").
protocol-native.c: loading cookie from disk.
module.c: Loaded "module-native-protocol-unix" (index: #7; argument: "").
ipacl.c: WARNING: Host part of ACL entry '192.168.1.0/16' is not zero!
ipacl.c: WARNING: Host part of ACL entry '192.168.1.0/16' is not zero!
module.c: Loaded "module-esound-protocol-tcp" (index: #8; argument:
"auth-ip-acl=127.0.0.1;192.168.1.0/16").
ipacl.c: WARNING: Host part of ACL entry '192.168.1.0/16' is not zero!
protocol-native.c: using already loaded auth cookie.
ipacl.c: WARNING: Host part of ACL entry '192.168.1.0/16' is not zero!
protocol-native.c: using already loaded auth cookie.
module.c: Loaded "module-native-protocol-tcp" (index: #9; argument:
"auth-ip-acl=127.0.0.1;192.168.1.0/16").
module-zeroconf-publish.c: Publishing services in Zeroconf
module.c: Loaded "module-zeroconf-publish" (index: #10; argument: "").
module-volume-restore.c: starting with empty ruleset.
module.c: Loaded "module-volume-restore" (index: #11; argument: "").
module.c: Loaded "module-rescue-streams" (index: #12; argument: "").
memblock.c: Memory block too large for pool: 59392 > 16376
module.c: Loaded "module-x11-bell" (index: #13; argument: "sample=x11-bell").
module-x11-publish.c: using already loaded auth cookie.
module.c: Loaded "module-x11-publish" (index: #14; argument: "").
module-gconf.c: Loading module 'module-null-sink' with args
'sink_name=rtp format=s16be channels=2 rate=44100 description="RTP
Multicast Sink"' due to GConf configuration.
sink.c: created 2 "rtp" with sample spec "s16be 2ch 44100Hz"
source.c: created 5 "rtp.monitor" with sample spec "s16be 2ch 44100Hz"
core-subscribe.c: dropped redundant event.
core-subscribe.c: dropped redundant event.
core-subscribe.c: dropped redundant event.
core-subscribe.c: dropped redundant event.
core-subscribe.c: dropped redundant event.
module.c: Loaded "module-null-sink" (index: #15; argument:
"sink_name=rtp format=s16be channels=2 rate=44100 description="RTP
Multicast Sink"").
module-gconf.c: Loading module 'module-rtp-send' with args
'source=rtp.monitor loop=1' due to GConf configuration.
source-output.c: created 0 "RTP Monitor Stream" on rtp.monitor with
sample spec s16be 2ch 44100Hz
memblockq.c: memblockq requested: maxlength=174080, tlength=174080,
base=4, prebuf=1, minreq=0
memblockq.c: memblockq sanitized: maxlength=174080, tlength=174080,
base=4, prebuf=4, minreq=1
module-rtp-send.c: RTP stream initialized with mtu 1280 on
224.0.0.56:46120, SSRC=0x8374ca7b, payload=10, initial sequence #27832
module-rtp-send.c: SDP-Data:
module-rtp-send.c: v=0
module-rtp-send.c: o=jonsmirl 3394314979 0 IN IP4 192.168.1.4
module-rtp-send.c: s=PulseAudio RTP Stream on localhost
module-rtp-send.c: c=IN IP4 224.0.0.56
module-rtp-send.c: t=3394314979 0
module-rtp-send.c: a=recvonly
module-rtp-send.c: m=audio 46120 RTP/AVP 10
module-rtp-send.c: a=rtpmap:10 L16/44100/2
module-rtp-send.c: a=type:broadcast
module-rtp-send.c: modules/rtp/module-rtp-send.c: EOF
module.c: Loaded "module-rtp-send" (index: #16; argument:
"source=rtp.monitor loop=1").
module-gconf.c: Loading module 'module-rtp-recv' with args '' due to
GConf configuration.
module.c: Loaded "module-rtp-recv" (index: #17; argument: "").
module-gconf.c: Loading module 'module-native-protocol-tcp' with args
'auth-anonymous=1' due to GConf configuration.
socket-server.c: bind(): Address already in use
socket-server.c: bind(): Address already in use
module.c: Failed to load module "module-native-protocol-tcp"
(argument: "auth-anonymous=1"): initialization failed.
module-gconf.c: pa_module_load() failed
module-gconf.c: Loading module 'module-esound-protocol-tcp' with args
'auth-anonymous=1' due to GConf configuration.
socket-server.c: bind(): Address already in use
socket-server.c: bind(): Address already in use
module.c: Failed to load module "module-esound-protocol-tcp"
(argument: "auth-anonymous=1"): initialization failed.
module-gconf.c: pa_module_load() failed
module-gconf.c: Loading module 'module-zeroconf-publish' with args ''
due to GConf configuration.
module-zeroconf-publish.c: Publishing services in Zeroconf
module-zeroconf-publish.c: avahi_entry_group_add_service_strlst():
Local name collision
module.c: Loaded "module-zeroconf-publish" (index: #18; argument: "").
module.c: Loaded "module-gconf" (index: #19; argument: "").
main.c: Daemon startup complete.
module-zeroconf-publish.c: avahi_entry_group_add_service_strlst():
Local name collision
module-alsa-source.c: *** ALSA-XRUN (capture) ***
sink-input.c: created 0 "RTP Stream (PulseAudio RTP Stream on
localhost)" on alsa_output.pci_8086_24d5_alsa_playback_0 with sample
spec s16be 2ch 44100Hz
memblock.c: Memory block too large for pool: 1048576 > 16376
memblockq.c: memblockq requested: maxlength=174080, tlength=174080,
base=4, prebuf=17641, minreq=0
memblockq.c: memblockq sanitized: maxlength=174080, tlength=174080,
base=4, prebuf=17644, minreq=1
module-rtp-recv.c: Found new session 'PulseAudio RTP Stream on localhost'
socket-server.c: TCP connection accepted by tcpwrap.
client.c: created 0 "EsounD client (TCP/IP client from 127.0.0.1:51623)"
protocol-esound.c: Client authenticated by IP ACL.
socket-server.c: TCP connection accepted by tcpwrap.
client.c: created 1 "EsounD client (TCP/IP client from 127.0.0.1:51624)"
protocol-esound.c: Client authenticated by IP ACL.
#!/usr/bin/pulseaudio -nF
#
# This file is part of PulseAudio.
#
# PulseAudio is free software; you can redistribute it and/or modify it
# under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# PulseAudio is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public License
# along with PulseAudio; if not, write to the Free Software Foundation,
# Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
### Load audio drivers statically
#load-module module-alsa-sink sink_name=mb_out device=hw:0
#load-module module-alsa-source source_name=mb_in device=hw:0
#load-module module-alsa-sink sink_name=usb_out rate=48000 channels=6
device=hw:1
#load-module module-alsa-source source_name=usb_in rate=48000
channels=2 device=hw:1
#load-module module-alsa-sink sink_name=output rate=48000 device=hw:1
#load-module module-alsa-source source_name=input rate=48000 device=hw:1
#load-module module-oss device="/dev/dsp" sink_name=output source_name=input
#load-module module-oss-mmap device="/dev/dsp" sink_name=output
source_name=input
#load-module module-null-sink
#load-module module-pipe-sink
.ifexists /usr/lib/pulse-0.9/modules/module-hal-detect.so
### Automatically load driver modules depending on the hardware available
load-module module-hal-detect
.else
### Alternatively use the static hardware detection module (for systems that
### lack HAL support
load-module module-detect
.endif
### Load audio drivers automatically on access
#add-autoload-sink output module-oss device="/dev/dsp"
sink_name=output source_name=input
#add-autoload-source input module-oss device="/dev/dsp"
sink_name=output source_name=input
#add-autoload-sink output module-oss-mmap device="/dev/dsp"
sink_name=output source_name=input
#add-autoload-source input module-oss-mmap device="/dev/dsp"
sink_name=output source_name=input
#add-autoload-sink output module-alsa-sink sink_name=output
#add-autoload-source input module-alsa-source source_name=input
.ifexists /usr/lib/pulse-0.9/modules/module-esound-protocol-unix.so
### Load esound protocol
load-module module-esound-protocol-unix
.endif
### Load native protocol
load-module module-native-protocol-unix
### Network access (may be configured with paprefs, so leave this commented
### here if you plan to use paprefs)
load-module module-esound-protocol-tcp auth-ip-acl=127.0.0.1;192.168.1.0/16
load-module module-native-protocol-tcp auth-ip-acl=127.0.0.1;192.168.1.0/16
load-module module-zeroconf-publish
### Load the RTP reciever module (also configured via paprefs, see above)
#load-module module-rtp-recv
### Load the RTP sender module (also configured via paprefs, see above)
#load-module module-null-sink sink_name=rtp format=s16be channels=2
rate=44100 description="RTP Multicast Sink"
#load-module module-rtp-send source=rtp.monitor
### Automatically restore the volume of playback streams
load-module module-volume-restore
### Automatically move streams to the default sink if the sink they are
### connected to dies, similar for sources
load-module module-rescue-streams
### Make some devices default
#set-default-sink output
#set-default-source input
.nofail
### Load something to the sample cache
load-sample x11-bell /usr/share/sounds/gtk-events/activate.wav
#load-sample-dir-lazy /usr/share/sounds/*.wav
### Load X11 bell module
load-module module-x11-bell sample=x11-bell
### Publish connection data in the X11 root window
load-module module-x11-publish
### Load additional modules from GConf settings. This can be
configured with the paprefs tool.
### Please keep in mind that the modules configured by paprefs might
conflict with manually
### loaded modules.
load-module module-gconf
--
Jon Smirl
jonsmirl at gmail.com
More information about the pulseaudio-discuss
mailing list