[How-To] Acer Aspire Revo/ION - Output to both HDMI and SPDIF
#16
Although I'm eager to see Chris configuration,
I read this wiki http://alsa.opensrc.org/index.php/.asoundrc
And though about this, although not tested as I am at work ;-):

quick recall, the intent is to get all sound sources:
- downstream to stereo though HDMI
- Multichannel through SPDIF

Code:
pcm.!default plug:both

ctl.!default {
  type hw
  card 0
}

pcm.both {
  type route;
  slave.pcm {
      type multi;
      slaves.a.pcm "tv";
      slaves.b.pcm "optical";
      slaves.a.channels 2;
      slaves.b.channels 6;
      bindings.0.slave a;
      bindings.0.channel 0;
      bindings.1.slave a;
      bindings.1.channel 1;
      bindings.2.slave b;
      bindings.2.channel 0;
      bindings.3.slave b;
      bindings.3.channel 1;
      bindings.4.slave b;
      bindings.4.channel 2;
      bindings.5.slave b;
      bindings.5.channel 3;
      bindings.6.slave b;
      bindings.6.channel 4;
      bindings.7.slave b;
      bindings.7.channel 5;
  }

  ttable.0.0 1;
  ttable.1.1 1;

  ttable.0.2 1; # front left
  ttable.1.3 1; # front right
  ttable.0.4 1; # copy front left to rear left
  ttable.1.5 1; # copy front left to rear left
  # mix front left/right to subwoofer and center
  ttable.0.6 0.5;
  ttable.1.6 0.5;
  ttable.0.7 0.5;
  ttable.1.7 0.5;
}

ctl.both {
  type hw;
  card 0;
}

pcm.optical {
   type dmix
   ipc_key 1024
   slave {
       pcm "optical"
       period_time 0
       period_size 2048
#        buffer_size 8192
       buffer_size 65536
       buffer_time 0
       periods 128
       rate 48000
       channels 6
    }

    bindings {
       0 0
       1 1
       2 2
       3 3
       4 4
       5 5
    }
}

pcm.tv {
   type dmix
   ipc_key 2048
   slave {
       pcm "tv"
       period_time 0
       period_size 2048
#        buffer_size 8192
       buffer_size 65536
       buffer_time 0
       periods 128
       rate 48000
       channels 2
    }
    bindings {
       0 0
       1 1
    }
}

ctl.optical {
  type hw
  card 0
}

ctl.tv {
  type hw
  card 0
}


pcm.optical {
  type hw
  card 0
  device 1
}

pcm.tv {
  type hw
  card 0
  device 3
}

The big difference with all the other configurations I've seen around is here:
Code:
slave.pcm {
      type multi;
      slaves.a.pcm "tv";
      slaves.b.pcm "optical";
      slaves.a.channels 2;
      slaves.b.channels 6;

and relies on two different downmixes.
The TV HDMI downmix:
Code:
pcm.tv {
   type dmix
   ipc_key 2048
   slave {
       pcm "tv"
       period_time 0
       period_size 2048
#        buffer_size 8192
       buffer_size 65536
       buffer_time 0
       periods 128
       rate 48000
       channels 2
    }
    bindings {
       0 0
       1 1
    }
}

And the SPDIF downmix:
Code:
pcm.optical {
   type dmix
   ipc_key 1024
   slave {
       pcm "optical"
       period_time 0
       period_size 2048
#        buffer_size 8192
       buffer_size 65536
       buffer_time 0
       periods 128
       rate 48000
       channels 6
    }

    bindings {
       0 0
       1 1
       2 2
       3 3
       4 4
       5 5
    }
}

Thoughts?

Chris, I'm still interested in your solution though...
Wink
Reply
#17
Here is my soundcard list :

aplay -L
default:CARD=NVidia
HDA NVidia, ALC662 rev1 Analog
Default Audio Device
front:CARD=NVidia,DEV=0
HDA NVidia, ALC662 rev1 Analog
Front speakers
surround40:CARD=NVidia,DEV=0
HDA NVidia, ALC662 rev1 Analog
4.0 Surround output to Front and Rear speakers
surround41:CARD=NVidia,DEV=0
HDA NVidia, ALC662 rev1 Analog
4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=NVidia,DEV=0
HDA NVidia, ALC662 rev1 Analog
5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=NVidia,DEV=0
HDA NVidia, ALC662 rev1 Analog
5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=NVidia,DEV=0
HDA NVidia, ALC662 rev1 Analog
7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
iec958:CARD=NVidia,DEV=0
HDA NVidia, ALC662 rev1 Digital
IEC958 (S/PDIF) Digital Audio Output
hdmi:CARD=NVidia,DEV=0
HDA NVidia, NVIDIA HDMI
HDMI Audio Output
null
Discard all samples (playback) or generate zero samples (capture)


can you please explain me, how can I implement this informations into config file ? I need downmix to stereo for HDMI and 5.1 to analog.

Thanks

Alda
Reply
#18
This is what I am using:

Code:
# ---------------------------------------------------------------------
# Hardware - do not use directly
# ---------------------------------------------------------------------

pcm.analog-hw {
  type hw
  card 0
  device 0
}
ctl.analog-hw {
  type hw
  card 0
}

# ---------------------------------------------------------------------

pcm.digital-hw {
  type hw
  card 0
  device 3
}
ctl.digital-hw {
  type hw
  card 0
}

# -----------------------------------------------------------------------

pcm.spdif-hw {
    type hw
    card 0
    device 1
}
ctl.spdif-hw {
    type hw
    card 0
}

# -------------------------------------------------------------------------

pcm.dmix-analog {
  type dmix
  ipc_key 1234
  slave {
    pcm "analog-hw"
    period_time 0
    period_size 1024
    buffer_size 4096
    rate 48000
  }
}
ctl.dmix-analog {
  type hw
  card 0
}

# -------------------------------------------------------------------------

pcm.dmix-digital {
  type dmix
  ipc_key 1235
  slave {
    pcm "digital-hw"
    period_time 0
    period_size 1024
    buffer_size 4096
    rate 48000
  }
}
ctl.dmix-digital {
  type hw
  card 0
}

# ---------------------------------------------------------------------------
# Interfaces to Use
# --------------------------------------------------------------------------
pcm.spdif-pcm AC3encode

# --------------------------------------------------------------------------

pcm.analog {
  type plug
  slave.pcm "analog-hw"
  hint {
    show on
    description "Analog Output - Use analog outputs, converting samples, format, and rate as necessary."
  }
}
ctl.analog {
  type hw
  card 0
}

# -----------------------------------------------------------------------------

pcm.mixed-analog {
  type plug
  slave.pcm "dmix-analog"
  hint {
    show on
    description "Mixed Analog Output - Use analog outputs, converting samples, format, and rate as necessary. Allows mixing with system sounds."
  }
}
ctl.mixed-analog {
  type hw
  card 0
}

# --------------------------------------------------------------------------------

pcm.digital {
  type plug
  slave.pcm "digital-hw"
  hint {
    show on
    description "Digital Output (HDMI) - Use digital outputs, converting samples, format, and rate as necessary."
  }
}
ctl.digital {
  type hw
  card 0
}

# ----------------------------------------------------------------------------------

pcm.mixed-digital {
  type plug
  slave.pcm "dmix-digital"
  hint {
    show on
    description "Mixed Digital Output - Use digital outputs, converting samples, format, and rate as necessary. Allows mixing with system sounds."
  }
}
ctl.mixed-digital {
  type hw
  card 0
}


pcm.AC3encode {
  type a52
  bitrate 448
  channels 6
}


# ---------------------------------------------------------------------------------
# -----------------------------------------------------------------------------------

# provide a default -for system sounds ??
pcm.!default {
  type plug
  slave {
    pcm multi
    rate 48000
  }
  ttable.0.0 1.0
  ttable.1.1 1.0  
  ttable.2.0 0.7
  ttable.3.1 0.7
  ttable.4.0 0.7
  ttable.4.1 0.7
  ttable.5.0 0.5
  ttable.5.1 0.5
  ttable.0.2 1.0
  ttable.1.3 1.0
  ttable.2.2 0.7
  ttable.3.3 0.7
  ttable.4.2 0.7
  ttable.4.3 0.7
  ttable.5.2 0.5
  ttable.5.3 0.5
  ttable.0.4 1.0
  ttable.1.5 1.0
}
ctl.!default {
  type hw
  card 0
}

pcm.xbmc {
  type plug
  slave {
    pcm multi
    rate 48000
    channels 10
  }
  ttable.0.0 1.0
  ttable.1.1 1.0
  ttable.2.0 0.7  
  ttable.3.1 0.7  
  ttable.4.0 0.7  
  ttable.4.1 0.7  
  ttable.5.0 0.5  
  ttable.5.1 0.5  
  ttable.0.2 1.0
  ttable.1.3 1.0
  ttable.2.2 0.7
  ttable.3.3 0.7
  ttable.4.2 0.7
  ttable.4.3 0.7
  ttable.5.2 0.5
  ttable.5.3 0.5
  ttable.0.4 1.0
  ttable.1.5 1.0
  ttable.2.6 1.0
  ttable.3.7 1.0
  ttable.4.8 1.0
  ttable.5.9 1.0
  hint {
    show on
    description "XBMC device for analog and hdmi 2 channel - spdif ac3 upto 6 channels"
  }
}
ctl.xbmc {
  type hw
  card 0
}

pcm.multi {
  type multi
  slaves.a.pcm "analog-hw"
  slaves.a.channels 2
  slaves.b.pcm "digital-hw"
  slaves.b.channels 2
  slaves.c.pcm "spdif-pcm"
  slaves.c.channels 6
  bindings.0.slave a
  bindings.0.channel 0
  bindings.1.slave a
  bindings.1.channel 1
  bindings.2.slave b
  bindings.2.channel 0
  bindings.3.slave b
  bindings.3.channel 1
  bindings.4.slave c
  bindings.4.channel 0
  bindings.5.slave c
  bindings.5.channel 1
  bindings.6.slave c
  bindings.6.channel 2
  bindings.7.slave c
  bindings.7.channel 3
  bindings.8.slave c
  bindings.8.channel 4
  bindings.9.slave c
  bindings.9.channel 5
}
ctl.multi {
  type hw
  card 0
}

Code:
aplay -L
null
    Discard all samples (playback) or generate zero samples (capture)
analog
    Analog Output - Use analog outputs, converting samples, format, and rate as necessary.
mixed-analog
    Mixed Analog Output - Use analog outputs, converting samples, format, and rate as necessary. Allows mixing with system sounds.
digital
    Digital Output (HDMI) - Use digital outputs, converting samples, format, and rate as necessary.
mixed-digital
    Mixed Digital Output - Use digital outputs, converting samples, format, and rate as necessary. Allows mixing with system sounds.
xbmc
    XBMC device for analog and hdmi 2 channel - spdif ac3 upto 6 channels
front:CARD=NVidia,DEV=0
    HDA NVidia, ALC662 rev1 Analog
    Front speakers
surround40:CARD=NVidia,DEV=0
    HDA NVidia, ALC662 rev1 Analog
    4.0 Surround output to Front and Rear speakers
surround41:CARD=NVidia,DEV=0
    HDA NVidia, ALC662 rev1 Analog
    4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=NVidia,DEV=0
    HDA NVidia, ALC662 rev1 Analog
    5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=NVidia,DEV=0
    HDA NVidia, ALC662 rev1 Analog
    5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=NVidia,DEV=0
    HDA NVidia, ALC662 rev1 Analog
    7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
iec958:CARD=NVidia,DEV=0
    HDA NVidia, ALC662 rev1 Digital
    IEC958 (S/PDIF) Digital Audio Output
hdmi:CARD=NVidia,DEV=0
    HDA NVidia, NVIDIA HDMI
    HDMI Audio Output

My starting point was the config posted here http://forum.xbmc.org/showpost.php?p=484730&postcount=8 and I used the channel mapping for downmixing provided in the xbmc source. The a52 plugin was picky about number of channels sent to it so it always gets and encodes to 6 channels even with stereo (the others are just empty channels) otherwise it failed to work.

XBMC audio output is set to custom which uses alsa:xbmc, this uses pcm.xbmc which uses transfer tables allocate and mix channels then passes it to pcm.multi then binds the channels to specific devices. Passthrough is set no nothing (blank) as it conflicted with my config if it was set as anything.

Some of the devices listed are most probably not needed but I have not had a chance to test a cleaned up version yet.

Should be simple to tweak to cope with 7.1 channels if needed.

Not had any problems with it on my Revo 3610 (currently on SVN 28256, ALSA 1.0.23, ubuntu 9.10, kernel 2.6.31-17-generic)


Let me know if you spot any mistakes as I didn't have a clue how alsa config worked before I started tweaking.
Reply
#19
chris80 - nice to see, that you have the same hardware configuration.
Please can you help me what I must change in your config to have 5.1 analog output instead stereo downmix ?

Thanks

Alda
Reply
#20
alda Wrote:chris80 - nice to see, that you have the same hardware configuration.
Please can you help me what I must change in your config to have 5.1 analog output instead stereo downmix ?

Thanks

Alda

alda Wrote:Please can you help me what I must change in your config to have 5.1 analog output instead stereo downmix ?

First tweak the ttable mappings in pcm.xbmc. The first 8 for the headphone socket (6to2), the next 8 are for hdmi (6to2) and the final 6 are for spdif (6to6). (The reason for the 8 channels for the 6to2 are due to the centre and lfe being duplicated to both right and left)

So for hdmi in my config this downmixes 6 channels to 2

ttable.inputchannel.outputchannel(binding not actual channel) strength

ttable.0.2 1.0 # FL -> FL
ttable.1.3 1.0 # FR -> FR
ttable.2.2 0.7 # RL -> FL @70%
ttable.3.3 0.7 # RR -> RR @70%
ttable.4.2 0.7 # C -> FL @70%
ttable.4.3 0.7 # C -> FR @70%
ttable.5.2 0.5 # LFE -> FL @50%
ttable.5.3 0.5 # LFE -> FR @50%

To output 6 channels directly to hdmi without downmixing:

ttable.0.2 1.0 # FL -> FL
ttable.1.3 1.0 # FR -> FR
ttable.2.4 1.0 # RL -> RL
ttable.3.5 1.0 # RR -> RR
ttable.4.6 1.0 # C -> C
ttable.5.7 1.0 # LFE ->LFE

Also make sure the channels declare above the ttables is increased so for hdmi and spif 6 channels and 2 channel analog channels has to 14 rather than 10. You would also need to update the start of the output channels for the spdif from 4 to next available which would be 8 in this example.


Once the ttables are done you have to update the bindings in pcm.multi so for hdmi you would do

original (2 channel):
bindings.2.slave b
bindings.2.channel 0 # FL
bindings.3.slave b
bindings.3.channel 1 # FR

new (6 channel):
bindings.2.slave b
bindings.2.channel 0 # FL
bindings.3.slave b
bindings.3.channel 1 # FR
bindings.4.slave b
bindings.4.channel 2 # RL
bindings.5.slave b
bindings.5.channel 3 # RR
bindings.6.slave b
bindings.6.channel 4 # C
bindings.7.slave b
bindings.7.channel 5 # LFE

You will have to update the spdif bindings to start at channel 8 as well.

It's very easy to mix up numbers when working multi device ttable mapping so it's worth adding comments.
Reply
#21
oh my god..... Oo

thanks, but I want downmix hdmi and analog not....

so I must change first 8 lines correct ?

Alda


Edit :

after
analog 5.1
ttable.0.1 1.0
ttable.1.2 1.0
ttable.2.3 1.0
ttable.3.4 1.0
ttable.4.5 1.0
hdmi 2.0
ttable.0.6 1.0 # FL -> FL
ttable.1.7 1.0 # FR -> FR
ttable.2.6 0.7 # RL -> FL @70%
ttable.3.7 0.7 # RR -> RR @70%
ttable.4.6 0.7 # C -> FL @70%
ttable.4.7 0.7 # C -> FR @70%
ttable.5.6 0.5 # LFE -> FL @50%
ttable.5.7 0.5 # LFE -> FR @50%
spdif :
ttable.0.8 1.0
ttable.1.9 1.0
ttable.2.10 1.0
ttable.3.11 1.0
ttable.4.12 1.0
ttable.5.13 1.0

Is it correct ??
Reply
#22
alda Wrote:oh my god..... Oo

thanks, but I want downmix hdmi and analog not....

so I must change first 8 lines correct ?

Alda


Edit :
before
ttable.0.0 1.0
ttable.1.1 1.0
ttable.2.0 0.7
ttable.3.1 0.7
ttable.4.0 0.7
ttable.4.1 0.7
ttable.5.0 0.5
ttable.5.1 0.5
after
ttable.0.? 1.0
ttable.1.? 1.0
ttable.2.? 1.0
ttable.3.? 1.0
ttable.4.? 1.0

? = I don't know where from comes this number


alda Wrote:thanks, but I want downmix hdmi and analog not....

? is just like a temp channel to be passed to pcm.multi. It's not device specific and will be bound a real channel in pcm.multi.

I think this should do analog 6 channels, hdmi 2 channels, spdif ac3 upto 6 channels.

pcm.xbmc {
type plug
slave {
pcm multi
rate 48000
channels 14
}
ttable.0.0 1.0
ttable.1.1 1.0
ttable.2.2 1.0
ttable.3.3 1.0
ttable.4.4 1.0
ttable.5.5 1.0
ttable.0.6 1.0
ttable.1.7 1.0
ttable.2.6 0.7
ttable.3.7 0.7
ttable.4.6 0.7
ttable.4.7 0.7
ttable.5.6 0.5
ttable.5.7 0.5
ttable.0.8 1.0
ttable.1.9 1.0
ttable.2.10 1.0
ttable.3.11 1.0
ttable.4.12 1.0
ttable.5.13 1.0
}
}


pcm.multi {
type multi
slaves.a.pcm "analog-hw"
slaves.a.channels 6
slaves.b.pcm "digital-hw"
slaves.b.channels 2
slaves.c.pcm "spdif-pcm"
slaves.c.channels 6
bindings.0.slave a
bindings.0.channel 0
bindings.1.slave a
bindings.1.channel 1
bindings.2.slave a
bindings.2.channel 2
bindings.3.slave a
bindings.3.channel 3
bindings.4.slave a
bindings.4.channel 4
bindings.5.slave a
bindings.5.channel 5
bindings.6.slave b
bindings.6.channel 0
bindings.7.slave b
bindings.7.channel 1
bindings.8.slave c
bindings.8.channel 0
bindings.9.slave c
bindings.9.channel 1
bindings.10.slave c
bindings.10.channel 2
bindings.11.slave c
bindings.11.channel 3
bindings.12.slave c
bindings.12.channel 4
bindings.13.slave c
bindings.13.channel 5
}
Reply
#23
aha super, thank you. Now I understand... Laugh

Whats about pcm.!default - Is also necessary modify like pcm.xbmc ?

Alda
Reply
#24
alda Wrote:aha super, thank you. Now I understand... Laugh

Whats about pcm.!default - Is also necessary modify like pcm.xbmc ?

Alda

I think it should be the same as pcm.xbmc. It might be for the menu sounds. As it looks like I have not copied pcm.xbmc over to pcm.!default exactly which explains why I have menu sound on hdmi but not on spdif.
Reply
#25
I have a problem :
I saved a file like : /etc/asound.conf
used sudo /etc/init.d/alsa-utils restart
and :
aplay -D xbmc test.wav
aplay: main:608: audio open error: Device or resource busy



and under xbmc I don't have sound. What is correct setup for audio output device ?

Alda
Reply
#26
Are you sure that :

pcm.analog {
type plug
slave.pcm "analog-hw"
hint {
show on
description "Analog Output - Use analog outputs, converting samples, format, and rate as necessary."
}
}


description "Analog Output..... is without # ?
Reply
#27
alda Wrote:Are you sure that :

pcm.analog {
type plug
slave.pcm "analog-hw"
hint {
show on
description "Analog Output - Use analog outputs, converting samples, format, and rate as necessary."
}
}


description "Analog Output..... is without # ?

yes. The hint section makes the description appear next to the device name when you do aplay -L



The device busy thing caught me out the first time. You have to stop the xbmc process to release it.
Reply
#28
hre is my asound.conf :


pcm.analog-hw {
type hw
card 0
device 0
}
ctl.analog-hw {
type hw
card 0
}

# ---------------------------------------------------------------------

pcm.digital-hw {
type hw
card 0
device 3
}
ctl.digital-hw {
type hw
card 0
}

# -----------------------------------------------------------------------

pcm.spdif-hw {
type hw
card 0
device 1
}
ctl.spdif-hw {
type hw
card 0
}

# -------------------------------------------------------------------------

pcm.dmix-analog {
type dmix
ipc_key 1234
slave {
pcm "analog-hw"
period_time 0
period_size 1024
buffer_size 4096
rate 48000
}
}
ctl.dmix-analog {
type hw
card 0
}

# -------------------------------------------------------------------------

pcm.dmix-digital {
type dmix
ipc_key 1235
slave {
pcm "digital-hw"
period_time 0
period_size 1024
buffer_size 4096
rate 48000
}
}
ctl.dmix-digital {
type hw
card 0
}

# ---------------------------------------------------------------------------
# Interfaces to Use
# --------------------------------------------------------------------------
pcm.spdif-pcm AC3encode

# --------------------------------------------------------------------------

pcm.analog {
type plug
slave.pcm "analog-hw"
hint {
show on
# description "Analog Output - Use analog outputs, converting samples, format, and rate as necessary."
}
}
ctl.analog {
type hw
card 0
}

# -----------------------------------------------------------------------------

pcm.mixed-analog {
type plug
slave.pcm "dmix-analog"
hint {
show on
# description "Mixed Analog Output - Use analog outputs, converting samples, format, and rate as necessary. Allows mixing with system sounds."
}
}
ctl.mixed-analog {
type hw
card 0
}

# --------------------------------------------------------------------------------

pcm.digital {
type plug
slave.pcm "digital-hw"
hint {
show on
# description "Digital Output (HDMI) - Use digital outputs, converting samples, format, and rate as necessary."
}
}
ctl.digital {
type hw
card 0
}

# ----------------------------------------------------------------------------------

pcm.mixed-digital {
type plug
slave.pcm "dmix-digital"
hint {
show on
# description "Mixed Digital Output - Use digital outputs, converting samples, format, and rate as necessary. Allows mixing with system sounds."
}
}
ctl.mixed-digital {
type hw
card 0
}


pcm.AC3encode {
type a52
bitrate 448
channels 6
}


# ---------------------------------------------------------------------------------



pcm.xbmc {
type plug
slave {
pcm multi
rate 48000
channels 14
}
ttable.0.0 1.0
ttable.1.1 1.0
ttable.2.2 1.0
ttable.3.3 1.0
ttable.4.4 1.0
ttable.5.5 1.0
ttable.0.6 1.0 # FL -> FL
ttable.1.7 1.0 # FR -> FR
ttable.2.6 0.7 # RL -> FL @70%
ttable.3.7 0.7 # RR -> RR @70%
ttable.4.6 0.7 # C -> FL @70%
ttable.4.7 0.7 # C -> FR @70%
ttable.5.6 0.5 # LFE -> FL @50%
ttable.5.7 0.5 # LFE -> FR @50%
ttable.0.8 1.0
ttable.1.9 1.0
ttable.2.10 1.0
ttable.3.11 1.0
ttable.4.12 1.0
ttable.5.13 1.0
hint {
show on
# description "XBMC device for analog 6 and hdmi 2 channel - spdif ac3 upto 6 channels"
}
}
ctl.xbmc {
type hw
card 0
}



pcm.multi {
type multi
slaves.a.pcm "analog-hw"
slaves.a.channels 6
slaves.b.pcm "digital-hw"
slaves.b.channels 2
slaves.c.pcm "spdif-pcm"
slaves.c.channels 6
bindings.0.slave a
bindings.0.channel 0
bindings.1.slave a
bindings.1.channel 1
bindings.2.slave a
bindings.2.channel 2
bindings.3.slave a
bindings.3.channel 3
bindings.4.slave a
bindings.4.channel 4
bindings.5.slave a
bindings.5.channel 5
bindings.6.slave b
bindings.6.channel 0
bindings.7.slave b
bindings.7.channel 1
bindings.8.slave c
bindings.8.channel 0
bindings.9.slave c
bindings.9.channel 1
bindings.10.slave c
bindings.10.channel 2
bindings.11.slave c
bindings.11.channel 3
bindings.12.slave c
bindings.12.channel 4
bindings.13.slave c
bindings.13.channel 5
}
ctl.multi {
type hw
card 0
}



I deleted default, because it isn't now important.
config file is stored here : /etc/asound.conf
after this I did a xbmc stop : sudo stop xbmc-live
after this alsa restart : sudo /etc/init.d/alsa-utils restart
and after this i tried play a file : aplay -D xbmc test.wav
with this error :
aplay: main:608: audio open error: Device or resource busy


my hardware list :aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: NVidia [HDA NVidia], device 0: ALC662 rev1 Analog [ALC662 rev1 Analog]
Subdevices: 0/1
Subdevice #0: subdevice #0
card 0: NVidia [HDA NVidia], device 1: ALC662 rev1 Digital [ALC662 rev1 Digital]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: NVidia [HDA NVidia], device 3: NVIDIA HDMI [NVIDIA HDMI]
Subdevices: 1/1
Subdevice #0: subdevice #0


.. so what is wrong ? Eek

Alda
Reply
#29
any idea what I can do ?
Reply
#30
today I started again PC and I have a new error :

aplay -D xbmc /home/alda/a.wav
ALSA lib pcm.c:2171Sadsnd_pcm_open_conf) Cannot open shared library /usr/lib/alsa-lib/libasound_module_pcm_a52.so
aplay: main:608: audio open error: No such file or directory


Alda
Reply

Logout Mark Read Team Forum Stats Members Help
[How-To] Acer Aspire Revo/ION - Output to both HDMI and SPDIF1