How to loop spdif through to speakers
Hello,
I have the problem, that my sound card doesn't offer the ability to pass the
input from the spdif directly to the speakers. This is what I have:
Soundcard: ALC888 (on-board with ICH8 chipset)
Operating system: Debian Lenny (testing)
Linux Kernel: Debian 2.6.26-1-amd64 (native)
Platform: 64 Bit Linux
Motherboard: Gigabyte 965D-DS3
The sound card basically works. I can play sound and I'm able to record
(capture) sound. With the command
arecord -D spdif:0 -f dat -t wav datei.wav
and others, I can record the sound coming from the spdif input and I'm able to
play this file then. So the sound card itself seems to work as expected.
I've also tried to enable everything labeled iec958 and played around with the
sliders in several mixer programs. But nothing helped. The sound card does
not play the sound from the spdif itself.
On startup I've set the parameter "model=6stack-dig" to the
module "snd-hda-intel". This brought to me the availability to record from
spdif in.
As mentioned above, my problem is, that I want to put the sound from spdif
input directly to the speakers, connected to the same sound card, but the
sound card seems not able to do this. Can this be true, or have I overseen
something?
If it's true, is there a program available, that reads the spdif and puts it
to the pcm part of the sound card? All I've found are programs to record into
a file and to play sound files. Or is it possible to configure ALSA to do
that? If so, how?
Here is the output from "amixer":
--> $ amixer controls
numid=39,iface=MIXER,name='Master Playback Switch'
numid=38,iface=MIXER,name='Master Playback Volume'
numid=11,iface=MIXER,name='Headphone Playback Switch'
numid=40,iface=MIXER,name='PCM Playback Volume'
numid=20,iface=MIXER,name='Front Mic Boost'
numid=21,iface=MIXER,name='Front Mic Playback Switch'
numid=19,iface=MIXER,name='Front Mic Playback Volume'
numid=2,iface=MIXER,name='Front Playback Switch'
numid=1,iface=MIXER,name='Front Playback Volume'
numid=4,iface=MIXER,name='Surround Playback Switch'
numid=3,iface=MIXER,name='Surround Playback Volume'
numid=7,iface=MIXER,name='Center Playback Switch'
numid=5,iface=MIXER,name='Center Playback Volume'
numid=8,iface=MIXER,name='LFE Playback Switch'
numid=6,iface=MIXER,name='LFE Playback Volume'
numid=15,iface=MIXER,name='Line Playback Switch'
numid=14,iface=MIXER,name='Line Playback Volume'
numid=13,iface=MIXER,name='CD Playback Switch'
numid=12,iface=MIXER,name='CD Playback Volume'
numid=17,iface=MIXER,name='Mic Boost'
numid=18,iface=MIXER,name='Mic Playback Switch'
numid=16,iface=MIXER,name='Mic Playback Volume'
numid=23,iface=MIXER,name='PC Speaker Playback Switch'
numid=22,iface=MIXER,name='PC Speaker Playback Volume'
numid=25,iface=MIXER,name='Capture Switch'
numid=27,iface=MIXER,name='Capture Switch',index=1
numid=24,iface=MIXER,name='Capture Volume'
numid=26,iface=MIXER,name='Capture Volume',index=1
numid=35,iface=MIXER,name='IEC958 Default PCM Playback Switch'
numid=31,iface=MIXER,name='IEC958 Playback Con Mask'
numid=32,iface=MIXER,name='IEC958 Playback Pro Mask'
numid=33,iface=MIXER,name='IEC958 Playback Default'
numid=34,iface=MIXER,name='IEC958 Playback Switch'
numid=37,iface=MIXER,name='IEC958 Capture Default'
numid=36,iface=MIXER,name='IEC958 Capture Switch'
numid=30,iface=MIXER,name='Channel Mode'
numid=41,iface=MIXER,name='Digital Capture Volume'
numid=28,iface=MIXER,name='Input Source'
numid=29,iface=MIXER,name='Input Source',index=1
numid=10,iface=MIXER,name='Side Playback Switch'
numid=9,iface=MIXER,name='Side Playback Volume'
--> $ amixer contents
numid=39,iface=MIXER,name='Master Playback Switch'
; type=BOOLEAN,access=rw------,values=1
: values=on
numid=38,iface=MIXER,name='Master Playback Volume'
; type=INTEGER,access=rw---R--,values=1,min=0,max=31,step=0
: values=31
| dBscale-min=42949626.46dB,step=1.50dB,mute=0
numid=11,iface=MIXER,name='Headphone Playback Switch'
; type=BOOLEAN,access=rw------,values=2
: values=on,on
numid=40,iface=MIXER,name='PCM Playback Volume'
; type=INTEGER,access=rw---RW-,values=2,min=0,max=255,step=0
: values=255,255
| dBscale-min=42949621.96dB,step=0.20dB,mute=0
numid=20,iface=MIXER,name='Front Mic Boost'
; type=INTEGER,access=rw---R--,values=2,min=0,max=3,step=0
: values=0,0
| dBscale-min=0.00dB,step=10.00dB,mute=0
numid=21,iface=MIXER,name='Front Mic Playback Switch'
; type=BOOLEAN,access=rw------,values=2
: values=off,off
numid=19,iface=MIXER,name='Front Mic Playback Volume'
; type=INTEGER,access=rw---R--,values=2,min=0,max=31,step=0
: values=0,0
| dBscale-min=42949638.46dB,step=1.50dB,mute=0
numid=2,iface=MIXER,name='Front Playback Switch'
; type=BOOLEAN,access=rw------,values=2
: values=on,on
numid=1,iface=MIXER,name='Front Playback Volume'
; type=INTEGER,access=rw---R--,values=2,min=0,max=31,step=0
: values=31,31
| dBscale-min=42949626.46dB,step=1.50dB,mute=0
numid=4,iface=MIXER,name='Surround Playback Switch'
; type=BOOLEAN,access=rw------,values=2
: values=on,on
numid=3,iface=MIXER,name='Surround Playback Volume'
; type=INTEGER,access=rw---R--,values=2,min=0,max=31,step=0
: values=7,7
| dBscale-min=42949626.46dB,step=1.50dB,mute=0
numid=7,iface=MIXER,name='Center Playback Switch'
; type=BOOLEAN,access=rw------,values=1
: values=on
numid=5,iface=MIXER,name='Center Playback Volume'
; type=INTEGER,access=rw---R--,values=1,min=0,max=31,step=0
: values=31
| dBscale-min=42949626.46dB,step=1.50dB,mute=0
numid=8,iface=MIXER,name='LFE Playback Switch'
; type=BOOLEAN,access=rw------,values=1
: values=on
numid=6,iface=MIXER,name='LFE Playback Volume'
; type=INTEGER,access=rw---R--,values=1,min=0,max=31,step=0
: values=31
| dBscale-min=42949626.46dB,step=1.50dB,mute=0
numid=15,iface=MIXER,name='Line Playback Switch'
; type=BOOLEAN,access=rw------,values=2
: values=on,on
numid=14,iface=MIXER,name='Line Playback Volume'
; type=INTEGER,access=rw---R--,values=2,min=0,max=31,step=0
: values=4,4
| dBscale-min=42949638.46dB,step=1.50dB,mute=0
numid=13,iface=MIXER,name='CD Playback Switch'
; type=BOOLEAN,access=rw------,values=2
: values=off,off
numid=12,iface=MIXER,name='CD Playback Volume'
; type=INTEGER,access=rw---R--,values=2,min=0,max=31,step=0
: values=7,7
| dBscale-min=42949638.46dB,step=1.50dB,mute=0
numid=17,iface=MIXER,name='Mic Boost'
; type=INTEGER,access=rw---R--,values=2,min=0,max=3,step=0
: values=0,0
| dBscale-min=0.00dB,step=10.00dB,mute=0
numid=18,iface=MIXER,name='Mic Playback Switch'
; type=BOOLEAN,access=rw------,values=2
: values=off,off
numid=16,iface=MIXER,name='Mic Playback Volume'
; type=INTEGER,access=rw---R--,values=2,min=0,max=31,step=0
: values=0,0
| dBscale-min=42949638.46dB,step=1.50dB,mute=0
numid=23,iface=MIXER,name='PC Speaker Playback Switch'
; type=BOOLEAN,access=rw------,values=2
: values=on,on
numid=22,iface=MIXER,name='PC Speaker Playback Volume'
; type=INTEGER,access=rw---R--,values=2,min=0,max=31,step=0
: values=31,31
| dBscale-min=42949638.46dB,step=1.50dB,mute=0
numid=25,iface=MIXER,name='Capture Switch'
; type=BOOLEAN,access=rw------,values=2
: values=on,on
numid=27,iface=MIXER,name='Capture Switch',index=1
; type=BOOLEAN,access=rw------,values=2
: values=on,on
numid=24,iface=MIXER,name='Capture Volume'
; type=INTEGER,access=rw---R--,values=2,min=0,max=31,step=0
: values=31,31
| dBscale-min=42949656.46dB,step=1.50dB,mute=0
numid=26,iface=MIXER,name='Capture Volume',index=1
; type=INTEGER,access=rw---R--,values=2,min=0,max=31,step=0
: values=31,31
| dBscale-min=42949656.46dB,step=1.50dB,mute=0
numid=35,iface=MIXER,name='IEC958 Default PCM Playback Switch'
; type=BOOLEAN,access=rw------,values=1
: values=on
numid=31,iface=MIXER,name='IEC958 Playback Con Mask'
; type=IEC958,access=r-------,values=1
: values=[AES0=0x0f AES1=0xff AES2=0x00 AES3=0x00]
numid=32,iface=MIXER,name='IEC958 Playback Pro Mask'
; type=IEC958,access=r-------,values=1
: values=[AES0=0x0f AES1=0x00 AES2=0x00 AES3=0x00]
numid=33,iface=MIXER,name='IEC958 Playback Default'
; type=IEC958,access=rw------,values=1
: values=[AES0=0x00 AES1=0x00 AES2=0x00 AES3=0x00]
numid=34,iface=MIXER,name='IEC958 Playback Switch'
; type=BOOLEAN,access=rw------,values=1
: values=on
numid=37,iface=MIXER,name='IEC958 Capture Default'
; type=IEC958,access=r-------,values=1
: values=[AES0=0x04 AES1=0x00 AES2=0x00 AES3=0x00]
numid=36,iface=MIXER,name='IEC958 Capture Switch'
; type=BOOLEAN,access=rw------,values=1
: values=on
numid=30,iface=MIXER,name='Channel Mode'
; type=ENUMERATED,access=rw------,values=1,items=2
; Item #0 '6ch'
; Item #1 '8ch'
: values=0
numid=41,iface=MIXER,name='Digital Capture Volume'
; type=INTEGER,access=rw---RW-,values=2,min=0,max=120,step=0
: values=120,120
| dBscale-min=42949642.96dB,step=0.50dB,mute=0
numid=28,iface=MIXER,name='Input Source'
; type=ENUMERATED,access=rw------,values=1,items=4
; Item #0 'Mic'
; Item #1 'Front Mic'
; Item #2 'Line'
; Item #3 'CD'
: values=2
numid=29,iface=MIXER,name='Input Source',index=1
; type=ENUMERATED,access=rw------,values=1,items=4
; Item #0 'Mic'
; Item #1 'Front Mic'
; Item #2 'Line'
; Item #3 'CD'
: values=2
numid=10,iface=MIXER,name='Side Playback Switch'
; type=BOOLEAN,access=rw------,values=2
: values=off,off
numid=9,iface=MIXER,name='Side Playback Volume'
; type=INTEGER,access=rw---R--,values=2,min=0,max=31,step=0
: values=31,31
| dBscale-min=42949626.46dB,step=1.50dB,mute=0
--> $ amixer scontrols
Simple mixer control 'Master',0
Simple mixer control 'Headphone',0
Simple mixer control 'PCM',0
Simple mixer control 'Front',0
Simple mixer control 'Front Mic',0
Simple mixer control 'Front Mic Boost',0
Simple mixer control 'Surround',0
Simple mixer control 'Center',0
Simple mixer control 'LFE',0
Simple mixer control 'Side',0
Simple mixer control 'Line',0
Simple mixer control 'CD',0
Simple mixer control 'Mic',0
Simple mixer control 'Mic Boost',0
Simple mixer control 'IEC958',0
Simple mixer control 'IEC958 Default PCM',0
Simple mixer control 'PC Speaker',0
Simple mixer control 'Capture',0
Simple mixer control 'Capture',1
Simple mixer control 'Channel Mode',0
Simple mixer control 'Digital',0
Simple mixer control 'Input Source',0
Simple mixer control 'Input Source',1
--> $ amixer scontents
Simple mixer control 'Master',0
Capabilities: pvolume pvolume-joined pswitch pswitch-joined
Playback channels: Mono
Limits: Playback 0 - 31
Mono: Playback 31 [100%] [0.00dB] [on]
Simple mixer control 'Headphone',0
Capabilities: pswitch
Playback channels: Front Left - Front Right
Mono:
Front Left: Playback [on]
Front Right: Playback [on]
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 'Front',0
Capabilities: pvolume pswitch
Playback channels: Front Left - Front Right
Limits: Playback 0 - 31
Mono:
Front Left: Playback 31 [100%] [0.00dB] [on]
Front Right: Playback 31 [100%] [0.00dB] [on]
Simple mixer control 'Front Mic',0
Capabilities: pvolume pswitch
Playback channels: Front Left - Front Right
Limits: Playback 0 - 31
Mono:
Front Left: Playback 0 [0%] [-34.50dB] [off]
Front Right: Playback 0 [0%] [-34.50dB] [off]
Simple mixer control 'Front Mic Boost',0
Capabilities: volume
Playback channels: Front Left - Front Right
Capture channels: Front Left - Front Right
Limits: 0 - 3
Front Left: 0 [0%]
Front Right: 0 [0%]
Simple mixer control 'Surround',0
Capabilities: pvolume pswitch
Playback channels: Front Left - Front Right
Limits: Playback 0 - 31
Mono:
Front Left: Playback 7 [23%] [-36.00dB] [on]
Front Right: Playback 7 [23%] [-36.00dB] [on]
Simple mixer control 'Center',0
Capabilities: pvolume pvolume-joined pswitch pswitch-joined
Playback channels: Mono
Limits: Playback 0 - 31
Mono: Playback 31 [100%] [0.00dB] [on]
Simple mixer control 'LFE',0
Capabilities: pvolume pvolume-joined pswitch pswitch-joined
Playback channels: Mono
Limits: Playback 0 - 31
Mono: Playback 31 [100%] [0.00dB] [on]
Simple mixer control 'Side',0
Capabilities: pvolume pswitch
Playback channels: Front Left - Front Right
Limits: Playback 0 - 31
Mono:
Front Left: Playback 31 [100%] [0.00dB] [off]
Front Right: Playback 31 [100%] [0.00dB] [off]
Simple mixer control 'Line',0
Capabilities: pvolume pswitch
Playback channels: Front Left - Front Right
Limits: Playback 0 - 31
Mono:
Front Left: Playback 4 [13%] [-28.50dB] [on]
Front Right: Playback 4 [13%] [-28.50dB] [on]
Simple mixer control 'CD',0
Capabilities: pvolume pswitch
Playback channels: Front Left - Front Right
Limits: Playback 0 - 31
Mono:
Front Left: Playback 7 [23%] [-24.00dB] [off]
Front Right: Playback 7 [23%] [-24.00dB] [off]
Simple mixer control 'Mic',0
Capabilities: pvolume pswitch
Playback channels: Front Left - Front Right
Limits: Playback 0 - 31
Mono:
Front Left: Playback 0 [0%] [-34.50dB] [off]
Front Right: Playback 0 [0%] [-34.50dB] [off]
Simple mixer control 'Mic Boost',0
Capabilities: volume
Playback channels: Front Left - Front Right
Capture channels: Front Left - Front Right
Limits: 0 - 3
Front Left: 0 [0%]
Front Right: 0 [0%]
Simple mixer control 'IEC958',0
Capabilities: pswitch pswitch-joined cswitch cswitch-joined
Playback channels: Mono
Capture channels: Mono
Mono: Playback [on] Capture [on]
Simple mixer control 'IEC958 Default PCM',0
Capabilities: pswitch pswitch-joined
Playback channels: Mono
Mono: Playback [on]
Simple mixer control 'PC Speaker',0
Capabilities: pvolume pswitch
Playback channels: Front Left - Front Right
Limits: Playback 0 - 31
Mono:
Front Left: Playback 31 [100%] [12.00dB] [on]
Front Right: Playback 31 [100%] [12.00dB] [on]
Simple mixer control 'Capture',0
Capabilities: cvolume cswitch
Capture channels: Front Left - Front Right
Limits: Capture 0 - 31
Front Left: Capture 31 [100%] [30.00dB] [on]
Front Right: Capture 31 [100%] [30.00dB] [on]
Simple mixer control 'Capture',1
Capabilities: cvolume cswitch
Capture channels: Front Left - Front Right
Limits: Capture 0 - 31
Front Left: Capture 31 [100%] [30.00dB] [on]
Front Right: Capture 31 [100%] [30.00dB] [on]
Simple mixer control 'Channel Mode',0
Capabilities: enum
Items: '6ch' '8ch'
Item0: '6ch'
Simple mixer control 'Digital',0
Capabilities: cvolume
Capture channels: Front Left - Front Right
Limits: Capture 0 - 120
Front Left: Capture 120 [100%] [30.00dB]
Front Right: Capture 120 [100%] [30.00dB]
Simple mixer control 'Input Source',0
Capabilities: cenum
Items: 'Mic' 'Front Mic' 'Line' 'CD'
Item0: 'Line'
Simple mixer control 'Input Source',1
Capabilities: cenum
Items: 'Mic' 'Front Mic' 'Line' 'CD'
Item0: 'Line'
------- End of dump ---------------
Sorry for this long posting, but I want to show everything relevant.
--
Andreas Theofilu
http://www.TheosSoft.net/
--==| Enjoy the science of Linux! |==--
Reply to: