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 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
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.
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.
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.
$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.
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.
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.
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.
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).
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.