[mythtv-users] SPDIF outputs on an intel8x0 soundcard with MythMusic

Alan J. Pippin apippin at pippins.net
Tue Jan 6 01:48:01 EST 2004


Scott,

I really appreciate your help. Your email helped clear a lot of things up.
Here is what my aplay -l shows:

**** List of PLAYBACK Hardware Devices ****
card 0: I82801AAICH [Intel 82801AA-ICH], device 0: Intel ICH [Intel
82801AA-ICH]
Subdevices: 1/1
Subdevice #0: subdevice #0

My modules.conf file has the following lines:

### DEBCONF MAGIC
# This file was automatically generated by alsa-base's debconf stuff

alias /dev/dsp* snd-pcm-oss

alias snd-slot-0 snd-card-0

# --- BEGIN: Generated by ALSACONF, do not edit. ---
# --- ALSACONF verion 1.0.0rc2 ---
alias char-major-116 snd
alias char-major-14 soundcore
alias sound-service-0-0 snd-mixer-oss
alias sound-service-0-1 snd-seq-oss
alias sound-service-0-3 snd-pcm-oss
alias sound-service-0-8 snd-seq-oss
alias sound-service-0-12 snd-pcm-oss
alias snd-card-0 snd-intel8x0
alias sound-slot-0 snd-intel8x0
options snd-pcm-oss adsp_map=0 # I added this line
# --- END: Generated by ALSACONF, do not edit. ---

I also tried your suggestion of adsp_map=2. I've been using mpg123 to play
back an mp3 file using -d /dev/adsp or -d /dev/dsp or -d /dev/snd/pcmC0D0p.
All of these send the audio output to the analog outputs. I still don't
understand why mplayer with a -ao alsa9:spdif option uses the digital outpus
where mpg123 cannot. All of the /dev/dsp* and /dev/adsp* devices work and
all send the output to the analog outputs. Thoughts?

Thanks,
-Alan

--
*/\*/\*/\*/\*/\*/Ether 12:4\*/\*/\*/\*/\*/\*
Alan Jack Pippin & Mary Diane Pippin   
http://www.pippins.net
*/\*/\*/\*/\*/\*/\*/\*/\*/\*/\*/\*/\*/\*/\*

-----Original Message-----
From: Scott Elliott [mailto:selliott at insight.rr.com] 
Sent: Monday, January 05, 2004 8:27 PM
To: apippin at pippins.net; Discussion about mythtv
Subject: Re: [mythtv-users] SPDIF outputs on an intel8x0 soundcardwith
MythMusic

On Mon, 2004-01-05 at 02:42, Alan J. Pippin wrote: 
> Thanks for the reply,
> 
> I checked my /dev/ directory and did not find a sound subdirectory. I 
> do have a /dev/snd directory and a /dev/adsp device. When attempting 
> to use this device with aplay -D /dev/adsp I get the following error 
> message:
> 
> ALSA lib pcm.c:1933:(snd_pcm_open_noupdate) Unknown PCM /dev/adsp0
> aplay: main:502: audio open error: No such file or directory
> 
> Mplayer also dies with this error message:
> Could not open/initialize audio device

Sorry, I've been using devfs for a while, and I forget not everyone has
/dev/sound.

"aplay" is for ALSA devices, and you're using an OSS device (which, I know,
is being emulated by ALSA.)  So "aplay -D /dev/adsp" won't work. 
You could try some other command (mpg123, ogg123, etc.) that uses the OSS
devices.  

You also may want to make sure which ALSA device /dev/adsp0 is associated
with.  If you do a "aplay -l", you get something like:

# aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: nForce [NVidia nForce], device 0: Intel ICH [NVidia nForce]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: nForce [NVidia nForce], device 2: Intel ICH - IEC958 [NVidia nForce
- IEC958]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

With the newest version of ALSA, the IEC958 device is device 2, not device 1
as it was before. If so, you need to add an option for the snd-pcm-oss
module in your modules.conf to get it associated correctly.  I added:

options snd-pcm-oss adsp_map=2



-- 

Scott Elliott <selliott at insight.rr.com>


--
*/\*/\*/\*/\*/\*/Ether 12:4\*/\*/\*/\*/\*/\*
Alan Jack Pippin & Mary Diane Pippin   
http://www.pippins.net
*/\*/\*/\*/\*/\*/\*/\*/\*/\*/\*/\*/\*/\*/\*





More information about the mythtv-users mailing list