Bug 68071
Created attachment 120691 [details]
The output of the terminal command `dmesg`
Created attachment 120701 [details]
The output of the terminal command `sudo lshw -c sound`
Created attachment 120711 [details]
The output of the terminal command `lsmod`
post the output of alsa-info.sh Created attachment 120741 [details]
alsa-info.sh output
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 } } 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. 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 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
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 There is still no sound except for the same monotone I mentioned before. Changing the order of the cards also did not do anything. Created attachment 120981 [details]
`pactl -list` output
Created attachment 120991 [details]
`pactl -stat` output
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 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 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. Created attachment 121241 [details]
`alsa-info.sh` output after early patching with hints trigger_sense=false and jack_detect = 0
$ 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. https://wiki.ubuntu.com/PulseAudio/Log post the pulseaudio verbose log without early patching one of hdmi seem lost in your previous alsa-info $ 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 have you disabled auto spwan ? No, `; autospawn = yes` is commented out in /etc/pulse/client.conf Changing `; autospawn = yes` to ` autospawn = no` made the devices show up in Phonon. http://i.imgur.com/uNSm2dC.png Changing `; autospawn = yes` to ` autospawn = no` made the devices show up in Phonon. http://wstaw.org/m/2014/01/09/plasma-desktopYr1820.png (the buzzing still exists) 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 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" (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. Created attachment 122351 [details]
Tracepoint log without headphones plugged in to the front jack
Created attachment 122361 [details]
Tracepoint log *with* headphones plugged in to the front jack
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 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. The documentation is unclear :/ what commands should I run exactly? 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 # | | | |||| | | (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 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. 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 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) 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 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 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 (There are different audio devices but this is expected, there is just some different hardware installed now in addition.) you have to post the output of alsa-info.sh again Created attachment 128041 [details]
alsa-info.sh output
I ran the script again, above is the output: www.alsa-project.org/db/?f=19ede7f93372011ceeeff9f78e664832293cad81 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 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 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 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 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. Created attachment 128301 [details]
alsa-info.sh output with 3.14-rc5 kernel
(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 ? 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. Created attachment 128411 [details]
Fix aptch for AMD HDMI false detection
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. 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 The misdetection of HDMI audio is a bug, and should have been fixed with 3.14-rc5. If not, please speak up. 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 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: > >>>> Created attachment 128491 [details] `pacmd list-sinks` with 3.14-rc5 kernel Apologies for the extraneous comment 60. 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? 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 (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... (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. 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. 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) 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. 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. 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. 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. 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. 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. Closing because it was probably a hardware issue. |
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.