You are not logged in.

#1 2009-07-03 12:40:35

guzz46
Member
From: New Zealand
Registered: 2009-06-18
Posts: 190

help with spdif optical output [Solved]

I'm having trouble getting sound from my spdif optical output, i have the red light comming through the end of the optical cable and my av receiver displays a pcm signal but there is no sound, i think the problem is IEC958 volume level is 0, i can unmute it but can't turn the volume up, i have tried a bunch of different theories but with no luck.

My laptop is a acer aspire 6530

aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: SB [HDA ATI SB], device 0: ALC888 Analog [ALC888 Analog]
  Subdevices: 0/1
  Subdevice #0: subdevice #0
card 0: SB [HDA ATI SB], device 1: ALC888 Digital [ALC888 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

lspci | grep Audio
00:14.2 Audio device: ATI Technologies Inc SBx00 Azalia (Intel HDA)
01:05.1 Audio device: ATI Technologies Inc RS780 Azalia controller

#
# /etc/modprobe.d/modprobe.conf (for v2.6 kernels)
#
# u1Nb.kZ1c+ntEU3C:82801G (ICH7 Family) High Definition Audio Controller
options snd-hda-intel model=6stack-dig
options snd-card-0 snd_hda_intel
options snd-card-1 snd_hda_intel

lsmod | grep snd
snd_hda_codec_atihdmi     4784  1
snd_hda_codec_realtek   278132  1
snd_seq_dummy           3540  0
snd_hda_intel          31208  3
snd_seq_oss            36224  0
snd_hda_codec          82000  3 snd_hda_codec_atihdmi,snd_hda_codec_realtek,snd_hda_intel
snd_seq_midi_event      8592  1 snd_seq_oss
snd_seq                64640  5 snd_seq_dummy,snd_seq_oss,snd_seq_midi_event
snd_seq_device          8324  3 snd_seq_dummy,snd_seq_oss,snd_seq
snd_pcm_oss            47328  0
snd_mixer_oss          20976  1 snd_pcm_oss
snd_hwdep               9944  1 snd_hda_codec
snd_pcm                90808  4 snd_hda_intel,snd_hda_codec,snd_pcm_oss
snd_timer              25344  3 snd_seq,snd_pcm
snd                    76712  15 snd_hda_codec_realtek,snd_hda_intel,snd_seq_oss,snd_hda_codec,snd_seq,snd_seq_device,snd_pcm_oss,snd_mixer_oss,snd_hwdep,snd_pcm,snd_timer
soundcore               8576  1 snd
snd_page_alloc         10784  2 snd_hda_intel,snd_pcm

ls -l /dev/snd
total 0
crw-rw---- 1 root audio 116, 11 2009-07-03 23:43 controlC0
crw-rw---- 1 root audio 116, 14 2009-07-03 23:43 controlC1
crw-rw---- 1 root audio 116, 10 2009-07-03 23:43 hwC0D0
crw-rw---- 1 root audio 116,  9 2009-07-03 23:43 hwC0D1
crw-rw---- 1 root audio 116, 13 2009-07-03 23:43 hwC1D0
crw-rw---- 1 root audio 116,  8 2009-07-03 23:43 pcmC0D0c
crw-rw---- 1 root audio 116,  7 2009-07-04 00:25 pcmC0D0p
crw-rw---- 1 root audio 116,  6 2009-07-03 23:43 pcmC0D1c
crw-rw---- 1 root audio 116,  5 2009-07-03 23:43 pcmC0D1p
crw-rw---- 1 root audio 116,  4 2009-07-03 23:43 pcmC0D2c
crw-rw---- 1 root audio 116, 12 2009-07-03 23:43 pcmC1D3p
crw-rw---- 1 root audio 116,  3 2009-07-03 23:43 seq
crw-rw---- 1 root audio 116,  2 2009-07-03 23:43 timer

any help would be greatly appreciated as this is really confusing me.

Thanks

Last edited by guzz46 (2009-07-06 04:29:46)

Offline

#2 2009-07-03 19:48:08

SigStop
Member
From: France
Registered: 2009-06-21
Posts: 6

Re: help with spdif optical output [Solved]

Hi,

I had the same problem with my desktop computer. I have not been able to fix the sound with alsamixer or any other mixer application.

Then, my solution was to edit the file /etc/asound.state in order to swith on the PCM ("value true" instead of "value false"). My asound.state files contains something like :

...
        control.29 {
                comment.access 'read write'
                comment.type BOOLEAN
                comment.count 1
                iface MIXER
                name 'IEC958 Playback Switch'
                value true
        }
        control.30 {
                comment.access 'read write'
                comment.type BOOLEAN
                comment.count 1
                iface MIXER
                name 'IEC958 Default PCM Playback Switch'
                value true
        }
...

Then, try to restart alsa.

I hope it'll work.
Good luck!


In a world without fences and walls, who needs Gates and Windows?

Offline

#3 2009-07-03 23:04:34

guzz46
Member
From: New Zealand
Registered: 2009-06-18
Posts: 190

Re: help with spdif optical output [Solved]

Yes i tried playing around with asound.state with no luck also, both IEC958 playback switch and default pcm playback switch are set to true.
I also tried following the arch alsa wiki where it says

    *  Edit /etc/asound.state. This file is where alsasound stores your mixer settings.
    * Find a line that says: 'IEC958 Playback Switch'. Near it you will find a line saying value:false. Change it to value:true.
    * Now find this line: 'IEC958 Playback AC97-SPSA'. Change its value to 0.
    * Restart ALSA.

but i don't seem to have a IEC958 Playback AC97-SPSA line.

control.1 {
    comment.access 'read write'
    comment.type INTEGER
    comment.count 2
    comment.range '0 - 31'
    comment.dbmin -4650
    comment.dbmax 0
    iface MIXER
    name 'Front Playback Volume'
    value.0 31
    value.1 31
}
control.2 {
    comment.access 'read write'
    comment.type BOOLEAN
    comment.count 2
    iface MIXER
    name 'Front Playback Switch'
    value.0 true
    value.1 true
}
control.3 {
    comment.access 'read write'
    comment.type INTEGER
    comment.count 2
    comment.range '0 - 31'
    comment.dbmin -4650
    comment.dbmax 0
    iface MIXER
    name 'Surround Playback Volume'
    value.0 31
    value.1 31
}
control.4 {
    comment.access 'read write'
    comment.type BOOLEAN
    comment.count 2
    iface MIXER
    name 'Surround Playback Switch'
    value.0 false
    value.1 false
}
control.5 {
    comment.access 'read write'
    comment.type INTEGER
    comment.count 1
    comment.range '0 - 31'
    comment.dbmin -4650
    comment.dbmax 0
    iface MIXER
    name 'Center Playback Volume'
    value 31
}
control.6 {
    comment.access 'read write'
    comment.type INTEGER
    comment.count 1
    comment.range '0 - 31'
    comment.dbmin -4650
    comment.dbmax 0
    iface MIXER
    name 'LFE Playback Volume'
    value 31
}
control.7 {
    comment.access 'read write'
    comment.type BOOLEAN
    comment.count 1
    iface MIXER
    name 'Center Playback Switch'
    value false
}
control.8 {
    comment.access 'read write'
    comment.type BOOLEAN
    comment.count 1
    iface MIXER
    name 'LFE Playback Switch'
    value true
}
control.9 {
    comment.access 'read write'
    comment.type INTEGER
    comment.count 2
    comment.range '0 - 31'
    comment.dbmin -4650
    comment.dbmax 0
    iface MIXER
    name 'Side Playback Volume'
    value.0 31
    value.1 31
}
control.10 {
    comment.access 'read write'
    comment.type BOOLEAN
    comment.count 2
    iface MIXER
    name 'Side Playback Switch'
    value.0 true
    value.1 true
}
control.11 {
    comment.access 'read write'
    comment.type BOOLEAN
    comment.count 2
    iface MIXER
    name 'Headphone Playback Switch'
    value.0 true
    value.1 true
}
control.12 {
    comment.access 'read write'
    comment.type INTEGER
    comment.count 2
    comment.range '0 - 31'
    comment.dbmin -3450
    comment.dbmax 1200
    iface MIXER
    name 'CD Playback Volume'
    value.0 0
    value.1 0
}
control.13 {
    comment.access 'read write'
    comment.type BOOLEAN
    comment.count 2
    iface MIXER
    name 'CD Playback Switch'
    value.0 false
    value.1 false
}
control.14 {
    comment.access 'read write'
    comment.type INTEGER
    comment.count 2
    comment.range '0 - 31'
    comment.dbmin -3450
    comment.dbmax 1200
    iface MIXER
    name 'Line Playback Volume'
    value.0 0
    value.1 0
}
control.15 {
    comment.access 'read write'
    comment.type BOOLEAN
    comment.count 2
    iface MIXER
    name 'Line Playback Switch'
    value.0 false
    value.1 false
}
control.16 {
    comment.access 'read write'
    comment.type INTEGER
    comment.count 2
    comment.range '0 - 31'
    comment.dbmin -3450
    comment.dbmax 1200
    iface MIXER
    name 'Mic Playback Volume'
    value.0 0
    value.1 0
}
control.17 {
    comment.access 'read write'
    comment.type INTEGER
    comment.count 2
    comment.range '0 - 3'
    comment.dbmin 0
    comment.dbmax 3000
    iface MIXER
    name 'Mic Boost'
    value.0 0
    value.1 0
}
control.18 {
    comment.access 'read write'
    comment.type BOOLEAN
    comment.count 2
    iface MIXER
    name 'Mic Playback Switch'
    value.0 false
    value.1 false
}
control.19 {
    comment.access 'read write'
    comment.type INTEGER
    comment.count 2
    comment.range '0 - 31'
    comment.dbmin -3450
    comment.dbmax 1200
    iface MIXER
    name 'Front Mic Playback Volume'
    value.0 0
    value.1 0
}
control.20 {
    comment.access 'read write'
    comment.type INTEGER
    comment.count 2
    comment.range '0 - 3'
    comment.dbmin 0
    comment.dbmax 3000
    iface MIXER
    name 'Front Mic Boost'
    value.0 0
    value.1 0
}
control.21 {
    comment.access 'read write'
    comment.type BOOLEAN
    comment.count 2
    iface MIXER
    name 'Front Mic Playback Switch'
    value.0 true
    value.1 true
}
control.22 {
    comment.access 'read write'
    comment.type ENUMERATED
    comment.count 1
    comment.item.0 '6ch'
    comment.item.1 '8ch'
    iface MIXER
    name 'Channel Mode'
    value '8ch'
}
control.23 {
    comment.access 'read write'
    comment.type BOOLEAN
    comment.count 2
    iface MIXER
    name 'Capture Switch'
    value.0 true
    value.1 true
}
control.24 {
    comment.access 'read write'
    comment.type BOOLEAN
    comment.count 2
    iface MIXER
    name 'Capture Switch'
    index 1
    value.0 true
    value.1 true
}
control.25 {
    comment.access 'read write'
    comment.type INTEGER
    comment.count 2
    comment.range '0 - 31'
    comment.dbmin -1650
    comment.dbmax 3000
    iface MIXER
    name 'Capture Volume'
    value.0 0
    value.1 0
}
control.26 {
    comment.access 'read write'
    comment.type INTEGER
    comment.count 2
    comment.range '0 - 31'
    comment.dbmin -1650
    comment.dbmax 3000
    iface MIXER
    name 'Capture Volume'
    index 1
    value.0 0
    value.1 0
}
control.27 {
    comment.access 'read write'
    comment.type ENUMERATED
    comment.count 1
    comment.item.0 Mic
    comment.item.1 'Front Mic'
    comment.item.2 Line
    comment.item.3 CD
    iface MIXER
    name 'Input Source'
    value Mic
}
control.28 {
    comment.access 'read write'
    comment.type ENUMERATED
    comment.count 1
    comment.item.0 Mic
    comment.item.1 'Front Mic'
    comment.item.2 Line
    comment.item.3 CD
    iface MIXER
    name 'Input Source'
    index 1
    value Mic
}
control.29 {
    comment.access read
    comment.type IEC958
    comment.count 1
    iface MIXER
    name 'IEC958 Playback Con Mask'
    value '0fff000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000'
}
control.30 {
    comment.access read
    comment.type IEC958
    comment.count 1
    iface MIXER
    name 'IEC958 Playback Pro Mask'
    value '0f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000'
}
control.31 {
    comment.access 'read write'
    comment.type IEC958
    comment.count 1
    iface MIXER
    name 'IEC958 Playback Default'
    value '0082000200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000'
}
control.32 {
    comment.access 'read write'
    comment.type BOOLEAN
    comment.count 1
    iface MIXER
    name 'IEC958 Playback Switch'
    value true
}
control.33 {
    comment.access 'read write'
    comment.type BOOLEAN
    comment.count 1
    iface MIXER
    name 'IEC958 Default PCM Playback Switch'
    value true
}
control.34 {
    comment.access 'read write'
    comment.type BOOLEAN
    comment.count 1
    iface MIXER
    name 'IEC958 Capture Switch'
    value true
}
control.35 {
    comment.access read
    comment.type IEC958
    comment.count 1
    iface MIXER
    name 'IEC958 Capture Default'
    value '0400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000'
}
control.36 {
    comment.access 'read write'
    comment.type INTEGER
    comment.count 2
    comment.range '0 - 31'
    comment.dbmin -3450
    comment.dbmax 1200
    iface MIXER
    name 'Beep Playback Volume'
    value.0 0
    value.1 0
}
control.37 {
    comment.access 'read write'
    comment.type BOOLEAN
    comment.count 2
    iface MIXER
    name 'Beep Playback Switch'
    value.0 false
    value.1 false
}
control.38 {
    comment.access 'read write'
    comment.type INTEGER
    comment.count 1
    comment.range '0 - 31'
    comment.dbmin -4650
    comment.dbmax 0
    iface MIXER
    name 'Master Playback Volume'
    value 22
}
control.39 {
    comment.access 'read write'
    comment.type BOOLEAN
    comment.count 1
    iface MIXER
    name 'Master Playback Switch'
    value true
}
control.40 {
    comment.access 'read write user'
    comment.type INTEGER
    comment.count 2
    comment.range '0 - 255'
    comment.tlv '0000000100000008ffffec1400000014'
    comment.dbmin -5100
    comment.dbmax 0
    iface MIXER
    name 'PCM Playback Volume'
    value.0 255
    value.1 255
}
control.41 {
    comment.access 'read write user'
    comment.type INTEGER
    comment.count 2
    comment.range '0 - 120'
    comment.tlv '0000000100000008fffff44800000032'
    comment.dbmin -3000
    comment.dbmax 3000
    iface MIXER
    name 'Digital Capture Volume'
    value.0 0
    value.1 0
}
state.SB {
    control.1 {
        comment.access 'read write'
        comment.type INTEGER
        comment.count 2
        comment.range '0 - 31'
        comment.dbmin -4650
        comment.dbmax 0
        iface MIXER
        name 'Front Playback Volume'
        value.0 31
        value.1 31
    }
    control.2 {
        comment.access 'read write'
        comment.type BOOLEAN
        comment.count 2
        iface MIXER
        name 'Front Playback Switch'
        value.0 true
        value.1 true
    }
    control.3 {
        comment.access 'read write'
        comment.type INTEGER
        comment.count 2
        comment.range '0 - 31'
        comment.dbmin -4650
        comment.dbmax 0
        iface MIXER
        name 'Surround Playback Volume'
        value.0 31
        value.1 31
    }
    control.4 {
        comment.access 'read write'
        comment.type BOOLEAN
        comment.count 2
        iface MIXER
        name 'Surround Playback Switch'
        value.0 true
        value.1 true
    }
    control.5 {
        comment.access 'read write'
        comment.type INTEGER
        comment.count 1
        comment.range '0 - 31'
        comment.dbmin -4650
        comment.dbmax 0
        iface MIXER
        name 'Center Playback Volume'
        value 31
    }
    control.6 {
        comment.access 'read write'
        comment.type INTEGER
        comment.count 1
        comment.range '0 - 31'
        comment.dbmin -4650
        comment.dbmax 0
        iface MIXER
        name 'LFE Playback Volume'
        value 31
    }
    control.7 {
        comment.access 'read write'
        comment.type BOOLEAN
        comment.count 1
        iface MIXER
        name 'Center Playback Switch'
        value true
    }
    control.8 {
        comment.access 'read write'
        comment.type BOOLEAN
        comment.count 1
        iface MIXER
        name 'LFE Playback Switch'
        value true
    }
    control.9 {
        comment.access 'read write'
        comment.type INTEGER
        comment.count 2
        comment.range '0 - 31'
        comment.dbmin -4650
        comment.dbmax 0
        iface MIXER
        name 'Side Playback Volume'
        value.0 31
        value.1 31
    }
    control.10 {
        comment.access 'read write'
        comment.type BOOLEAN
        comment.count 2
        iface MIXER
        name 'Side Playback Switch'
        value.0 true
        value.1 true
    }
    control.11 {
        comment.access 'read write'
        comment.type BOOLEAN
        comment.count 2
        iface MIXER
        name 'Headphone Playback Switch'
        value.0 true
        value.1 true
    }
    control.12 {
        comment.access 'read write'
        comment.type INTEGER
        comment.count 2
        comment.range '0 - 31'
        comment.dbmin -3450
        comment.dbmax 1200
        iface MIXER
        name 'CD Playback Volume'
        value.0 23
        value.1 23
    }
    control.13 {
        comment.access 'read write'
        comment.type BOOLEAN
        comment.count 2
        iface MIXER
        name 'CD Playback Switch'
        value.0 true
        value.1 true
    }
    control.14 {
        comment.access 'read write'
        comment.type INTEGER
        comment.count 2
        comment.range '0 - 31'
        comment.dbmin -3450
        comment.dbmax 1200
        iface MIXER
        name 'Line Playback Volume'
        value.0 0
        value.1 0
    }
    control.15 {
        comment.access 'read write'
        comment.type BOOLEAN
        comment.count 2
        iface MIXER
        name 'Line Playback Switch'
        value.0 false
        value.1 false
    }
    control.16 {
        comment.access 'read write'
        comment.type INTEGER
        comment.count 2
        comment.range '0 - 31'
        comment.dbmin -3450
        comment.dbmax 1200
        iface MIXER
        name 'Mic Playback Volume'
        value.0 0
        value.1 0
    }
    control.17 {
        comment.access 'read write'
        comment.type INTEGER
        comment.count 2
        comment.range '0 - 3'
        comment.dbmin 0
        comment.dbmax 3000
        iface MIXER
        name 'Mic Boost'
        value.0 0
        value.1 0
    }
    control.18 {
        comment.access 'read write'
        comment.type BOOLEAN
        comment.count 2
        iface MIXER
        name 'Mic Playback Switch'
        value.0 false
        value.1 false
    }
    control.19 {
        comment.access 'read write'
        comment.type INTEGER
        comment.count 2
        comment.range '0 - 31'
        comment.dbmin -3450
        comment.dbmax 1200
        iface MIXER
        name 'Front Mic Playback Volume'
        value.0 0
        value.1 0
    }
    control.20 {
        comment.access 'read write'
        comment.type INTEGER
        comment.count 2
        comment.range '0 - 3'
        comment.dbmin 0
        comment.dbmax 3000
        iface MIXER
        name 'Front Mic Boost'
        value.0 0
        value.1 0
    }
    control.21 {
        comment.access 'read write'
        comment.type BOOLEAN
        comment.count 2
        iface MIXER
        name 'Front Mic Playback Switch'
        value.0 true
        value.1 true
    }
    control.22 {
        comment.access 'read write'
        comment.type ENUMERATED
        comment.count 1
        comment.item.0 '6ch'
        comment.item.1 '8ch'
        iface MIXER
        name 'Channel Mode'
        value '8ch'
    }
    control.23 {
        comment.access 'read write'
        comment.type BOOLEAN
        comment.count 2
        iface MIXER
        name 'Capture Switch'
        value.0 true
        value.1 true
    }
    control.24 {
        comment.access 'read write'
        comment.type BOOLEAN
        comment.count 2
        iface MIXER
        name 'Capture Switch'
        index 1
        value.0 true
        value.1 true
    }
    control.25 {
        comment.access 'read write'
        comment.type INTEGER
        comment.count 2
        comment.range '0 - 31'
        comment.dbmin -1650
        comment.dbmax 3000
        iface MIXER
        name 'Capture Volume'
        value.0 19
        value.1 19
    }
    control.26 {
        comment.access 'read write'
        comment.type INTEGER
        comment.count 2
        comment.range '0 - 31'
        comment.dbmin -1650
        comment.dbmax 3000
        iface MIXER
        name 'Capture Volume'
        index 1
        value.0 0
        value.1 0
    }
    control.27 {
        comment.access 'read write'
        comment.type ENUMERATED
        comment.count 1
        comment.item.0 Mic
        comment.item.1 'Front Mic'
        comment.item.2 Line
        comment.item.3 CD
        iface MIXER
        name 'Input Source'
        value Mic
    }
    control.28 {
        comment.access 'read write'
        comment.type ENUMERATED
        comment.count 1
        comment.item.0 Mic
        comment.item.1 'Front Mic'
        comment.item.2 Line
        comment.item.3 CD
        iface MIXER
        name 'Input Source'
        index 1
        value Mic
    }
    control.29 {
        comment.access read
        comment.type IEC958
        comment.count 1
        iface MIXER
        name 'IEC958 Playback Con Mask'
        value '0fff000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000'
    }
    control.30 {
        comment.access read
        comment.type IEC958
        comment.count 1
        iface MIXER
        name 'IEC958 Playback Pro Mask'
        value '0f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000'
    }
    control.31 {
        comment.access 'read write'
        comment.type IEC958
        comment.count 1
        iface MIXER
        name 'IEC958 Playback Default'
        value '0082000200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000'
    }
    control.32 {
        comment.access 'read write'
        comment.type BOOLEAN
        comment.count 1
        iface MIXER
        name 'IEC958 Playback Switch'
        value true
    }
    control.33 {
        comment.access 'read write'
        comment.type BOOLEAN
        comment.count 1
        iface MIXER
        name 'IEC958 Default PCM Playback Switch'
        value true
    }
    control.34 {
        comment.access 'read write'
        comment.type BOOLEAN
        comment.count 1
        iface MIXER
        name 'IEC958 Capture Switch'
        value false
    }
    control.35 {
        comment.access read
        comment.type IEC958
        comment.count 1
        iface MIXER
        name 'IEC958 Capture Default'
        value '0400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000'
    }
    control.36 {
        comment.access 'read write'
        comment.type INTEGER
        comment.count 2
        comment.range '0 - 31'
        comment.dbmin -3450
        comment.dbmax 1200
        iface MIXER
        name 'Beep Playback Volume'
        value.0 0
        value.1 0
    }
    control.37 {
        comment.access 'read write'
        comment.type BOOLEAN
        comment.count 2
        iface MIXER
        name 'Beep Playback Switch'
        value.0 false
        value.1 false
    }
    control.38 {
        comment.access 'read write'
        comment.type INTEGER
        comment.count 1
        comment.range '0 - 31'
        comment.dbmin -4650
        comment.dbmax 0
        iface MIXER
        name 'Master Playback Volume'
        value 25
    }
    control.39 {
        comment.access 'read write'
        comment.type BOOLEAN
        comment.count 1
        iface MIXER
        name 'Master Playback Switch'
        value true
    }
    control.40 {
        comment.access 'read write user'
        comment.type INTEGER
        comment.count 2
        comment.range '0 - 255'
        comment.tlv '0000000100000008ffffec1400000014'
        comment.dbmin -5100
        comment.dbmax 0
        iface MIXER
        name 'PCM Playback Volume'
        value.0 204
        value.1 204
    }
    control.41 {
        comment.access 'read write user'
        comment.type INTEGER
        comment.count 2
        comment.range '0 - 120'
        comment.tlv '0000000100000008fffff44800000032'
        comment.dbmin -3000
        comment.dbmax 3000
        iface MIXER
        name 'Digital Capture Volume'
        value.0 0
        value.1 0
    }
}
state.HDMI {
    control.1 {
        comment.access read
        comment.type IEC958
        comment.count 1
        iface MIXER
        name 'IEC958 Playback Con Mask'
        value '0fff000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000'
    }
    control.2 {
        comment.access read
        comment.type IEC958
        comment.count 1
        iface MIXER
        name 'IEC958 Playback Pro Mask'
        value '0f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000'
    }
    control.3 {
        comment.access 'read write'
        comment.type IEC958
        comment.count 1
        iface MIXER
        name 'IEC958 Playback Default'
        value '1f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000'
    }
    control.4 {
        comment.access 'read write'
        comment.type BOOLEAN
        comment.count 1
        iface MIXER
        name 'IEC958 Playback Switch'
        value true
    }
}

Offline

#4 2009-07-05 10:57:42

SigStop
Member
From: France
Registered: 2009-06-21
Posts: 6

Re: help with spdif optical output [Solved]

Hi!

Well, after an upgrade of my ArchLinux system with pacman, I tried :
1. stop alsa
2. remove /etc/asound.state
3. restart my computer
4. with alsamixer, unmute "IEC958" and "IEC958 Default PCM"

And it worked. I did not need to play with the file /etc/asound.state. Then, I'm sorry I don't know what is your problem. Does your SPDIF already worked on another Operating System? If not, maybe you can try with a LiveCD?

Anyway, the volume level of the Optical output can't be changed that's why you can see a volume level set to 0. To make the SPDIF work, I just have The Master, the IEC958 and the IEC958 Default PCM unmuted.

Finally, maybe you should take a look at http://alsa.opensrc.org/index.php/DigitalOut.

Let us know if you solve your problem!


In a world without fences and walls, who needs Gates and Windows?

Offline

#5 2009-07-06 04:29:13

guzz46
Member
From: New Zealand
Registered: 2009-06-18
Posts: 190

Re: help with spdif optical output [Solved]

I finally have it working and it was an easy fix in the end, turns out there was nothing wrong with my sound card setup.
I was testing the output by playing music through exaile and i had no sound but i had sound when playing a DVD with mplayer (only 2 channel though) so i opened up gstreamer properties and changed the device to 'ALC888 DIGITAL' which gave me sound when i clicked the test button but still no sound with exaile or any other music player i tried, so i installed pulseaudio and changed gstreamer properties to use PulseAudio Sound Server and now i have sound with exaile!

I had a quick play with ac3 passthrough but could not get it to work, but thats ok because i watch DVD's on my DVD player anyway, i just wanted to play my music collection stored on my pc via spdif optical out to my receiver which now i can.

Edit: i have now switched to oss4 as alsa was causing too much lag in warzone2100 and i'm very impressed, i can get digital out and the sound quality is a little better (especially through my receiver)

Last edited by guzz46 (2009-08-14 10:26:38)

Offline

Board footer

Powered by FluxBB