LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   ALSA 1.0.17 +HDA ATI SB=No surround sound. (https://www.linuxquestions.org/questions/linux-software-2/alsa-1-0-17-hda-ati-sb%3Dno-surround-sound-679501/)

Refractor 10-28-2008 04:26 AM

ALSA 1.0.17 +HDA ATI SB=No surround sound.
 
First of all, hello :)
I am new to linux, but learned some stuff.
I've set up my system correctly and everything goes smooth except the surround sound. I have stereo sound with my onboard HDA ATI SB (ALC662 rev1) that works flawless, but when it comes to more than 2 channels it screws up. The soundcard has 3 shared jacks. On my old PC I used to remove pulseaudio and go on with alsa and have even stereo (mp3s) played on 6 channels via ~/.asoundrc. I can't remember my old soundcard but in alsamixer there was a switch for "shared" or "independant" jacks and another one for the channels - 2,4,6. Also I had volume controls for rear, front, center and LFE. I used Fedora 8, the same setup that I have on my new PC. Only the alsamixer now shows me Master, Headphone, Front, PCM, Front Mic, Line, Mic, IEC958(I have no idea what this is) and IEC958 Default PCM.
I tried playing some noise from the speakers with
Code:

speaker-test -D plug:surround51 -c 6
and it returned

Code:

[axtroz@DarkZone ~]$ speaker-test -D plug:surround51 -c6

speaker-test 1.0.17

Playback device is plug:surround51
Stream parameters are 48000Hz, S16_LE, 6 channels
Using 16 octaves of pink noise
Rate set to 48000Hz (requested 48000Hz)
Buffer size range from 64 to 16384
Period size range from 32 to 8192
Using max buffer size 16384
Periods = 4
was set period_size = 4096
was set buffer_size = 16384
 0 - Front Left
 4 - Center
 1 - Front Right
 3 - Rear Right
 2 - Rear Left
 5 - LFE

but sound comes out only from Front left and Front Right.
Here's what I've got from a few tools:

Code:

lspci:

[root@DarkZone ~]# lspci
00:00.0 Host bridge: ATI Technologies Inc RX790 Northbridge only single slot PCI-e_GFX and HT3 K8 part
00:02.0 PCI bridge: ATI Technologies Inc RD790 PCI to PCI bridge (external gfx0 port A)
00:07.0 PCI bridge: ATI Technologies Inc RD790 PCI to PCI bridge (PCI express gpp port D)
00:12.0 SATA controller: ATI Technologies Inc SB600 Non-Raid-5 SATA
00:13.0 USB Controller: ATI Technologies Inc SB600 USB (OHCI0)
00:13.1 USB Controller: ATI Technologies Inc SB600 USB (OHCI1)
00:13.2 USB Controller: ATI Technologies Inc SB600 USB (OHCI2)
00:13.3 USB Controller: ATI Technologies Inc SB600 USB (OHCI3)
00:13.4 USB Controller: ATI Technologies Inc SB600 USB (OHCI4)
00:13.5 USB Controller: ATI Technologies Inc SB600 USB Controller (EHCI)
00:14.0 SMBus: ATI Technologies Inc SBx00 SMBus Controller (rev 14)
00:14.1 IDE interface: ATI Technologies Inc SB600 IDE
00:14.2 Audio device: ATI Technologies Inc SBx00 Azalia
00:14.3 ISA bridge: ATI Technologies Inc SB600 PCI to LPC Bridge
00:14.4 PCI bridge: ATI Technologies Inc SBx00 PCI to PCI Bridge
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:00.0 VGA compatible controller: nVidia Corporation GeForce 8600 GT (rev a1)
02:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller (rev 02)

Code:

aplay -l

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

Code:

aplay -L

default:CARD=SB
    HDA ATI SB, ALC662 Analog
    Default Audio Device
front:CARD=SB,DEV=0
    HDA ATI SB, ALC662 Analog
    Front speakers
surround40:CARD=SB,DEV=0
    HDA ATI SB, ALC662 Analog
    4.0 Surround output to Front and Rear speakers
surround41:CARD=SB,DEV=0
    HDA ATI SB, ALC662 Analog
    4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=SB,DEV=0
    HDA ATI SB, ALC662 Analog
    5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=SB,DEV=0
    HDA ATI SB, ALC662 Analog
    5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=SB,DEV=0
    HDA ATI SB, ALC662 Analog
    7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
null
    Discard all samples (playback) or generate zero samples (capture)

dmesg output is here:
http://filebeam.com/9b22781f23fc58a378f179bc479dd0e9

Here's what I've got from amixer:
Code:

[axtroz@DarkZone ~]$ amixer
Simple mixer control 'Master',0
  Capabilities: pvolume pvolume-joined pswitch pswitch-joined
  Playback channels: Mono
  Limits: Playback 0 - 64
  Mono: Playback 64 [100%] [0.00dB] [on]
Simple mixer control 'Headphone',0
  Capabilities: pswitch
  Playback channels: Front Left - Front Right
  Mono:
  Front Left: Playback [on]
  Front Right: Playback [on]
Simple mixer control 'PCM',0
  Capabilities: pvolume
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 255
  Mono:
  Front Left: Playback 255 [100%] [0.00dB]
  Front Right: Playback 255 [100%] [0.00dB]
Simple mixer control 'Front',0
  Capabilities: pvolume pswitch
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 64
  Mono:
  Front Left: Playback 64 [100%] [0.00dB] [on]
  Front Right: Playback 64 [100%] [0.00dB] [on]
Simple mixer control 'Front Mic',0
  Capabilities: pvolume pswitch
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 31
  Mono:
  Front Left: Playback 23 [74%] [0.00dB] [on]
  Front Right: Playback 23 [74%] [0.00dB] [on]
Simple mixer control 'Line',0
  Capabilities: pvolume pswitch
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 31
  Mono:
  Front Left: Playback 23 [74%] [0.00dB] [on]
  Front Right: Playback 23 [74%] [0.00dB] [on]
Simple mixer control 'Mic',0
  Capabilities: pvolume pswitch
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 31
  Mono:
  Front Left: Playback 23 [74%] [0.00dB] [on]
  Front Right: Playback 23 [74%] [0.00dB] [on]
Simple mixer control 'IEC958',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [off]
Simple mixer control 'IEC958 Default PCM',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [on]
Simple mixer control 'Capture',0
  Capabilities: cvolume cswitch
  Capture channels: Front Left - Front Right
  Limits: Capture 0 - 31
  Front Left: Capture 31 [100%] [33.00dB] [on]
  Front Right: Capture 31 [100%] [33.00dB] [on]
Simple mixer control 'Input Source',0
  Capabilities: cenum
  Items: 'Mic' 'Front Mic' 'Line'
  Item0: 'Mic'

Read a dozen of FAQs, tried amost everything.
modprobe snd_hda_intel model=3stack-6ch does not help either :(
Went to the DVD Store, bought a DVD and tried it with whatever player there is - Totem, Mplayer(with several GUIs), Xine, Kaffeine, etc... but no sound... Only stereo :(
Please help! Thanks in advance!

Refractor 10-28-2008 06:50 AM

I solved it ! After a few hours of google-ing and rereading posts again and again I found it!
in /etc/modprobe.d/sound (or where your sound module loads its configuration) BEFORE this content:
Code:

alias snd-card-0 snd-hda-intel
alias sound-slot-0 snd-hda-intel

you must insert:
Code:

options snd-hda-intel model=3stack-6ch
and voila!
I've tried and tried, tweaked the file, modprobed my sound again and again without success but now everything is OK !
I even got all my controls in alsamixer including the channel switcher!
Hope this helps someone... You can mark the thread SOLVED ! ^^


All times are GMT -5. The time now is 07:01 AM.