I am officially giving up on OSS & am now just focusing on getting ALSA to work. To that end....
Much progress thx to the following cmds from this URL
http://www.alsa-project.org/main/index. ... ule-cmipci (thx christ for the lead)
Code:
modprobe snd-cmipci ; modprobe snd-pcm-oss ; modprobe snd-mixer-oss ; modprobe snd-seq-oss
Once I ran these, the linhes audio setup screen suddenly realized that I did indeed have a soundcard installed. Here are some other relevant o/ps:
Code:
[root@fe-1 ~]# cat /proc/asound/cards
0 [CMI8738 ]: CMI8738-MC6 - C-Media CMI8738
C-Media CMI8738 (model 55) at 0x2000, irq 21
[root@fe-1 ~]# cat /proc/asound/pcm
00-00: CMI8738-MC6 : C-Media PCI DAC/ADC : playback 1 : capture 1
00-01: CMI8738-MC6 : C-Media PCI 2nd DAC : playback 1
00-02: CMI8738-MC6 : C-Media PCI IEC958 : playback 1 : capture 1
[root@fe-1 ~]# cat /etc/asound.conf
pcm.!default {
type hw
card 0
device 2
}
# pcm.!default {
# type plug
# slave.pcm "spdif"
# }
[root@fe-1 ~]# cat /etc/asound.state
state.CMI8738 {
control.1 {
comment.access 'read write'
comment.type INTEGER
comment.count 2
comment.range '0 - 31'
iface MIXER
name 'Master Playback Volume'
value.0 28
value.1 28
}
control.2 {
comment.access 'read write'
comment.type BOOLEAN
comment.count 1
iface MIXER
name '3D Control - Switch'
value false
}
control.3 {
comment.access 'read write'
comment.type INTEGER
comment.count 2
comment.range '0 - 31'
iface MIXER
name 'PCM Playback Volume'
value.0 24
value.1 24
}
control.4 {
comment.access 'read write'
comment.type BOOLEAN
comment.count 1
iface MIXER
name 'PCM Playback Switch'
value true
}
control.5 {
comment.access 'read write'
comment.type BOOLEAN
comment.count 2
iface MIXER
name 'PCM Capture Switch'
value.0 false
value.1 false
}
control.6 {
comment.access 'read write'
comment.type INTEGER
comment.count 2
comment.range '0 - 31'
iface MIXER
name 'Synth Playback Volume'
value.0 24
value.1 24
}
control.7 {
comment.access 'read write'
comment.type BOOLEAN
comment.count 1
iface MIXER
name 'Synth Playback Switch'
value true
}
control.8 {
comment.access 'read write'
comment.type BOOLEAN
comment.count 4
iface MIXER
name 'Synth Capture Route'
value.0 false
value.1 false
value.2 false
value.3 false
}
control.9 {
comment.access 'read write'
comment.type INTEGER
comment.count 2
comment.range '0 - 31'
iface MIXER
name 'CD Playback Volume'
value.0 0
value.1 0
}
control.10 {
comment.access 'read write'
comment.type BOOLEAN
comment.count 2
iface MIXER
name 'CD Playback Switch'
value.0 true
value.1 true
}
control.11 {
comment.access 'read write'
comment.type BOOLEAN
comment.count 4
iface MIXER
name 'CD Capture Route'
value.0 false
value.1 false
value.2 false
value.3 false
}
control.12 {
comment.access 'read write'
comment.type INTEGER
comment.count 2
comment.range '0 - 31'
iface MIXER
name 'Line Playback Volume'
value.0 0
value.1 0
}
control.13 {
comment.access 'read write'
comment.type BOOLEAN
comment.count 2
iface MIXER
name 'Line Playback Switch'
value.0 false
value.1 false
}
control.14 {
comment.access 'read write'
comment.type BOOLEAN
comment.count 4
iface MIXER
name 'Line Capture Route'
value.0 false
value.1 false
value.2 false
value.3 false
}
control.15 {
comment.access 'read write'
comment.type INTEGER
comment.count 1
comment.range '0 - 31'
iface MIXER
name 'Mic Playback Volume'
value 0
}
control.16 {
comment.access 'read write'
comment.type BOOLEAN
comment.count 1
iface MIXER
name 'Mic Playback Switch'
value false
}
control.17 {
comment.access 'read write'
comment.type BOOLEAN
comment.count 1
iface MIXER
name 'Mic Capture Switch'
value false
}
control.18 {
comment.access 'read write'
comment.type INTEGER
comment.count 1
comment.range '0 - 3'
iface MIXER
name 'PC Speaker Playback Volume'
value 2
}
control.19 {
comment.access 'read write'
comment.type INTEGER
comment.count 2
comment.range '0 - 15'
iface MIXER
name 'Aux Playback Volume'
value.0 0
value.1 0
}
control.20 {
comment.access 'read write'
comment.type BOOLEAN
comment.count 2
iface MIXER
name 'Aux Playback Switch'
value.0 false
value.1 false
}
control.21 {
comment.access 'read write'
comment.type BOOLEAN
comment.count 2
iface MIXER
name 'Aux Capture Switch'
value.0 false
value.1 false
}
control.22 {
comment.access 'read write'
comment.type BOOLEAN
comment.count 1
iface MIXER
name 'Mic Boost Playback Switch'
value true
}
control.23 {
comment.access 'read write'
comment.type INTEGER
comment.count 1
comment.range '0 - 7'
iface MIXER
name 'Mic Capture Volume'
value 0
}
control.24 {
comment.access 'read write'
comment.type INTEGER
comment.count 1
comment.range '0 - 7'
iface MIXER
name 'Phone Playback Volume'
value 0
}
control.25 {
comment.access 'read write'
comment.type BOOLEAN
comment.count 1
iface MIXER
name 'Phone Playback Switch'
value false
}
control.26 {
comment.access 'read write'
comment.type BOOLEAN
comment.count 1
iface MIXER
name 'PC Speaker Playback Switch'
value true
}
control.27 {
comment.access 'read write'
comment.type BOOLEAN
comment.count 1
iface MIXER
name 'Mic Boost Capture Switch'
value false
}
control.28 {
comment.access 'read write'
comment.type BOOLEAN
comment.count 1
iface MIXER
name 'Four Channel Mode'
value true
}
control.29 {
comment.access 'read write'
comment.type ENUMERATED
comment.count 1
comment.item.0 Line-In
comment.item.1 'Rear Output'
comment.item.2 'Bass Output'
iface MIXER
name 'Line-In Mode'
value Line-In
}
control.30 {
comment.access 'read write'
comment.type BOOLEAN
comment.count 1
iface MIXER
name 'IEC958 Output Switch'
value true
}
control.31 {
comment.access 'read write'
comment.type BOOLEAN
comment.count 1
iface MIXER
name 'IEC958 In Valid'
value true
}
control.32 {
comment.access 'read write'
comment.type BOOLEAN
comment.count 1
iface MIXER
name 'IEC958 Copyright'
value true
}
control.33 {
comment.access 'read write'
comment.type BOOLEAN
comment.count 1
iface MIXER
name 'IEC958 5V'
value true
}
control.34 {
comment.access 'read write'
comment.type BOOLEAN
comment.count 1
iface MIXER
name 'IEC958 Loop'
value true
}
control.35 {
comment.access 'read write'
comment.type BOOLEAN
comment.count 1
iface MIXER
name 'IEC958 In Monitor'
value true
}
control.36 {
comment.access 'read write'
comment.type IEC958
comment.count 1
iface PCM
device 2
name 'IEC958 Playback Default'
value '0082000200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000'
}
control.37 {
comment.access read
comment.type IEC958
comment.count 1
iface PCM
device 2
name 'IEC958 Playback Con Mask'
value ffffffff00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
}
control.39 {
comment.access 'read write'
comment.type BOOLEAN
comment.count 1
iface MIXER
name 'IEC958 In Select'
value true
}
control.40 {
comment.access 'read write'
comment.type BOOLEAN
comment.count 1
iface MIXER
name 'IEC958 In Phase Inverse'
value true
}
control.41 {
comment.access 'read write'
comment.type ENUMERATED
comment.count 1
comment.item.0 Mic-In
comment.item.1 'Center/LFE Output'
iface MIXER
name 'Mic-In Mode'
value 'Center/LFE Output'
}
}
[root@fe-1 ~]# aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: CMI8738 [C-Media CMI8738], device 0: CMI8738-MC6 [C-Media PCI DAC/ADC]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: CMI8738 [C-Media CMI8738], device 1: CMI8738-MC6 [C-Media PCI 2nd DAC]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: CMI8738 [C-Media CMI8738], device 2: CMI8738-MC6 [C-Media PCI IEC958]
Subdevices: 1/1
Subdevice #0: subdevice #0
[root@fe-1 ~]# aplay -L
front:CARD=CMI8738,DEV=0
C-Media CMI8738, C-Media PCI DAC/ADC
Front speakers
iec958:CARD=CMI8738,DEV=0
C-Media CMI8738, C-Media PCI DAC/ADC
IEC958 (S/PDIF) Digital Audio Output
null
Discard all samples (playback) or generate zero samples (capture)
I ran alsamixer, unmuted all 8 IEC958 devices. First thing I noticed - I look at the end of my toslink cable and it is all dark which, in my limited experience, means the spdif o/p is muted, right? Hmm... alsmixer says it definitely isn't.
Unfortunately, nothing gives me any sound including this line:
Code:
mplayer -ao alsa:device=hw=0.2 /usr/share/sounds/restored.wav
(I'm pretty sure my spdif is 0,2, right?).
The linhes service Audio menu is set to a type of 'digital' & then there's only one device selectable, namely 0,2. But the test audio button there, and all video & TV playback is silent
Now I have to undo everything & set it back to OSS so my wife can watch Jon & Kate plus 8. But when I have full access again, what should I try next? I feel I am >< this close to having it work (frustrating!)
Thx.