On Jan 2, 2008 11:21 AM, Ritesh Kumar <<a href="mailto:ritesh@cs.unc.edu">ritesh@cs.unc.edu</a>> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi Guys,<br> Happy New Year!<br><br>I was wondering if anybody was experiencing random cracks and pops (loud ones actually :( ) while using pulseaudio with intelHDA? I have the following configuration for my inbuilt intelHDA card and will be thankful if somebody helped me out here. I haven't observed cracks and pops on my other card (Griffin iMic). I am using pulseaudio
0.9.8 which is able to acquire realtime scheduling priority and a nice level of -11.<br><br>ALSA (asound.conf):<br>pcm.!default {<br> type pulse<br>}<br>ctl.!default {<br> type pulse<br>}<br>pcm.intelHDA {<br>
type softvol<br> slave.pcm "hw:0,0"<br> <a href="http://control.name" target="_blank">
control.name</a> "Master"<br> control.card 0<br>}<br>ctl.intelHDA {<br> type hw<br> card 0<br>}<br>pcm.iMic {<br> type hw<br> card 1<br>}<br>#ctl.iMic {<br># type hw<br>
# card 1
<br>#}<br><br><br><a href="http://default.pa" target="_blank">default.pa</a>:<br>load-module module-alsa-sink device=intelHDA sink_name=Spkr rate=192000<br>load-module module-alsa-sink device=iMic sink_name=HeadPh rate=48000
<br>load-module module-native-protocol-unix
<br>load-module module-rescue-streams<br>load-module module-suspend-on-idle<br>set-default-sink Spkr<br><br>output of pulseaudio -vvC<br>I: main.c: We're in the group 'realtime', allowing real-time and high-priority scheduling.
<br>I: core-util.c: Successfully gained nice level -11.<br>I: main.c: Successfully increased RLIMIT_RTPRIO, giving up CAP_NICE.<br>W: main.c: setrlimit(RLIMIT_NICE, (31, 31)) failed: Operation not permitted<br>I: main.c: Page size is 4096 bytes
<br>I: main.c: Fresh high-resolution timers available! Bon appetit!<br>I: module-alsa-sink.c: Successfully opened device intelHDA.<br>I: module-alsa-sink.c: Successfully enabled mmap() mode.<br>I: alsa-util.c: Successfully attached to mixer 'intelHDA'
<br>I: alsa-util.c: Using mixer control "Master".<br>I: sink.c: Created sink 0 "Spkr" with sample spec "s16le 2ch 192000Hz"<br>I: source.c: Created source 0 "Spkr.monitor" with sample spec "s16le 2ch 192000Hz"
<br>I: module-alsa-sink.c: Using 3 fragments of size 19200 bytes.<br>I: alsa-util.c: All 2 channels can be mapped to mixer channels. Using hardware volume control.<br>D: module-alsa-sink.c: Thread starting up<br>I: core-util.c
: Successfully enabled SCHED_FIFO scheduling for thread, with priority 5.<br>D: rtpoll.c: Acquired POSIX realtime signal SIGRTMIN+29<br>I: module-alsa-sink.c: Starting playback.<br>I: module.c: Loaded "module-alsa-sink" (index: #0; argument: "device=intelHDA sink_name=Spkr rate=192000").
<br>I: module-alsa-sink.c: Successfully opened device iMic.<br>I: module-alsa-sink.c: Successfully enabled mmap() mode.<br>ALSA lib control.c:909:(snd_ctl_open_noupdate) Invalid CTL iMic<br>I: alsa-util.c: Unable to attach to mixer iMic: No such file or directory
<br>I: alsa-util.c: Unable to attach to mixer hw:(null): No such device<br>I: sink.c: Created sink 1 "HeadPh" with sample spec "s16le 2ch 48000Hz"<br>I: source.c: Created source 1 "HeadPh.monitor
" with sample spec "s16le 2ch 48000Hz"
<br>I: module-alsa-sink.c: Using 4 fragments of size 4796 bytes.<br>D: module-alsa-sink.c: Thread starting up<br>I: core-util.c: Successfully enabled SCHED_FIFO scheduling for thread, with priority 5.<br>D: rtpoll.c: Acquired POSIX realtime signal SIGRTMIN+28
<br>I: module-alsa-sink.c: Starting playback.<br>I: module.c: Loaded "module-alsa-sink" (index: #1; argument: "device=iMic sink_name=HeadPh rate=48000").<br>I: protocol-native.c: loading cookie from disk.
<br>I: module.c: Loaded "module-native-protocol-unix" (index: #2; argument: "").<br>I: module.c: Loaded "module-rescue-streams" (index: #3; argument: "").<br>D: module-suspend-on-idle.c
: Sink Spkr becomes idle.<br>D: module-suspend-on-idle.c: Sink HeadPh becomes idle.<br>D: module-suspend-on-idle.c: Source Spkr.monitor becomes idle.<br>D: module-suspend-on-idle.c: Source HeadPh.monitor becomes idle.<br>
I: module.c: Loaded "module-suspend-on-idle" (index: #4; argument: "").<br>I: client.c: Created 0 "STDIN/STDOUT client"<br>I: module.c: Loaded "module-cli" (index: #5; argument: "exit_on_eof=1").
<br>I: main.c: Daemon startup complete.<br>Welcome to PulseAudio! Use "help" for usage information.<br>>>> I: module-suspend-on-idle.c: Sink Spkr idle for too long, suspending ...<br>I: module-alsa-sink.c
: Device suspended...<br>I: module-suspend-on-idle.c: Source HeadPh.monitor idle for too long, suspending ...<br>I: module-suspend-on-idle.c: Source Spkr.monitor idle for too long, suspending ...<br>I: module-suspend-on-idle.c
: Sink HeadPh idle for too long, suspending ...<br>I: module-alsa-sink.c: Device suspended...<br><br>I also tried appending fragments and fragment_size options at the end of the intelHDA alsa sink configuration but it still reports "Using 3 fragments of size 19200 bytes.". I was hoping to improve buffering but it seems I am hitting on a bug here.
<br><br>I used to run dmix with my intelHDA running at rate 192000Hz without any problems. Plus, the cracks and pops come using both alsa-pulse and gst-pulse.<br><br>Thanks in advance for the help.<br><font color="#888888">
</font></blockquote><div><br>I am surprised... *no one* faced this problem?<br><br>_r<br></div></div>