You are not logged in.

#1 2010-09-01 11:14:08

BaconPie
Member
Registered: 2010-08-11
Posts: 209

Speakers "POP" on boot

My problem is exactly the same as in this thread, however my speakers also pop when the alsa daemon is loaded at boot up (right before I a prompted to log in).

I solved the shutting down POP by adding the following lines (as detailed in the above link):

# Stop poping
/usr/bin/amixer set Master mute >/dev/null
modprobe -r snd-hda-intel

Full '/etc/rc.d/alsa':

#!/bin/bash

. /etc/rc.conf
. /etc/conf.d/alsa
. /etc/rc.d/functions

case "$1" in
  start)
    stat_busy "Restoring ALSA Levels"
    /usr/sbin/alsactl $ALSA_ARGS restore
    if [ $? -gt 0 ]; then
      stat_fail
    else
      stat_done
      add_daemon alsa
    fi

    POWERSAVE=${POWERSAVE:-0}
    if [ -e /sys/module/snd_ac97_codec/parameters/power_save \
          -a $POWERSAVE -ne 0 ]; then
      echo $POWERSAVE > /sys/module/snd_ac97_codec/parameters/power_save
      [ -c /dev/dsp ] && echo 1 > /dev/dsp
    fi

    if [ -e /sys/module/snd_hda_intel/parameters/power_save \
      -a $POWERSAVE -ne 0 ]; then
      echo $POWERSAVE > /sys/module/snd_hda_intel/parameters/power_save
      [ -c /dev/dsp ] && echo 1 > /dev/dsp
    fi
    ;;
  stop)
    SAVE_VOLUME=${SAVE_VOLUME:-yes}
    if [ "$SAVE_VOLUME" == "yes" ]; then
      stat_busy "Saving ALSA Levels"
      /usr/sbin/alsactl $ALSA_ARGS store
      # Stop poping
      /usr/bin/amixer set Master mute >/dev/null
      modprobe -r snd-hda-intel
    else
      stat_busy "Stopping ALSA"
    fi
    if [ "$MUTE_VOLUME" == "yes" ]; then
      /usr/bin/amixer -q set Master 0 mute
    fi
    if [ $? -gt 0 ]; then
      stat_fail
    else
      stat_done
      rm_daemon alsa
    fi
    ;;
  restart)
    $0 stop
    sleep 1
    $0 start
    ;;
  *)
    echo "usage: $0 {start|stop|restart}"
esac

This has completely removed the POP from shutdown however it still pops when booting. Is there any way to stop this?

lspci:

$ lspci | grep -i audio
00:0f.1 Audio device: nVidia Corporation MCP55 High Definition Audio (rev a2)

alsamixer:

Card: HDA NVidia
Chip: Analog Devices AD1988B

Offline

#2 2010-09-01 11:28:02

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Offline

#3 2010-09-01 12:08:17

BaconPie
Member
Registered: 2010-08-11
Posts: 209

Re: Speakers "POP" on boot

$ ls /lib/modules/2.6.35-ARCH/kernel/sound/pci/hda/
snd-hda-codec-analog.ko   snd-hda-codec-conexant.ko   snd-hda-codec-realtek.ko
snd-hda-codec-atihdmi.ko  snd-hda-codec-idt.ko        snd-hda-codec-si3054.ko
snd-hda-codec-ca0110.ko   snd-hda-codec-intelhdmi.ko  snd-hda-codec-via.ko
snd-hda-codec-cirrus.ko   snd-hda-codec.ko            snd-hda-intel.ko
snd-hda-codec-cmedia.ko   snd-hda-codec-nvhdmi.ko

$ modinfo snd-hda-intel
filename:       /lib/modules/2.6.35-ARCH/kernel/sound/pci/hda/snd-hda-intel.ko
description:    Intel HDA driver
license:        GPL
alias:          pci:v00001022d*sv*sd*bc04sc03i00*
alias:          pci:v00001002d*sv*sd*bc04sc03i00*
alias:          pci:v00001102d00000009sv*sd*bc*sc*i*
alias:          pci:v00006549d00001200sv*sd*bc*sc*i*
alias:          pci:v000010DEd*sv*sd*bc04sc03i00*
alias:          pci:v000010B9d00005461sv*sd*bc*sc*i*
alias:          pci:v00001039d00007502sv*sd*bc*sc*i*
alias:          pci:v00001106d00003288sv*sd*bc*sc*i*
alias:          pci:v00001002d0000AA48sv*sd*bc*sc*i*
alias:          pci:v00001002d0000AA40sv*sd*bc*sc*i*
alias:          pci:v00001002d0000AA38sv*sd*bc*sc*i*
alias:          pci:v00001002d0000AA30sv*sd*bc*sc*i*
alias:          pci:v00001002d0000AA28sv*sd*bc*sc*i*
alias:          pci:v00001002d0000AA20sv*sd*bc*sc*i*
alias:          pci:v00001002d0000AA18sv*sd*bc*sc*i*
alias:          pci:v00001002d0000AA10sv*sd*bc*sc*i*
alias:          pci:v00001002d0000AA08sv*sd*bc*sc*i*
alias:          pci:v00001002d0000AA00sv*sd*bc*sc*i*
alias:          pci:v00001002d0000970Fsv*sd*bc*sc*i*
alias:          pci:v00001002d0000960Fsv*sd*bc*sc*i*
alias:          pci:v00001002d00007919sv*sd*bc*sc*i*
alias:          pci:v00001002d0000793Bsv*sd*bc*sc*i*
alias:          pci:v00001002d00004383sv*sd*bc*sc*i*
alias:          pci:v00001002d0000437Bsv*sd*bc*sc*i*
alias:          pci:v00008086d0000811Bsv*sd*bc*sc*i*
alias:          pci:v00008086d00001C20sv*sd*bc*sc*i*
alias:          pci:v00008086d00003B57sv*sd*bc*sc*i*
alias:          pci:v00008086d00003B56sv*sd*bc*sc*i*
alias:          pci:v00008086d00003A6Esv*sd*bc*sc*i*
alias:          pci:v00008086d00003A3Esv*sd*bc*sc*i*
alias:          pci:v00008086d0000293Fsv*sd*bc*sc*i*
alias:          pci:v00008086d0000293Esv*sd*bc*sc*i*
alias:          pci:v00008086d00002911sv*sd*bc*sc*i*
alias:          pci:v00008086d0000284Bsv*sd*bc*sc*i*
alias:          pci:v00008086d0000269Asv*sd*bc*sc*i*
alias:          pci:v00008086d000027D8sv*sd*bc*sc*i*
alias:          pci:v00008086d00002668sv*sd*bc*sc*i*
depends:        snd-pcm,snd,snd-page-alloc,snd-hda-codec
vermagic:       2.6.35-ARCH SMP preempt mod_unload 
parm:           index:Index value for Intel HD audio interface. (array of int)
parm:           id:ID string for Intel HD audio interface. (array of charp)
parm:           enable:Enable Intel HD audio interface. (array of bool)
parm:           model:Use the given board model. (array of charp)
parm:           position_fix:Fix DMA pointer (0 = auto, 1 = none, 2 = POSBUF). (array of int)
parm:           bdl_pos_adj:BDL position adjustment offset. (array of int)
parm:           probe_mask:Bitmask to probe codecs (default = -1). (array of int)
parm:           probe_only:Only probing and no codec initialization. (array of int)
parm:           single_cmd:Use single command to communicate with codecs (for debugging only). (bool)
parm:           enable_msi:Enable Message Signaled Interrupt (MSI) (int)
parm:           patch:Patch file for Intel HD audio interface. (array of charp)
parm:           beep_mode:Select HDA Beep registration mode (0=off, 1=on, 2=mute switch on/off) (default=1). (array of int)
parm:           power_save:Automatic power-saving timeout (in second, 0 = disable). (int)
parm:           power_save_controller:Reset controller in power save mode. (bool)
$ sudo modprobe snd-hda-intel power_save=0

This does not produce any errors however muting, shutting down (after comenting out the two lines) and booting all still produce a pop.

Offline

#4 2010-09-01 23:45:44

Dave158
Member
Registered: 2010-09-01
Posts: 9
Website

Re: Speakers "POP" on boot

Many people seem to have had this issue. From what I see you will have to manually remove the snd-hda-intel module. Then type this:

modprobe -r snd-hda-intel
reboot

It worked for a few people, but hopefully it will work for you too.

Offline

#5 2010-09-01 23:47:42

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Speakers "POP" on boot

Dave158 wrote:

Many people seem to have had this issue. From what I see you will have to manually remove the snd-hda-intel module. Then type this:

modprobe -r snd-hda-intel
reboot

It worked for a few people, but hopefully it will work for you too.

I think the module will be loaded again when you reboot. If you don't want it, you have to blacklist it.

Offline

#6 2010-09-01 23:53:53

Dave158
Member
Registered: 2010-09-01
Posts: 9
Website

Re: Speakers "POP" on boot

Yeah, I knew there was something I forgot. Sorry.

Offline

#7 2011-02-04 00:34:23

JamieKitson
Member
From: UK
Registered: 2010-10-18
Posts: 161
Website

Re: Speakers "POP" on boot

There seems to be a more elegant solution here:

https://wiki.archlinux.org/index.php/Al … g_Playback

Offline

Board footer

Powered by FluxBB