Dolby Digital Live on Linux/ soundcard troubles?

Hey! I've been having constant trouble getting my sound card to work under linux. This used to work https://forum.teksyndicate.com/t/soundcard-sound-blaster-z-not-working-on-linux/77710, but now it doesn't. I upgraded my kernel to 4.0.2-040002-generic, so the sound blaster z(ca0132) should be supported. The device shows up in the ubuntu 15.04 sound settings, but for some reason the S/PDIF does not work (haven't tested the analog either). I tried this tutorial ( https://help.ubuntu.com/community/DigitalAC-3Pulseaudio ), because as of my understanding, the ac-3 codec is essentially dolby digital. So I figured my headphones were not working because the headphones(astro a50s) require a dolby digital signal to decode. Anyways, long story short, when I finished installing the a52 also plugin library, I got sound to come out of my headphones, however It was just a really loud static noise, so I did something wrong. Also i'm pretty sure pulse audio server is not recognising the 5.1 surround sound setup, like it should according to the tutorial.

Bump

nvm, figured it out. Don't know what I did....

nevermind, Its not working. I don't know why... The S/PDIF Light isn't even on now..... so bump

Suprised it worked as long as it did.

Had a quick look at the changelog for patch_ca0132. It seems a lot has changed since 4.1.5 stable as mainline has been updated to resolve some 64bit errors and support for Alienware 15 Creative Sound Core3D-EX.

Maybe try the patch and see if you have any luck.

I upgraded, but it still does not seem to be working. However, I did notice an error message that pops up when booting.

[      41.826115] ca0132 DOWNLOAD FAILED!!! DSP IS NOT RUNNING.

Also when I type in this command,

sudo kill `ps uax |grep pulseaudio | grep -v grep | awk '{print $2}'` ; sudo rmmod snd-hda-intel; sleep 3; sudo modprobe snd-hda-intel

the S/PDIF light flashes for a second, then turns off. Also the soundblaster is removed from my audio devices list.

However I did also type in

dmesg | grep -i ca0132

and I got this in response:

[   38.968710] snd_hda_codec_ca0132 hdaudioC2D1: autoconfig for CA0132: line_outs=1 (0xd/0x0/0x0/0x0/0x0) type:line
[   38.968713] snd_hda_codec_ca0132 hdaudioC2D1:    speaker_outs=0 (0x0/0x0/0x0/0x0/0x0)
[   38.968714] snd_hda_codec_ca0132 hdaudioC2D1:    hp_outs=1 (0x10/0x0/0x0/0x0/0x0)
[   38.968715] snd_hda_codec_ca0132 hdaudioC2D1:    mono: mono_out=0x0
[   38.968716] snd_hda_codec_ca0132 hdaudioC2D1:    dig-out=0xc/0x0
[   38.968717] snd_hda_codec_ca0132 hdaudioC2D1:    inputs:
[   38.968718] snd_hda_codec_ca0132 hdaudioC2D1:      Mic=0x12
[   38.968719] snd_hda_codec_ca0132 hdaudioC2D1:    dig-in=0xe
[   41.826115] ca0132 DOWNLOAD FAILED!!! DSP IS NOT RUNNING.
[  444.855818] snd_hda_codec_ca0132 hdaudioC2D1: autoconfig for CA0132: line_outs=1 (0xb/0x0/0x0/0x0/0x0) type:line
[  444.855822] snd_hda_codec_ca0132 hdaudioC2D1:    speaker_outs=0 (0x0/0x0/0x0/0x0/0x0)
[  444.855824] snd_hda_codec_ca0132 hdaudioC2D1:    hp_outs=1 (0x10/0x0/0x0/0x0/0x0)
[  444.855826] snd_hda_codec_ca0132 hdaudioC2D1:    mono: mono_out=0x0
[  444.855828] snd_hda_codec_ca0132 hdaudioC2D1:    dig-out=0xc/0xd
[  444.855830] snd_hda_codec_ca0132 hdaudioC2D1:    inputs:
[  444.855832] snd_hda_codec_ca0132 hdaudioC2D1:      Mic=0x12
[  444.855834] snd_hda_codec_ca0132 hdaudioC2D1:      Line=0x11
[  444.855835] snd_hda_codec_ca0132 hdaudioC2D1:    dig-in=0xe
[  445.438995] ca0132 DOWNLOAD OK :-) DSP IS RUNNING.
[  446.278601] ca0132 DOWNLOAD OK :-) DSP IS RUNNING.
[  453.146889] snd_hda_codec_ca0132 hdaudioC2D1: autoconfig for CA0132: line_outs=1 (0xb/0x0/0x0/0x0/0x0) type:line
[  453.146893] snd_hda_codec_ca0132 hdaudioC2D1:    speaker_outs=0 (0x0/0x0/0x0/0x0/0x0)
[  453.146894] snd_hda_codec_ca0132 hdaudioC2D1:    hp_outs=1 (0x10/0x0/0x0/0x0/0x0)
[  453.146896] snd_hda_codec_ca0132 hdaudioC2D1:    mono: mono_out=0x0
[  453.146897] snd_hda_codec_ca0132 hdaudioC2D1:    dig-out=0xc/0xd
[  453.146899] snd_hda_codec_ca0132 hdaudioC2D1:    inputs:
[  453.146901] snd_hda_codec_ca0132 hdaudioC2D1:      Mic=0x12
[  453.146902] snd_hda_codec_ca0132 hdaudioC2D1:      Line=0x11
[  453.146904] snd_hda_codec_ca0132 hdaudioC2D1:    dig-in=0xe
[  453.710327] ca0132 DOWNLOAD OK :-) DSP IS RUNNING.
[  454.521846] ca0132 DOWNLOAD OK :-) DSP IS RUNNING.
[  466.227382] snd_hda_codec_ca0132 hdaudioC2D1: autoconfig for CA0132: line_outs=1 (0xb/0x0/0x0/0x0/0x0) type:line
[  466.227385] snd_hda_codec_ca0132 hdaudioC2D1:    speaker_outs=0 (0x0/0x0/0x0/0x0/0x0)
[  466.227386] snd_hda_codec_ca0132 hdaudioC2D1:    hp_outs=1 (0x10/0x0/0x0/0x0/0x0)
[  466.227387] snd_hda_codec_ca0132 hdaudioC2D1:    mono: mono_out=0x0
[  466.227389] snd_hda_codec_ca0132 hdaudioC2D1:    dig-out=0xc/0xd
[  466.227390] snd_hda_codec_ca0132 hdaudioC2D1:    inputs:
[  466.227391] snd_hda_codec_ca0132 hdaudioC2D1:      Mic=0x12
[  466.227392] snd_hda_codec_ca0132 hdaudioC2D1:      Line=0x11
[  466.227393] snd_hda_codec_ca0132 hdaudioC2D1:    dig-in=0xe
[  466.778762] ca0132 DOWNLOAD OK :-) DSP IS RUNNING.
[  467.618270] ca0132 DOWNLOAD OK :-) DSP IS RUNNING.
[  474.854456] snd_hda_codec_ca0132 hdaudioC2D1: autoconfig for CA0132: line_outs=1 (0xb/0x0/0x0/0x0/0x0) type:line
[  474.854459] snd_hda_codec_ca0132 hdaudioC2D1:    speaker_outs=0 (0x0/0x0/0x0/0x0/0x0)
[  474.854460] snd_hda_codec_ca0132 hdaudioC2D1:    hp_outs=1 (0x10/0x0/0x0/0x0/0x0)
[  474.854461] snd_hda_codec_ca0132 hdaudioC2D1:    mono: mono_out=0x0
[  474.854462] snd_hda_codec_ca0132 hdaudioC2D1:    dig-out=0xc/0xd
[  474.854463] snd_hda_codec_ca0132 hdaudioC2D1:    inputs:
[  474.854465] snd_hda_codec_ca0132 hdaudioC2D1:      Mic=0x12
[  474.854466] snd_hda_codec_ca0132 hdaudioC2D1:      Line=0x11
[  474.854467] snd_hda_codec_ca0132 hdaudioC2D1:    dig-in=0xe
[  475.409985] ca0132 DOWNLOAD OK :-) DSP IS RUNNING.
[  476.245261] ca0132 DOWNLOAD OK :-) DSP IS RUNNING.
[  489.909607] snd_hda_codec_ca0132 hdaudioC2D1: autoconfig for CA0132: line_outs=1 (0xb/0x0/0x0/0x0/0x0) type:line
[  489.909609] snd_hda_codec_ca0132 hdaudioC2D1:    speaker_outs=0 (0x0/0x0/0x0/0x0/0x0)
[  489.909611] snd_hda_codec_ca0132 hdaudioC2D1:    hp_outs=1 (0x10/0x0/0x0/0x0/0x0)
[  489.909612] snd_hda_codec_ca0132 hdaudioC2D1:    mono: mono_out=0x0
[  489.909613] snd_hda_codec_ca0132 hdaudioC2D1:    dig-out=0xc/0xd
[  489.909613] snd_hda_codec_ca0132 hdaudioC2D1:    inputs:
[  489.909615] snd_hda_codec_ca0132 hdaudioC2D1:      Mic=0x12
[  489.909616] snd_hda_codec_ca0132 hdaudioC2D1:      Line=0x11
[  489.909617] snd_hda_codec_ca0132 hdaudioC2D1:    dig-in=0xe
[  490.464989] ca0132 DOWNLOAD OK :-) DSP IS RUNNING.
[  491.276521] ca0132 DOWNLOAD OK :-) DSP IS RUNNING.

What's the putput of;

grep CONFIG_SND_HDA_ /usr/src/linux/.config | grep -v '^#'

It said that that /usr/src/linux/.config wasn't a valid directory, so I replaced that directory with /usr/src/linux-headers-4.1.5-040105-generic/.config and the output was

CONFIG_SND_HDA_INTEL=m
CONFIG_SND_HDA_DSP_LOADER=y
CONFIG_SND_HDA_PREALLOC_SIZE=64
CONFIG_SND_HDA_HWDEP=y
CONFIG_SND_HDA_RECONFIG=y
CONFIG_SND_HDA_INPUT_BEEP=y
CONFIG_SND_HDA_INPUT_BEEP_MODE=0
CONFIG_SND_HDA_INPUT_JACK=y
CONFIG_SND_HDA_PATCH_LOADER=y
CONFIG_SND_HDA_CODEC_REALTEK=m
CONFIG_SND_HDA_CODEC_ANALOG=m
CONFIG_SND_HDA_CODEC_SIGMATEL=m
CONFIG_SND_HDA_CODEC_VIA=m
CONFIG_SND_HDA_CODEC_HDMI=m
CONFIG_SND_HDA_I915=y
CONFIG_SND_HDA_CODEC_CIRRUS=m
CONFIG_SND_HDA_CODEC_CONEXANT=m
CONFIG_SND_HDA_CODEC_CA0110=m
CONFIG_SND_HDA_CODEC_CA0132=m
CONFIG_SND_HDA_CODEC_CA0132_DSP=y
CONFIG_SND_HDA_CODEC_CMEDIA=m
CONFIG_SND_HDA_CODEC_SI3054=m
CONFIG_SND_HDA_GENERIC=m
CONFIG_SND_HDA_POWER_SAVE_DEFAULT=0
CONFIG_SND_HDA_CORE=m

So is sound working at all - have you tested all your inputs??

I'll assume you upgraded to kernel 4.1.5 and didn't add the patchset to 4.0.2 - which would be bad lol.

Your kernel modules seem to be all loaded correctly, although you could try removing/reloading the CA0132 module.

It'd be worth trying hdajacksensetest -c 1 -a to see what imputs/pins are set and lspci |grep audio to make sure your soundcard is using the right codec.

Then doublecheck and disable onboard audio in pulse or alsa and if that doesn't help I would then probably start disabling onboard sound, and blacklisting other soundcard modules/codecs.

If finally, that doesn't work - and shy of rewriting the driver yourself - I would write abusive emails to Creative.

Both the Analog and Digital aren't working.

I did. I had no idea that was bad. I know this is off topic, but why is it bad?

I don't have that command on my system, even though I installed the alsa-tools package on my system.

this comes up

00:1b.0 Audio device: Intel Corporation 7 Series/C210 Series Chipset Family High Definition Audio Controller (rev 04)
01:00.1 Audio device: NVIDIA Corporation GK106 HDMI Audio Controller (rev a1)
02:00.0 Audio device: Creative Labs SB Recon3D (rev 01)

Already on it!

Also Thank you for helping me :D

Just to make sure you've exhausted all avenues, did you grab the CA0132.c patch from kernel 4.2-rc7 patchset? This was the one I was referring to;