You are not logged in.

#1 2012-11-05 01:53:43

greg5
Member
From: Columbus OH
Registered: 2011-09-28
Posts: 19

[SOLVED] No sound for optical / spdif output with alsa

When running speaker-test I get no sound from my speakers no matter what options I try in alsamixer.

Here is some info:

aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: NVidia [HDA NVidia], device 3: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: NVidia [HDA NVidia], device 7: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: NVidia [HDA NVidia], device 8: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: NVidia [HDA NVidia], device 9: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: AV710 [Chaintech AV-710], device 0: ICE1724 [ICE1724]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: AV710 [Chaintech AV-710], device 1: ICE1724 IEC958 [ICE1724 IEC958]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: AV710 [Chaintech AV-710], device 2: ICE1724 Surrounds [ICE1724 Surround PCM]
  Subdevices: 2/2
  Subdevice #0: subdevice #0
  Subdevice #1: subdevice #1

.asoundrc:

defaults.pcm.card 1
deffaults.pcm.device 0
defaults.ctl.card 1

modules:

lsmod | grep '^snd' | column -t
snd_hda_codec_hdmi  24487   4
snd_ice1724         116994  0
snd_ak4113          7384    1   snd_ice1724
snd_pt2258          3156    1   snd_ice1724
snd_ak4114          7685    1   snd_ice1724
snd_i2c             4106    2   snd_pt2258,snd_ice1724
snd_ice17xx_ak4xxx  2436    1   snd_ice1724
snd_ak4xxx_adda     8069    2   snd_ice1724,snd_ice17xx_ak4xxx
snd_ac97_codec      113300  1   snd_ice1724
snd_rawmidi         18479   1   snd_ice1724
snd_seq_device      5268    1   snd_rawmidi
snd_hda_intel       26180   0
snd_hda_codec       98033   2   snd_hda_codec_hdmi,snd_hda_intel
snd_hwdep           6300    1   snd_hda_codec
snd_pcm             75167   7   snd_ice1724,snd_ac97_codec,snd_hda_codec_hdmi,snd_hda_codec,snd_hda_intel,snd_ak4113,snd_ak4114
snd_page_alloc      7217    2   snd_pcm,snd_hda_intel
snd_timer           18934   1   snd_pcm
snd                 59989   15  snd_pt2258,snd_ice1724,snd_ac97_codec,snd_hwdep,snd_timer,snd_hda_codec_hdmi,snd_i2c,snd_pcm,snd_rawmidi,snd_hda_codec,snd_ak4xxx_adda,snd_hda_intel,snd_seq_device,snd_ak4113,snd_ak4114
ls -l /dev/snd
total 0
drwxr-xr-x  2 root root       80 Nov  4 15:14 by-path/
crw-rw----+ 1 root audio 116, 16 Nov  4 15:14 controlC0
crw-rw----+ 1 root audio 116,  7 Nov  4 15:14 controlC1
crw-rw----+ 1 root audio 116, 15 Nov  4 15:14 hwC0D0
crw-rw----+ 1 root audio 116, 14 Nov  4 15:14 hwC0D1
crw-rw----+ 1 root audio 116, 13 Nov  4 15:14 hwC0D2
crw-rw----+ 1 root audio 116, 12 Nov  4 15:14 hwC0D3
crw-rw----+ 1 root audio 116, 11 Nov  4 15:14 pcmC0D3p
crw-rw----+ 1 root audio 116, 10 Nov  4 15:14 pcmC0D7p
crw-rw----+ 1 root audio 116,  9 Nov  4 15:14 pcmC0D8p
crw-rw----+ 1 root audio 116,  8 Nov  4 15:14 pcmC0D9p
crw-rw----+ 1 root audio 116,  6 Nov  4 20:51 pcmC1D0c
crw-rw----+ 1 root audio 116,  5 Nov  4 20:47 pcmC1D0p
crw-rw----+ 1 root audio 116,  4 Nov  4 15:14 pcmC1D1c
crw-rw----+ 1 root audio 116,  3 Nov  4 15:14 pcmC1D1p
crw-rw----+ 1 root audio 116,  2 Nov  4 15:14 pcmC1D2p
crw-rw----  1 root audio 116,  1 Nov  4 15:14 seq
crw-rw----+ 1 root audio 116, 33 Nov  4 15:14 timer

Any thoughts?

Last edited by greg5 (2012-11-05 02:32:56)

Offline

#2 2012-11-05 02:00:38

2ManyDogs
Forum Fellow
Registered: 2012-01-15
Posts: 4,645

Re: [SOLVED] No sound for optical / spdif output with alsa

greg5 wrote:

.asoundrc:

defaults.pcm.card 1
deffaults.pcm.device 0
defaults.ctl.card 1

Is this really what you have in .asoundrc? The second line has a typo ("deffaults") -- have you tried without this file?

Offline

#3 2012-11-05 02:07:45

greg5
Member
From: Columbus OH
Registered: 2011-09-28
Posts: 19

Re: [SOLVED] No sound for optical / spdif output with alsa

I did have that typo on my .asoundrc, but I just removed it and I still don't get any audio. I do here a slight popping noise when I mute and unmute s/pdif 0 in alsa mixer.

Offline

#4 2012-11-05 02:12:06

2ManyDogs
Forum Fellow
Registered: 2012-01-15
Posts: 4,645

Re: [SOLVED] No sound for optical / spdif output with alsa

Have you read the wiki Alsa topic, specifically the section on SPDIF output?

Last edited by 2ManyDogs (2012-11-05 02:12:59)

Offline

#5 2012-11-05 02:19:22

greg5
Member
From: Columbus OH
Registered: 2011-09-28
Posts: 19

Re: [SOLVED] No sound for optical / spdif output with alsa

I've read it and have no clue what to do. My playback switch was already set to true and I never found the second option ac97 playback.

Offline

#6 2012-11-05 02:25:47

2ManyDogs
Forum Fellow
Registered: 2012-01-15
Posts: 4,645

Re: [SOLVED] No sound for optical / spdif output with alsa

Have you tried other device options in .asoundrc? According to the ALSA wiki, the digital device is the one marked IEC958. That would be card 1 device 1.

You might want to read that entire topic in the ALSA wiki if you have not done so already. It has methods for directly testing the digital output using aplay.

Last edited by 2ManyDogs (2012-11-05 02:31:33)

Offline

#7 2012-11-05 02:36:02

greg5
Member
From: Columbus OH
Registered: 2011-09-28
Posts: 19

Re: [SOLVED] No sound for optical / spdif output with alsa

That worked! Thanks 2ManyDogs.

The corrected .asoundrc:

defaults.pcm.card 1
defaults.pcm.device 1
defaults.ctl.card 1

Offline

#8 2012-11-05 03:15:09

2ManyDogs
Forum Fellow
Registered: 2012-01-15
Posts: 4,645

Re: [SOLVED] No sound for optical / spdif output with alsa

You're welcome, and thanks for marking it [solved].

Offline

Board footer

Powered by FluxBB