Bug 68071 - Realtek ALC877-VD sound card
Summary: Realtek ALC877-VD sound card
Status: CLOSED INVALID
Alias: None
Product: Drivers
Classification: Unclassified
Component: Sound(ALSA) (show other bugs)
Hardware: All Linux
: P1 high
Assignee: Jaroslav Kysela
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-01-03 00:40 UTC by Richard Riley Gress
Modified: 2014-06-21 14:30 UTC (History)
4 users (show)

See Also:
Kernel Version: 3.15-rc3
Subsystem:
Regression: No
Bisected commit-id:


Attachments
The output of the terminal command `aplay -l` (395 bytes, text/plain)
2014-01-03 00:40 UTC, Richard Riley Gress
Details
The output of the terminal command `dmesg` (64.67 KB, text/plain)
2014-01-03 00:40 UTC, Richard Riley Gress
Details
The output of the terminal command `sudo lshw -c sound` (1.28 KB, text/plain)
2014-01-03 00:41 UTC, Richard Riley Gress
Details
The output of the terminal command `lsmod` (2.64 KB, text/plain)
2014-01-03 00:42 UTC, Richard Riley Gress
Details
alsa-info.sh output (45.24 KB, text/plain)
2014-01-03 12:52 UTC, Richard Riley Gress
Details
Alsa hardware driver hint (60 bytes, text/plain)
2014-01-04 17:56 UTC, Richard Riley Gress
Details
`pactl -list` output (8.48 KB, text/plain)
2014-01-05 13:43 UTC, Richard Riley Gress
Details
`pactl -stat` output (567 bytes, text/plain)
2014-01-05 13:44 UTC, Richard Riley Gress
Details
`alsa-info.sh` output after early patching with hints trigger_sense=false and jack_detect = 0 (39.26 KB, text/plain)
2014-01-07 18:53 UTC, Richard Riley Gress
Details
Tracepoint log without headphones plugged in to the front jack (4.79 MB, text/plain)
2014-01-16 23:12 UTC, Richard Riley Gress
Details
Tracepoint log *with* headphones plugged in to the front jack (4.79 MB, text/plain)
2014-01-16 23:13 UTC, Richard Riley Gress
Details
alsa-info.sh output (299.28 KB, text/plain)
2014-03-05 01:35 UTC, Richard Riley Gress
Details
alsa-info.sh output with 3.14-rc5 kernel (280.98 KB, text/plain)
2014-03-06 18:09 UTC, Richard Riley Gress
Details
Fix aptch for AMD HDMI false detection (672 bytes, patch)
2014-03-07 10:55 UTC, Takashi Iwai
Details | Diff
`pacmd list-cards` with 3.14-rc5 kernel (7.74 KB, text/plain)
2014-03-07 21:03 UTC, Richard Riley Gress
Details
`pacmd list-sinks` with 3.14-rc5 kernel (7.74 KB, text/plain)
2014-03-07 21:05 UTC, Richard Riley Gress
Details

Description Richard Riley Gress 2014-01-03 00:40:16 UTC
Created attachment 120681 [details]
The output of the terminal command `aplay -l`

This is a sound chipset that is not configurable in Linux at this time. The sound card is not recognized by the operating system's software (e.g. Phonon will only recognize "Dummy output" and Alsamixer will label it "Generic"), but the hardware is recognized.
Comment 1 Richard Riley Gress 2014-01-03 00:40:55 UTC
Created attachment 120691 [details]
The output of the terminal command `dmesg`
Comment 2 Richard Riley Gress 2014-01-03 00:41:40 UTC
Created attachment 120701 [details]
The output of the terminal command `sudo lshw -c sound`
Comment 3 Richard Riley Gress 2014-01-03 00:42:01 UTC
Created attachment 120711 [details]
The output of the terminal command `lsmod`
Comment 4 Raymond 2014-01-03 03:03:54 UTC
post the output of alsa-info.sh
Comment 5 Richard Riley Gress 2014-01-03 12:52:56 UTC
Created attachment 120741 [details]
alsa-info.sh output
Comment 6 Raymond 2014-01-03 14:15:14 UTC
your two hdmi audio seem not plugged

Green Line Out and Headphone are not plugged too

only front mic is plugged


state.Generic {
	control.1 {
		iface CARD
		name 'HDMI/DP,pcm=3 Jack'
		value false
		comment {
			access read
			type BOOLEAN
			count 1
		}
	}
}

state.Generic_1 {
	control.30 {
		iface CARD
		name 'Front Mic Jack'
		value true
		comment {
			access read
			type BOOLEAN
			count 1
		}
	}
	control.31 {
		iface CARD
		name 'Rear Mic Jack'
		value false
		comment {
			access read
			type BOOLEAN
			count 1
		}
	}
	control.32 {
		iface CARD
		name 'Line Jack'
		value false
		comment {
			access read
			type BOOLEAN
			count 1
		}
	}
	control.33 {
		iface CARD
		name 'Line Out Jack'
		value false
		comment {
			access read
			type BOOLEAN
			count 1
		}
	}
	control.34 {
		iface CARD
		name 'Front Headphone Jack'
		value false
		comment {
			access read
			type BOOLEAN
			count 1
		}
	}


state.Generic_2 {
	control.1 {
		iface CARD
		name 'HDMI/DP,pcm=3 Jack'
		value false
		comment {
			access read
			type BOOLEAN
			count 1
		}
	}
Comment 7 Richard Riley Gress 2014-01-04 02:20:18 UTC
Correct: neither of the two HDMIs are being used. Plugging stereo speakers or headphones directly into the green jack on the onboard sound card or into the front port results in a buzzing noise. Microphones, of course, wouldn't be detected anyway. I blacklisted the snd-intel-hdmi module at one point, but it is not blacklisted anymore. And the same behavior was there before then.
Comment 8 Raymond 2014-01-04 05:29:53 UTC
https://git.kernel.org/cgit/linux/kernel/git/tiwai/sound.git/plain/Documentation/sound/alsa/HD-Audio.txt

try early patching 

with hint

trigger_sense=false




- jack_detect (bool): specify whether the jack detection is available
  at all on this machine; default true

- trigger_sense (bool): indicates that the jack detection needs the
  explicit call of AC_VERB_SET_PIN_SENSE verb
Comment 9 Richard Riley Gress 2014-01-04 17:56:02 UTC
Created attachment 120861 [details]
Alsa hardware driver hint

 - Created onboard-audio.fw in /lib/firmware

 - Added the line `options snd-hda-intel patch=onbaord-audio` to /etc/modprobe.d/alsa-base.conf

 - Rebooted, still just "Dummy Output" in Phonon and same behavior as before
Comment 10 Raymond 2014-01-05 05:20:51 UTC
did you hear any sound ?

speaker-test -c2 -t wave -D hw:1,0








if you have three hda controller


you can change the order of the card by

options snd-hda-intel index=1,0,2





post the output of

pactl list

pactl stat
Comment 11 Richard Riley Gress 2014-01-05 13:43:13 UTC
There is still no sound except for the same monotone I mentioned before. Changing the order of the cards also did not do anything.
Comment 12 Richard Riley Gress 2014-01-05 13:43:58 UTC
Created attachment 120981 [details]
`pactl -list` output
Comment 13 Richard Riley Gress 2014-01-05 13:44:21 UTC
Created attachment 120991 [details]
`pactl -stat` output
Comment 14 Raymond 2014-01-06 01:16:03 UTC
do your computer chassis have a HDA front audio panel which support jack detection ?

http://www.intel.com/support/motherboards/desktop/sb/cs-015851.htm

you can disable jack detection by hint

jack_detect = 0
Comment 15 Richard Riley Gress 2014-01-06 15:13:15 UTC
My computer has none of those Desktop Boards; it is an A55M-P33 built by MSI. In any case, disabling jack detection did not do anything. I do not know if I set up my hint file correctly. Do new hints go on a new line below previous hints?

/lib/firmware/onboard-audio.fw :

[codec]
0x10ec0887 0x1462d786 0

[hint]
trigger_sense=false
jack_detect = 0
Comment 16 Raymond 2014-01-07 03:18:15 UTC
can you post the output of alsa-info.sh after early patching 

and pulseaudio verbose log

pulseaudio -k; pulseaudio -vvvv


http://www.msi.com/product/mb/A55M-P33.html#/?div=Detail


• Chipset integrated by Realtek® ALC887
- Flexible 8-channel audio with jack sensing
- Compliant with Azalia 1.0 Spec

refer to user manual 

The rear panel provides the following connectors:

Important
* To reach the 8-channel sound effect, the 7th and 8th channels must be output
from front panel.



Front Panel Audio Connector: JAUD1
This connector allows you to connect the front audio panel located on your com-
puter case. This connector is compliant with the Intel ® Front Panel I/O Connectivity Design Guide.
Comment 17 Richard Riley Gress 2014-01-07 18:53:34 UTC
Created attachment 121241 [details]
`alsa-info.sh` output after early patching with hints trigger_sense=false and jack_detect = 0
Comment 18 Richard Riley Gress 2014-01-07 18:56:36 UTC
$ pulseaudio -k
$ pulseaudio -vvvv 
I: [pulseaudio] main.c: setrlimit(RLIMIT_NICE, (31, 31)) failed: Operation not permitted
I: [pulseaudio] main.c: setrlimit(RLIMIT_RTPRIO, (9, 9)) failed: Operation not permitted
D: [pulseaudio] core-rtclock.c: Timer slack is set to 50 us.
D: [pulseaudio] core-util.c: RealtimeKit worked.
I: [pulseaudio] core-util.c: Successfully gained nice level -11.
I: [pulseaudio] main.c: This is PulseAudio 4.0
D: [pulseaudio] main.c: Compilation host: x86_64-pc-linux-gnu
D: [pulseaudio] main.c: Compilation CFLAGS: -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -Wall -W -Wextra -pipe -Wno-long-long -Wno-overlength-strings -Wunsafe-loop-optimizations -Wundef -Wformat=2 -Wlogical-op -Wsign-compare -Wformat-security -Wmissing-include-dirs -Wformat-nonliteral -Wpointer-arith -Winit-self -Wdeclaration-after-statement -Wfloat-equal -Wmissing-prototypes -Wredundant-decls -Wmissing-declarations -Wmissing-noreturn -Wshadow -Wendif-labels -Wcast-align -Wstrict-aliasing -Wwrite-strings -Wno-unused-parameter -ffast-math -Wp,-D_FORTIFY_SOURCE=2 -fno-common -fdiagnostics-show-option
D: [pulseaudio] main.c: Running on host: Linux x86_64 3.11.0-15-generic #23-Ubuntu SMP Mon Dec 9 18:17:04 UTC 2013
D: [pulseaudio] main.c: Found 2 CPUs.
I: [pulseaudio] main.c: Page size is 4096 bytes
D: [pulseaudio] main.c: Compiled with Valgrind support: no
D: [pulseaudio] main.c: Running in valgrind mode: no
D: [pulseaudio] main.c: Running in VM: no
D: [pulseaudio] main.c: Optimized build: yes
D: [pulseaudio] main.c: FASTPATH defined, only fast path asserts disabled.
I: [pulseaudio] main.c: Machine ID is fb1f7a50fa35f51686a94d09522640ea.
I: [pulseaudio] main.c: Session ID is c1.
I: [pulseaudio] main.c: Using runtime directory /run/user/1000/pulse.
I: [pulseaudio] main.c: Using state directory /home/richie/.config/pulse.
I: [pulseaudio] main.c: Using modules directory /usr/lib/pulse-4.0/modules.
I: [pulseaudio] main.c: Running in system mode: no
E: [pulseaudio] pid.c: Daemon already running.
E: [pulseaudio] main.c: pa_pid_file_create() failed.
Comment 19 Raymond 2014-01-08 00:55:02 UTC
https://wiki.ubuntu.com/PulseAudio/Log

post the pulseaudio verbose log without early patching 

one of hdmi seem lost in your previous alsa-info
Comment 20 Richard Riley Gress 2014-01-08 01:47:24 UTC
$ pulseaudio -vvvv 
I: [pulseaudio] main.c: setrlimit(RLIMIT_NICE, (31, 31)) failed: Operation not permitted
I: [pulseaudio] main.c: setrlimit(RLIMIT_RTPRIO, (9, 9)) failed: Operation not permitted
D: [pulseaudio] core-rtclock.c: Timer slack is set to 50 us.
D: [pulseaudio] core-util.c: RealtimeKit worked.
I: [pulseaudio] core-util.c: Successfully gained nice level -11.
I: [pulseaudio] main.c: This is PulseAudio 4.0
D: [pulseaudio] main.c: Compilation host: x86_64-pc-linux-gnu
D: [pulseaudio] main.c: Compilation CFLAGS: -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -Wall -W -Wextra -pipe -Wno-long-long -Wno-overlength-strings -Wunsafe-loop-optimizations -Wundef -Wformat=2 -Wlogical-op -Wsign-compare -Wformat-security -Wmissing-include-dirs -Wformat-nonliteral -Wpointer-arith -Winit-self -Wdeclaration-after-statement -Wfloat-equal -Wmissing-prototypes -Wredundant-decls -Wmissing-declarations -Wmissing-noreturn -Wshadow -Wendif-labels -Wcast-align -Wstrict-aliasing -Wwrite-strings -Wno-unused-parameter -ffast-math -Wp,-D_FORTIFY_SOURCE=2 -fno-common -fdiagnostics-show-option
D: [pulseaudio] main.c: Running on host: Linux x86_64 3.11.0-15-generic #23-Ubuntu SMP Mon Dec 9 18:17:04 UTC 2013
D: [pulseaudio] main.c: Found 2 CPUs.
I: [pulseaudio] main.c: Page size is 4096 bytes
D: [pulseaudio] main.c: Compiled with Valgrind support: no
D: [pulseaudio] main.c: Running in valgrind mode: no
D: [pulseaudio] main.c: Running in VM: no
D: [pulseaudio] main.c: Optimized build: yes
D: [pulseaudio] main.c: FASTPATH defined, only fast path asserts disabled.
I: [pulseaudio] main.c: Machine ID is fb1f7a50fa35f51686a94d09522640ea.
I: [pulseaudio] main.c: Session ID is c1.
I: [pulseaudio] main.c: Using runtime directory /run/user/1000/pulse.
I: [pulseaudio] main.c: Using state directory /home/richie/.config/pulse.
I: [pulseaudio] main.c: Using modules directory /usr/lib/pulse-4.0/modules.
I: [pulseaudio] main.c: Running in system mode: no
E: [pulseaudio] pid.c: Daemon already running.
E: [pulseaudio] main.c: pa_pid_file_create() failed
Comment 21 Raymond 2014-01-08 04:43:22 UTC
have you disabled auto spwan ?
Comment 22 Richard Riley Gress 2014-01-08 20:11:16 UTC
No, `; autospawn = yes` is commented out in /etc/pulse/client.conf
Comment 23 Richard Riley Gress 2014-01-09 00:41:55 UTC
Changing `; autospawn = yes` to ` autospawn = no` made the devices show up in Phonon. http://i.imgur.com/uNSm2dC.png
Comment 24 Richard Riley Gress 2014-01-09 00:42:37 UTC
Changing `; autospawn = yes` to ` autospawn = no` made the devices show up in Phonon. http://wstaw.org/m/2014/01/09/plasma-desktopYr1820.png
Comment 25 Richard Riley Gress 2014-01-13 22:40:54 UTC
(the buzzing still exists)
Comment 26 Raymond 2014-01-15 02:40:00 UTC
http://git.kernel.org/cgit/linux/kernel/git/tiwai/sound.git/tree/Documentation/sound/alsa/HD-Audio.txt

check the response of hda unsol event when headphone is plugged and unplugged in system log by enable tracepoints

Tracepoints
~~~~~~~~~~~
The hd-audio driver gives a few basic tracepoints.
`hda:hda_send_cmd` traces each CORB write while `hda:hda_get_response`
traces the response from RIRB (only when read from the codec driver).
`hda:hda_bus_reset` traces the bus-reset due to fatal error, etc,
`hda:hda_unsol_event` traces the unsolicited events, and
`hda:hda_power_down` and `hda:hda_power_up` trace the power down/up
via power-saving behavior.

Enabling all tracepoints can be done like
------------------------------------------------------------------------
  # echo 1 > /sys/kernel/debug/tracing/events/hda/enable
------------------------------------------------------------------------
then after some commands, you can traces from
/sys/kernel/debug/tracing/trace file. For example, when you want to
trace what codec command is sent, enable the tracepoint like:
------------------------------------------------------------------------
  # cat /sys/kernel/debug/tracing/trace
Comment 27 Richard Riley Gress 2014-01-16 23:10:04 UTC
I ran the command "# echo 1 > /sys/kernel/debug/tracing/events/hda/enable", rebooted, and then ran the following command twice, once with headphones unplugged from the front of the computer (see attachment 'tracept1.log') and once with them plugged in (see attachment 'tracept2.log'): "# cat /sys/kernel/debug/tracing/trace"
Comment 28 Richard Riley Gress 2014-01-16 23:10:45 UTC
(In reply to Richard Riley Gress from comment #27)
> I ran the command "# echo 1 > /sys/kernel/debug/tracing/events/hda/enable",
> rebooted, and then ran the following command twice, once with headphones
> unplugged from the front of the computer (see attachment 'tracept1.log') and
> once with them plugged in (see attachment 'tracept2.log'): "# cat
> /sys/kernel/debug/tracing/trace"

Oh and all the other changes I made, like making driver hints, I undid.
Comment 29 Richard Riley Gress 2014-01-16 23:12:20 UTC
Created attachment 122351 [details]
Tracepoint log without headphones plugged in to the front jack
Comment 30 Richard Riley Gress 2014-01-16 23:13:54 UTC
Created attachment 122361 [details]
Tracepoint log *with* headphones plugged in to the front jack
Comment 31 Raymond 2014-01-17 02:29:10 UTC
how did you enable the trace log

it should similar to 

https://launchpadlibrarian.net/160462582/trace.log

#           TASK-PID   CPU#  ||||    TIMESTAMP  FUNCTION
#              | |       |   ||||       |         |
          <idle>-0     [000] d.h.   334.304791: hda_unsol_event: [0] res=4000081, res_ex=12


 kworker/u16:0-6     [000] ....   334.304831: hda_send_cmd: [0:2] val=21bf0900
 kworker/u16:0-6     [000] ....   334.304873: hda_get_response: [0:2] val=80000000

headphone is detected when response is 0x80000000
Comment 32 Richard Riley Gress 2014-01-17 04:15:01 UTC
I performed the steps in Comment 27: I ran "# echo 1 > /sys/kernel/debug/tracing/events/hda/enable"; rebooted; and then ran "# cat /sys/kernel/debug/tracing/trace" with and without headphones.
Comment 33 Richard Riley Gress 2014-01-19 17:53:41 UTC
The documentation is unclear :/ what commands should I run exactly?
Comment 34 Richard Riley Gress 2014-01-22 16:48:07 UTC
I installed Ubuntu 13.1-0 on a separate partition and ran the commands there with the latest 3.13 kernel.

 # echo 1 > /sys/kernel/debug/tracing/events/hda/hda_unsol_event/enable
 # echo 1 > /sys/kernel/debug/tracing/events/hda/enable
 # cat /sys/kernel/debug/tracing/trace
# tracer: nop
#
# entries-in-buffer/entries-written: 0/0   #P:2
#
#                              _-----=> irqs-off
#                             / _----=> need-resched
#                            | / _---=> hardirq/softirq
#                            || / _--=> preempt-depth
#                            ||| /     delay
#           TASK-PID   CPU#  ||||    TIMESTAMP  FUNCTION
#              | |       |   ||||       |         |
Comment 35 Richard Riley Gress 2014-01-28 01:58:53 UTC
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1273508
Comment 36 Raymond 2014-01-28 05:08:32 UTC
(In reply to Richard Riley Gress from comment #15)
> My computer has none of those Desktop Boards; it is an A55M-P33 built by
> MSI. In any case, disabling jack detection did not do anything. I do not
> know if I set up my hint file correctly. Do new hints go on a new line below
> previous hints?
> 
> /lib/firmware/onboard-audio.fw :
> 
> [codec]
> 0x10ec0887 0x1462d786 0
> 
> [hint]
> trigger_sense=false
> jack_detect = 0



 if you specifiy hint Jack_detect=0 

phantom Jack controls will be created instead of headphone or line out Jack controls

and auto mute control will not be created 

if you find HDMI phantom Jack, this mean your early patching apply to HDMI codec instead of alc887vd
Comment 37 Richard Riley Gress 2014-01-29 18:54:39 UTC
I'm not sure how to find out about the phantom jacks, but here are a couple outputs after early patching:

$ aplay -l
**** List of PLAYBACK Hardware Devices ****                                                                                                                
card 1: Generic [HD-Audio Generic], device 0: ALC887-VD Analog [ALC887-VD Analog]                                                                          
  Subdevices: 1/1                                                                                                                                          
  Subdevice #0: subdevice #0                                                                                                                               
card 2: Generic_1 [HD-Audio Generic], device 3: HDMI 0 [HDMI 0]                                                                                            
  Subdevices: 1/1                                                                                                                                          
  Subdevice #0: subdevice #0                                                                                                                               
$ pulseaudio -vvvv                                                                                                                  
I: [pulseaudio] main.c: setrlimit(RLIMIT_NICE, (31, 31)) failed: Operation not permitted                                                                   
I: [pulseaudio] main.c: setrlimit(RLIMIT_RTPRIO, (9, 9)) failed: Operation not permitted                                                                   
D: [pulseaudio] core-rtclock.c: Timer slack is set to 50 us.                                                                                               
D: [pulseaudio] core-util.c: RealtimeKit worked.                                                                                                           
I: [pulseaudio] core-util.c: Successfully gained nice level -11.                                                                                           
I: [pulseaudio] main.c: This is PulseAudio 4.0                                                                                                             
D: [pulseaudio] main.c: Compilation host: x86_64-pc-linux-gnu                                                                                              
D: [pulseaudio] main.c: Compilation CFLAGS: -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -Wall -W -Wextra -pipe -Wno-long-long -Wno-overlength-strings -Wunsafe-loop-optimizations -Wundef -Wformat=2 -Wlogical-op -Wsign-compare -Wformat-security -Wmissing-include-dirs -Wformat-nonliteral -Wpointer-arith -Winit-self -Wdeclaration-after-statement -Wfloat-equal -Wmissing-prototypes -Wredundant-decls -Wmissing-declarations -Wmissing-noreturn -Wshadow -Wendif-labels -Wcast-align -Wstrict-aliasing -Wwrite-strings -Wno-unused-parameter -ffast-math -Wp,-D_FORTIFY_SOURCE=2 -fno-common -fdiagnostics-show-option
D: [pulseaudio] main.c: Running on host: Linux x86_64 3.11.0-15-generic #23-Ubuntu SMP Mon Dec 9 18:17:04 UTC 2013
D: [pulseaudio] main.c: Found 2 CPUs.
I: [pulseaudio] main.c: Page size is 4096 bytes
D: [pulseaudio] main.c: Compiled with Valgrind support: no
D: [pulseaudio] main.c: Running in valgrind mode: no
D: [pulseaudio] main.c: Running in VM: no
D: [pulseaudio] main.c: Optimized build: yes
D: [pulseaudio] main.c: FASTPATH defined, only fast path asserts disabled.
I: [pulseaudio] main.c: Machine ID is fb1f7a50fa35f51686a94d09522640ea.
I: [pulseaudio] main.c: Session ID is c1.
I: [pulseaudio] main.c: Using runtime directory /run/user/1000/pulse.
I: [pulseaudio] main.c: Using state directory /home/richie/.config/pulse.
I: [pulseaudio] main.c: Using modules directory /usr/lib/pulse-4.0/modules.
I: [pulseaudio] main.c: Running in system mode: no
E: [pulseaudio] pid.c: Daemon already running.
E: [pulseaudio] main.c: pa_pid_file_create() failed.
Comment 38 Raymond 2014-01-30 00:32:34 UTC
E: [pulseaudio] pid.c: Daemon already running.
E: [pulseaudio] main.c: pa_pid_file_create() failed.



you have another pulseaudio daemon running 


fuser -v -u /dev/snd/*

find out which user  is still using the audio device
Comment 39 Raymond 2014-01-30 00:39:54 UTC
may be specify index before patch

or a dummy patch file for hdmi if you onboard is not card 1
s

!Module: snd_hda_intel
	align_buffer_size : -1
	bdl_pos_adj : 32,32,32,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1
	beep_mode : N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N
	enable : Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y
	enable_msi : -1
	id : (null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null)
	index : 1,0,2,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1

jackpoll_ms : 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
	model : (null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null)
	patch : onboard-audio,(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null)
Comment 40 Richard Riley Gress 2014-01-30 00:52:15 UTC
Odd, fuser -v -u /dev/snd/* returns nothing... When run as root I get:

E: [pulseaudio] core-util.c: Home directory not accessible: Permission denied
Comment 41 Raymond 2014-02-06 09:00:41 UTC
http://voices.canonical.com/david.henningsson/2012/07/13/top-five-wrong-ways-to-fix-your-audio/

refer to your first alsa-info output
the sound devices belong to audio group

are they still belong to audio group ???


!!ALSA Device nodes
!!-----------------

crw-rw----+ 1 root audio 116,  4 Jan  3 07:36 /dev/snd/controlC0
crw-rw----+ 1 root audio 116,  9 Jan  3 07:36 /dev/snd/controlC1
crw-rw----+ 1 root audio 116, 12 Jan  3 07:36 /dev/snd/controlC2
crw-rw----+ 1 root audio 116,  3 Jan  3 07:36 /dev/snd/hwC0D0
crw-rw----+ 1 root audio 116,  8 Jan  3 07:36 /dev/snd/hwC1D0
crw-rw----+ 1 root audio 116, 11 Jan  3 07:36 /dev/snd/hwC2D0
crw-rw----+ 1 root audio 116,  2 Jan  3 07:36 /dev/snd/pcmC0D3p
crw-rw----+ 1 root audio 116,  7 Jan  3 07:36 /dev/snd/pcmC1D0c
crw-rw----+ 1 root audio 116,  6 Jan  3 07:36 /dev/snd/pcmC1D0p
crw-rw----+ 1 root audio 116,  5 Jan  3 07:36 /dev/snd/pcmC1D2c
crw-rw----+ 1 root audio 116, 10 Jan  3 07:36 /dev/snd/pcmC2D3p
crw-rw----+ 1 root audio 116,  1 Jan  3 07:36 /dev/snd/seq
crw-rw----+ 1 root audio 116, 33 Jan  3 07:36 /dev/snd/timer
Comment 42 Richard Riley Gress 2014-02-08 15:16:12 UTC
For the record I am not part of the audio group: http://wstaw.org/m/2014/02/08/plasma-desktopAn1831.png

Yes, the sound devices still belong to the audio group:

$ ls -l /dev/snd
total 0
drwxr-xr-x  2 root root      100 Feb  8 09:38 by-path
crw-rw----+ 1 root audio 116, 16 Feb  8 09:38 controlC0
crw-rw----+ 1 root audio 116,  6 Feb  8 09:38 controlC1
crw-rw----+ 1 root audio 116,  9 Feb  8 09:38 controlC2
crw-rw----+ 1 root audio 116,  5 Feb  8 09:38 hwC1D0
crw-rw----+ 1 root audio 116,  8 Feb  8 09:38 hwC2D0
crw-rw----+ 1 root audio 116, 15 Feb  8 09:38 pcmC0D0c
crw-rw----+ 1 root audio 116, 14 Feb  8 10:14 pcmC0D0p
crw-rw----+ 1 root audio 116, 13 Feb  8 09:38 pcmC0D1p
crw-rw----+ 1 root audio 116, 12 Feb  8 09:38 pcmC0D2p
crw-rw----+ 1 root audio 116, 11 Feb  8 09:38 pcmC0D3p
crw-rw----+ 1 root audio 116, 10 Feb  8 09:38 pcmC0D4p
crw-rw----+ 1 root audio 116,  4 Feb  8 09:38 pcmC1D0c
crw-rw----+ 1 root audio 116,  3 Feb  8 09:38 pcmC1D0p
crw-rw----+ 1 root audio 116,  2 Feb  8 09:38 pcmC1D2c
crw-rw----+ 1 root audio 116,  7 Feb  8 09:38 pcmC2D3p
crw-rw----+ 1 root audio 116,  1 Feb  8 09:38 seq
crw-rw----+ 1 root audio 116, 33 Feb  8 09:38 timer
Comment 43 Richard Riley Gress 2014-02-08 15:18:20 UTC
(There are different audio devices but this is expected, there is just some different hardware installed now in addition.)
Comment 44 Raymond 2014-03-04 03:39:27 UTC
you have to post the output of alsa-info.sh again
Comment 45 Richard Riley Gress 2014-03-05 01:35:04 UTC
Created attachment 128041 [details]
alsa-info.sh output
Comment 46 Richard Riley Gress 2014-03-05 01:35:53 UTC
I ran the script again, above is the output: www.alsa-project.org/db/?f=19ede7f93372011ceeeff9f78e664832293cad81
Comment 47 Raymond 2014-03-05 03:08:43 UTC
APLAY

**** List of PLAYBACK Hardware Devices ****
card 0: XFi [Creative X-Fi], device 0: ctxfi [Front/WaveIn]
  Subdevices: 256/256
card 0: XFi [Creative X-Fi], device 1: ctxfi [Surround]
  Subdevices: 256/256
card 0: XFi [Creative X-Fi], device 2: ctxfi [Center/LFE]
  Subdevices: 256/256
card 0: XFi [Creative X-Fi], device 3: ctxfi [Side]
  Subdevices: 256/256
card 0: XFi [Creative X-Fi], device 4: ctxfi [IEC958 Non-audio]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: Generic [HD-Audio Generic], device 0: ALC887-VD Analog [ALC887-VD Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 2: Generic_1 [HD-Audio Generic], device 3: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0



[   25.208296] ctxfi: chip 20K1 model Unknown (1102:1003) is found

1) this mean that your ctxfi is not yet supported

do it really have (4 x 25 +1 ) playback subdevices ?

2) your on-board alc887 's headphone and line out are not available 

	control.33 {
		iface CARD
		name 'Line Out Jack'
		value false
		comment {
			access read
			type BOOLEAN
			count 1
		}
	}
	control.34 {
		iface CARD
		name 'Front Headphone Jack'
		value false
		comment {
			access read
			type BOOLEAN
			count 1
		}
	}

3) your hdmi is not plugged too

control.1 {
		iface CARD
		name 'HDMI/DP,pcm=3 Jack'
		value false
		comment {
			access read
			type BOOLEAN
			count 1
		}
	}


post the output of

pactl stat

to find out the default sink of pulseaudio
Comment 48 Richard Riley Gress 2014-03-05 18:05:22 UTC
Your observations are correct; however I will say that the Sound Blaster is doing very well in the system and is producing some high quality sound, at least stereo, which is all I can test. I don't know why so many subdevices are listed.

$ pactl stat
Currently in use: 1 blocks containing 63.9 KiB bytes total.
Allocated during whole lifetime: 5473 blocks containing 4.9 MiB bytes total.
Sample cache size: 0 B
Server String: unix:/run/user/1000/pulse/native
Library Protocol Version: 28
Server Protocol Version: 28
Is Local: yes
Client Index: 14
Tile Size: 65472
User Name: richie
Host Name: richie-desktop
Server Name: pulseaudio
Server Version: 4.0
Default Sample Specification: s16le 2ch 44100Hz
Default Channel Map: front-left,front-right
Default Sink: alsa_output.pci-0000_01_00.1.hdmi-stereo
Default Source: alsa_output.pci-0000_01_00.1.hdmi-stereo.monitor
Cookie: 7d33:e153
Comment 49 Raymond 2014-03-05 23:42:14 UTC
Default Sink: alsa_output.pci-0000_01_00.1.hdmi-stereo
Default Source: alsa_output.pci-0000_01_00.1.hdmi-stereo.monitor


it is pulseaudio select HDMI as default sink 




the driver need to pre-allocate memory for Dma buffer for each subdevices 

and 1024 pcm playback channel map controls which is the the beginning of the card's list of controls


Card hw:0 'XFi'/'Creative X-Fi 20K1 Unknown'
  Mixer name	: '20K1'
  Components	: ''
  Controls      : 1053
  Simple ctrls  : 11
Comment 50 Raymond 2014-03-06 15:53:30 UTC
you can disable hdmi by specify enable=no if you cannot fix the hdmi Jack detection problem



https://git.kernel.org/cgit/linux/kernel/git/tiwai/sound.git/tree/Documentation/sound/alsa/ALSA-Configuration.txt


Common parameters for top sound card modules
  --------------------------------------------

    Each of top level sound card module takes the following options.

    index	- index (slot #) of sound card
		- Values: 0 through 31 or negative
		- If nonnegative, assign that index number
                - if negative, interpret as a bitmask of permissible
		  indices; the first free permitted index is assigned
		- Default: -1
    id		- card ID (identifier or name)
		- Can be up to 15 characters long
		- Default: the card type
		- A directory by this name is created under /proc/asound/
		  containing information about the card
		- This ID can be used instead of the index number in
		  identifying the card
    enable  	- enable card
		- Default: enabled, for PCI and ISA PnP cards
Comment 51 Takashi Iwai 2014-03-06 16:17:14 UTC
Did you try 3.14 kernels?  If so, please give alsa-info.sh output on that.
The jack detection of AMD HDMI device doesn't work with 3.11 kernels.
Comment 52 Richard Riley Gress 2014-03-06 18:09:35 UTC
Created attachment 128301 [details]
alsa-info.sh output with 3.14-rc5 kernel
Comment 53 Raymond 2014-03-07 05:34:28 UTC
(In reply to Richard Riley Gress from comment #48)
> Your observations are correct; however I will say that the Sound Blaster is
> doing very well in the system and is producing some high quality sound, at
> least stereo, which is all I can test. I don't know why so many subdevices
> are listed.
> 


I have doubt about the bandwidth of pcie bus allow 256 streams  of 8 channels audio can be run at the same time

you have  to send email to the author to add your Pci subsystem Id to the driver if it is working as expected

https://git.kernel.org/cgit/linux/kernel/git/tiwai/sound.git/tree/sound/pci/ctxfi/ctatc.c


do you mean pulseaudio still not select your creative sound card as default sink ?
Comment 54 Takashi Iwai 2014-03-07 10:54:53 UTC
It seems that some radeon chips don't give the proper value for pin-sense verb but always return -1.  This should be the reason of the false detection.
If that's the case, the patch attached below should fix the false detection of non-plugged HDMI device.

Regarding 256 substreams of ctxfi: it's no bug but the expected behavior.  The emu20k1 chip supports the matrix-style mixing of the whole 256 streams, thus there is no reason to restrict in the driver side.  Besides, the allocation would fail if you'd try to use the whole 256x8 substreams, so the driver would return an error in anyway before reaching the hardware limit.
Comment 55 Takashi Iwai 2014-03-07 10:55:40 UTC
Created attachment 128411 [details]
Fix aptch for AMD HDMI false detection
Comment 56 Takashi Iwai 2014-03-07 11:33:49 UTC
I found that 3.14-rc5 has a few fixes in radeon driver regarding the audio, and looking back at alsa-info.sh output you attached in comment 52, the HDMI jack detection was actually fixed there.  So the patch in comment 55 can be disregarded.

If you still have a problem with HDMI jack detection in the audio side with 3.14-rc5+ kernel, let me know.
Comment 57 Raymond 2014-03-07 12:01:00 UTC
 you can disable HDMI audio and use HDMI display

xrandr --output HDMI-0 --set audio off


seem pulseaudio did not save the setting of default sink

https://bugs.launchpad.net/ubuntu/+source/pulseaudio/+bug/1256511

you may need to set the default sink in default.pa if your sound card does not support Jack detection
Comment 58 Takashi Iwai 2014-03-07 12:37:56 UTC
The misdetection of HDMI audio is a bug, and should have been fixed with 3.14-rc5.  If not, please speak up.
Comment 59 Richard Riley Gress 2014-03-07 21:03:11 UTC
Created attachment 128481 [details]
`pacmd list-cards` with 3.14-rc5 kernel

Not sure if HDMI jack detection is working correctly. Unable to test HDMI anything in real life because my monitors do not support it. Here is `pacmd list-sinks` and `pacmd list-cards` in the 3.14-rc5 kernel.
Comment 60 Richard Riley Gress 2014-03-07 21:04:06 UTC
Comment on attachment 128481 [details]
`pacmd list-cards` with 3.14-rc5 kernel

>Welcome to PulseAudio! Use "help" for usage information.
>>>> 3 card(s) available.
>    index: 0
>       name: <alsa_card.pci-0000_01_00.1>
>       driver: <module-alsa-card.c>
>       owner module: 5
>       properties:
>               alsa.card = "2"
>               alsa.card_name = "HDA ATI HDMI"
>               alsa.long_card_name = "HDA ATI HDMI at 0xf4240000 irq 43"
>               alsa.driver_name = "snd_hda_intel"
>               device.bus_path = "pci-0000:01:00.1"
>               sysfs.path =
>"/devices/pci0000:00/0000:00:02.0/0000:01:00.1/sound/card2"
>               device.bus = "pci"
>               device.vendor.id = "1002"
>               device.vendor.name = "Advanced Micro Devices, Inc. [AMD/ATI]"
>               device.product.id = "aa58"
>               device.product.name = "Juniper HDMI Audio [Radeon HD 5700
>Series]"
>               device.string = "2"
>               device.description = "Juniper HDMI Audio [Radeon HD 5700
>Series]"
>               module-udev-detect.discovered = "1"
>               device.icon_name = "audio-card-pci"
>       profiles:
>               output:hdmi-stereo: Digital Stereo (HDMI) Output (priority
>5400, available: unknown)
>               off: Off (priority 0, available: unknown)
>       active profile: <output:hdmi-stereo>
>       sinks:
>               alsa_output.pci-0000_01_00.1.hdmi-stereo/#0: Juniper HDMI Audio
>[Radeon HD 5700 Series] Digital Stereo (HDMI)
>       sources:
>               alsa_output.pci-0000_01_00.1.hdmi-stereo.monitor/#0: Monitor of
>Juniper HDMI Audio [Radeon HD 5700 Series] Digital Stereo (HDMI)
>       ports:
>               hdmi-output-0: HDMI / DisplayPort (priority 5900, latency
>offset 0 usec, available: no)
>                       properties:
>                               device.icon_name = "video-display"
>    index: 1
>       name: <alsa_card.pci-0000_00_14.2>
>       driver: <module-alsa-card.c>
>       owner module: 6
>       properties:
>               alsa.card = "1"
>               alsa.card_name = "HD-Audio Generic"
>               alsa.long_card_name = "HD-Audio Generic at 0xf4300000 irq 16"
>               alsa.driver_name = "snd_hda_intel"
>               device.bus_path = "pci-0000:00:14.2"
>               sysfs.path = "/devices/pci0000:00/0000:00:14.2/sound/card1"
>               device.bus = "pci"
>               device.vendor.id = "1022"
>               device.vendor.name = "Advanced Micro Devices, Inc. [AMD]"
>               device.product.id = "780d"
>               device.product.name = "FCH Azalia Controller"
>               device.form_factor = "internal"
>               device.string = "1"
>               device.description = "Built-in Audio"
>               module-udev-detect.discovered = "1"
>               device.icon_name = "audio-card-pci"
>       profiles:
>               input:analog-stereo: Analog Stereo Input (priority 60,
>available: unknown)
>               output:analog-stereo: Analog Stereo Output (priority 6000,
>available: unknown)
>               output:analog-stereo+input:analog-stereo: Analog Stereo Duplex
>(priority 6060, available: unknown)
>               off: Off (priority 0, available: unknown)
>       active profile: <output:analog-stereo+input:analog-stereo>
>       sinks:
>               alsa_output.pci-0000_00_14.2.analog-stereo/#1: Built-in Audio
>Analog Stereo
>       sources:
>               alsa_output.pci-0000_00_14.2.analog-stereo.monitor/#1: Monitor
>of Built-in Audio Analog Stereo
>               alsa_input.pci-0000_00_14.2.analog-stereo/#2: Built-in Audio
>Analog Stereo
>       ports:
>               analog-input-microphone-front: Front Microphone (priority 8500,
>latency offset 0 usec, available: yes)
>                       properties:
>                               device.icon_name = "audio-input-microphone"
>               analog-input-microphone-rear: Rear Microphone (priority 8200,
>latency offset 0 usec, available: no)
>                       properties:
>                               device.icon_name = "audio-input-microphone"
>               analog-input-linein: Line In (priority 8100, latency offset 0
>usec, available: no)
>                       properties:
>                               
>               analog-output: Analog Output (priority 9900, latency offset 0
>usec, available: unknown)
>                       properties:
>                               
>               analog-output-headphones: Headphones (priority 9000, latency
>offset 0 usec, available: no)
>                       properties:
>                               device.icon_name = "audio-headphones"
>    index: 2
>       name: <alsa_card.pci-0000_03_05.0>
>       driver: <module-alsa-card.c>
>       owner module: 7
>       properties:
>               alsa.card = "0"
>               alsa.card_name = "Creative X-Fi"
>               alsa.long_card_name = "Creative X-Fi 20K1 Unknown"
>               alsa.driver_name = "snd_ctxfi"
>               device.bus_path = "pci-0000:03:05.0"
>               sysfs.path =
>"/devices/pci0000:00/0000:00:14.4/0000:03:05.0/sound/card0"
>               device.bus = "pci"
>               device.vendor.id = "1102"
>               device.vendor.name = "Creative Labs"
>               device.product.id = "0005"
>               device.product.name = "X-Fi XtremeMusic"
>               device.string = "0"
>               device.description = "X-Fi XtremeMusic"
>               module-udev-detect.discovered = "1"
>               device.icon_name = "audio-card-pci"
>       profiles:
>               input:analog-mono: Analog Mono Input (priority 1, available:
>unknown)
>               input:analog-stereo: Analog Stereo Input (priority 60,
>available: unknown)
>               output:analog-mono: Analog Mono Output (priority 100,
>available: unknown)
>               output:analog-mono+input:analog-mono: Analog Mono Duplex
>(priority 101, available: unknown)
>               output:analog-mono+input:analog-stereo: Analog Mono Output +
>Analog Stereo Input (priority 160, available: unknown)
>               output:analog-stereo: Analog Stereo Output (priority 6000,
>available: unknown)
>               output:analog-stereo+input:analog-mono: Analog Stereo Output +
>Analog Mono Input (priority 6001, available: unknown)
>               output:analog-stereo+input:analog-stereo: Analog Stereo Duplex
>(priority 6060, available: unknown)
>               output:analog-surround-40: Analog Surround 4.0 Output (priority
>700, available: unknown)
>               output:analog-surround-40+input:analog-mono: Analog Surround
>4.0 Output + Analog Mono Input (priority 701, available: unknown)
>               output:analog-surround-40+input:analog-stereo: Analog Surround
>4.0 Output + Analog Stereo Input (priority 760, available: unknown)
>               output:analog-surround-41: Analog Surround 4.1 Output (priority
>800, available: unknown)
>               output:analog-surround-41+input:analog-mono: Analog Surround
>4.1 Output + Analog Mono Input (priority 801, available: unknown)
>               output:analog-surround-41+input:analog-stereo: Analog Surround
>4.1 Output + Analog Stereo Input (priority 860, available: unknown)
>               output:analog-surround-50: Analog Surround 5.0 Output (priority
>700, available: unknown)
>               output:analog-surround-50+input:analog-mono: Analog Surround
>5.0 Output + Analog Mono Input (priority 701, available: unknown)
>               output:analog-surround-50+input:analog-stereo: Analog Surround
>5.0 Output + Analog Stereo Input (priority 760, available: unknown)
>               output:analog-surround-51: Analog Surround 5.1 Output (priority
>800, available: unknown)
>               output:analog-surround-51+input:analog-mono: Analog Surround
>5.1 Output + Analog Mono Input (priority 801, available: unknown)
>               output:analog-surround-51+input:analog-stereo: Analog Surround
>5.1 Output + Analog Stereo Input (priority 860, available: unknown)
>               output:analog-surround-71: Analog Surround 7.1 Output (priority
>700, available: unknown)
>               output:analog-surround-71+input:analog-mono: Analog Surround
>7.1 Output + Analog Mono Input (priority 701, available: unknown)
>               output:analog-surround-71+input:analog-stereo: Analog Surround
>7.1 Output + Analog Stereo Input (priority 760, available: unknown)
>               output:iec958-stereo: Digital Stereo (IEC958) Output (priority
>5500, available: unknown)
>               output:iec958-stereo+input:analog-mono: Digital Stereo (IEC958)
>Output + Analog Mono Input (priority 5501, available: unknown)
>               output:iec958-stereo+input:analog-stereo: Digital Stereo
>(IEC958) Output + Analog Stereo Input (priority 5560, available: unknown)
>               off: Off (priority 0, available: unknown)
>       active profile: <output:analog-stereo+input:analog-stereo>
>       sinks:
>               alsa_output.pci-0000_03_05.0.analog-stereo/#2: X-Fi XtremeMusic
>Analog Stereo
>       sources:
>               alsa_output.pci-0000_03_05.0.analog-stereo.monitor/#3: Monitor
>of X-Fi XtremeMusic Analog Stereo
>               alsa_input.pci-0000_03_05.0.analog-stereo/#4: X-Fi XtremeMusic
>Analog Stereo
>       ports:
>               analog-input-microphone: Microphone (priority 8700, latency
>offset 0 usec, available: unknown)
>                       properties:
>                               device.icon_name = "audio-input-microphone"
>               analog-input-linein: Line In (priority 8100, latency offset 0
>usec, available: unknown)
>                       properties:
>                               
>               analog-output: Analog Output (priority 9900, latency offset 0
>usec, available: unknown)
>                       properties:
>                               
>               iec958-stereo-output: Digital Output (S/PDIF) (priority 0,
>latency offset 0 usec, available: unknown)
>                       properties:
>                               
>>>>
Comment 61 Richard Riley Gress 2014-03-07 21:05:17 UTC
Created attachment 128491 [details]
`pacmd list-sinks` with 3.14-rc5 kernel

Apologies for the extraneous comment 60.
Comment 62 Richard Riley Gress 2014-03-07 21:06:34 UTC
At the end of /etc/pulse.default.pa there is this:

### Make some devices default
#set-default-sink output
#set-default-source input

So no default sink?
Comment 63 Raymond 2014-03-09 03:38:35 UTC
the default sink/source is controlled by module-swith-on-port-available

this module switch to another port when the port is not available (e.g. headphone is unplugged)

the availability of the ports of line out jacks of your creative sound card and onboard alc887 are unknown
Comment 65 Takashi Iwai 2014-04-29 16:30:50 UTC
(In reply to Richard Riley Gress from comment #59)
> Created attachment 128481 [details]
> `pacmd list-cards` with 3.14-rc5 kernel
> 
> Not sure if HDMI jack detection is working correctly. Unable to test HDMI
> anything in real life because my monitors do not support it. Here is `pacmd
> list-sinks` and `pacmd list-cards` in the 3.14-rc5 kernel.

So, I'm really confused.  Could you clarify concisely what's actually not working as expected?  There are way too many distracted comments in this thread...
Comment 66 Richard Riley Gress 2014-04-29 20:48:50 UTC
(In reply to Takashi Iwai from comment #65)
> (In reply to Richard Riley Gress from comment #59)
> > Created attachment 128481 [details]
> > `pacmd list-cards` with 3.14-rc5 kernel
> > 
> > Not sure if HDMI jack detection is working correctly. Unable to test HDMI
> > anything in real life because my monitors do not support it. Here is `pacmd
> > list-sinks` and `pacmd list-cards` in the 3.14-rc5 kernel.
> 
> So, I'm really confused.  Could you clarify concisely what's actually not
> working as expected?  There are way too many distracted comments in this
> thread...

My Realtek ALC877-VD onboard audio is not working. When I plug in headphones or speakers, there is a high-pitched, continuous noise. The card is listed as 'HD-Audio Generic' in Alsamixer. All the other information is attached.
Comment 67 Takashi Iwai 2014-04-30 06:15:24 UTC
OK, for concentrating only on ALC877-VD issue, let's forget about others for now.
At best, plug off your SB X-Fi board to reduce the confusion while testing.

First off, check the outputs of alsa-info.sh at plugging / unplugging the headphone jack.  The 'Headphone Jack' state must change accordingly, and the rear line-out jack (NID 0x14) must change its control between 0x40 and 0x00.  Confirm that this works properly.

Then check the outputs from the front headphone and the rear line-out jacks.  Do you get noise even if you don't play anything?  If so, and no loopback is enabled (e.g. "Mic Playback Volume" and "Mic Playback Switch"), it's likely a hardware issue.  But, we can still continue to check in details.

For example, try to mute the loopback on NID 0x0c and 0x0f:

  hda-verb /dev/snd/hwC1D0 0x0c SET_AMP 0x7180
  hda-verb /dev/snd/hwC1D0 0x0f SET_AMP 0x7180

where /dev/snd/hwC1D0 depends on the system setup.  If your HD-audio controller is assigned to another card slot, use the corresponding device appropriately.

If you get the noise still at this point, give alsa-info.sh output again.
Comment 68 Richard Riley Gress 2014-04-30 13:33:23 UTC
After I unplugged the X-Fi, I ran the alsa info script with (http://paste.ubuntu.com/7366237) and without (http://paste.ubuntu.com/7366240) headphones plugged in. There seems to be no support for detecting whether or not the headphones are plugged in. Running a `diff` for the two files produces nothing other than...

 $ diff after.txt before.txt 
 6c6
 < !!Script ran on: Wed Apr 30 13:12:23 UTC 2014
 ---
 > !!Script ran on: Wed Apr 30 13:10:31 UTC 2014
 417c417
 <   Amp-Out vals:  [0x80 0x80]
 ---
 >   Amp-Out vals:  [0x00 0x00]
 457c457
 <   Amp-Out vals:  [0x80 0x80]
 ---
 >   Amp-Out vals:  [0x00 0x00]

The sound is present, with speakers or headphones plugged in to either jack. It begins during boot time, but not immediately.

`aplay -l` lists the card as "card 0, device 0", so I incorporated /dev/snd/hwC0D0 into your command and muted the loopback. At this point the sound was still present so I ran the info script again (http://paste.ubuntu.com/7366307)
Comment 69 Takashi Iwai 2014-04-30 14:08:43 UTC
OK, and the volume of the noise changes with either "Headphone" and "Speaker" mixer volume control, right?  To be sure, lower "Front Mic Playback Volume" and "Rear Mic Playback Volume" to zero, too.

The fact that the headphone jack detection doesn't work worries me whether your front panel is connected properly.  It's often wrongly connected as an AC97 panel, which is incompatible with HD-audio.  Nevertheless, this still shouldn't result in the static noise when all loopback channels are muted.

Also, such a noise can be a result of CPU freq changes.  Try to adjust it if it really matters.
Comment 70 Richard Riley Gress 2014-04-30 15:16:57 UTC
The volume of the noise remains unaffected by lowering any of the Playback Volumes in alsamixer. However, small, lower-pitched "ticks" can be heard as these Playback Volumes are adjusted. Using KDE's mixer has this effect, too.

As far as I can tell, the front panel is configured properly, though I've tried both the front and back plugs with exactly the same results. There's a cable in the machine that connects the motherboard to the small USB/headphone/mic front board. One end attaches to said front board, and the other end is a dual connector: one for AC'97, and the other for HD-AUDIO. Right now, the HD-AUDIO connection is plugged in to the proper AUDIO jack on the motherboard.

If by CPU frequency changes you mean overclicking or anything of that sort, I haven't messed around with that at all. There is a utility in the BIOS to do this that hasn't been touched.
Comment 71 Takashi Iwai 2014-04-30 15:44:37 UTC
What about Master, Headphone or other mute switch?  Does this shut up the noise?

I spoke of the normal CPU freq control, BTW.  It's known that some boards showed problems on the audio output when the CPU frequency changes dynamically even within the normal frequency ranges.  It's just a bad hardware design.
Comment 72 Richard Riley Gress 2014-04-30 16:06:43 UTC
Muting anything and everything in alsamixer or KDE's mixer does nothing to stop the noise. And the A55M-P33 which I am using does use Independent Dynamic Core Technology... there's nothing about it specifically in the BIOS, but it's listed next to AMD Cool'n'Quiet on the manufacturer's info page.

http://us.msi.com/product/mb/A55MP33.html

AMD Cool'N'Quiet was disabled in BIOS when I checked. Not sure if that did anything about that Independent Dynamic Core Technology, though.
Comment 73 Takashi Iwai 2014-04-30 16:09:03 UTC
If the mute doesn't work at all, it really smells like a hardware problem.
That is, the noise comes between the codec pin output and the actual jack, which is out of the control by software.
Comment 74 Takashi Iwai 2014-04-30 16:10:08 UTC
BTW, one last thing I can think of is to try model=generic option to snd-hda-intel module for skiping any vendor-specific codec setups.
Comment 75 Richard Riley Gress 2014-06-21 14:30:12 UTC
Closing because it was probably a hardware issue.

Note You need to log in before you can comment on or make changes to this bug.