Linux Audio problem in XBMC
#1
Music 
HI Guys

I look around and tried many thing but I still have Audio problem, sorry to bother you because I am a newbie at it.

I am running the following configuration:

eeebox eb1012P Intel Atom D510 @ 1.66 GHz
2G of RAM
HD 250 GB

OS: Ubuntu 12.04 LTS
XBMC: 11.0 Eden

Driver: OpenGL 3.3.0
NVIDIA 295.40

I have no problem to here the audio while I am in Ubuntu but when I tried it in XBMC, no sound.

Here my Audio setting

Audio Output HDMI
Speaker Config 5.1
Boost Volume level on Downmix On
Dolby Digital (AC3) off
DTS off

Audio Output Device Custom
Custom plughw:1,3
Passthrough Output Device Custom
Custom plughw:1,3

I tried Custom hw:0,7 initially but I got an error message that it was unable to initialize.

I also tried all possible setting in both Audio and passthrough without success, but no error message.

As mention, no problem to hear audio in Ubuntu.

When I checked the Additional Driver, I got 2 options, I checked both, still without audio,I even disable it in the BIOS as some thread suggested.

I am looking forward to suggestion, I am newbie in command line, but I am willing to give a try.

Thanks in advance.



Reply
#2
Post the output of:
Code:
# list your audio device
lspci | grep -i audio

# list ALSA hardware
aplay -l

# list ALSA devices
aplay -L

And describe the how your speakers are hooked up.
HTPC 1 - Zotac ZBOX ID80U | 4GB RAM | 64GB SSD | Openelec | Confluence
HTPC 2 - Zotac ZBOX ID41U | 4GB RAM | 60GB SSD | Openelec | Confluence
Server - unRAID Server | 3 x 2TB WD Green HDD, 1TB WD Black HDD (Cache) | Sabnzbd | CouchPotato | Sickbeard
Reply
#3
Hi, thanks for your time

(not sure if reply was posted properly, sorry if duplication)


lspci | grep -i audio

02:00.1 Audio device: NVIDIA Corporation High Definition Audio Controller (rev a1)


aplay -l

**** List of PLAYBACK Hardware Devices ****
card 0: NVidia [HDA NVidia], device 3: HDMI 0 [HDMI 0]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: NVidia [HDA NVidia], device 7: HDMI 0 [HDMI 0]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: NVidia [HDA NVidia], device 8: HDMI 0 [HDMI 0]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: NVidia [HDA NVidia], device 9: HDMI 0 [HDMI 0]
Subdevices: 1/1
Subdevice #0: subdevice #0


aplay -L

default
Playback/recording through the PulseAudio sound server
hdmi:CARD=NVidia,DEV=0
HDA NVidia, HDMI 0
HDMI Audio Output
hdmi:CARD=NVidia,DEV=1
HDA NVidia, HDMI 0
HDMI Audio Output
hdmi:CARD=NVidia,DEV=2
HDA NVidia, HDMI 0
HDMI Audio Output
hdmi:CARD=NVidia,DEV=3
HDA NVidia, HDMI 0
HDMI Audio Output
dmix:CARD=NVidia,DEV=3
HDA NVidia, HDMI 0
Direct sample mixing device
dmix:CARD=NVidia,DEV=7
HDA NVidia, HDMI 0
Direct sample mixing device
dmix:CARD=NVidia,DEV=8
HDA NVidia, HDMI 0
Direct sample mixing device
dmix:CARD=NVidia,DEV=9
HDA NVidia, HDMI 0
Direct sample mixing device
dsnoop:CARD=NVidia,DEV=3
HDA NVidia, HDMI 0
Direct sample snooping device
dsnoop:CARD=NVidia,DEV=7
HDA NVidia, HDMI 0
Direct sample snooping device
dsnoop:CARD=NVidia,DEV=8
HDA NVidia, HDMI 0
Direct sample snooping device
dsnoop:CARD=NVidia,DEV=9
HDA NVidia, HDMI 0
Direct sample snooping device
hw:CARD=NVidia,DEV=3
HDA NVidia, HDMI 0
Direct hardware device without any conversions
hw:CARD=NVidia,DEV=7
HDA NVidia, HDMI 0
Direct hardware device without any conversions
hw:CARD=NVidia,DEV=8
HDA NVidia, HDMI 0
Direct hardware device without any conversions
hw:CARD=NVidia,DEV=9
HDA NVidia, HDMI 0
Direct hardware device without any conversions
plughw:CARD=NVidia,DEV=3
HDA NVidia, HDMI 0
Hardware device with all software conversions
plughw:CARD=NVidia,DEV=7
HDA NVidia, HDMI 0
Hardware device with all software conversions
plughw:CARD=NVidia,DEV=8
HDA NVidia, HDMI 0
Hardware device with all software conversions
plughw:CARD=NVidia,DEV=9
HDA NVidia, HDMI 0
Hardware device with all software conversions



configuration from computer via hdmi cable, Samsung AV receiver and 5.1 speakers.

Looking forward for further advice. tx

Reply
#4
Run alsamixer and make sure that no digital outputs are muted (MM is muted; 00 is on; 'm' toggles). Most of the digital entries will show as SPDIF of some kind.

Then see if this produces sound: speaker-test -D plug:hdmi. If so, then try these settings in XBMC:

Audio Output Type: HDMI
Speaker Configuration: 5.1
Receiver supports Dolby Digital: Yes
Receiver supports DTS: Yes
Audio Output Device: hdmi (ALSA)
Passthrough Device: hdmi (ALSA)

If that does not produce sound, use the same settings except:

Audio Output Device: custom
Custom: hdmi:CARD=NVidia,DEV=0
Passthrough Device: custom
Custom: hdmi:CARD=NVidia,DEV=0

(Linux is almost always case sensitive, so make those exactly right)

Make sure to test both music and a video with AC3 or DTS audio to test the passthrough. If that doesn't work, cycle the number at the end from 0 to 1, 2, or 3 until it works.
HTPC 1 - Zotac ZBOX ID80U | 4GB RAM | 64GB SSD | Openelec | Confluence
HTPC 2 - Zotac ZBOX ID41U | 4GB RAM | 60GB SSD | Openelec | Confluence
Server - unRAID Server | 3 x 2TB WD Green HDD, 1TB WD Black HDD (Cache) | Sabnzbd | CouchPotato | Sickbeard
Reply
#5
alsamixer showed all 4 speakers as spdif with 00.

when run test, no sound and got following result:

speaker-test 1.0.25

Playback device is plud:hdmi
Stream parameters are 48000Hz, S16_LE, 1 channels
Using 16 octaves of pink noise
ALSA lib pcm.c:2217Sadsnd_pcm_open_noupdate) Unknown PCM plud:hdmi
Playback open error: -2,No such file or directory

I continue to see what error message will appear in XBMC,

When set to hdmi(ALSA) no error, but still no sound.

When set to Custom with "Custom: hdmi:CARD=NVidia,DEV=0, 1, 2 or 3" Audio was unable to initialize.

tx
Reply
#6
You've got a typo in your speaker-test output. It's "plug", not "plud". Probably still won't help you if those custom devices didn't work. When you run alsamixer, what does it say for "Chip" in the top left corner?

Also, post the output of:
Code:
dpkg -l | grep -i nvidia
HTPC 1 - Zotac ZBOX ID80U | 4GB RAM | 64GB SSD | Openelec | Confluence
HTPC 2 - Zotac ZBOX ID41U | 4GB RAM | 60GB SSD | Openelec | Confluence
Server - unRAID Server | 3 x 2TB WD Green HDD, 1TB WD Black HDD (Cache) | Sabnzbd | CouchPotato | Sickbeard
Reply
#7
alsamixer result:

AlsaMixer v1.0.25

│ Card: HDA NVidia F1: Help │
│ Chip: Nvidia GPU 0b HDMI/DP F2: System information │
│ View: F3:[Playback] F4: Capture F5: All F6: Select sound card │
│ Item: S/PDIF

checked speaker-test -D plug:hdmi, yes its a typo, my bad, I should had just cut&paste.

then:dpkg -l | grep -i nvidia

ii nvidia-common 1:0.2.44 Find obsolete NVIDIA drivers
ii nvidia-current 295.40-0ubuntu1 NVIDIA binary Xorg driver, kernel module and VDPAU library
ii nvidia-current-updates 295.49-0ubuntu0.1 NVIDIA binary Xorg driver, kernel module and VDPAU library
ii nvidia-settings 295.33-0ubuntu1 Tool of configuring the NVIDIA graphics driver
ii nvidia-settings-updates 295.33-0ubuntu1 Tool of configuring the NVIDIA graphics driver

I also checked NVIDIA web site, there is a NVIDIA driver 295.59 availaible for linux. I read the instruction, seem tricky to update and might not solve the problem.

a friend suggest to run lspci to help for the trouble shooting? so I did and here the result:

00:00.0 Host bridge: Intel Corporation N10 Family DMI Bridge (rev 02)
00:1c.0 PCI bridge: Intel Corporation N10/ICH 7 Family PCI Express Port 1 (rev 02)
00:1c.1 PCI bridge: Intel Corporation N10/ICH 7 Family PCI Express Port 2 (rev 02)
00:1c.2 PCI bridge: Intel Corporation N10/ICH 7 Family PCI Express Port 3 (rev 02)
00:1c.3 PCI bridge: Intel Corporation N10/ICH 7 Family PCI Express Port 4 (rev 02)
00:1d.0 USB controller: Intel Corporation N10/ICH 7 Family USB UHCI Controller #1 (rev 02)
00:1d.1 USB controller: Intel Corporation N10/ICH 7 Family USB UHCI Controller #2 (rev 02)
00:1d.2 USB controller: Intel Corporation N10/ICH 7 Family USB UHCI Controller #3 (rev 02)
00:1d.3 USB controller: Intel Corporation N10/ICH 7 Family USB UHCI Controller #4 (rev 02)
00:1d.7 USB controller: Intel Corporation N10/ICH 7 Family USB2 EHCI Controller (rev 02)
00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev e2)
00:1f.0 ISA bridge: Intel Corporation NM10 Family LPC Controller (rev 02)
00:1f.2 SATA controller: Intel Corporation N10/ICH7 Family SATA Controller [AHCI mode] (rev 02)
00:1f.3 SMBus: Intel Corporation N10/ICH 7 Family SMBus Controller (rev 02)
02:00.0 VGA compatible controller: NVIDIA Corporation GT218 [ION] (rev a2)
02:00.1 Audio device: NVIDIA Corporation High Definition Audio Controller (rev a1)
03:00.0 Network controller: Atheros Communications Inc. AR9285 Wireless Network Adapter (PCI-Express) (rev 01)
04:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller (rev 06)

Tks
Reply

Logout Mark Read Team Forum Stats Members Help
Audio problem in XBMC0