[mythtv-users] nforce4 digital sound
Rob Adams
readams at readams.net
Sat Oct 7 23:19:10 UTC 2006
I'm having a hell of a time getting the SPDIF ports on my nforce4
motherboard going. I've tried following the instructions on enabling
digital sound on the wiki, as well as various other things. I can get
the sound to work through the analog output, but when I try to hook it
up to my receiver I get no sound at all. The receiver input is working
as I've tested it with other sources. This is using a coaxial SPDIF
output (eventually I hope to get the input working as well but one thing
at a time).
Here's an absurd amount of relevant information. I'd appreciate
mightily if someone could give me a hint as to what the problem here
could be, as I'm quite stymied at this point. Alternatively, if someone
can recommend a reasonably-priced PCI sound card which is well supported
by myth and for which I can get digital input and output under linux I'm
not above throwing money at the problem.
Thanks in advance,
Rob
# uname -a
Linux media 2.6.17-10-generic #2 SMP Mon Oct 2 13:48:24 UTC 2006 i686
GNU/Linux
# lsmod|grep '^snd'
snd_intel8x0 34844 2
snd_ac97_codec 97696 1 snd_intel8x0
snd_ac97_bus 3456 1 snd_ac97_codec
snd_pcm_oss 47360 0
snd_mixer_oss 19584 1 snd_pcm_oss
snd_pcm 84612 3 snd_intel8x0,snd_ac97_codec,snd_pcm_oss
snd_timer 25348 1 snd_pcm
snd 58372 10
snd_intel8x0,snd_ac97_codec,snd_pcm_oss,snd_mixer_oss,snd_pcm,snd_timer
snd_page_alloc 11400 2 snd_intel8x0,snd_pcm
# aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: CK804 [NVidia CK804], device 0: Intel ICH [NVidia CK804]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: CK804 [NVidia CK804], device 2: Intel ICH - IEC958 [NVidia CK804
- IEC958]
Subdevices: 1/1
Subdevice #0: subdevice #0
# cat /etc/asound.conf
# ~/.asoundrc or /etc/asound.conf
# ALSA configuration file
##### USAGE #####
# Save this file as "~/.asoundrc" (for user-specific sound
configuration) or
# "/etc/asound.conf" (for system-wide sound configuration) and specify
ALSA
# device names ad described in the next section.
##### DEVICE NAMES #####
# This configuration file defines four devices for use by the user.
Those
# devices are "analog", "mixed-analog", "digital", and "mixed-digital".
The
# user may also re-define "default" to be identical to one of the
above-named
# devices (i.e. to send all sound output to the digital output unless
otherwise
# specified). Use the device names as described below:
# - "analog" outputs to the analog output directly and (at least on
software
# sound cards) blocks other audio output. After playback completes,
"queued"
# sounds are output in sequence.
# - "mixed-analog" mixes audio output from multiple programs into the
analog
# output (so you can hear beeps, alerts, and other noises while playing
back
# an audio stream).
# - "digital" outputs to the digital output directly. Since most
(all?)
# digital outputs expect 48kHz PCM audio, this may not work for some
playback
# (i.e. CD's--which are 44.1kHz PCM audio--or 32kHz audio streams from
TV
# recordings, etc.).
# - "mixed-digital"
# All other devices created within this file are used only by the
configuration
# file itself and should /not/ be used directly. In other words, do not
use
# the devices "analog-hw", "dmix-analog", "digital-hw", or
"dmix-digital".
##### IMPORTANT #####
# To make this ALSA configuration file work with your sound card, you
will need
# to define the appropriate card and device information for the
"analog-hw" and
# "digital-hw" devices below. You can find the card and device
information
# using "aplay -l".
##### Configuration File #####
# Override the default output used by ALSA. If you do not override the
# default, your default device is identical to the (unmixed) "analog"
device
# shown below. If you prefer mixed and/or digital output, uncomment the
# appropriate four lines below (only one slave.pcm line).
#
# Note, also, that as of ALSA 1.0.9, "software" sound cards have been
modified
# such that their default "default" device is identical to the
"mixed-analog"
# device. Whether using an ALSA version before or after 1.0.9, it does
no harm
# and has no affect on performance to redefine the device (even if the
# redefinition does not change anything). Also, by using this ALSA
# configuration file, you once again have access to unmixed analog
output using
# the "analog" device.
pcm.!default {
type plug
## Uncomment the following to use (unmixed) "analog" by default
# slave.pcm "analog-hw"
## Uncomment the following to use "mixed-analog" by default
# slave.pcm "dmix-analog"
## Uncomment the following to use (unmixed) "digital" by default
slave.pcm "digital-hw"
## Uncomment the following to use "mixed-digital" by default
# slave.pcm "dmix-digital"
}
# Control device (mixer, etc.) for the card
ctl.!default {
type hw
card 0
}
# Alias for (converted) analog output on the card
# - This is identical to the device named "default"--which always exists
and
# refers to hw:0,0 (unless overridden)
# - Therefore, we can specify "hw:0,0", "default", or "analog" to access
analog
# output on the card
# - Note that as of ALSA 1.0.9, "software" sound card definitions
redefine
# "default" to do mixing, meaning this device is different from
"default" and
# allows playback while blocking other sound sources (until playback
# completes).
pcm.analog {
type plug
slave.pcm "analog-hw"
}
# Control device (mixer, etc.) for the card
ctl.analog {
type hw
card 0
}
# Alias for (converted) mixed analog output on the card
# - This will accept audio input--regardless of rate--and convert to the
rate
# required for the dmix plugin (in this case 48000Hz)
# - Note that as of ALSA 1.0.9, "software" sound card definitions
redefine
# "default" to do mixing, meaning this device is identical to "default"
for
# "software" sound cards.
pcm.mixed-analog {
type plug
slave.pcm "dmix-analog"
}
# Control device (mixer, etc.) for the card
ctl.mixed-analog {
type hw
card 0
}
# Alias for (converted) digital (S/PDIF) output on the card
# - This will accept audio input--regardless of rate--and convert to the
rate
# required for the S/PDIF hardware (in this case 48000Hz)
pcm.digital {
type plug
slave.pcm "digital-hw"
}
# Control device (mixer, etc.) for the card
ctl.digital {
type hw
card 0
}
# Alias for mixed (converted) digital (S/PDIF) output on the card
# - This will accept audio input--regardless of rate--and convert to
the rate
# required for the S/PDIF hardware (in this case 48000Hz)
pcm.mixed-digital {
type plug
slave.pcm "dmix-digital"
}
# Control device (mixer, etc.) for the card
ctl.mixed-digital {
type hw
card 0
}
# The following devices are not useful by themselves. They require
specific
# rates, channels, and formats. Therefore, you probably do not want to
use
# them directly. Instead use of of the devices defined above.
# Alias for analog output on the card
# Do not use this directly--it requires specific rate, channels, and
format
pcm.analog-hw {
type hw
card 0
# The default value for device is 0, so no need to specify
# - Uncomment one of the below or create a new "device N" line as
appropriate
# for your sound card or
# device 1
# device 4
}
# Control device (mixer, etc.) for the card
ctl.analog-hw {
type hw
card 0
}
# Alias for digital (S/PDIF) output on the card
# Do not use this directly--it requires specific rate, channels, and
format
pcm.digital-hw {
type hw
card 0
# device 1
# - Comment out "device 1" above and uncomment one of the below or
create a
# new "device N" line as appropriate for your sound card or
device 2
# device 4
}
# Control device (mixer, etc.) for the card
ctl.digital-hw {
type hw
card 0
}
# Direct software mixing plugin for analog output on the card
# Do not use this directly--it requires specific rate, channels, and
format
pcm.dmix-analog {
type dmix
ipc_key 1234
slave {
pcm "analog-hw"
period_time 0
period_size 1024
buffer_size 4096
rate 48000
}
}
# Control device (mixer, etc.) for the card
ctl.dmix-analog {
type hw
card 0
}
# Direct software mixing plugin for digital (S/PDIF) output on the card
# Do not use this directly--it requires specific rate, channels, and
format
pcm.dmix-digital {
type dmix
ipc_key 1235
slave {
pcm "digital-hw"
period_time 0
period_size 1024
buffer_size 4096
rate 48000
}
}
# Control device (mixer, etc.) for the card
ctl.dmix-digital {
type hw
card 0
}
# scanpci
pci bus 0x0000 cardnum 0x00 function 0x00: vendor 0x10de device 0x005e
nVidia Corporation CK804 Memory Controller
pci bus 0x0000 cardnum 0x01 function 0x00: vendor 0x10de device 0x0050
nVidia Corporation CK804 ISA Bridge
pci bus 0x0000 cardnum 0x01 function 0x01: vendor 0x10de device 0x0052
nVidia Corporation CK804 SMBus
pci bus 0x0000 cardnum 0x02 function 0x00: vendor 0x10de device 0x005a
nVidia Corporation CK804 USB Controller
pci bus 0x0000 cardnum 0x02 function 0x01: vendor 0x10de device 0x005b
nVidia Corporation CK804 USB Controller
pci bus 0x0000 cardnum 0x04 function 0x00: vendor 0x10de device 0x0059
nVidia Corporation CK804 AC'97 Audio Controller
pci bus 0x0000 cardnum 0x06 function 0x00: vendor 0x10de device 0x0053
nVidia Corporation CK804 IDE
pci bus 0x0000 cardnum 0x07 function 0x00: vendor 0x10de device 0x0054
nVidia Corporation CK804 Serial ATA Controller
pci bus 0x0000 cardnum 0x08 function 0x00: vendor 0x10de device 0x0055
nVidia Corporation CK804 Serial ATA Controller
pci bus 0x0000 cardnum 0x09 function 0x00: vendor 0x10de device 0x005c
nVidia Corporation CK804 PCI Bridge
pci bus 0x0000 cardnum 0x0a function 0x00: vendor 0x10de device 0x0057
nVidia Corporation CK804 Ethernet Controller
pci bus 0x0000 cardnum 0x0b function 0x00: vendor 0x10de device 0x005d
nVidia Corporation CK804 PCIE Bridge
pci bus 0x0000 cardnum 0x0c function 0x00: vendor 0x10de device 0x005d
nVidia Corporation CK804 PCIE Bridge
pci bus 0x0000 cardnum 0x0d function 0x00: vendor 0x10de device 0x005d
nVidia Corporation CK804 PCIE Bridge
pci bus 0x0000 cardnum 0x0e function 0x00: vendor 0x10de device 0x005d
nVidia Corporation CK804 PCIE Bridge
pci bus 0x0000 cardnum 0x18 function 0x00: vendor 0x1022 device 0x1100
Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] HyperTransport
Technology Configuration
pci bus 0x0000 cardnum 0x18 function 0x01: vendor 0x1022 device 0x1101
Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] Address Map
pci bus 0x0000 cardnum 0x18 function 0x02: vendor 0x1022 device 0x1102
Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] DRAM Controller
pci bus 0x0000 cardnum 0x18 function 0x03: vendor 0x1022 device 0x1103
Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] Miscellaneous
Control
pci bus 0x0001 cardnum 0x06 function 0x00: vendor 0x1106 device 0x3044
VIA Technologies, Inc. IEEE 1394 Host Controller
pci bus 0x0001 cardnum 0x09 function 0x00: vendor 0x11ab device 0x1faa
Marvell Technology Group Ltd. 88w8335 [Libertas] 802.11b/g Wireless
pci bus 0x0005 cardnum 0x00 function 0x00: vendor 0x10de device 0x01d1
nVidia Corporation Device unknown
# amixer
Simple mixer control 'Master',0
Capabilities: pvolume pswitch pswitch-joined
Playback channels: Front Left - Front Right
Limits: Playback 0 - 31
Mono:
Front Left: Playback 31 [100%] [on]
Front Right: Playback 31 [100%] [on]
Simple mixer control 'Master Mono',0
Capabilities: pvolume pvolume-joined pswitch pswitch-joined
Playback channels: Mono
Limits: Playback 0 - 31
Mono: Playback 0 [0%] [off]
Simple mixer control 'PCM',0
Capabilities: pvolume pswitch pswitch-joined
Playback channels: Front Left - Front Right
Limits: Playback 0 - 31
Mono:
Front Left: Playback 31 [100%] [on]
Front Right: Playback 31 [100%] [on]
Simple mixer control 'Surround',0
Capabilities: pvolume pswitch
Playback channels: Front Left - Front Right
Limits: Playback 0 - 31
Mono:
Front Left: Playback 0 [0%] [off]
Front Right: Playback 0 [0%] [off]
Simple mixer control 'Surround Jack Mode',0
Capabilities: enum
Items: 'Shared' 'Independent'
Item0: 'Shared'
Simple mixer control 'Center',0
Capabilities: pvolume pvolume-joined pswitch pswitch-joined
Playback channels: Mono
Limits: Playback 0 - 31
Mono: Playback 31 [100%] [off]
Simple mixer control 'LFE',0
Capabilities: pvolume pvolume-joined pswitch pswitch-joined
Playback channels: Mono
Limits: Playback 0 - 31
Mono: Playback 13 [42%] [on]
Simple mixer control 'Line',0
Capabilities: pvolume pswitch pswitch-joined cswitch cswitch-exclusive
Capture exclusive group: 0
Playback channels: Front Left - Front Right
Capture channels: Front Left - Front Right
Limits: Playback 0 - 31
Front Left: Playback 0 [0%] [off] Capture [off]
Front Right: Playback 0 [0%] [off] Capture [off]
Simple mixer control 'CD',0
Capabilities: pvolume pswitch pswitch-joined cswitch cswitch-exclusive
Capture exclusive group: 0
Playback channels: Front Left - Front Right
Capture channels: Front Left - Front Right
Limits: Playback 0 - 31
Front Left: Playback 0 [0%] [off] Capture [off]
Front Right: Playback 0 [0%] [off] Capture [off]
Simple mixer control 'Mic',0
Capabilities: pvolume pvolume-joined pswitch pswitch-joined cswitch
cswitch-exclusive
Capture exclusive group: 0
Playback channels: Mono
Capture channels: Front Left - Front Right
Limits: Playback 0 - 31
Mono: Playback 0 [0%] [off]
Front Left: Capture [on]
Front Right: Capture [on]
Simple mixer control 'Mic Boost (+20dB)',0
Capabilities: pswitch pswitch-joined
Playback channels: Mono
Mono: Playback [off]
Simple mixer control 'Mic Select',0
Capabilities: enum
Items: 'Mic1' 'Mic2'
Item0: 'Mic1'
Simple mixer control 'Video',0
Capabilities: cswitch cswitch-exclusive
Capture exclusive group: 0
Capture channels: Front Left - Front Right
Front Left: Capture [off]
Front Right: Capture [off]
Simple mixer control 'Phone',0
Capabilities: pvolume pvolume-joined pswitch pswitch-joined cswitch
cswitch-exclusive
Capture exclusive group: 0
Playback channels: Mono
Capture channels: Front Left - Front Right
Limits: Playback 0 - 31
Mono: Playback 0 [0%] [off]
Front Left: Capture [off]
Front Right: Capture [off]
Simple mixer control 'IEC958',0
Capabilities: pswitch pswitch-joined cswitch cswitch-joined
Playback channels: Mono
Capture channels: Mono
Mono: Playback [on] Capture [off]
Simple mixer control 'IEC958 Playback AC97-SPSA',0
Capabilities: volume volume-joined
Playback channels: Mono
Capture channels: Mono
Limits: 0 - 3
Mono: 0 [0%]
Simple mixer control 'IEC958 Playback Source',0
Capabilities: enum
Items: 'PCM' 'Analog In' 'IEC958 In'
Item0: 'PCM'
Simple mixer control 'PC Speaker',0
Capabilities: pvolume pvolume-joined pswitch pswitch-joined
Playback channels: Mono
Limits: Playback 0 - 15
Mono: Playback 0 [0%] [off]
Simple mixer control 'Aux',0
Capabilities: pvolume pswitch pswitch-joined cswitch cswitch-exclusive
Capture exclusive group: 0
Playback channels: Front Left - Front Right
Capture channels: Front Left - Front Right
Limits: Playback 0 - 31
Front Left: Playback 0 [0%] [off] Capture [off]
Front Right: Playback 0 [0%] [off] Capture [off]
Simple mixer control 'Mono Output Select',0
Capabilities: enum
Items: 'Mix' 'Mic'
Item0: 'Mix'
Simple mixer control 'Capture',0
Capabilities: cvolume cswitch cswitch-joined
Capture channels: Front Left - Front Right
Limits: Capture 0 - 15
Front Left: Capture 0 [0%] [on]
Front Right: Capture 0 [0%] [on]
Simple mixer control 'Mix',0
Capabilities: cswitch cswitch-exclusive
Capture exclusive group: 0
Capture channels: Front Left - Front Right
Front Left: Capture [off]
Front Right: Capture [off]
Simple mixer control 'Mix Mono',0
Capabilities: cswitch cswitch-exclusive
Capture exclusive group: 0
Capture channels: Front Left - Front Right
Front Left: Capture [off]
Front Right: Capture [off]
Simple mixer control 'Channel Mode',0
Capabilities: enum
Items: '2ch' '4ch' '6ch'
Item0: '6ch'
Simple mixer control 'Duplicate Front',0
Capabilities: pswitch pswitch-joined
Playback channels: Mono
Mono: Playback [off]
Simple mixer control 'External Amplifier',0
Capabilities: pswitch pswitch-joined
Playback channels: Mono
Mono: Playback [on]
More information about the mythtv-users
mailing list