[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Can't get sound to work



On Thu, 15 Jan 2015 21:21:55 +0100 Daniel Haude sent:

> Hi all, 
> 
> this is my umptieth Debian installation I've done on various PCs over
> the years, but this time the sound setup really has me stumped. I
> can't hear anything unless I use aplay with -D hw:0,0 but setting
> that in the configuration file doesn't help. No other
> sound-outputting program works. Here's a shell excerpt: 
> 
> bl@dotcom:~$ aplay test.wav           # can't hear nothing
> bl@dotcom:~$ aplay -D hw:0,0 test.wav # this plays sound
> bl@dotcom:~$ cat .asoundrc
> cat: .asoundrc: No such file or directory
> bl@dotcom:~$ cat /etc/asound.conf 
> pcm.!default {
>         type hw
>         card 0
>         device 0
> }
> bl@dotcom:~$ aplay -l
> **** List of PLAYBACK Hardware Devices ****
> card 0: Intel [HDA Intel], device 0: AD1984 Analog [AD1984 Analog]
>   Subdevices: 1/1
>   Subdevice #0: subdevice #0
> card 0: Intel [HDA Intel], device 2: AD1984 Alt Analog [AD1984 Alt
> Analog]
>   Subdevices: 1/1
>   Subdevice #0: subdevice #0
> bl@dotcom:~$ cat /proc/asound/cards 
>  0 [Intel          ]: HDA-Intel - HDA Intel
>                       HDA Intel at 0xfe9dc000 irq 45
> bl@dotcom:~$ 

Much the same here. Sound has always been a bit of a mystery in Debian
for me ever since Sarge.

This is a Jessie system.

The time I got it working, I think in Squeeze? Florian Kulzer had me
debugging things with the commands below and managed to see what the
problem was.

Interestingly I had sound working with alsa before one of the upgrades
recently. But I don't use sound all that often, so have no idea when it
was lost.Installed and tried with pulseaudio, It said that the devices
were locked, so have purged that again now.

I have not been able to see from the commands results of the commands
that Florian supplied how I can get my sound working.

Here are my results and those commands, you might compare and if you
have much the same results we will know we both have the same problem:

$ lspci

00:01.0 VGA compatible controller: Advanced Micro Devices, Inc.
[AMD/ATI] Wrestler [Radeon HD 7310]
00:01.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] Wrestler
HDMI Audio

$ cat /dev/sndstat
No such file or directory

~$ aplay -l

**** List of PLAYBACK Hardware Devices ****
card 0: Generic [HD-Audio Generic], device 3: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: Generic_1 [HD-Audio Generic], device 0: ALC269VB Analog
[ALC269VB Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0



$ lsmod | grep snd

snd_hda_codec_realtek    63031  1 
snd_hda_codec_hdmi     45118  1 
snd_hda_codec_generic    63107  1 snd_hda_codec_realtek
snd_hda_intel          26327  5 
snd_hda_controller     26727  1 snd_hda_intel
snd_hda_codec         104463  5 
snd_hda_codec_realtek,snd_hda_codec_hdmi,snd_hda_codec_generic,snd_hda_intel,
snd_hda_controller
snd_hwdep              13148  1 snd_hda_codec
snd_pcm                88662  4 
snd_hda_codec_hdmi,snd_hda_codec,snd_hda_intel,snd_hda_controller
snd_timer              26614  1 snd_pcm
snd                    65244  18 
snd_hda_codec_realtek,snd_hwdep,snd_timer,snd_hda_codec_hdmi,snd_pcm,
snd_hda_codec_generic,snd_hda_codec,snd_hda_intel
soundcore              13026  2 snd,snd_hda_codec

$ cat /proc/asound/cards

 0 [Generic        ]: HDA-Intel - HD-Audio Generic
                      HD-Audio Generic at 0xf0444000 irq 46
 1 [Generic_1      ]: HDA-Intel - HD-Audio Generic
                      HD-Audio Generic at 0xf0440000 irq 47

$ udevadm trigger --verbose --subsystem-match=sound

/sys/devices/pci0000:00/0000:00:01.1/sound/card0
/sys/devices/pci0000:00/0000:00:01.1/sound/card0/hdaudioC0D0
/sys/devices/pci0000:00/0000:00:01.1/sound/card0/hdaudioC0D0/hwC0D0
/sys/devices/pci0000:00/0000:00:01.1/sound/card0/hdaudioC0D0/pcmC0D3p
/sys/devices/pci0000:00/0000:00:01.1/sound/card0/controlC0
/sys/devices/pci0000:00/0000:00:14.2/sound/card1
/sys/devices/pci0000:00/0000:00:14.2/sound/card1/hdaudioC1D0
/sys/devices/pci0000:00/0000:00:14.2/sound/card1/hdaudioC1D0/hwC1D0
/sys/devices/pci0000:00/0000:00:14.2/sound/card1/hdaudioC1D0/pcmC1D0c
/sys/devices/pci0000:00/0000:00:14.2/sound/card1/hdaudioC1D0/pcmC1D0p
/sys/devices/pci0000:00/0000:00:14.2/sound/card1/controlC1
/sys/devices/virtual/sound/timer

$ speaker-test -t sine -c 2

No sound is heard.

$ amixer

Simple mixer control 'PCM',0
  Capabilities: pvolume
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 255
  Mono:
  Front Left: Playback 255 [100%] [0.00dB]
  Front Right: Playback 255 [100%] [0.00dB]
Simple mixer control 'IEC958',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [on]
Simple mixer control 'Digital',0
  Capabilities: cvolume
  Capture channels: Front Left - Front Right
  Limits: Capture 0 - 120
  Front Left: Capture 60 [50%] [0.00dB]
  Front Right: Capture 60 [50%] [0.00dB]

Alsamixergui only shows 3 sliders:

PCM - right to the top
IEC958 - empty
Digital - half way up

All locks open.

$ lsof +c0 $(find /dev/ -group audio)

Returns no results, unless I have alsmixergui on, then it shows that:

$ lsof +c0 $(find /dev/ -group audio)

COMMAND       PID    USER   FD   TYPE DEVICE SIZE/OFF  NODE NAME
alsamixergui 5474 charlie    3u   CHR  116,2      0t0
10941 /dev/snd/controlC0

Be well,
Charlie

-- 
	Registered Linux User:- 329524
	***********************************************

	In three words I can sum up everything I've learned about life.
	It goes on. ...............Robert Frost

	***********************************************

	Debian GNU/Linux - just the best way to create magic

	-----------------------------------------------------


Reply to: