LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
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 05-03-2008, 03:50 PM   #1
forum1793
Member
 
Registered: May 2008
Posts: 312

Rep: Reputation: 34
Sound HDMI 780G MythTV Mplayer Xine


I recently bought the Gigabyte GA-MA78GM-S2H mATX board.

I'm trying to get sound out of the HDMI to my TV in MythTV and Mplayer. After much trial and error I do have sound working via HDMI in xine.

I'm using Slackware 12.0.

To get OS to load I needed to plug the SATA DVD into SATAII4 and set this to IDE mode in BIOS. After install had to set back to SATA mode or writing CDs took forever. I'm keeping SATA HD's in SATA mode so I can add removables without rebooting.

The kernels do not really recognize the SB700 but treat it as a SB600. Most of the PCI elements in lspci show up as unknown. But despite that the system basically works. I'm using it now to send this post.

Using Catalyst 8.4. The .run file worked with the base slackware kernel but would not work with the 2.6.25 kernel.

To get it to work in newer kernel you should install it while running the base 2.6.21 (or whatever) kernel and do not try and reinstall. Then after 2.6.25 kernel is compiled and running, fix one of the files in /lib/mod.../fglrx (firegl_public.c I think) to fix the cap_t problem. See http://sarah-a-happy.livejournal.com/90345.html

Edit: Catalyst 8.5 and 8.6 do not need the above fix.

Then sh make.sh in the /lib/modules/fglrx/build_mod directory and make_install in the /lib/modules/fglrx/ directory. Worked for me.

Was able to run doom (prboom), quake2 (sdlquake2), and rtcw (but no sound). So video card is working.

But no sound in HDMI. This was reason for 2.6.25 kernel in the first place. Got Alsa 1.0.16 packages and install. Xine still no sound in HDMI and poor video. Change video to xshm. Video is fine now.

Check alsamixer

alsamixer

Unmute by pressing m for the iec958 part at the end. This might be for optical port.

alsamixer -c1

Unmute the iec958 (only thing that shows up). I think this is for HDMI port. Save with

alsactl store.

Still no HDMI sound. Try aplay -l and aplay -L and see selections but how choose? aplay -D... doesn't seem to match what comes from aplay -L.

Using Audacious, one can easily choose HDMI from audio settings. Finally sound from HDMI.

Finally in xine enter, "hw:1,0" in "device used for stereo output" and "stereo 2.0" in box for "speaker arrangement". This worked for getting HDMI sound to my TV (Vizio LCD 32"). Xine now shows DVD and plays sound.

No sound yet via HDMI in mplayer or Mythtv. Mythtv seems to use mplayer but this can be changed. Is this setting in mythtv for video only or video/audio both? Still trying. Once in a while it works in mplayer using sdl but this may have been while I tied up arts or the other sound ports. Can't get HDMI sound in arts either. In mplayer I'm using "hw=1.0" in the device box and it doesn't crash or flicker but I don't know what to put in the next two boxes. Changes from the defaults lead to the flickering box.

Any thoughts on this on getting hdmi sound to work in mplayer and mythtv?

System info:
MB: Gigabyte GA-MA78GM-S2H
CPU: 4800
Memory: Kingston 2Gb DDR2-800 (bios auto sets it to ~1.93V)
HD: Seagate SATA 250Gb
DVD: Liteon SATA

Code:
bash-3.1# lspci
00:00.0 Host bridge: Advanced Micro Devices [AMD] Unknown device 9600
00:01.0 PCI bridge: Advanced Micro Devices [AMD] Unknown device 9602
00:0a.0 PCI bridge: Advanced Micro Devices [AMD] Unknown device 9609
00:11.0 SATA controller: ATI Technologies Inc Unknown device 4391
00:12.0 USB Controller: ATI Technologies Inc Unknown device 4397
00:12.1 USB Controller: ATI Technologies Inc Unknown device 4398
00:12.2 USB Controller: ATI Technologies Inc Unknown device 4396
00:13.0 USB Controller: ATI Technologies Inc Unknown device 4397
00:13.1 USB Controller: ATI Technologies Inc Unknown device 4398
00:13.2 USB Controller: ATI Technologies Inc Unknown device 4396
00:14.0 SMBus: ATI Technologies Inc SB600 SMBus (rev 3a)
00:14.1 IDE interface: ATI Technologies Inc Unknown device 439c
00:14.2 Audio device: ATI Technologies Inc SB600 Azalia
00:14.3 ISA bridge: ATI Technologies Inc Unknown device 439d
00:14.4 PCI bridge: ATI Technologies Inc SB600 PCI to PCI Bridge
00:14.5 USB Controller: ATI Technologies Inc Unknown device 4399
00:18.0 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] HyperTransport Technology Configuration
00:18.1 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] Address Map
00:18.2 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] DRAM Controller
00:18.3 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] Miscellaneous Control
01:05.0 VGA compatible controller: ATI Technologies Inc Unknown device 9610
01:05.1 Audio device: ATI Technologies Inc Unknown device 960f
02:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller (rev 02)
Code:
bash-3.1$ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: SB [HDA ATI SB], device 0: ALC882 Analog [ALC882 Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: SB [HDA ATI SB], device 1: ALC882 Digital [ALC882 Digital]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: HDMI [HDA ATI HDMI], device 0: ATI HDMI [ATI HDMI]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

bash-3.1$ aplay -L
default:CARD=SB
  HDA ATI SB, ALC882 Analog
  Default Audio Device
front:CARD=SB,DEV=0
  HDA ATI SB, ALC882 Analog
  Front speakers
surround40:CARD=SB,DEV=0
  HDA ATI SB, ALC882 Analog
  4.0 Surround output to Front and Rear speakers
surround41:CARD=SB,DEV=0
  HDA ATI SB, ALC882 Analog
  4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=SB,DEV=0
  HDA ATI SB, ALC882 Analog
  5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=SB,DEV=0
  HDA ATI SB, ALC882 Analog
  5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=SB,DEV=0
  HDA ATI SB, ALC882 Analog
  7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
iec958:CARD=SB,DEV=0
      HDA ATI SB, ALC882 Digital
  IEC958 (S/PDIF) Digital Audio Output
null
  Discard all samples (playback) or generate zero samples (capture)
iec958:CARD=HDMI,DEV=0
  HDA ATI HDMI
  IEC958 (S/PDIF) Digital Audio Output

Last edited by forum1793; 06-20-2008 at 08:40 PM. Reason: Update catalyst install
 
Old 05-04-2008, 11:43 PM   #2
Electro
Guru
 
Registered: Jan 2002
Posts: 6,042

Rep: Reputation: Disabled
From the information at anandtech review on AMD 780G, it can only handle low data bandwidth for sound through HDMI. You can only send AC-3 and DTS. For mplayer, you may want to include the audio format option.

mplayer -af format=ac3 file

or

mplayer -format ac3 file

I am not sure if it will work or not.

I am not sure if ALSA libraries have conversion to AC3 or DTS. You can try formating the output as PCM, but I do not know which uncompress format will work.

You could enter the hardware in the online PCI ID database.

I think you are running the version of GUI of mplayer (gmplayer). I suggest run it through CLI.

You should of got a PATA optical drive or your present drive did not activate DMA.

BTW, I am thinking of getting GA-MA78G-DS3H, but it does not have an EPS power connector to aid in handling high TDP processors and this chipset can only handle 4:2:2 color space.
 
Old 05-09-2008, 05:51 PM   #3
forum1793
Member
 
Registered: May 2008
Posts: 312

Original Poster
Rep: Reputation: 34
mplayer -af format=ac3 file: gives

==========================================================================
Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
AUDIO: 44100 Hz, 2 ch, s16le, 128.0 kbit/9.07% (ratio: 16000->176400)
Selected audio codec: [mp3] afm: mp3lib (mp3lib MPEG layer-2, layer-3)
==========================================================================
[format] Sample format big-endian AC3 not yet supported
[libaf] Couldn't create or open audio filter 'format'
Error at audio filter chain pre-init!

Exiting... (Fatal error)


mplayer -format ac3 file: gives

==========================================================================
Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
AUDIO: 44100 Hz, 2 ch, s16le, 128.0 kbit/9.07% (ratio: 16000->176400)
Selected audio codec: [mp3] afm: mp3lib (mp3lib MPEG layer-2, layer-3)
==========================================================================
[format] Sample format big-endian AC3 not yet supported
Error at audio filter chain pre-init!

Exiting... (Fatal error)

Since HDMI sound works in XINE it should be able to work in mplayer?

I think I probably do have a PATA drive. DMA did not work in the Slackware 12.0 when the drive came up as /dev/hdc (and with Bios set to IED mode). Using kernel 2.6.25 the drive shows up as /dev/sr0 and writes to disks adequately. I recently added Slackware 12.1 and the cd-writing seemed to work even with Bios in IDE mode for the drive when showing up as either /dev/hdc or /dev/sr0.

dmesg shows
scsi4 : pata_atiixp
scsi5 : pata_atiixp
 
Old 05-09-2008, 07:37 PM   #4
forum1793
Member
 
Registered: May 2008
Posts: 312

Original Poster
Rep: Reputation: 34
Solved for mythtv

OK, I got sound via HDMI in mythtv.

In the audio output device field put:

ALSA:hw:1,0
 
Old 05-09-2008, 08:07 PM   #5
forum1793
Member
 
Registered: May 2008
Posts: 312

Original Poster
Rep: Reputation: 34
HDMI sound mplayer commandline

I got sound via HDMI in mplayer from the command line.

In your ./mplayer subdirectory, create or edit the config file.
Add the following line:

ao=alsa:device=hw=1,0

This played mp3 from command line.

Might work for dvd but video on mine is screwy from command line such as:

mplayer /dev/sr0

This gives me weird square pixel errors and out of sync sound with chirps.

The mplayer GUI still does not output sound via HDMI.
 
Old 05-10-2008, 04:13 AM   #6
Electro
Guru
 
Registered: Jan 2002
Posts: 6,042

Rep: Reputation: Disabled
It seems Slackware uses the new way of handling IDE which is the wrong way if you want things working. IDE should never be wrapped around SCSI. If it is setup that way, it will be too much over head.

I think udev is not setup properly to setup /dev/dvd as a symbolic link to /dev/srX. I suggest blame the kernel developers or the new kernel developers for doing this. If you are going make any custom entries in udev's files, I suggest find the file that your distributor wants you to use for custom udev entries.

I prefer putting mplayer settings that I want to use for everything be set as global in /etc/mplayer/mplayer.conf.

You could use the following command for dvd.

mplayer -dvd-device /dev/sr0 dvd://


You could get a DVI + Digital audio to HDMI converter such as the following device.

http://www2.dvigear.com/codvidiautoh.html
 
Old 05-10-2008, 08:18 AM   #7
forum1793
Member
 
Registered: May 2008
Posts: 312

Original Poster
Rep: Reputation: 34
$250? I would rather buy longer cables and plug adapters and hook regular speaker outputs to receiver if I was going to spend more money.

But no need as the sound now works out of HDMI for mythtv, xine, audacious, and amarok. I probably will not spend much more time on this for mplayer but might try your suggestions if time and interest permit. I imagine mplayer will be changed in new revs that will make all of this easier.

I haven't spent time on udev. Plugging in USB drives and inserting disks simply works so I have not needed to mess with these. Perhaps in near future. Thank you for response.
 
Old 05-11-2008, 09:30 AM   #8
forum1793
Member
 
Registered: May 2008
Posts: 312

Original Poster
Rep: Reputation: 34
Upgrading to Slackware 12.1, perhaps coupled with the 2.6.25 kernel, now identifies the Gigabyte GA-MA78GM-S2H pci devices.

Code:
bash-3.1# lspci
00:00.0 Host bridge: Advanced Micro Devices [AMD] RS780 Host Bridge
00:01.0 PCI bridge: Advanced Micro Devices [AMD] RS780 PCI to PCI bridge (int gfx)
00:0a.0 PCI bridge: Advanced Micro Devices [AMD] RS780 PCI to PCI bridge (PCIE port 5)
00:11.0 SATA controller: ATI Technologies Inc SB700/SB800 SATA Controller [AHCI mode]
00:12.0 USB Controller: ATI Technologies Inc SB700/SB800 USB OHCI0 Controller
00:12.1 USB Controller: ATI Technologies Inc SB700/SB800 USB OHCI1 Controller
00:12.2 USB Controller: ATI Technologies Inc SB700/SB800 USB EHCI Controller
00:13.0 USB Controller: ATI Technologies Inc SB700/SB800 USB OHCI0 Controller
00:13.1 USB Controller: ATI Technologies Inc SB700/SB800 USB OHCI1 Controller
00:13.2 USB Controller: ATI Technologies Inc SB700/SB800 USB EHCI Controller
00:14.0 SMBus: ATI Technologies Inc SBx00 SMBus Controller (rev 3a)
00:14.1 IDE interface: ATI Technologies Inc SB700/SB800 IDE Controller
00:14.2 Audio device: ATI Technologies Inc SBx00 Azalia
00:14.3 ISA bridge: ATI Technologies Inc SB700/SB800 LPC host controller
00:14.4 PCI bridge: ATI Technologies Inc SBx00 PCI to PCI Bridge
00:14.5 USB Controller: ATI Technologies Inc SB700/SB800 USB OHCI2 Controller
00:18.0 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] HyperTransport Technology Configuration
00:18.1 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] Address Map
00:18.2 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] DRAM Controller
00:18.3 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] Miscellaneous Control
01:05.0 VGA compatible controller: ATI Technologies Inc Radeon HD 3200 Graphics
01:05.1 Audio device: ATI Technologies Inc RS780 Azalia controller
02:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller (rev 02)
 
Old 05-12-2008, 08:53 PM   #9
forum1793
Member
 
Registered: May 2008
Posts: 312

Original Poster
Rep: Reputation: 34
Got sound over HDMI in aRTS.

From kde (start button)-->Settings-->Sound&Multimedia-->Sound System
choose hardware tab
Choose ALSA for "audio device"
Leave "Override device location" unchecked.
Check "Use other custom options" and enter "hw:1,0" in this field.
Save. Exit and restart X. Works for me. Noatun outputs to TV via HDMI.

Oddly enough mplayer from GUI still does not, even after setting audio to aRTS and restarting.

Last edited by forum1793; 05-12-2008 at 09:02 PM.
 
Old 06-01-2008, 10:56 AM   #10
forum1793
Member
 
Registered: May 2008
Posts: 312

Original Poster
Rep: Reputation: 34
Since last post, I got optical cable, installed kworld 115 ATSC tv card, went to F4 bios, and to mythtv 0.21

Somewhere in all of that sound over HDMI in audacious stopped working. Still works in xine and amarok.

Sound over HDMI stopped working in mythtv but sound over optical cable to receiver works.
In mythfrontend audio settings. I use ALSA:default for output device and ALSA:iec958:{ AESO 0x02 } for passthrough device.
Also have both boxes checked for AC3 to SPDIF passthrough and DTS to SPDIF passthrough. I don't know if these are needed.

So I am now able to watch and record live ATSC signals and play them back later using mythtv hearing sound over stereo or playback in xine with sound through tv in hdmi. Probably good enough.
 
Old 03-01-2009, 06:14 PM   #11
jkybic
LQ Newbie
 
Registered: Mar 2009
Posts: 2

Rep: Reputation: 0
S/PDIF optical output problem

Quote:
Originally Posted by forum1793 View Post
Since last post, I got optical cable, installed kworld 115 ATSC tv card, went to F4 bios, and to mythtv 0.21

Somewhere in all of that sound over HDMI in audacious stopped working. Still works in xine and amarok.

Sound over HDMI stopped working in mythtv but sound over optical cable to receiver works.
In mythfrontend audio settings. I use ALSA:default for output device and ALSA:iec958:{ AESO 0x02 } for passthrough device.
Also have both boxes checked for AC3 to SPDIF passthrough and DTS to SPDIF passthrough. I don't know if these are needed.

So I am now able to watch and record live ATSC signals and play them back later using mythtv hearing sound over stereo or playback in xine with sound through tv in hdmi. Probably good enough.
Hello. I have the same Gigabyte MA78GM-S2H 780G mainboard which includes Realtek ALC889A audio. The sound over the analog jacks and HDMI works perfectly but I cannot seem to get the optical S/PDIF output working. Using alsamixer I can switch the laser on by unmuting the IEC958 mixer - there is a red light going out of the optical cable. But if I plug it into my AV receiver/amplifier Harman Kardon HK3490, there is no sound (and the receiver goes back to the analog input after a few seconds.)

I am using Gentoo with alsa-driver-1.0.18a. 'aplay -l' shows that the card is identified as ALC883:

**** List of PLAYBACK Hardware Devices ****
card 0: SB [HDA ATI SB], device 0: ALC883 Analog [ALC883 Analog]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: SB [HDA ATI SB], device 1: ALC883 Digital [ALC883 Digital]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: HDMI [HDA ATI HDMI], device 3: ATI HDMI [ATI HDMI]
Subdevices: 1/1
Subdevice #0: subdevice #0

I know that hw:0.0 is the analog output and hw:1.3 is the HDMI output, so hw:0.1 should be the digital S/PDIF output. But neither speaker-test nor mplayer produce any sound when directed there, e.g.:

mplayer -ao alsa:device=hw=0.1

I have read all I could find on the Internet ( I am not allowed to post URLs here ) but it did not get me any closer, still no sound through S/PDIF. What else could I try? Could the BIOS upgrade help? Is there another Linux driver for the audio chipset besides ALSA? Should I install Windows to try it out?
Is there any way to determine whether the S/PDIF optical output is working just by looking at the red light from the cable? Could it be a rate or format problem, like the receiver not accepting the bitrate the computer is sending? Unfortunately, I do not have any other device with optical input or output at hand right now.

I will be grateful for any help - it is a shame
to have paid for an amplifier with digital input and not being able to use it.

Thanks,

Jan
 
Old 03-06-2009, 05:41 PM   #12
forum1793
Member
 
Registered: May 2008
Posts: 312

Original Poster
Rep: Reputation: 34
Pretty old post now.

Since my last post, I've upgraded to slackware 12.2 and when I look at aplay -l it looks like my audio-hdmi is also 1:3 instead of 1:0. Weird.

After unmuting the optical part in alsamixer, which you've already done, my sound simply worked. Since then my TV died and so until I replace with another TV that does hdmi, all of my sound is over optical.

The only thing I can suggest is to verify the ends of the optical cable do not have the clear protective plugs on them. I thought mine didn't but sound didn't work and eventually I discovered the protective plugs were there. (Sound actually did work once I removed the first plug but I removed both).
 
Old 03-08-2009, 06:28 AM   #13
jkybic
LQ Newbie
 
Registered: Mar 2009
Posts: 2

Rep: Reputation: 0
Quote:
Originally Posted by forum1793 View Post
Pretty old post now.

Since my last post, I've upgraded to slackware 12.2 and when I look at aplay -l it looks like my audio-hdmi is also 1:3 instead of 1:0. Weird.

After unmuting the optical part in alsamixer, which you've already done, my sound simply worked. Since then my TV died and so until I replace with another TV that does hdmi, all of my sound is over optical.

The only thing I can suggest is to verify the ends of the optical cable do not have the clear protective plugs on them. I thought mine didn't but sound didn't work and eventually I discovered the protective plugs were there. (Sound actually did work once I removed the first plug but I removed both).
Thank you. In the meantime, I made the optical input working. The problem was in the cable - some light was getting through but apparently not enough. After replacing the cable it started to work. It appears that the cable is pretty fragile.

The quality is good but from time to time I get
cracking sounds, especially when listening to recorded TV, so I assume that either the optical connection is not perfect (some bits get lost) or could also be a software problem as I do not hear the cracking when I play MP3 music using mplayer... To be investigated. I will try the coaxial input eventually, to see if it helps.

It is curious you suggest that the protective caps might have been on - my cable cannot be plugged if the caps are on.

Yours,

Jan
 
Old 04-26-2009, 08:35 AM   #14
forum1793
Member
 
Registered: May 2008
Posts: 312

Original Poster
Rep: Reputation: 34
My optical cable did fit in both the receiver and the PC with the clear protective boots (plugs) on. It was pretty loose though. Consumer feedback indicated they were loose so I, at first, didn't pay much mind to it. I really couldn't see the plugs and took a chance with needle nose pliers to gently pull one end. That was when the plug came off and the cable started working.

Finally got new TV (bigger/better) with HDMI but I was happy with the optical and made no sound changes. But then ... a lightning storm. Receiver acted goofy and had strange characters flashing on its display. Unplugged it for a while and after plugging it back in, it seemed to mostly recover. But, the optical part of the receiver is dead. So back to hdmi.

I'm not sure why but with changes from slackware 12.1 to 12.2, the hdmi went from 1,0 to 1,3 (as the previous poster noted). So make those simple changes and xine and/or mplayer output to hdmi.

In mythtv -> Utilities/Setup -> Setup -> General
Go to audio screen and put

Code:
ALSA:plughw:1,3
in both the

audio output device
Passthrough output device

Sound over hdmi in myth works for me again. This is for 2.6.27 kernels. Several months ago I tried using kernel 2.6.28 and never got sound out of hdmi.

Last edited by forum1793; 04-26-2009 at 08:39 AM.
 
  


Reply

Tags
alsa, gentoo, gigabyte, linux, optical, sound, spdif


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
MPlayer/XINE & DVD sound syncing problems linux_newbie_gu Linux - Software 0 07-13-2006 12:28 AM
Sound but no video with xine, mplayer imix Linux - Software 10 06-09-2005 11:18 AM
Sound works perfect (incl Xine and Mplayer) but not in Totem elluva Linux - Software 0 02-05-2005 04:48 PM
no sound in mplayer, xine maul Linux - Software 5 10-14-2004 01:55 PM
RH 9 Soundcard detected; sound w/ xine, mplayer; none w/ xmms, cd player johnsandidge Linux - Newbie 0 08-09-2003 08:42 PM


All times are GMT -5. The time now is 11:48 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration