Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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)
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
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
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.