Find the answer to your Linux question:
Results 1 to 2 of 2
I hope someone can help me, I'm having sound playback issues here. Playback seems to stop working randomly (everything but the event sounds). By event sounds I mean when receiving ...
  1. #1
    Just Joined!
    Join Date
    Jul 2009
    Location
    Belo Horizonte, Brazil
    Posts
    4

    Sound issue on Kubuntu 11.04

    I hope someone can help me,

    I'm having sound playback issues here. Playback seems to stop working randomly (everything but the event sounds). By event sounds I mean when receiving a message through kopete, for example.

    Playback devices:
    Internal Audio Analog Stereo (Active)
    GF104 High Definition Audio Controller Digital Stereo (HDMI) (Not active)

    Speaking of which it just happened again while I was trying to pause the music through Amarok. I had Kmix open and saw that the "Playback Streams" tab went blank for a while.

    I've tried reformatting as well as installing both 32bit and 64 bit versions. Sound still breaks at seemingly random times.

    Also, for problem #2, sound comes out of both speakers and headphone output. Anyone know how to autodetect if there's a headphone so it stops playing through the speakers?

    lsmod
    Code:
    Module                  Size  Used by
    dm_crypt               22993  0 
    vesafb                 13761  1 
    snd_hda_codec_hdmi     28103  4 
    snd_usb_audio         112426  1 
    snd_usbmidi_lib        25139  1 snd_usb_audio
    nvidia              10709116  38 
    snd_seq_midi           13324  0 
    snd_seq_midi_event     14899  1 snd_seq_midi
    snd_hda_codec_via      62470  1 
    snd_seq                61621  2 snd_seq_midi,snd_seq_midi_event
    asus_atk0110           17976  0 
    snd_hda_intel          33211  4 
    ppdev                  17113  0 
    snd_hda_codec         103804  3 snd_hda_codec_hdmi,snd_hda_codec_via,snd_hda_intel
    snd_hwdep              13604  2 snd_usb_audio,snd_hda_codec
    snd_rawmidi            30486  2 snd_usbmidi_lib,snd_seq_midi
    snd_pcm                96625  5 snd_hda_codec_hdmi,snd_usb_audio,snd_hda_intel,snd_hda_codec
    snd_seq_device         14462  3 snd_seq_midi,snd_seq,snd_rawmidi
    snd_timer              29602  3 snd_seq,snd_pcm
    gspca_zc3xx            52441  0 
    parport_pc             36959  1 
    snd                    67382  20 snd_hda_codec_hdmi,snd_usb_audio,snd_usbmidi_lib,snd_hda_codec_via,snd_seq,snd_hda_intel,snd_hda_codec,snd_hwdep,snd_rawmidi,snd_pcm,snd_seq_device,snd_timer
    soundcore              12680  1 snd
    snd_page_alloc         18529  2 snd_hda_intel,snd_pcm
    gspca_main             36853  1 gspca_zc3xx
    psmouse                73535  0 
    serio_raw              13166  0 
    videodev               82052  1 gspca_main
    v4l2_compat_ioctl32    17078  1 videodev
    lp                     17825  0 
    parport                46458  3 ppdev,parport_pc,lp
    reiserfs              248223  1 
    usbhid                 46956  0 
    hid                    91020  1 usbhid
    r8169                  48022  0 
    pata_jmicron           12747  1
    lspci
    Code:
    00:00.0 Host bridge: Intel Corporation Core Processor DMI (rev 11)
    00:03.0 PCI bridge: Intel Corporation Core Processor PCI Express Root Port 1 (rev 11)
    00:08.0 System peripheral: Intel Corporation Core Processor System Management Registers (rev 11)
    00:08.1 System peripheral: Intel Corporation Core Processor Semaphore and Scratchpad Registers (rev 11)
    00:08.2 System peripheral: Intel Corporation Core Processor System Control and Status Registers (rev 11)
    00:08.3 System peripheral: Intel Corporation Core Processor Miscellaneous Registers (rev 11)
    00:10.0 System peripheral: Intel Corporation Core Processor QPI Link (rev 11)
    00:10.1 System peripheral: Intel Corporation Core Processor QPI Routing and Protocol Registers (rev 11)
    00:16.0 Communication controller: Intel Corporation 5 Series/3400 Series Chipset HECI Controller (rev 06)
    00:1a.0 USB Controller: Intel Corporation 5 Series/3400 Series Chipset USB2 Enhanced Host Controller (rev 06)
    00:1b.0 Audio device: Intel Corporation 5 Series/3400 Series Chipset High Definition Audio (rev 06)
    00:1c.0 PCI bridge: Intel Corporation 5 Series/3400 Series Chipset PCI Express Root Port 1 (rev 06)
    00:1c.2 PCI bridge: Intel Corporation 5 Series/3400 Series Chipset PCI Express Root Port 3 (rev 06)
    00:1c.5 PCI bridge: Intel Corporation 5 Series/3400 Series Chipset PCI Express Root Port 6 (rev 06)
    00:1d.0 USB Controller: Intel Corporation 5 Series/3400 Series Chipset USB2 Enhanced Host Controller (rev 06)
    00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev a6)
    00:1f.0 ISA bridge: Intel Corporation 5 Series Chipset LPC Interface Controller (rev 06)
    00:1f.2 IDE interface: Intel Corporation 5 Series/3400 Series Chipset 4 port SATA IDE Controller (rev 06)
    00:1f.3 SMBus: Intel Corporation 5 Series/3400 Series Chipset SMBus Controller (rev 06)
    00:1f.5 IDE interface: Intel Corporation 5 Series/3400 Series Chipset 2 port SATA IDE Controller (rev 06)
    01:00.0 VGA compatible controller: nVidia Corporation GF104 [GeForce GTX 460] (rev a1)
    01:00.1 Audio device: nVidia Corporation GF104 High Definition Audio Controller (rev a1)
    02:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller (rev 03)
    03:00.0 IDE interface: JMicron Technology Corp. JMB368 IDE controller
    aplay -l
    Code:
    **** List of PLAYBACK Hardware Devices ****
    card 0: Intel [HDA Intel], device 0: VT1708S Analog [VT1708S Analog]
      Subdevices: 2/2
      Subdevice #0: subdevice #0
      Subdevice #1: subdevice #1
    card 0: Intel [HDA Intel], device 1: VT1708S Digital [VT1708S Digital]
      Subdevices: 1/1
      Subdevice #0: subdevice #0
    card 2: NVidia [HDA NVidia], device 3: HDMI 0 [HDMI 0]
      Subdevices: 1/1
      Subdevice #0: subdevice #0
    card 2: NVidia [HDA NVidia], device 7: HDMI 0 [HDMI 0]
      Subdevices: 1/1
      Subdevice #0: subdevice #0
    card 2: NVidia [HDA NVidia], device 8: HDMI 0 [HDMI 0]
      Subdevices: 1/1
      Subdevice #0: subdevice #0
    card 2: NVidia [HDA NVidia], device 9: HDMI 0 [HDMI 0]
      Subdevices: 1/1
      Subdevice #0: subdevice #0
    aplay -L
    Code:
    default
        Playback/recording through the PulseAudio sound server
    pulse
        Playback/recording through the PulseAudio sound server
    front:CARD=Intel,DEV=0
        HDA Intel, VT1708S Analog
        Front speakers
    surround40:CARD=Intel,DEV=0
        HDA Intel, VT1708S Analog
        4.0 Surround output to Front and Rear speakers
    surround41:CARD=Intel,DEV=0
        HDA Intel, VT1708S Analog
        4.1 Surround output to Front, Rear and Subwoofer speakers
    surround50:CARD=Intel,DEV=0
        HDA Intel, VT1708S Analog
        5.0 Surround output to Front, Center and Rear speakers
    surround51:CARD=Intel,DEV=0
        HDA Intel, VT1708S Analog
        5.1 Surround output to Front, Center, Rear and Subwoofer speakers
    surround71:CARD=Intel,DEV=0
        HDA Intel, VT1708S Analog
        7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
    iec958:CARD=Intel,DEV=0
        HDA Intel, VT1708S Digital
        IEC958 (S/PDIF) Digital Audio Output
    dmix:CARD=Intel,DEV=0
        HDA Intel, VT1708S Analog
        Direct sample mixing device
    dmix:CARD=Intel,DEV=1
        HDA Intel, VT1708S Digital
        Direct sample mixing device
    dsnoop:CARD=Intel,DEV=0
        HDA Intel, VT1708S Analog
        Direct sample snooping device
    dsnoop:CARD=Intel,DEV=1
        HDA Intel, VT1708S Digital
        Direct sample snooping device
    hw:CARD=Intel,DEV=0
        HDA Intel, VT1708S Analog
        Direct hardware device without any conversions
    hw:CARD=Intel,DEV=1
        HDA Intel, VT1708S Digital
        Direct hardware device without any conversions
    plughw:CARD=Intel,DEV=0
        HDA Intel, VT1708S Analog
        Hardware device with all software conversions
    plughw:CARD=Intel,DEV=1
        HDA Intel, VT1708S Digital
        Hardware device with all software conversions
    hdmi:CARD=NVidia,DEV=0
        HDA NVidia, HDMI 0
        HDMI Audio Output
    hdmi:CARD=NVidia,DEV=1
        HDA NVidia, HDMI 0
        HDMI Audio Output
    hdmi:CARD=NVidia,DEV=2
        HDA NVidia, HDMI 0
        HDMI Audio Output
    hdmi:CARD=NVidia,DEV=3
        HDA NVidia, HDMI 0
        HDMI Audio Output
    dmix:CARD=NVidia,DEV=3
        HDA NVidia, HDMI 0
        Direct sample mixing device
    dmix:CARD=NVidia,DEV=7
        HDA NVidia, HDMI 0
        Direct sample mixing device
    dmix:CARD=NVidia,DEV=8
        HDA NVidia, HDMI 0
        Direct sample mixing device
    dmix:CARD=NVidia,DEV=9
        HDA NVidia, HDMI 0
        Direct sample mixing device
    dsnoop:CARD=NVidia,DEV=3
        HDA NVidia, HDMI 0
        Direct sample snooping device
    dsnoop:CARD=NVidia,DEV=7
        HDA NVidia, HDMI 0
        Direct sample snooping device
    dsnoop:CARD=NVidia,DEV=8
        HDA NVidia, HDMI 0
        Direct sample snooping device
    dsnoop:CARD=NVidia,DEV=9
        HDA NVidia, HDMI 0
        Direct sample snooping device
    hw:CARD=NVidia,DEV=3
        HDA NVidia, HDMI 0
        Direct hardware device without any conversions
    hw:CARD=NVidia,DEV=7
        HDA NVidia, HDMI 0
        Direct hardware device without any conversions
    hw:CARD=NVidia,DEV=8
        HDA NVidia, HDMI 0
        Direct hardware device without any conversions
    hw:CARD=NVidia,DEV=9
        HDA NVidia, HDMI 0
        Direct hardware device without any conversions
    plughw:CARD=NVidia,DEV=3
        HDA NVidia, HDMI 0
        Hardware device with all software conversions
    plughw:CARD=NVidia,DEV=7
        HDA NVidia, HDMI 0
        Hardware device with all software conversions
    plughw:CARD=NVidia,DEV=8
        HDA NVidia, HDMI 0
        Hardware device with all software conversions
    plughw:CARD=NVidia,DEV=9
        HDA NVidia, HDMI 0
        Hardware device with all software conversions
    alsa-base.conf
    Code:
    # autoloader aliases
    install sound-slot-0 /sbin/modprobe snd-card-0
    install sound-slot-1 /sbin/modprobe snd-card-1
    install sound-slot-2 /sbin/modprobe snd-card-2
    install sound-slot-3 /sbin/modprobe snd-card-3
    install sound-slot-4 /sbin/modprobe snd-card-4
    install sound-slot-5 /sbin/modprobe snd-card-5
    install sound-slot-6 /sbin/modprobe snd-card-6
    install sound-slot-7 /sbin/modprobe snd-card-7
    
    # Cause optional modules to be loaded above generic modules
    install snd /sbin/modprobe --ignore-install snd $CMDLINE_OPTS && { /sbin/modprobe --quiet --use-blacklist snd-ioctl32 ; /sbin/modprobe --quiet --use-blacklist snd-seq ; }
    #
    # Workaround at bug #499695 (reverted in Ubuntu see LP #319505)
    install snd-pcm /sbin/modprobe --ignore-install snd-pcm $CMDLINE_OPTS && { /sbin/modprobe --quiet --use-blacklist snd-pcm-oss ; : ; }
    install snd-mixer /sbin/modprobe --ignore-install snd-mixer $CMDLINE_OPTS && { /sbin/modprobe --quiet --use-blacklist snd-mixer-oss ; : ; }
    install snd-seq /sbin/modprobe --ignore-install snd-seq $CMDLINE_OPTS && { /sbin/modprobe --quiet --use-blacklist snd-seq-midi ; /sbin/modprobe --quiet --use-blacklist snd-seq-oss ; : ; }
    #
    install snd-rawmidi /sbin/modprobe --ignore-install snd-rawmidi $CMDLINE_OPTS && { /sbin/modprobe --quiet --use-blacklist snd-seq-midi ; : ; }
    # Cause optional modules to be loaded above sound card driver modules
    install snd-emu10k1 /sbin/modprobe --ignore-install snd-emu10k1 $CMDLINE_OPTS && { /sbin/modprobe --quiet --use-blacklist snd-emu10k1-synth ; }
    install snd-via82xx /sbin/modprobe --ignore-install snd-via82xx $CMDLINE_OPTS && { /sbin/modprobe --quiet --use-blacklist snd-seq ; }
    
    # Load saa7134-alsa instead of saa7134 (which gets dragged in by it anyway)
    install saa7134 /sbin/modprobe --ignore-install saa7134 $CMDLINE_OPTS && { /sbin/modprobe --quiet --use-blacklist saa7134-alsa ; : ; }
    # Prevent abnormal drivers from grabbing index 0
    options bt87x index=-2
    options cx88_alsa index=-2
    options saa7134-alsa index=-2
    options snd-atiixp-modem index=-2
    options snd-intel8x0m index=-2
    options snd-via82xx-modem index=-2
    options snd-usb-audio index=-2
    options snd-usb-caiaq index=-2
    options snd-usb-ua101 index=-2
    options snd-usb-us122l index=-2
    options snd-usb-usx2y index=-2
    # Ubuntu #62691, enable MPU for snd-cmipci
    options snd-cmipci mpu_port=0x330 fm_port=0x388
    # Keep snd-pcsp from being loaded as first soundcard
    options snd-pcsp index=-2
    # Keep snd-usb-audio from beeing loaded as first soundcard
    options snd-usb-audio index=-2
    Thanks in advance =)
    Last edited by lawck; 05-05-2011 at 10:44 PM.

  2. #2
    Just Joined!
    Join Date
    Jan 2012
    Posts
    1
    check this:
    speaker-test -c5 -twav -Dplughw:2,7

    if works, try play:
    /usr/local/bin/mplayer -fs file.avi -display :0.1 -ao alsa:device=hw=2.7
    or:
    /usr/local/bin/mplayer file.avi -ao alsa:device=hw=2.7

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...