[mythtv-users] Re: ALSA and .asoundrc help

David W Davis davidw.davis at gmail.com
Wed Dec 15 06:00:11 UTC 2004


Well....I now get sound when watching live tv and recordings by
setting myth to use ALSA:mixed-digital.  I still get no sound in
mythmusic.  I also only get sound on certain video files in mythmovie.


On Tue, 14 Dec 2004 20:20:47 -0500, David W Davis
<davidw.davis at gmail.com> wrote:
> Actually, I do get sound from mythmovie with the mplayer lauch command
> "-ac hwac3, %s".  Although, this only gives me sound on my files with
> ac3 support.  Others have no sound.  I've gotten rid of the skips in
> XMMS by configuring my ALSA output device to IEC958 hw 1,2.  Is this
> what I need to change in my .asoundrc?  I changed all the instances of
> card 0 to card  1 and all references I saw to hw 0,0 or whatever were
> in comments.  At least I'm making some progress.....  Still no sound
> with mythmusic or live or recorded tv though....
> 
> 
> On Tue, 14 Dec 2004 01:06:14 -0500, David W Davis
> <davidw.davis at gmail.com> wrote:
> > So I am attempting to get the SPDIF working on my nforce2 mb.  I
> > followed the mythtv.info tutorial and created my .asoundrc.  When I
> > run aplay -l I get:
> > **** List of PLAYBACK Hardware Devices ****
> > card 0: M410 [M Audio Delta 410], device 0: ICE1712 multi [ICE1712 multi]
> >   Subdevices: 1/1
> >   Subdevice #0: subdevice #0
> > card 1: nForce2 [NVidia nForce2], device 0: Intel ICH [NVidia nForce2]
> >   Subdevices: 1/1
> >   Subdevice #0: subdevice #0
> > card 1: nForce2 [NVidia nForce2], device 2: Intel ICH - IEC958 [NVidia
> > nForce2 - IEC958]
> >   Subdevices: 1/1
> >   Subdevice #0: subdevice #0
> > This leads me to edit all references of card 0 to card 1 in my
> > .asoundrc.  I can successfully run aplay -D default, but don't hear
> > anything.  When I attempt to run aplay -D mixed-digital (or anything
> > else) I get the error :
> > ALSA lib pcm.c:1975:(snd_pcm_open_noupdate) Unknown PCM mixed-digital
> > aplay: main:508: audio open error: No such file or directory
> > I can play mp3s with XMMS using the ALSA output plugin configured to
> > the default device.  I hear output doing this, but have had mp3s
> > randomly stop playing (not sure if that is an XMMS or file issue).  So
> > I am not getting any sound in MythTV regardless of what the output is
> > selected.  Anyone have any ideas or places I should look?  Here is my
> > .asoundrc:
> > # 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).
> > pcm.!default {
> >   type plug
> > ## 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"
> > }
> >
> > # Alias for analog output on the nForce2 (hw:0,0)
> > # - 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 nForce2
> > pcm.analog {
> >  type plug
> >  slave.pcm "analog-hw"
> > }
> >
> > # Control device (mixer, etc.) for the nForce2 card
> > ctl.analog {
> >  type hw
> >  card 1 #0
> > }
> >
> > # Alias for (rate-converted) mixed analog output on the
> > # nForce2 (hw:0,0)
> > #  - This will accept audio input--regardless of rate--and
> > # convert to the rate required for the dmix plugin
> > # (in this case 48000Hz)
> > pcm.mixed-analog {
> >  type plug
> >  slave.pcm "dmix-analog"
> > }
> >
> > # Control device (mixer, etc.) for the nForce2 card
> > ctl.mixed-analog {
> >  type hw
> >  card 1 #0
> > }
> >
> > # Alias for (rate-converted) digital (S/PDIF) output on the
> > # nForce2 (hw:0,2)
> > #  - 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 nForce2 card
> > ctl.digital {
> >  type hw
> >  card 1 #0
> > }
> >
> > # Alias for mixed (rate-converted) digital (S/PDIF) output on the
> > # nForce2 (hw:0,2)
> > #  - 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 nForce2 card
> > ctl.mixed-digital {
> >  type hw
> >  card 1 #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 nForce2 (hw:0,0)
> > # Do not use this directly--it requires specific rate,
> > # channels, and format
> > pcm.analog-hw {
> >  type hw
> >  card 1 #0
> >  # The default value for device is 0, so no need to specify
> > }
> >
> > # Control device (mixer, etc.) for the nForce2 card
> > ctl.analog-hw {
> >  type hw
> >  card 1 #0
> > }
> >
> > # Alias for digital (S/PDIF) output on the nForce2 (hw:0,2)
> > # Do not use this directly--it requires specific rate,
> > # channels, and format
> > pcm.digital-hw {
> >  type hw
> >  card 1 #0
> >  device 2
> > }
> >
> > # Control device (mixer, etc.) for the nForce2 card
> > ctl.digital-hw {
> >  type hw
> >  card 1 #0
> > }
> >
> > # Direct software mixing plugin for analog output on
> > # the nForce2 (hw:0,0)
> > # 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 nForce2 card
> > ctl.dmix-analog {
> >  type hw
> >  card 1 #0
> > }
> >
> > # Direct software mixing plugin for digital (S/PDIF) output
> > # on the nForce2 (hw:0,2)
> > # 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 nForce2 card
> > ctl.dmix-analog {
> >  type hw
> >  card 1 #0
> > }
> >
> > # Direct software mixing plugin for digital (S/PDIF) output
> > # on the nForce2 (hw:0,2)
> > # 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 nForce2 card
> > ctl.dmix-digital {
> >  type hw
> >  card 1 #0
> > }
> >
> > Thanks.
> >
>


More information about the mythtv-users mailing list