Kodi Community Forum

Full Version: Frodo: how do I manually set audio device?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Just upgraded to frodo on ubuntu 12.04 and my audio settings have been wiped. I've always had to set my audio device manually for it to work over HDMI as none of the options work, having tried them in the past.

Could someone please explain how I can set the audio device in frodo and why this manual setting removed in the first place?

Code:
root@kieron-htpc:~# 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: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
Code:
root@kieron-htpc:~# aplay -L
null
    Discard all samples (playback) or generate zero samples (capture)
default:CARD=NVidia
    HDA NVidia, ALC662 rev1 Analog
    Default Audio Device
sysdefault: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, HDMI 0
    HDMI Audio Output
dmix:CARD=NVidia,DEV=0
    HDA NVidia, ALC662 rev1 Analog
    Direct sample mixing device
dmix:CARD=NVidia,DEV=1
    HDA NVidia, ALC662 rev1 Digital
    Direct sample mixing device
dmix:CARD=NVidia,DEV=3
    HDA NVidia, HDMI 0
    Direct sample mixing device
dsnoop:CARD=NVidia,DEV=0
    HDA NVidia, ALC662 rev1 Analog
    Direct sample snooping device
dsnoop:CARD=NVidia,DEV=1
    HDA NVidia, ALC662 rev1 Digital
    Direct sample snooping device
dsnoop:CARD=NVidia,DEV=3
    HDA NVidia, HDMI 0
    Direct sample snooping device
hw:CARD=NVidia,DEV=0
    HDA NVidia, ALC662 rev1 Analog
    Direct hardware device without any conversions
hw:CARD=NVidia,DEV=1
    HDA NVidia, ALC662 rev1 Digital
    Direct hardware device without any conversions
hw:CARD=NVidia,DEV=3
    HDA NVidia, HDMI 0
    Direct hardware device without any conversions
plughw:CARD=NVidia,DEV=0
    HDA NVidia, ALC662 rev1 Analog
    Hardware device with all software conversions
plughw:CARD=NVidia,DEV=1
    HDA NVidia, ALC662 rev1 Digital
    Hardware device with all software conversions
plughw:CARD=NVidia,DEV=3
    HDA NVidia, HDMI 0
    Hardware device with all software conversions

Image

Thanks in advanced guys. I'm hoping it's a really easy fix and I'm missing something simple!
Well your alsaconf have been altered or deviceID, however m8 it's easy to fix, depending on your distribution you have a file called asound.conf located somewhere, most likely in /etc/asound.conf what you need to do is specify what device you wanna use as output, easiest is this way:


pcm.!default {
type plug
slave {
pcm "hw:0,3"
rate 48000
}
}

of course you can make this change in frodo too, but if you don't use it for anything else, set it global.
(changed it for your device) cheers!
Yep, I knew it was 0,3 but had no idea where to put it! Thanks for the simple fix. Smile

I can't seem to find /etc/asound.conf though (distro is ubuntu 12.04), everywhere else says that's where it should be. Does this mean I should create the file, or look elsewhere?

Thanks again!

EDIT: Ah, pulseaudio isn't installed... should I install it? Everything has worked without it for years.
Well pulse is nice when it works, but when you specify PCM you aren't using pulse audio, however you need to install alsa-utils-package.
I had to create the conf file, all works fine now. Thanks for coming to my rescue Smile