Note that in Brebs' fix this line:

pcm "hw:0,0"

is a card number of a hardware sound device on HIS system.  The number
may change at discovery because of udev
(http://alsa.opensrc.org/MultipleCards), especially if a USB sound
device is added or removed, making the .asoundrc configuration use the
wrong device.

To identify current sound devices and related modules:

while read sdmod; do grep "^[[:space:]]$(echo "$sdmod" | sed -n
's/^\([[:digit:]]\+\)\([^[:digit:]]\+.*\)/\1/p')[[:space:]]"
/proc/asound/cards ; echo " $sdmod" ; done</proc/asound/modules

For example, the result on my system is:
0 [SB             ]: HDA-Intel - HDA ATI SB
 0 snd_hda_intel
 1 [U0x46d0x8cc    ]: USB-Audio - USB Device 0x46d:0x8cc
 1 snd_usb_audio
 2 [HDMI           ]: HDA-Intel - HDA ATI HDMI
 2 snd_hda_intel

Another way to identify the device is with "aplay -l" (aplay is in the
alsa-utils package):

aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: SB [HDA ATI SB], device 0: ALC1200 Analog [ALC1200 Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: SB [HDA ATI SB], device 1: ALC1200 Digital [ALC1200 Digital]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 2: HDMI [HDA ATI HDMI], device 3: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
        
The value in brackets from /proc/asound/cards (or the value after the card 
number and before the bracketed value from aplay -l) is the ID of the device 
which can be used in place of the card number.  So the pcm slave device for the 
pcm.doom3 entry on my system is:

pcm "hw:SB"

The device can be permanently assigned via /etc/asound but to prevent
the device IDs from changing the ID must be set in the options for the
module in /etc/modprobe.d using "index=#" where # starts at 0.  Use
"modinfo -p <module_name>" for a list of parameters.  Normally device 0
is the default.  The "slots=" option is another possibility but may only
work with USB devices.

A custom udev rule can also be used: http://alsa.opensrc.org/Udev

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to pulseaudio in Ubuntu.
https://bugs.launchpad.net/bugs/577727

Title:
  Ubuntu 10.04 sound lag with enemy territory quake wars

Status in “pulseaudio” package in Ubuntu:
  Triaged

Bug description:
  Binary package hint: pulseaudio

  To reproduce:
  Install Ubuntu 10.04 x64
  Install drivers and update ubuntu
  Install enemy territory quake wars demo or full game
  Start a game vs computer
  Fire gun in air
  Sometimes takes a moment or 2 to start lagging.  Starts lagging when the 
sound apparently disappears.

  demo available at http://www.fileplanet.com/181742/180000/fileinfo
  /Enemy-Territory:-Quake-Wars-Demo-%28Linux%29

  Apparently works on Kubuntu according to 
http://ubuntuforums.org/showpost.php?p=9246877&postcount=5
  I've not been able to get it to even start on Kubuntu (executable not found) 
however

  ProblemType: Bug
  DistroRelease: Ubuntu 10.04
  Package: pulseaudio 1:0.9.22~0.9.21+stable-queue-32-g8478-0ubuntu14
  ProcVersionSignature: Ubuntu 2.6.32-22.33-generic 2.6.32.11+drm33.2
  Uname: Linux 2.6.32-22-generic x86_64
  NonfreeKernelModules: nvidia
  AlsaVersion: Advanced Linux Sound Architecture Driver Version 1.0.21.
  Architecture: amd64
  AudioDevicesInUse:
   USER        PID ACCESS COMMAND
   /dev/snd/controlC0:  chris      2085 F.... pulseaudio
   /dev/snd/controlC1:  chris      2085 F.... pulseaudio
  Card0.Amixer.info:
   Card hw:0 'D2'/'Asus Virtuoso 200 (rev 2) at 0xe800, irq 16'
     Mixer name : 'AV200'
     Components : 'PCM1796 CS5381 AV200'
     Controls      : 23
     Simple ctrls  : 12
  Card1.Amixer.info:
   Card hw:1 'Intel'/'HDA Intel at 0xf7ff8000 irq 22'
     Mixer name : 'VIA ID 4441'
     Components : 'HDA:11064441,104383d0,00100100'
     Controls      : 4
     Simple ctrls  : 3
  Date: Sun May  9 09:09:53 2010
  InstallationMedia: Ubuntu 10.04 LTS "Lucid Lynx" - Release amd64 (20100429)
  ProcEnviron:
   LANG=en_GB.utf8
   SHELL=/bin/bash
  SourcePackage: pulseaudio
  dmi.bios.date: 12/07/2009
  dmi.bios.vendor: American Megatrends Inc.
  dmi.bios.version: 1207
  dmi.board.asset.tag: To Be Filled By O.E.M.
  dmi.board.name: P7P55D LE
  dmi.board.vendor: ASUSTeK Computer INC.
  dmi.board.version: Rev 1.xx
  dmi.chassis.asset.tag: Asset-1234567890
  dmi.chassis.type: 3
  dmi.chassis.vendor: Chassis Manufacture
  dmi.chassis.version: Chassis Version
  dmi.modalias: 
dmi:bvnAmericanMegatrendsInc.:bvr1207:bd12/07/2009:svnSystemmanufacturer:pnSystemProductName:pvrSystemVersion:rvnASUSTeKComputerINC.:rnP7P55DLE:rvrRev1.xx:cvnChassisManufacture:ct3:cvrChassisVersion:
  dmi.product.name: System Product Name
  dmi.product.version: System Version
  dmi.sys.vendor: System manufacturer

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/pulseaudio/+bug/577727/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to     : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to