On Thursday 11 August 2011 07:05 PM,
[email protected] wrote:
in OMAP4 panda board and is working fine
> with normal mono mic.
> But when I use USB mic, I am getting delay of around 3-4 sec.
> Can anybody help me how to reduce the delay.
This really gives very little information to go on. Please ensure you
provide various logs etc. to give people hints.
Col
Hi Col,
I am attaching the pulseaudio usb mic delay log.
When I am running gst-launch-0.10 ! pulsesrc ! pulsesink on pandaboard
getting around 2-3 sec. on the fly audio delay.
Please suggest how to resolve this problem.
Ashwani
pulseaudio -v
I: main.c: setrlimit(RLIMIT_NICE, (31, 31)) failed: Operation not permitted
I: main.c: setrlimit(RLIMIT_RTPRIO, (9, 9)) failed: Operation not permitted
I: core-util.c: Successfully gained nice level -11.
I: main.c: This is PulseAudio 0.98-dev-438-g6add-dirty
I: main.c: Page size is 4096 bytes
I: main.c: Machine ID is 9542ce26af2176ff98c2a74d00000006.
I: main.c: Session ID is
9542ce26af2176ff98c2a74d00000006-1313040055.683593-181738217.
I: main.c: Using runtime directory
/home/vu/.pulse/9542ce26af2176ff98c2a74d00000006-runtime.
I: main.c: Using state directory /home/vu/.pulse.
I: main.c: Using modules directory /usr/lib/pulse-0.98/modules.
I: main.c: Running in system mode: no
I: main.c: Fresh high-resolution timers available! Bon appetit!
I: cpu-arm.c: CPU flags: V6 V7 VFP EDSP NEON VFPV3
I: svolume_arm.c: Initialising ARM optimized functions.
I: module-device-restore.c: Successfully opened database file
'/home/vu/.pulse/9542ce26af2176ff98c2a74d00000006-device-volumes'.
I: module.c: Loaded "module-device-restore" (index: #0; argument: "").
I: module-stream-restore.c: Successfully opened database file
'/home/vu/.pulse/9542ce26af2176ff98c2a74d00000006-stream-volumes'.
I: module.c: Loaded "module-stream-restore" (index: #1; argument: "").
I: module-card-restore.c: Successfully opened database file
'/home/vu/.pulse/9542ce26af2176ff98c2a74d00000006-card-database'.
I: module.c: Loaded "module-card-restore" (index: #2; argument: "").
I: module.c: Loaded "module-augment-properties" (index: #3; argument: "").
I: alsa-sink.c: Successfully opened device hw:0,7.
I: alsa-sink.c: Successfully enabled mmap() mode.
I: alsa-sink.c: Successfully enabled timer-based scheduling mode.
I: module-device-restore.c: Restoring volume for sink alsa_output.hw_0_7.
I: sink.c: Created sink 0 "alsa_output.hw_0_7" with sample spec s16le 2ch
48000Hz and channel map front-left,front-right
I: sink.c: alsa.resolution_bits = "16"
I: sink.c: device.api = "alsa"
I: sink.c: device.class = "sound"
I: sink.c: alsa.class = "generic"
I: sink.c: alsa.subclass = "generic-mix"
I: sink.c: alsa.name = ""
I: sink.c: alsa.id = "HDMI HDMI-7"
I: sink.c: alsa.subdevice = "0"
I: sink.c: alsa.subdevice_name = "subdevice #0"
I: sink.c: alsa.device = "7"
I: sink.c: alsa.card = "0"
I: sink.c: alsa.card_name = "SDP4430"
I: sink.c: alsa.long_card_name = "TI OMAP4 SDP4430 Board"
I: sink.c: device.bus_path = "platform-soc-audio"
I: sink.c: sysfs.path = "/devices/platform/soc-audio/sound/card0"
I: sink.c: device.string = "hw:0,7"
I: sink.c: device.buffering.buffer_size = "130944"
I: sink.c: device.buffering.fragment_size = "65472"
I: sink.c: device.access_mode = "mmap+timer"
I: sink.c: device.description = "SDP4430"
I: sink.c: device.icon_name = "audio-card"
I: source.c: Created source 0 "alsa_output.hw_0_7.monitor" with sample spec
s16le 2ch 48000Hz and channel map front-left,front-right
I: source.c: device.description = "Monitor of SDP4430"
I: source.c: device.class = "monitor"
I: source.c: device.icon_name = "audio-input-microphone"
I: alsa-sink.c: Using 2.0 fragments of size 65472 bytes (341.00ms), buffer size
is 130944 bytes (682.00ms)
I: alsa-sink.c: Time scheduling watermark is 20.00ms
I: core-util.c: Successfully enabled SCHED_RR scheduling for thread, with
priority 5.
I: alsa-sink.c: Starting playback.
I: module.c: Loaded "module-alsa-sink" (index: #4; argument: "device=hw:0,7
rate=48000 format=s16le channels=2 ").
I: alsa-source.c: Successfully opened device hw:1,0.
I: alsa-source.c: Successfully enabled mmap() mode.
I: alsa-source.c: Successfully enabled timer-based scheduling mode.
I: module-device-restore.c: Restoring volume for source alsa_input.hw_1_0.
I: source.c: Created source 1 "alsa_input.hw_1_0" with sample spec s16le 1ch
44100Hz and channel map mono
I: source.c: alsa.resolution_bits = "16"
I: source.c: device.api = "alsa"
I: source.c: device.class = "sound"
I: source.c: alsa.class = "generic"
I: source.c: alsa.subclass = "generic-mix"
I: source.c: alsa.name = "USB Audio"
I: source.c: alsa.id = "USB Audio"
I: source.c: alsa.subdevice = "0"
I: source.c: alsa.subdevice_name = "subdevice #0"
I: source.c: alsa.device = "0"
I: source.c: alsa.card = "1"
I: source.c: alsa.card_name = "AK4571"
I: source.c: alsa.long_card_name = "AKM AK4571
at usb-ehci-omap.0-1.2, ful"
I: source.c: alsa.driver_name = "snd_usb_audio"
I: source.c: device.bus_path = "platform-ehci-omap.0-usb-0:1.2:1.0"
I: source.c: sysfs.path =
"/devices/platform/ehci-omap.0/usb1/1-1/1-1.2/1-1.2:1.0/sound/card1"
I: source.c: udev.id = "usb-AKM_AK4571-00-default"
I: source.c: device.bus = "usb"
I: source.c: device.vendor.id = "0556"
I: source.c: device.vendor.name = "Asahi Kasei Microsystems Co., Ltd"
I: source.c: device.product.id = "0004"
I: source.c: device.product.name = "AK4571 "
I: source.c: device.serial = "AKM_AK4571"
I: source.c: device.string = "hw:1,0"
I: source.c: device.buffering.buffer_size = "176400"
I: source.c: device.buffering.fragment_size = "88200"
I: source.c: device.access_mode = "mmap+timer"
I: source.c: device.description = "AK4571 "
I: source.c: device.icon_name = "audio-input-microphone-usb"
I: alsa-source.c: Using 2.0 fragments of size 88200 bytes (1000.00ms), buffer
size is 176400 bytes (2000.00ms)
I: alsa-source.c: Time scheduling watermark is 20.00ms
I: core-util.c: Successfully enabled SCHED_RR scheduling for thread, with
priority 5.
I: alsa-source.c: Starting capture.
I: module.c: Loaded "module-alsa-source" (index: #5; argument: "device=hw:1,0
channels=1 ").
I: module.c: Loaded "module-esound-protocol-unix" (index: #6; argument: "").
I: module.c: Loaded "module-native-protocol-unix" (index: #7; argument: "").
I: module.c: Loaded "module-dbus-protocol" (index: #8; argument: "").
I: module.c: Loaded "module-gconf" (index: #9; argument: "").
I: module-default-device-restore.c: Manually configured default sink, not
overwriting.
I: module-default-device-restore.c: Manually configured default source, not
overwriting.
I: module.c: Loaded "module-default-device-restore" (index: #10; argument: "").
I: module.c: Loaded "module-rescue-streams" (index: #11; argument: "").
I: module.c: Loaded "module-always-sink" (index: #12; argument: "").
I: module.c: Loaded "module-intended-roles" (index: #13; argument: "").
I: module.c: Loaded "module-suspend-on-idle" (index: #14; argument: "").
I: client.c: Created 0 "ConsoleKit Session /org/freedesktop/ConsoleKit/Session2"
I: client.c: Created 1 "ConsoleKit Session /org/freedesktop/ConsoleKit/Session4"
I: module.c: Loaded "module-console-kit" (index: #15; argument: "").
I: module.c: Loaded "module-position-event-sounds" (index: #16; argument: "").
I: module.c: Loaded "module-cork-music-on-phone" (index: #17; argument: "").
I: main.c: Daemon startup complete.
I: client.c: Created 2 "Native client (UNIX socket client)"
I: protocol-native.c: Got credentials: uid=1000 gid=1000 success=1
I: client.c: Created 3 "Native client (UNIX socket client)"
I: protocol-native.c: Got credentials: uid=1000 gid=1000 success=1
I: client.c: Created 4 "Native client (UNIX socket client)"
I: protocol-native.c: Got credentials: uid=1000 gid=1000 success=1
I: resampler.c: Using resampler 'peaks'
I: resampler.c: Using float32le as working format.
I: source-output.c: Created output 0 "Peak detect" on alsa_input.hw_1_0 with
sample spec float32le 1ch 25Hz and channel map mono
I: source-output.c: application.id = "org.gnome.VolumeControl"
I: source-output.c: media.name = "Peak detect"
I: source-output.c: application.name = "GNOME Volume Control Dialog"
I: source-output.c: native-protocol.peer = "UNIX socket client"
I: source-output.c: native-protocol.version = "22"
I: source-output.c: application.icon_name = "multimedia-volume-control"
I: source-output.c: application.version = "2.31.6"
I: source-output.c: application.process.id = "1439"
I: source-output.c: application.process.user = "vu"
I: source-output.c: application.process.host = "vu-desktop"
I: source-output.c: application.process.binary = "gnome-volume-control"
I: source-output.c: application.language = "en_IN"
I: source-output.c: window.x11.display = ":0.0"
I: source-output.c: application.process.machine_id =
"9542ce26af2176ff98c2a74d00000006"
I: source-output.c: application.process.session_id =
"9542ce26af2176ff98c2a74d00000006-1313039921.792144-1862518556"
I: source-output.c: module-stream-restore.id =
"source-output-by-application-id:org.gnome.VolumeControl"
I: protocol-native.c: Final latency 60.00 ms = 40.00 ms + 20.00 ms
I: alsa-source.c: Overrun!
I: alsa-source.c: Increasing minimal latency to 1.00 ms
I: module-suspend-on-idle.c: Sink alsa_output.hw_0_7 idle for too long,
suspending ...
I: alsa-sink.c: Device suspended...
I: client.c: Created 5 "Native client (UNIX socket client)"
I: protocol-native.c: Got credentials: uid=1000 gid=1000 success=1
I: client.c: Created 6 "Native client (UNIX socket client)"
I: protocol-native.c: Got credentials: uid=1000 gid=1000 success=1
I: client.c: Freed 6 "gst-launch-0.10"
I: protocol-native.c: Connection died.
I: client.c: Created 7 "Native client (UNIX socket client)"
I: protocol-native.c: Got credentials: uid=1000 gid=1000 success=1
I: resampler.c: Forcing resampler 'copy', because of fixed, identical sample
rates.
I: remap.c: Using mono to stereo remapping
I: resampler.c: Using resampler 'copy'
I: resampler.c: Using s16le as working format.
I: source-output.c: Created output 1 "Record Stream" on alsa_input.hw_1_0 with
sample spec s16le 2ch 44100Hz and channel map front-left,front-right
I: source-output.c: media.name = "Record Stream"
I: source-output.c: application.name = "gst-launch-0.10"
I: source-output.c: native-protocol.peer = "UNIX socket client"
I: source-output.c: native-protocol.version = "22"
I: source-output.c: application.process.id = "1468"
I: source-output.c: application.process.user = "vu"
I: source-output.c: application.process.host = "vu-desktop"
I: source-output.c: application.process.binary = "gst-launch-0.10"
I: source-output.c: application.language = "en_IN"
I: source-output.c: window.x11.display = ":0.0"
I: source-output.c: application.process.machine_id =
"9542ce26af2176ff98c2a74d00000006"
I: source-output.c: application.process.session_id =
"9542ce26af2176ff98c2a74d00000006-1313039921.792144-1862518556"
I: source-output.c: module-stream-restore.id =
"source-output-by-application-name:gst-launch-0.10"
I: protocol-native.c: Final latency 9.99 ms = 4.99 ms + 5.00 ms
I: module-stream-restore.c: Restoring device for stream
sink-input-by-application-name:gst-launch-0.10.
I: module-stream-restore.c: Restoring mute state for sink input
sink-input-by-application-name:gst-launch-0.10.
I: alsa-sink.c: Trying resume...
I: alsa-sink.c: Resumed successfully...
I: alsa-sink.c: Starting playback.
I: resampler.c: Using resampler 'speex-float-3'
I: resampler.c: Using float32le as working format.
I: resampler.c: Choosing speex quality setting 3.
I: sink-input.c: Created input 0 "Playback Stream" on alsa_output.hw_0_7 with
sample spec s16le 2ch 44100Hz and channel map front-left,front-right
I: sink-input.c: media.name = "Playback Stream"
I: sink-input.c: application.name = "gst-launch-0.10"
I: sink-input.c: native-protocol.peer = "UNIX socket client"
I: sink-input.c: native-protocol.version = "22"
I: sink-input.c: application.process.id = "1468"
I: sink-input.c: application.process.user = "vu"
I: sink-input.c: application.process.host = "vu-desktop"
I: sink-input.c: application.process.binary = "gst-launch-0.10"
I: sink-input.c: application.language = "en_IN"
I: sink-input.c: window.x11.display = ":0.0"
I: sink-input.c: application.process.machine_id =
"9542ce26af2176ff98c2a74d00000006"
I: sink-input.c: application.process.session_id =
"9542ce26af2176ff98c2a74d00000006-1313039921.792144-1862518556"
I: sink-input.c: module-stream-restore.id =
"sink-input-by-application-name:gst-launch-0.10"
I: protocol-native.c: Requested tlength=200.00 ms, minreq=10.00 ms
I: protocol-native.c: Final latency 200.00 ms = 90.00 ms + 2*10.00 ms + 90.00 ms
_______________________________________________
pulseaudio-discuss mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/pulseaudio-discuss