Kodi Community Forum

Full Version: Digital Audio ...Sometimes!?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I'm having kinda of a weird issue. My digital audio was working fine, but now it's not. I get sound when I play either a DVD or a 1080p movie, and it sounds great. However I have no audio anywhere. This is a fresh install I just did this afternoon. I opened the sound manager, selected my digital audio out. Tested, and it worked. Opened xbmc, and it worked in there. When I rebooted I had no sound from then on. This has happened a few times and I just get it working eventually, but I'd like to get to the root of the problem with out "trying" a bunch of different things. I'm not sure what debug logs would be helpful. Audio is one of the few area in linux I've never had to do much configuration with. I don't seem to have an asound.conf file (that I could find.) In xbmc, the only configuration changes I made was to switching to digital audio and turning off dts. The other weird thing is every time I reboot, the audio is muted and I have to unmute it... this is very annoying. Don't know if the 2 issues are related or not.


:: SOFTWARE ::
Ubuntu Januty 9.04
XBMC 9.40.1 r20654 (installed via apt-get)

:: HARDWARE ::
AMD Phenom 9500
2gb DDR2 800
MB: EVGA 113-M2-E113 AM2+/AM2 NVIDIA nForce 730a (links to newegg)
Your asound.conf is normally placed under /usr/share/xbmc/system on your Linux box.

Regarding your audio issue, it doesn't seem that your sound settings is saved in your enviorment. Have you tried the following:

1) Go to Terminal: ALT+F2

2) Make sure your xbmc user account is in the audio group (xbmc is the user in this example)

Code:
sudo usermod -a -G audio [b]xbmc[/b]

3) Start Alsamixer and see if everything is on (OO) and not muted (MM).
You can also adjust the volum with your keyboard arrows:

Code:
sudo alsamixer

4) Save your settings:

Code:
sudo alsactl store 0


Good luck!
Yep, that's what I was doing every time I boot up. What I forgot to do though was add the user account. Now I no longer have to unmute the sound on boot! That's one annoyance down! THANKS! I'm still not getting audio though. Here's my aplay -l:

Code:
**** List of PLAYBACK Hardware Devices ****
card 0: NVidia [HDA NVidia], device 0: ALC1200 Analog [ALC1200 Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: NVidia [HDA NVidia], device 1: ALC1200 Digital [ALC1200 Digital]
  Subdevices: 0/1
  Subdevice #0: subdevice #0
card 0: NVidia [HDA NVidia], device 3: NVIDIA HDMI [NVIDIA HDMI]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

It's weird, cause I do get audio fine when playing DVD's or 1080p files.. but if I try aplay, I get an error.
Code:
# aplay -D hw:0,1 test.wav
   aplay: main:590: audio open error: Device or resource busy

Perhaps, this is my issue... though I'm not sure where to go from here.
Here's my asound.conf..

Code:
# Linux has channel order
# FL, FR, SL, SR, C, LFE
# so we remap all channelorders to this

# Windows - FL, FR, C, LFE, BL, BR, (FLC, FRC, BC, SL, SR, TC, TFL, TFC, TFR, TBL, TBC, TBR)
pcm.xbmc_win51 {
  @args.0 SLAVE
  @args.SLAVE {
    type string
    default "default"
  }
  type route
  slave {
    pcm $SLAVE
    channels 6
  }
  ttable {
    0.0= 1
    1.1= 1
    2.4= 1
    3.5= 1
    4.2= 1
    5.3= 1
  }
}

pcm.xbmc_win50 {
  @args.0 SLAVE
  @args.SLAVE {
    type string
    default "default"
  }
  type route
  slave {
    pcm $SLAVE
    channels 5
  }
  ttable {
    0.0= 1
    1.1= 1
    2.4= 1
    3.2= 1
    4.3= 1
  }
}

# FL, C, FR, SL, SR, LFE
pcm.xbmc_ogg51 {
  @args.0 SLAVE
  @args.SLAVE {
    type string
    default "default"
  }
  type route
  slave {
    pcm $SLAVE
    channels 6
  }
  ttable {
    0.0= 1
    1.4= 1
    2.1= 1
    3.2= 1
    4.3= 1
    5.5= 1
  }
}

pcm.xbmc_ogg50 {
  @args.0 SLAVE
  @args.SLAVE {
    type string
    default "default"
  }
  type route
  slave {
    pcm $SLAVE
    channels 5
  }
  ttable {
    0.0= 1
    1.4= 1
    2.1= 1
    3.2= 1
    4.3= 1
  }
}

# C, FL, FR, SL, SR, LFE
pcm.xbmc_aac51 {
  @args.0 SLAVE
  @args.SLAVE {
    type string
    default "default"
  }
  type route
  slave {
    pcm $SLAVE
    channels 6
  }
  ttable {
    0.4= 1
    1.0= 1
    2.1= 1
    3.2= 1
    4.3= 1
    5.5= 1
  }
}

pcm.xbmc_aac50 {
  @args.0 SLAVE
  @args.SLAVE {
    type string
    default "default"
  }
  type route
  slave {
    pcm $SLAVE
    channels 6
  }
  ttable {
    0.4= 1
    1.0= 1
    2.1= 1
    3.2= 1
    4.3= 1
  }
}

# this could potentially be used to encode multichannels
# to ac3 for passthrough out an spdif
pcm.xbmc_a52encode {
  type a52
}

# downmixing to 2 channels
pcm.xbmc_51to2 {
  @args.0 SLAVE
  @args.SLAVE {
    type string
    default "default"
  }
  type plug
  slave.pcm $SLAVE
  slave.channels 2
  route_policy duplicate
  ttable.0.0 1          # front left speaker
  ttable.1.1 1          # front right speaker
  ttable.2.0 0.7        # rear left speaker
  ttable.3.1 0.7        # rear right speaker
  ttable.4.0 0.7        # center to left mapping
  ttable.4.1 0.7        # center to right mapping
  ttable.5.0 0.5        # LFE (base) to left mapping
  ttable.5.1 0.5        # LFE to right mapping
}

# downmixing to 2 channels
pcm.xbmc_50to2 {
  @args.0 SLAVE
  @args.SLAVE {
    type string
    default "default"
  }
  type plug
  slave.pcm $SLAVE
  slave.channels 2
  route_policy duplicate
  ttable.0.0 1          # front left speaker
  ttable.1.1 1          # front right speaker
  ttable.2.0 0.7        # rear left speaker
  ttable.3.1 0.7        # rear right speaker
  ttable.4.0 0.7        # center to left mapping
  ttable.4.1 0.7        # center to right mapping
}