LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 10-28-2015, 09:24 AM   #1
Vyacheslav1
LQ Newbie
 
Registered: Oct 2015
Posts: 9

Rep: Reputation: Disabled
How to get Realtek ALC887 5.1 sound detected in debian?


According to http://unix.stackexchange.com/questi...cted-in-debian

I have motherboard based on z170 chipset which have next string in specs:

Realtek ALC887 codec

it has 5.1(3 connectors) and stereo(1 connector) connectors not counting Line In and microphone connectors on back side.

I have 5.1 sound system connected to right connectors. But detected audio cards are next:

lspci -v |grep udio

00:1f.3 Audio device: Intel Corporation Device a170 (rev 31)
06:00.1 Audio device: NVIDIA Corporation GK104 HDMI Audio Controller (rev a1)

One of which is named as:

Built-in Audio digital Stereo IEC958
and other

GK104 HDMI ...bla bla bla 5.1 .
in KMix Select Master Channel dialog window.

Am i right that 5.1 ALC887 is not detected here at all?

GK104 corresponds to Nvidia GTX 680 video(which i have) audio chip?

How to get detected 5.1 audio for ALC887 if i am right about previous questions?

Also

lsmod|grep snd
Gives next output:

snd_hda_codec_hdmi 45118 1
snd_hda_codec_realtek 67127 1
snd_hda_codec_generic 63181 1 snd_hda_codec_realtek
snd_hda_intel 26327 5
snd_hda_controller 26646 1 snd_hda_intel
snd_hda_codec 104463 5 snd_hda_codec_realtek,snd_hda_codec_hdmi,snd_hda_codec_generic,snd_hda_intel,snd_hda_controller
snd_hwdep 13148 1 snd_hda_codec
snd_pcm 88662 4 snd_hda_codec_hdmi,snd_hda_codec,snd_hda_intel,snd_hda_controller
snd_timer 26614 1 snd_pcm
snd 65244 18 snd_hda_codec_realtek,snd_hwdep,snd_timer,snd_hda_codec_hdmi,snd_pcm,snd_hda_codec_generic,snd_hda_c odec,snd_hda_intel
soundcore 13026 2 snd,snd_hda_codec



Kernel version is 4.2
pulseaudio version is 5.0

updated to pulseaudio version 7.0 from testing - nothing changes.

Last edited by Vyacheslav1; 10-28-2015 at 10:57 AM.
 
Old 10-29-2015, 05:05 AM   #2
ardvark71
LQ Veteran
 
Registered: Feb 2015
Location: USA
Distribution: Lubuntu 14.04, 22.04, Windows 8.1 and 10
Posts: 6,282
Blog Entries: 4

Rep: Reputation: 842Reputation: 842Reputation: 842Reputation: 842Reputation: 842Reputation: 842Reputation: 842
Hi...

Could you give us the slightly more detailed readout of...

Code:
lspci -nnk |grep udio
Thanks!
 
Old 10-30-2015, 04:50 AM   #3
Vyacheslav1
LQ Newbie
 
Registered: Oct 2015
Posts: 9

Original Poster
Rep: Reputation: Disabled
00:1f.3 Audio device [0403]: Intel Corporation Sunrise Point-H HD Audio [8086:a170] (rev 31)
06:00.1 Audio device [0403]: NVIDIA Corporation GK104 HDMI Audio Controller [10de:0e0a] (rev a1)
 
Old 10-30-2015, 04:56 AM   #4
Vyacheslav1
LQ Newbie
 
Registered: Oct 2015
Posts: 9

Original Poster
Rep: Reputation: Disabled
I created another issue for Ubuntu sound on askubuntu.com

http://askubuntu.com/questions/69154...y-because-of-n

I was able to get sound after installation but after several reboots

"Built-in Audio Analog Stereo" device become "Built-in Audio digital Stereo IEC958" - S/PDIF device in pavucontrol utility.

It seems to me that it is some kind of alsa driver option controls which devices are detected but i don't know which options does that. Or maybe it is pulseaudio responsibility because alsa device is already working.

aplay -L

always shows

surround51:CARD=PCH,DEV=0
HDA Intel PCH, ALC887-VD Analog
5.1 Surround output to Front, Center, Rear and Subwoofer speakers

I was able to play sound in surround51 with aplay in both Ubuntu and Debian. So drivers work well.

Last edited by Vyacheslav1; 10-30-2015 at 05:23 AM.
 
Old 10-30-2015, 11:00 AM   #5
ardvark71
LQ Veteran
 
Registered: Feb 2015
Location: USA
Distribution: Lubuntu 14.04, 22.04, Windows 8.1 and 10
Posts: 6,282
Blog Entries: 4

Rep: Reputation: 842Reputation: 842Reputation: 842Reputation: 842Reputation: 842Reputation: 842Reputation: 842
Hi...

Is your issue resolved? If so, please mark this thread as "SOLVED" by clicking on "Thread Tools" directly above your initial post. Thanks!

Regards...
 
Old 10-30-2015, 11:07 AM   #6
Vyacheslav1
LQ Newbie
 
Registered: Oct 2015
Posts: 9

Original Poster
Rep: Reputation: Disabled
No. Not resolved.

Drivers work well but I need a way to tell pulseaudio which device to use/see when it is runned so it would use "Built-in Audio Analog Stereo"(for example) instead of "Built-in Audio digital Stereo IEC958"(S/PDIF)
 
Old 10-30-2015, 11:19 AM   #7
ardvark71
LQ Veteran
 
Registered: Feb 2015
Location: USA
Distribution: Lubuntu 14.04, 22.04, Windows 8.1 and 10
Posts: 6,282
Blog Entries: 4

Rep: Reputation: 842Reputation: 842Reputation: 842Reputation: 842Reputation: 842Reputation: 842Reputation: 842
Quote:
Originally Posted by Vyacheslav1 View Post
No. Not resolved.

Drivers work well but I need a way to tell pulseaudio which device to use/see when it is runned so it would use "Built-in Audio Analog Stereo"(for example) instead of "Built-in Audio digital Stereo IEC958"(S/PDIF)
Hi...

I think this is handled through ALSA, not PulseAudio. What is the output of...

Code:
aplay -l
Regards...
 
Old 10-30-2015, 12:44 PM   #8
Vyacheslav1
LQ Newbie
 
Registered: Oct 2015
Posts: 9

Original Poster
Rep: Reputation: Disabled
It is strange but after reinstallation of pulseaudio from testing aplay -l listing changed.

aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: PCH [HDA Intel PCH], device 0: ALC887-VD Analog [ALC887-VD Analog]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 1: ALC887-VD Digital [ALC887-VD Digital]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: NVidia [HDA NVidia], device 3: HDMI 0 [HDMI 0]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: NVidia [HDA NVidia], device 7: HDMI 1 [HDMI 1]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: NVidia [HDA NVidia], device 8: HDMI 2 [HDMI 2]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: NVidia [HDA NVidia], device 9: HDMI 3 [HDMI 3]
Subdevices: 1/1
Subdevice #0: subdevice #0

$ pulseaudio --version
pulseaudio 7.0

Now surround device is listed in KMix Select Master Channel dialog. Sound works well.

How that happened and why i don't know but I think I would like get an answer to the main question anyway.

Or is it a bug then "aplay -l" lists surround51 device but not lists it in KMix Select Master Channel dialog?
 
Old 10-30-2015, 04:32 PM   #9
ardvark71
LQ Veteran
 
Registered: Feb 2015
Location: USA
Distribution: Lubuntu 14.04, 22.04, Windows 8.1 and 10
Posts: 6,282
Blog Entries: 4

Rep: Reputation: 842Reputation: 842Reputation: 842Reputation: 842Reputation: 842Reputation: 842Reputation: 842
Hi...

I'm not sure how you would change the digital to analog in this case, since both are registered as "card 0."

However, the instructions here might be helpful...

Regards...
 
Old 10-31-2015, 06:04 AM   #10
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Quote:
Originally Posted by ardvark71 View Post
Could you give us the slightly more detailed readout of...

Code:
lspci -nnk |grep udio
Thanks!
ardvark, i already told you once that this way you are discarding the extra information you get with the -k switch.
you have to allow trailing context to get the kernel module:
Code:
lspci -nnk |grep -A5 udio
your lord and savior probably isn't doing such a great job after all.

Last edited by ondoho; 10-31-2015 at 02:07 PM.
 
Old 10-31-2015, 09:36 AM   #11
Vyacheslav1
LQ Newbie
 
Registered: Oct 2015
Posts: 9

Original Poster
Rep: Reputation: Disabled
lspci -nnk |grep -A5 udio
00:1f.3 Audio device [0403]: Intel Corporation Sunrise Point-H HD Audio [8086:a170] (rev 31)
Subsystem: Gigabyte Technology Co., Ltd Device [1458:a182]
Kernel driver in use: snd_hda_intel
00:1f.4 SMBus [0c05]: Intel Corporation Sunrise Point-H SMBus [8086:a123] (rev 31)
Subsystem: Gigabyte Technology Co., Ltd Device [1458:5001]
02:00.0 PCI bridge [0604]: ASMedia Technology Inc. ASM1083/1085 PCIe to PCI Bridge [1b21:1080] (rev 04)
--
06:00.1 Audio device [0403]: NVIDIA Corporation GK104 HDMI Audio Controller [10de:0e0a] (rev a1)
Subsystem: ASUSTeK Computer Inc. Device [1043:83f1]
Kernel driver in use: snd_hda_intel
 
Old 10-31-2015, 02:11 PM   #12
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
vyacheslav, my last post wasn't directed at you, but it's still good that you posted that output.
it seems to be an alsa issue, yes.
2 soundcards.
you have to tell alsa which card is the default card.
i don't remember the exact command, but search for it, it's fairly simple. there even used to be a gui for that iirc.
 
Old 10-31-2015, 02:53 PM   #13
ardvark71
LQ Veteran
 
Registered: Feb 2015
Location: USA
Distribution: Lubuntu 14.04, 22.04, Windows 8.1 and 10
Posts: 6,282
Blog Entries: 4

Rep: Reputation: 842Reputation: 842Reputation: 842Reputation: 842Reputation: 842Reputation: 842Reputation: 842
Quote:
Originally Posted by ondoho View Post
ardvark, i already told you once that this way you are discarding the extra information you get with the -k switch.
you have to allow trailing context to get the kernel module:
Code:
lspci -nnk |grep -A5 udio
Hi...

I vaguely recall someone telling me about how to construct a similar command concerning sound, I believe, but please bear in mind that code is not a strong area with me.

Quote:
Originally Posted by ondoho View Post
your lord and savior probably isn't doing such a great job after all.
Actually, He is doing a wonderful job, just in ways you can't see because you don't know me. Why insult Him for what you feel was my mistake?

Regards...
 
Old 11-01-2015, 04:07 AM   #14
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Quote:
Originally Posted by ardvark71 View Post
I vaguely recall someone telling me about how to construct a similar command concerning sound, I believe, but please bear in mind that code is not a strong area with me.
why are you requesting it then?


Quote:
Actually, He is doing a wonderful job, just in ways you can't see because you don't know me. Why insult Him for what you feel was my mistake?
i wasn't insulting him...
 
Old 11-01-2015, 10:56 AM   #15
ardvark71
LQ Veteran
 
Registered: Feb 2015
Location: USA
Distribution: Lubuntu 14.04, 22.04, Windows 8.1 and 10
Posts: 6,282
Blog Entries: 4

Rep: Reputation: 842Reputation: 842Reputation: 842Reputation: 842Reputation: 842Reputation: 842Reputation: 842
Quote:
Originally Posted by ondoho View Post
why are you requesting it then?
Because I do know a little of the lspci commands and what I do know, I'm willing to use to help others with. If you feel your command is better, simply ask the OP to post the output of it. There's no need to get angry with and insult me in the process.

Regards...

Last edited by ardvark71; 11-01-2015 at 11:03 AM.
 
  


Reply



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
Sound board Realtek ALC887-VD does not have balance control? stf92 General 1 10-07-2014 10:25 PM
[SOLVED] Slackware 14.0: ALSA still seems not to work out of the box with Realtek ALC887-VD. stf92 Slackware 3 06-08-2014 07:43 AM
Slackware 14.0: Realtek ALC887-VD -> no sound slacksam Slackware - Installation 17 11-23-2013 01:16 PM
Slackware 14.0: Realtek ALC887-VD -> No Sound MCDewy Slackware - Installation 4 06-29-2013 03:39 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 03:43 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