LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 01-29-2015, 06:50 AM   #1
Gnewbee
LQ Newbie
 
Registered: Jan 2015
Posts: 7

Rep: Reputation: Disabled
hdmi sound only in xbmc not elsewhere


Hi all,

I'm trying to setup my HT amp via hdmi from my linux computer but I get only sound from xbmc via the hdmi card and not other programs (KDE system, vlc ...)
I've tried the test option of the KDE audio selection tool and speaker-test on the device that I understand is used by xbmc to no avail (see below).
I also tried selecting many HDMI (I think all) possible options in vlc from the audio tab on movies that worked in xbmc again in vain. Finaly I tried changing the default in asound.rc but it doesn't seem to work.
Any suggestion would be very welcome as I'm completely stuck here. Idealy I'd like passthrough whenever possible to the 5.0 amp. I hope the xbmc log below can help someone to that end.

Thanks in advance,

Gnewbee

DATA:

graph card: Asus GT730
Processor: Intel(R) Core(TM)2 Duo CPU E6750
system: Linux 64-bit (Debian GNU/Linux 8 (jessie), 3.16.0-4-amd64 x86_64)
KDE desktop
xbmc: 13.2 Debian package version:2:13.2+dfsg1-4
audi: alsa only (no pulse)

aplay -l:
Code:
**** List of PLAYBACK Hardware Devices ****
card 0: Intel [HDA Intel], device 0: ALC883 Analog [ALC883 Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: Intel [HDA Intel], device 1: ALC883 Digital [ALC883 Digital]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: NVidia [HDA NVidia], device 3: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: NVidia [HDA NVidia], device 7: HDMI 1 [HDMI 1]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
aplay -L:
Code:
null
    Discard all samples (playback) or generate zero samples (capture)
pulse
    PulseAudio Sound Server
sysdefault:CARD=Intel
    HDA Intel, ALC883 Analog
    Default Audio Device
front:CARD=Intel,DEV=0
    HDA Intel, ALC883 Analog
    Front speakers
surround21:CARD=Intel,DEV=0
    HDA Intel, ALC883 Analog
    2.1 Surround output to Front and Subwoofer speakers
surround40:CARD=Intel,DEV=0
    HDA Intel, ALC883 Analog
    4.0 Surround output to Front and Rear speakers
surround41:CARD=Intel,DEV=0
    HDA Intel, ALC883 Analog
    4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=Intel,DEV=0
    HDA Intel, ALC883 Analog
    5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=Intel,DEV=0
    HDA Intel, ALC883 Analog
    5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=Intel,DEV=0
    HDA Intel, ALC883 Analog
    7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
iec958:CARD=Intel,DEV=0
    HDA Intel, ALC883 Digital
    IEC958 (S/PDIF) Digital Audio Output
dmix:CARD=Intel,DEV=0
    HDA Intel, ALC883 Analog
    Direct sample mixing device
dmix:CARD=Intel,DEV=1
    HDA Intel, ALC883 Digital
    Direct sample mixing device
dsnoop:CARD=Intel,DEV=0
    HDA Intel, ALC883 Analog
    Direct sample snooping device
dsnoop:CARD=Intel,DEV=1
    HDA Intel, ALC883 Digital
    Direct sample snooping device
hw:CARD=Intel,DEV=0
    HDA Intel, ALC883 Analog
    Direct hardware device without any conversions
hw:CARD=Intel,DEV=1
    HDA Intel, ALC883 Digital
    Direct hardware device without any conversions
plughw:CARD=Intel,DEV=0
    HDA Intel, ALC883 Analog
    Hardware device with all software conversions
plughw:CARD=Intel,DEV=1
    HDA Intel, ALC883 Digital
    Hardware device with all software conversions
hdmi:CARD=NVidia,DEV=0
    HDA NVidia, HDMI 0
    HDMI Audio Output
hdmi:CARD=NVidia,DEV=1
    HDA NVidia, HDMI 1
    HDMI Audio Output
dmix:CARD=NVidia,DEV=3
    HDA NVidia, HDMI 0
    Direct sample mixing device
dmix:CARD=NVidia,DEV=7
    HDA NVidia, HDMI 1
    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 1
    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 1
    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 1
    Hardware device with all software conversions
speaker-test -c 2 -l 2 -r 44100 -D hw:1,1
Code:
speaker-test 1.0.28

Playback device is hw:1,1
Stream parameters are 44100Hz, S16_LE, 2 channels
Using 16 octaves of pink noise
Playback open error: -2,No such file or directory

extract from xbmc log:
Code:
08:49:26 T:139947296798784    INFO: CAESinkALSA - Unable to open device "default" for playback
08:49:26 T:139947296798784    INFO: CAESinkALSA - Unable to open device "pulse" for playback
08:49:26 T:139947296798784  NOTICE: CAESinkALSA::EnumerateDevice data format "AE_FMT_LPCM" on device "hdmi:CARD=NVidia,DEV=0" seems to be not supported.
08:49:26 T:139947296798784  NOTICE: CAESinkALSA::EnumerateDevice data format "AE_FMT_DTSHD" on device "hdmi:CARD=NVidia,DEV=0" seems to be not supported.
08:49:26 T:139947296798784  NOTICE: CAESinkALSA::EnumerateDevice data format "AE_FMT_TRUEHD" on device "hdmi:CARD=NVidia,DEV=0" seems to be not supported.
08:49:26 T:139947296798784  NOTICE: CAESinkALSA::EnumerateDevice data format "AE_FMT_EAC3" on device "hdmi:CARD=NVidia,DEV=0" seems to be not supported.
08:49:26 T:139947296798784  NOTICE: CAESinkALSA::EnumerateDevice data format "AE_FMT_DTS" on device "hdmi:CARD=NVidia,DEV=0" seems to be not supported.
08:49:26 T:139947296798784  NOTICE: CAESinkALSA::EnumerateDevice data format "AE_FMT_AC3" on device "hdmi:CARD=NVidia,DEV=0" seems to be not supported.
08:49:26 T:139947296798784  NOTICE: CAESinkALSA::EnumerateDevice data format "AE_FMT_AAC" on device "hdmi:CARD=NVidia,DEV=0" seems to be not supported.
08:49:26 T:139947296798784   DEBUG: CAESinkALSA - HDMI device "hdmi:CARD=NVidia,DEV=0" may be unconnected (no ELD data)
08:49:26 T:139947296798784  NOTICE: CAESinkALSA::EnumerateDevice data format "AE_FMT_AAC" on device "hdmi:CARD=NVidia,DEV=1" seems to be not supported.
08:49:26 T:139947296798784  NOTICE: Found 1 Lists of Devices
08:49:26 T:139947296798784  NOTICE: Enumerated ALSA devices:
08:49:26 T:139947296798784  NOTICE:     Device 1
08:49:26 T:139947296798784  NOTICE:         m_deviceName      : @:CARD=Intel,DEV=0
08:49:26 T:139947296798784  NOTICE:         m_displayName     : HDA Intel (@:CARD=Intel,DEV=0)
08:49:26 T:139947296798784  NOTICE:         m_displayNameExtra: ALC883 Analog
08:49:26 T:139947296798784  NOTICE:         m_deviceType      : AE_DEVTYPE_PCM
08:49:26 T:139947296798784  NOTICE:         m_channels        : FL,FR
08:49:26 T:139947296798784  NOTICE:         m_sampleRates     : 48000
08:49:26 T:139947296798784  NOTICE:         m_dataFormats     : AE_FMT_S32NE
08:49:26 T:139947296798784  NOTICE:     Device 2
08:49:26 T:139947296798784  NOTICE:         m_deviceName      : surround21:CARD=Intel,DEV=0
08:49:26 T:139947296798784  NOTICE:         m_displayName     : HDA Intel (surround21:CARD=Intel,DEV=0)
08:49:26 T:139947296798784  NOTICE:         m_displayNameExtra: ALC883 Analog
08:49:26 T:139947296798784  NOTICE:         m_deviceType      : AE_DEVTYPE_PCM
08:49:26 T:139947296798784  NOTICE:         m_channels        : FL,FR,BL,BR,FC,LFE,SL,SR,UNKNOWN1,UNKNOWN2,UNKNOWN3,UNKNOWN4,UNKNOWN5,UNKNOWN6,UNKNOWN7,UNKNOWN8
08:49:26 T:139947296798784  NOTICE:         m_sampleRates     : 44100,48000,96000,192000
08:49:26 T:139947296798784  NOTICE:         m_dataFormats     : AE_FMT_S32NE,AE_FMT_S16NE,AE_FMT_S16LE
08:49:26 T:139947296798784  NOTICE:     Device 3
08:49:26 T:139947296798784  NOTICE:         m_deviceName      : iec958:CARD=Intel,DEV=0
08:49:26 T:139947296798784  NOTICE:         m_displayName     : HDA Intel
08:49:26 T:139947296798784  NOTICE:         m_displayNameExtra: ALC883 Digital S/PDIF
08:49:26 T:139947296798784  NOTICE:         m_deviceType      : AE_DEVTYPE_IEC958
08:49:26 T:139947296798784  NOTICE:         m_channels        : FL,FR
08:49:26 T:139947296798784  NOTICE:         m_sampleRates     : 44100,48000,96000,192000
08:49:26 T:139947296798784  NOTICE:         m_dataFormats     : AE_FMT_AC3,AE_FMT_DTS,AE_FMT_S32NE,AE_FMT_S16NE,AE_FMT_S16LE
08:49:26 T:139947296798784  NOTICE:     Device 4
08:49:26 T:139947296798784  NOTICE:         m_deviceName      : hdmi:CARD=NVidia,DEV=0
08:49:26 T:139947296798784  NOTICE:         m_displayName     : HDA NVidia
08:49:26 T:139947296798784  NOTICE:         m_displayNameExtra: HDMI
08:49:26 T:139947296798784  NOTICE:         m_deviceType      : AE_DEVTYPE_HDMI
08:49:26 T:139947296798784  NOTICE:         m_channels        : FL,FR,BL,BR,FC,LFE,SL,SR
08:49:26 T:139947296798784  NOTICE:         m_sampleRates     : 32000,44100,48000,88200,96000,176400,192000
08:49:26 T:139947296798784  NOTICE:         m_dataFormats     : AE_FMT_LPCM,AE_FMT_DTSHD,AE_FMT_TRUEHD,AE_FMT_EAC3,AE_FMT_DTS,AE_FMT_AC3,AE_FMT_AAC,AE_FMT_S32NE,AE_FMT_S16NE,AE_FMT_S16LE
08:49:26 T:139947296798784  NOTICE:     Device 5
08:49:26 T:139947296798784  NOTICE:         m_deviceName      : hdmi:CARD=NVidia,DEV=1
08:49:26 T:139947296798784  NOTICE:         m_displayName     : HDA NVidia
08:49:26 T:139947296798784  NOTICE:         m_displayNameExtra: DON DENON-AVAMP on HDMI
08:49:26 T:139947296798784  NOTICE:         m_deviceType      : AE_DEVTYPE_HDMI
08:49:26 T:139947296798784  NOTICE:         m_channels        : FL,FR,LFE,FC,BL,BR,SL,SR
08:49:26 T:139947296798784  NOTICE:         m_sampleRates     : 32000,44100,48000,88200,96000,176400,192000
08:49:26 T:139947296798784  NOTICE:         m_dataFormats     : AE_FMT_LPCM,AE_FMT_DTS,AE_FMT_AC3,AE_FMT_DTSHD,AE_FMT_EAC3,AE_FMT_TRUEHD,AE_FMT_AAC,AE_FMT_S32NE,AE_FMT_S16NE,AE_FMT_S16LE

08:49:26 T:139946655201024   DEBUG: CActiveAESink::OpenSink - trying to open device ALSA:hdmi:CARD=NVidia,DEV=1
08:49:26 T:139946655201024   DEBUG: CAESinkALSA::GetChannelLayout - Input Channel Count: 2 Output Channel Count: 2
08:49:26 T:139946655201024   DEBUG: CAESinkALSA::GetChannelLayout - Requested Layout: FL,FR
08:49:26 T:139946655201024   DEBUG: CAESinkALSA::GetChannelLayout - Got Layout: FL,FR
08:49:26 T:139946655201024    INFO: CAESinkALSA::Initialize - Attempting to open device "hdmi:CARD=NVidia,DEV=1"
08:49:26 T:139946655201024    INFO: CAESinkALSA::Initialize - Opened device "hdmi:CARD=NVidia,DEV=1,AES0=0x04,AES1=0x82,AES2=0x00,AES3=0x00"
08:49:26 T:139946655201024    INFO: CAESinkALSA::InitializeHW - Your hardware does not support AE_FMT_FLOAT, trying other formats
08:49:26 T:139946655201024    INFO: CAESinkALSA::InitializeHW - Using data format AE_FMT_S32NE
08:49:26 T:139946655201024   DEBUG: CAESinkALSA::InitializeHW - Request: periodSize 2048, bufferSize 8192
08:49:26 T:139946655201024   DEBUG: CAESinkALSA::InitializeHW - Got: periodSize 2048, bufferSize 8192
08:49:26 T:139946655201024   DEBUG: CAESinkALSA::InitializeHW - Setting timeout to 186 ms
08:49:27 T:139946655201024   DEBUG: CAESinkALSA::GetChannelLayout - Input Channel Count: 2 Output Channel Count: 2
08:49:27 T:139946655201024   DEBUG: CAESinkALSA::GetChannelLayout - Requested Layout: FL,FR
08:49:27 T:139946655201024   DEBUG: CAESinkALSA::GetChannelLayout - Got Layout: FL,FR
08:49:27 T:139946655201024   DEBUG: CActiveAESink::OpenSink - ALSA Initialized:
08:49:27 T:139946655201024   DEBUG:   Output Device : HDA NVidia
08:49:27 T:139946655201024   DEBUG:   Sample Rate   : 44100
08:49:27 T:139946655201024   DEBUG:   Sample Format : AE_FMT_S32NE
08:49:27 T:139946655201024   DEBUG:   Channel Count : 2
08:49:27 T:139946655201024   DEBUG:   Channel Layout: FL,FR
08:49:27 T:139946655201024   DEBUG:   Frames        : 2048
08:49:27 T:139946655201024   DEBUG:   Frame Samples : 4096
08:49:27 T:139946655201024   DEBUG:   Frame Size    : 8
08:49:27 T:139946596116224   DEBUG: DllAvUtilBase: Using libavutil system library
08:49:27 T:139946596116224   DEBUG: DllAvFormat: Using libswresample system library
08:49:27 T:139946596116224   ERROR: ffmpeg[DB262700]: [AVAudioResampleContext] Value 64.000000 for parameter 'filter_size' out of range
 
Old 01-31-2015, 06:32 AM   #2
Gnewbee
LQ Newbie
 
Registered: Jan 2015
Posts: 7

Original Poster
Rep: Reputation: Disabled
The problem seems to be solved. I'll reply to myself because I still hope this can be useful to someone.
I'm not quite sure what I changed (apart from the days updates and an other reboot which had yielded nothing the day before). The only other significant thing I did was put the amp output to direct.
I then cycled through all the hardware configurations with speaker-test (i.e. hw:1,x and incrementing x)
speaker-test -c 2 -l 2 -r 44100 -D hw:1,x

I then updated my /etc/asound.conf file to reflect that as per http://www.alsa-project.org/main/index.php/Asoundrc

pcm.!default {
type hw
card 1
device x
}

Now I just need to setup passthrough

Best,

Gnewbee
 
Old 01-31-2015, 05:57 PM   #3
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,939

Rep: Reputation: 3619Reputation: 3619Reputation: 3619Reputation: 3619Reputation: 3619Reputation: 3619Reputation: 3619Reputation: 3619Reputation: 3619Reputation: 3619Reputation: 3619
Thanks for the update and possible solution. Sorry I didn't know anything to help but maybe others will find your post helpful.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: XBMC 13 Beta 3 Ships with New Features Ubuntu PPA for XBMC 13 & 14 LXer Syndicated Linux News 0 04-03-2014 06:00 PM
[SOLVED] how do i get sound out of HDMI chicken dance Debian 1 03-04-2013 04:38 PM
[ProLiant MicroServer, ATI R6xx HDMI, Digital Out, HDMI] No HDMI sound at all vnatius Linux - Hardware 15 08-16-2012 01:09 PM
Using XBMC 10.0 slackbuild to compile XBMC 11.0 almost works farmerdave Slackware 20 06-11-2012 01:05 PM
No HDMI Sound daniil Slackware 2 05-18-2012 05:58 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 03:10 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration