LinuxQuestions.org
Help answer threads with 0 replies.
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 02-10-2010, 01:30 PM   #1
demontager
LQ Newbie
 
Registered: Apr 2009
Distribution: Ubuntu 10.04 amd64
Posts: 25

Rep: Reputation: 15
HDMI: Can't get it work


I have Gateway P-7807u laptop with Ubuntu 9.10 installed, it has HDMI output and I use it to connect to my TV-set. The problem is - not working sound via HDMI, in sound preferences I've chosen duplex digital output, but no success, but picture works well.
 
Old 02-10-2010, 04:28 PM   #2
Mr-Bisquit
Member
 
Registered: Feb 2009
Distribution: FreeBSD, OpenBSD, NetBSD, Debian, Fedora
Posts: 770
Blog Entries: 52

Rep: Reputation: 68
Does the sound come out from the laptop?
If so, then you can either use the laptop or input the sound to a small stereo through auxiliary and play through that method.
 
Old 02-11-2010, 12:49 AM   #3
demontager
LQ Newbie
 
Registered: Apr 2009
Distribution: Ubuntu 10.04 amd64
Posts: 25

Original Poster
Rep: Reputation: 15
Yes, laptop sound working, of course, I can use mic output. But I want to use digital sound.
 
Old 02-11-2010, 01:44 AM   #4
Electro
LQ Guru
 
Registered: Jan 2002
Posts: 6,042

Rep: Reputation: Disabled
From what I am reading the digital audio for HDMI using nVidia graphics gets screwed up when the nVidia module gets loaded. I suggest try loading ALSA after nVidia module gets loaded. This could also be set in /etc/modules.conf to make sure ALSA modules loads up after nVidia modules. Next, use "alsamixer -V all" to check if HDMI is used for digital output or similar option. I suggest use mplayer and output a video that has AC-3 or DTS audio channel to make digital audio over HDMI to work. Not all consumer electronics will accept a non-HDCP signal. Some are strict so they will never let a non-HDCP to be used. You can try the following.

mplayer -ac hwdts,hwac3,dvdpcm, -channels 2 -ao alsa:device=XXXX dvd://

or

mplayer -afm hwdts,hwac3,dvdpcm, -channels 2 -ao alsa:device=XXXX dvd://

The "-channels 2" makes sure the audio is two channels when being sent over SPDIF connection like HDMI. The "XXXX" could be anything such as iec958, spdif, or hdmi. You may have to use a hardware device that designates certain device on the desire sound card such as hw=0.3. This relates to the first sound card and its fourth device which could digital. I suggest run "aplay -l" to list sound cards and their devices.

To use digital sound all the time, you will have to edit $HOME/.asoundrc to make ALSA convert or format sound in a certain way that is compatible with SPDIF and your hardware.

I tested digital audio over HDMI on a AMD 780G chip set on a Sony SXRD rear projection TV, so it will be different for your setup. Digital audio was not reliable during and while scanning through the video.
 
Old 02-11-2010, 12:07 PM   #5
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
I have a feeling that the HDMI port is connected directly to the graphics card and thus does not contain sound info. If I am right you would need to output sound using something else, maybe the S/PDIF port.

Make sure to check the TV options so that it inputs digital audio from the HDMI (if it has it).
 
Old 02-11-2010, 04:53 PM   #6
barboolian
Member
 
Registered: Dec 2009
Posts: 32

Rep: Reputation: 15
oss

I had the same problem but the above thing works for me. It is an alternative sound driver that you have to compile yourself.
 
Old 02-12-2010, 12:26 PM   #7
demontager
LQ Newbie
 
Registered: Apr 2009
Distribution: Ubuntu 10.04 amd64
Posts: 25

Original Poster
Rep: Reputation: 15
Electro:
I don't understand how to specify file to play in that command :
mplayer -ac hwdts,hwac3,dvdpcm, -channels 2 -ao alsa:device=XXXX dvd://
how to set path to file after dvd:// ?
And aplay gives me:
Code:
dem@dem-laptop:~$ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: Intel [HDA Intel], device 0: CONEXANT Analog [CONEXANT Analog]
  Subdevices: 0/1
  Subdevice #0: subdevice #0
card 0: Intel [HDA Intel], device 1: Conexant Digital [Conexant Digital]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
Ok, I got it I know how to set path, then I tried to put hdmi iec958, spdif, but no sound at all.

Last edited by demontager; 02-12-2010 at 12:40 PM.
 
Old 02-13-2010, 11:44 AM   #8
barboolian
Member
 
Registered: Dec 2009
Posts: 32

Rep: Reputation: 15
I think you have a Conexant Hermosa. You can find out by doing

Code:
grep Codec /proc/asound/card0/codec#0
I have one of these and I can't get it to work with ALSA. I think ALSA has a bug. This is why I use oss. I know it works in W Vista.
 
Old 02-13-2010, 08:29 PM   #9
Electro
LQ Guru
 
Registered: Jan 2002
Posts: 6,042

Rep: Reputation: Disabled
Quote:
Originally Posted by barboolian View Post
I think you have a Conexant Hermosa. You can find out by doing

Code:
grep Codec /proc/asound/card0/codec#0
I have one of these and I can't get it to work with ALSA. I think ALSA has a bug. This is why I use oss. I know it works in W Vista.
Saying the sound card works with Vista is not helping because this is Linux. Using a commercial project will not help fix the issue because it will cause more problems. ALSA has backwards compatibility with OSS. The Conexant based sound cards should work if using the latest kernel or the latest ALSA modules. If analog output works, then it works. Setting up digital is painful in Linux. Digital output is a trial-n-error.
 
Old 02-14-2010, 01:27 AM   #10
demontager
LQ Newbie
 
Registered: Apr 2009
Distribution: Ubuntu 10.04 amd64
Posts: 25

Original Poster
Rep: Reputation: 15
I know It works in Windows, but I got rid this OS since I bought laptop, Linux is primary and only one.

Code:
dem@dem-laptop:~$ grep Codec /proc/asound/card0/codec#0
Codec: Conexant CX20561 (Hermosa)
Yeah, you right it's Hermosa.
 
Old 02-15-2010, 05:35 AM   #11
barboolian
Member
 
Registered: Dec 2009
Posts: 32

Rep: Reputation: 15
Commercial? They publish the source code. I compiled it myself.

I know ALSA should work. So do all the other people for whom it doesn't work. We've tried everything. There has been a bug report in the ALSA bug place for ages.

demontager, have you got a MCP65?
 
Old 02-16-2010, 12:05 AM   #12
demontager
LQ Newbie
 
Registered: Apr 2009
Distribution: Ubuntu 10.04 amd64
Posts: 25

Original Poster
Rep: Reputation: 15
I checked lspci -vvv and dmesq output, but didn't find any match. Or I'm looking in wrong place?
 
Old 02-16-2010, 01:50 AM   #13
Electro
LQ Guru
 
Registered: Jan 2002
Posts: 6,042

Rep: Reputation: Disabled
You will need your pci.ids updated if you want the human readable output that states your hardware to be printed correctly. Look for the vendor ID and product ID when using "lspci -nn" because this information is used for the module to recognize the hardware. The following is what I got from ALSA version 1.0.22.1 in alsa-kernel/pci/hda/patch_conexant.c

Vendor_ID=14f1 Product_ID=5045 CX20549 (Venice)
Vendor_ID=14f1 Product_ID=5047 CX20551 (Waikiki)
Vendor_ID=14f1 Product_ID=5051 CX20561 (Hermosa)
Vendor_ID=14f1 Product_ID=5066 CX20582 (Pebble)
Vendor_ID=14f1 Product_ID=5067 CX20583 (Pebble HSF)

I am not sure what ALSA version 1.0.22.1 relates to the kernel. Also most distributions will leave out support for hardware if they can not test it or they do not have space to provide support. If analog output works and digital output does not work, it is probably nVidia's fault.

For me digital audio over HDMI using AMD 780G on-board graphics does not work all the time. I recommend use only analog output.

I suggest compile ALSA with its debug option on and include the option model=test in /etc/modules.conf. Then you can find out what mixer option works and what mixer option does not work. Next post the information to ALSA bug reports. Again I recommend load the sound module after the nVidia module is loaded. The following is the syntax to add the options model=test to /etc/modules.conf

options snd-hda-intel model=test


Quote:
Originally Posted by barboolian View Post
Commercial? They publish the source code. I compiled it myself.

I know ALSA should work. So do all the other people for whom it doesn't work. We've tried everything. There has been a bug report in the ALSA bug place for ages.
4FrontTechnologies did produce only commercial code. Also using OSS is going to make most programs to not work. Flash is written with only ALSA.
 
Old 02-16-2010, 05:06 AM   #14
barboolian
Member
 
Registered: Dec 2009
Posts: 32

Rep: Reputation: 15
If you can't see MCP65 in the output of lspci you haven't got MCP65, unlike me. So the problem must be the ALSA driver.
 
Old 02-16-2010, 06:56 PM   #15
barboolian
Member
 
Registered: Dec 2009
Posts: 32

Rep: Reputation: 15
I can hear the sound of flash games using OSS.
 
  


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
mce remote wont work with hdmi schneidz Linux - Hardware 0 12-27-2009 10:06 PM
HDMI Audio with 12.2 Woodsman Slackware 27 09-04-2009 10:53 PM
HDMI Audio with Current/13.0 Woodsman Slackware 2 08-24-2009 01:40 PM
Connecting an HDMI Motherboard to an HD TV Woodsman Linux - Hardware 2 05-17-2009 05:53 PM
are hdmi cables really necessary schneidz General 5 04-01-2008 06:01 PM

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

All times are GMT -5. The time now is 02:18 PM.

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