alsa and no sound in Debian Squeeze x64 GNOME

I started to use Gnome recently under my Debian Squeeze and I noticed that I have no sound in flash (youtube) as well as in vlc. Well, it seems like I need to configure my .asoundrc with the proper card id. Here is a nice command which allows you to enum your devices:

$ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: Intel [HDA Intel], device 0: ALC1200 Analog [ALC1200 Analog]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: Intel [HDA Intel], device 1: ALC1200 Digital [ALC1200 Digital]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: HDMI [HDA ATI HDMI], device 3: ATI HDMI [ATI HDMI]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 3: default [Microsoft LifeChat LX-3000 ], device 0: USB Audio [USB Audio]
Subdevices: 1/1
Subdevice #0: subdevice #0

In my case I am going to use 3 as I am going to use Microsoft USB headphones to listen music. It might be different in your case. So, create file ~/.asoundrc with the following content:

pcm.!default {
	type hw
	card 3
}

ctl.!default {
	type hw           
	card 3
}

Save the file and try to check if you have sound.

Update: If by some reason your card id gets changing after reboots, follow this article to fix the issue: http://www.shcherbyna.com/?p=2004

4 Comments

  1. Thank You!
    This was the key for me ‘create file ~/.asoundrc ”
    On-board sound has two cards one for HDMI and one for Analog, card I wanted was card 1 but system defaulted to card 0.
    This file sorted it out and made me a happy camper!

    several sites that I visited had no clue!

    System info:

    Operating system Debian Linux 6.0
    Kernel and CPU Linux 2.6.32-5-amd64 on x86_64
    Processor information AMD A8-3850 APU with Radeon(tm) HD Graphics, 4 cores

Leave a Reply

Your email address will not be published. Required fields are marked *


five − 2 =

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>