libretro / Lakka-LibreELEC

Lakka is a lightweight Linux distribution that transforms a small computer into a full blown game console.
https://www.lakka.tv
1.74k stars 286 forks source link

PC Audio Device 'Soundcard' with no sound output #467

Closed harmhoek closed 6 years ago

harmhoek commented 6 years ago

When I select the sound card CA0106, no audio is given. Latest Lakka build, PC 32bit, gigabyte motherboard. Logs below.

Found 3 older sound issues but with no success in relation to this one: hdmi_ignore_edid_audio=1 echo "options snd_hda_intel index=-2" > /storage/.config/modprobe.d/snd_intel_hda.conf disabling "Azalia" codec in BIOS (onboard sound) doesn't work

Example Audio device "surround21:CARD=CA0106,DEV=0" no sound output.

Note, when I use audio device = "sysdefault:CARD=Intel" it provides me audio via the motherboard. The card "CA0106" however seems properly loaded?

Log lsmod:

Module Size Used by hidp 24576 2 8021q 24576 0 bnep 20480 2 snd_hda_codec_realtek 57344 1 snd_hda_codec_generic 57344 1 snd_hda_codec_realtek btusb 32768 0 btrtl 16384 1 btusb btbcm 16384 1 btusb btintel 16384 1 btusb bluetooth 303104 35 btrtl,hidp,btintel,bnep,btbcm,btusb snd_ca0106 40960 3 snd_ac97_codec 94208 1 snd_ca0106 ac97_bus 16384 1 snd_ac97_codec snd_rawmidi 24576 1 snd_ca0106 snd_hda_intel 28672 0 snd_hda_codec 81920 3 snd_hda_intel,snd_hda_codec_generic,snd_hda_codec_realtek snd_hda_core 49152 4 snd_hda_intel,snd_hda_codec,snd_hda_codec_generic,snd_hda_codec_realtek snd_hwdep 16384 1 snd_hda_codec snd_pcm 65536 8 snd_hda_intel,snd_hda_codec,snd_hda_core,snd_ca0106,snd_ac97_codec parport_pc 32768 0 parport 36864 1 parport_pc Lakka:~ # cat /proc/asound/cards 0 [Intel ]: HDA-Intel - HDA Intel HDA Intel at 0xfa100000 irq 30 1 [CA0106 ]: CA0106 - CA0106 Audigy SE [SB0570] at 0xd000 irq 19 Lakka:~ # lspci | grep -i audio 00:1b.0 Audio device: Intel Corporation 82801I (ICH9 Family) HD Audio Controller (rev 02) 05:01.0 Multimedia audio controller: Creative Labs CA0106/CA0111 [SB Live!/Audigy/X-Fi Series]

Log aplay -L:

null Discard all samples (playback) or generate zero samples (capture) default:CARD=Intel HDA Intel, ALC889A Analog Default Audio Device sysdefault:CARD=Intel HDA Intel, ALC889A Analog Default Audio Device front:CARD=Intel,DEV=0 HDA Intel, ALC889A Analog Front speakers surround21:CARD=Intel,DEV=0 HDA Intel, ALC889A Analog 2.1 Surround output to Front and Subwoofer speakers surround40:CARD=Intel,DEV=0 HDA Intel, ALC889A Analog 4.0 Surround output to Front and Rear speakers surround41:CARD=Intel,DEV=0 HDA Intel, ALC889A Analog 4.1 Surround output to Front, Rear and Subwoofer speakers surround50:CARD=Intel,DEV=0 HDA Intel, ALC889A Analog 5.0 Surround output to Front, Center and Rear speakers surround51:CARD=Intel,DEV=0 HDA Intel, ALC889A Analog 5.1 Surround output to Front, Center, Rear and Subwoofer speakers surround71:CARD=Intel,DEV=0 HDA Intel, ALC889A Analog 7.1 Surround output to Front, Center, Side, Rear and Woofer speakers iec958:CARD=Intel,DEV=0 HDA Intel, ALC889A Digital IEC958 (S/PDIF) Digital Audio Output default:CARD=CA0106 CA0106, CA0106 Default Audio Device sysdefault:CARD=CA0106 CA0106, CA0106 Default Audio Device front:CARD=CA0106,DEV=0 CA0106, CA0106 Front speakers rear:CARD=CA0106,DEV=0 CA0106, CA0106 Rear speakers center_lfe:CARD=CA0106,DEV=0 CA0106, CA0106 Center and Subwoofer speakers side:CARD=CA0106,DEV=0 CA0106, CA0106 Side speakers surround21:CARD=CA0106,DEV=0 CA0106, CA0106 2.1 Surround output to Front and Subwoofer speakers surround40:CARD=CA0106,DEV=0 CA0106, CA0106 4.0 Surround output to Front and Rear speakers surround41:CARD=CA0106,DEV=0 CA0106, CA0106 4.1 Surround output to Front, Rear and Subwoofer speakers surround50:CARD=CA0106,DEV=0 CA0106, CA0106 5.0 Surround output to Front, Center and Rear speakers surround51:CARD=CA0106,DEV=0 CA0106, CA0106 5.1 Surround output to Front, Center, Rear and Subwoofer speakers surround71:CARD=CA0106,DEV=0 CA0106, CA0106 7.1 Surround output to Front, Center, Side, Rear and Woofer speakers iec958:CARD=CA0106,DEV=0 CA0106, CA0106 IEC958 (S/PDIF) Digital Audio Output

lspci -v | grep -B1 -A12 -i audio

00:1b.0 Audio device: Intel Corporation 82801I (ICH9 Family) HD Audio Controller (rev 02) Subsystem: Gigabyte Technology Co., Ltd 82801I (ICH9 Family) HD Audio Controller Flags: bus master, fast devsel, latency 0, IRQ 30 Memory at fa100000 (64-bit, non-prefetchable) [size=16K] Capabilities: [50] Power Management version 2 Capabilities: [60] MSI: Enable+ Count=1/1 Maskable- 64bit+ Capabilities: [70] Express Root Complex Integrated Endpoint, MSI 00 Capabilities: [100] Virtual Channel Capabilities: [130] Root Complex Link Kernel driver in use: snd_hda_intel Kernel modules: snd_hda_intel

00:1c.0 PCI bridge: Intel Corporation 82801I (ICH9 Family) PCI Express Port 1 (rev 02) (prog-if 00 [Normal decode]) Flags: bus master, fast devsel, latency 0, IRQ 25

05:01.0 Multimedia audio controller: Creative Labs CA0106/CA0111 [SB Live!/Audigy/X-Fi Series] Subsystem: Creative Labs CA0106/CA0111 [SB Live!/Audigy/X-Fi Series] (SB0570 [SB Audigy SE]) Flags: bus master, medium devsel, latency 32, IRQ 19 I/O ports at d000 [size=32] Capabilities: [dc] Power Management version 2 Kernel driver in use: snd_ca0106 Kernel modules: snd_ca0106

for i in /proc/asound/card[0-9]*; do echo "--- $i ---";amixer -c $(cat

$i/id); done;

--- /proc/asound/card1 --- Simple mixer control 'Master',0 Capabilities: pvolume pvolume-joined pswitch pswitch-joined Playback channels: Mono Limits: Playback 0 - 64 Mono: Playback 64 [100%] [0.00dB] [on] Simple mixer control 'Headphone',0 Capabilities: pvolume pswitch Playback channels: Front Left - Front Right Limits: Playback 0 - 64 Mono: Front Left: Playback 64 [100%] [0.00dB] [on] Front Right: Playback 64 [100%] [0.00dB] [on] Simple mixer control 'Front',0 Capabilities: pvolume pswitch Playback channels: Front Left - Front Right Limits: Playback 0 - 64 Mono: Front Left: Playback 64 [100%] [0.00dB] [on] Front Right: Playback 64 [100%] [0.00dB] [on] Simple mixer control 'Front Mic',0 Capabilities: pvolume pswitch Playback channels: Front Left - Front Right Limits: Playback 0 - 31 Mono: Front Left: Playback 0 [0%] [-34.50dB] [off] Front Right: Playback 0 [0%] [-34.50dB] [off] Simple mixer control 'Front Mic Boost',0 Capabilities: volume Playback channels: Front Left - Front Right Capture channels: Front Left - Front Right Limits: 0 - 3 Front Left: 0 [0%] [0.00dB] Front Right: 0 [0%] [0.00dB] Simple mixer control 'Surround',0 Capabilities: pvolume pswitch Playback channels: Front Left - Front Right Limits: Playback 0 - 64 Mono: Front Left: Playback 58 [91%] [-6.00dB] [on] Front Right: Playback 58 [91%] [-6.00dB] [on] Simple mixer control 'Center',0 Capabilities: pvolume pvolume-joined pswitch pswitch-joined Playback channels: Mono Limits: Playback 0 - 64 Mono: Playback 64 [100%] [0.00dB] [on] Simple mixer control 'LFE',0 Capabilities: pvolume pvolume-joined pswitch pswitch-joined Playback channels: Mono Limits: Playback 0 - 64 Mono: Playback 64 [100%] [0.00dB] [on] Simple mixer control 'Side',0 Capabilities: pvolume pswitch Playback channels: Front Left - Front Right Limits: Playback 0 - 64 Mono: Front Left: Playback 64 [100%] [0.00dB] [on] Front Right: Playback 64 [100%] [0.00dB] [on] Simple mixer control 'Line',0 Capabilities: pvolume pswitch Playback channels: Front Left - Front Right Limits: Playback 0 - 31 Mono: Front Left: Playback 0 [0%] [-34.50dB] [off] Front Right: Playback 0 [0%] [-34.50dB] [off] Simple mixer control 'Line Boost',0 Capabilities: volume Playback channels: Front Left - Front Right Capture channels: Front Left - Front Right Limits: 0 - 3 Front Left: 0 [0%] [0.00dB] Front Right: 0 [0%] [0.00dB] Simple mixer control 'CD',0 Capabilities: pvolume pswitch Playback channels: Front Left - Front Right Limits: Playback 0 - 31 Mono: Front Left: Playback 0 [0%] [-34.50dB] [off] Front Right: Playback 0 [0%] [-34.50dB] [off] Simple mixer control 'IEC958',0 Capabilities: pswitch pswitch-joined cswitch cswitch-joined Playback channels: Mono Capture channels: Mono Mono: Playback [on] Capture [off] Simple mixer control 'IEC958 Default PCM',0 Capabilities: pswitch pswitch-joined Playback channels: Mono Mono: Playback [on] Simple mixer control 'Beep',0 Capabilities: pvolume pswitch Playback channels: Front Left - Front Right Limits: Playback 0 - 31 Mono: Front Left: Playback 0 [0%] [-34.50dB] [off] Front Right: Playback 0 [0%] [-34.50dB] [off] Simple mixer control 'Capture',0 Capabilities: cvolume cswitch Capture channels: Front Left - Front Right Limits: Capture 0 - 46 Front Left: Capture 0 [0%] [-16.00dB] [off] Front Right: Capture 0 [0%] [-16.00dB] [off] Simple mixer control 'Capture',1 Capabilities: cvolume cswitch Capture channels: Front Left - Front Right Limits: Capture 0 - 46 Front Left: Capture 0 [0%] [-16.00dB] [off] Front Right: Capture 0 [0%] [-16.00dB] [off] Simple mixer control 'Capture',2 Capabilities: cvolume cswitch Capture channels: Front Left - Front Right Limits: Capture 0 - 46 Front Left: Capture 0 [0%] [-16.00dB] [off] Front Right: Capture 0 [0%] [-16.00dB] [off] Simple mixer control 'Input Source',0 Capabilities: cenum Items: 'Rear Mic' 'Front Mic' 'Line' 'CD' Item0: 'Rear Mic' Simple mixer control 'Input Source',1 Capabilities: cenum Items: 'Rear Mic' 'Front Mic' 'Line' 'CD' Item0: 'Rear Mic' Simple mixer control 'Input Source',2 Capabilities: cenum Items: 'Rear Mic' 'Front Mic' 'Line' 'CD' Item0: 'Rear Mic' Simple mixer control 'Loopback Mixing',0 Capabilities: enum Items: 'Disabled' 'Enabled' Item0: 'Disabled' Simple mixer control 'Rear Mic',0 Capabilities: pvolume pswitch Playback channels: Front Left - Front Right Limits: Playback 0 - 31 Mono: Front Left: Playback 0 [0%] [-34.50dB] [off] Front Right: Playback 0 [0%] [-34.50dB] [off] Simple mixer control 'Rear Mic Boost',0 Capabilities: volume Playback channels: Front Left - Front Right Capture channels: Front Left - Front Right Limits: 0 - 3 Front Left: 0 [0%] [0.00dB] Front Right: 0 [0%] [0.00dB] --- /proc/asound/card2 --- Simple mixer control 'Master',0 Capabilities: pvolume pvolume-joined pswitch pswitch-joined Playback channels: Mono Limits: Playback 0 - 255 Mono: Playback 255 [100%] [0.00dB] [on] Simple mixer control 'Line in',0 Capabilities: cvolume Capture channels: Front Left - Front Right Limits: Capture 0 - 255 Front Left: Capture 207 [81%] [0.00dB] Front Right: Capture 207 [81%] [0.00dB] Simple mixer control 'Mic',0 Capabilities: cvolume Capture channels: Front Left - Front Right Limits: Capture 0 - 255 Front Left: Capture 0 [0%] [-99999.99dB] Front Right: Capture 0 [0%] [-99999.99dB] Simple mixer control 'Phone',0 Capabilities: cvolume Capture channels: Front Left - Front Right Limits: Capture 0 - 255 Front Left: Capture 207 [81%] [0.00dB] Front Right: Capture 207 [81%] [0.00dB] Simple mixer control 'IEC958',0 Capabilities: pswitch pswitch-joined Playback channels: Mono Mono: Playback [on] Simple mixer control 'IEC958 Center/LFE',0 Capabilities: pvolume Playback channels: Front Left - Front Right Limits: Playback 0 - 255 Mono: Front Left: Playback 207 [81%] [0.00dB] Front Right: Playback 207 [81%] [0.00dB] Simple mixer control 'IEC958 Front',0 Capabilities: pvolume Playback channels: Front Left - Front Right Limits: Playback 0 - 255 Mono: Front Left: Playback 207 [81%] [0.00dB] Front Right: Playback 207 [81%] [0.00dB] Simple mixer control 'IEC958 Rear',0 Capabilities: pvolume Playback channels: Front Left - Front Right Limits: Playback 0 - 255 Mono: Front Left: Playback 207 [81%] [0.00dB] Front Right: Playback 207 [81%] [0.00dB] Simple mixer control 'IEC958 Unknown',0 Capabilities: pvolume Playback channels: Front Left - Front Right Limits: Playback 0 - 255 Mono: Front Left: Playback 207 [81%] [0.00dB] Front Right: Playback 207 [81%] [0.00dB] Simple mixer control 'Aux',0 Capabilities: cvolume Capture channels: Front Left - Front Right Limits: Capture 0 - 255 Front Left: Capture 207 [81%] [0.00dB] Front Right: Capture 207 [81%] [0.00dB] Simple mixer control 'Analog Center/LFE',0 Capabilities: pvolume pswitch pswitch-joined Playback channels: Front Left - Front Right Limits: Playback 0 - 255 Mono: Front Left: Playback 255 [100%] [12.00dB] [on] Front Right: Playback 255 [100%] [12.00dB] [on] Simple mixer control 'Analog Front',0 Capabilities: pvolume pswitch pswitch-joined Playback channels: Front Left - Front Right Limits: Playback 0 - 255 Mono: Front Left: Playback 255 [100%] [12.00dB] [on] Front Right: Playback 255 [100%] [12.00dB] [on] Simple mixer control 'Analog Rear',0 Capabilities: pvolume pswitch pswitch-joined Playback channels: Front Left - Front Right Limits: Playback 0 - 255 Mono: Front Left: Playback 255 [100%] [12.00dB] [on] Front Right: Playback 255 [100%] [12.00dB] [on] Simple mixer control 'Analog Side',0 Capabilities: pvolume pswitch pswitch-joined Playback channels: Front Left - Front Right Limits: Playback 0 - 255 Mono: Front Left: Playback 207 [81%] [0.00dB] [on] Front Right: Playback 207 [81%] [0.00dB] [on] Simple mixer control 'Analog Source',0 Capabilities: cenum Items: 'Phone' 'Mic' 'Line in' 'Aux' Item0: 'Line in' Simple mixer control 'CAPTURE feedback',0 Capabilities: pvolume Playback channels: Front Left - Front Right Limits: Playback 0 - 255 Mono: Front Left: Playback 0 [0%] [-99999.99dB] Front Right: Playback 0 [0%] [-99999.99dB] Simple mixer control 'Digital Source',0 Capabilities: cenum Items: 'IEC958 out' 'i2s mixer out' 'IEC958 in' 'i2s in' 'AC97 in' 'SRC out' Item0: 'i2s in' Simple mixer control 'Shared Mic/Line in',0 Capabilities: cenum Items: 'Line in' 'Mic in' Item0: 'Line in'

http://www.alsa-project.org/main/index.php/Matrix:Module-ca0106

Ps. May just be incompatiliby between Gigabyte GA-P35C-DS3R and sb0570?

gouchi commented 6 years ago

If you want to use your SB card you should have something

grep audio_device /storage/.config/retroarch/retroarch.cfg
audio_device = "sysdefault:CARD=CA0106"

Don't forget to stop RetroArch when you edit configuration file.

Please provide Lakka system logs.

Thank you.

harmhoek commented 6 years ago

audio_device = "surround21:CARD=CA0106,DEV=0"

gouchi commented 6 years ago

Thank you and Lakka system logs ?

harmhoek commented 6 years ago

systemctl stop retroarch.service ; retroarch -v [INFO] RetroArch 1.6.9 (Git c056726) [INFO] === Build ======================================= Capabilities: MMX MMXEXT SSE1 SSE2 SSE3 SSSE3 Built: Nov 21 2017 [INFO] Version: 1.6.9 [INFO] Git: c056726 [INFO] ================================================= [INFO] [Config]: Loading default config. [INFO] [Config]: loading config from: (null). [INFO] Looking for config in: "/storage/.config/retroarch/retroarch.cfg". [INFO] Environ SET_PIXEL_FORMAT: RGB565. [INFO] Redirecting save file to "/storage/savefiles/.srm". [INFO] Redirecting savestate to "/storage/savestates/.state". [INFO] Version of libretro API: 1 [INFO] Compiled against API: 1 [INFO] [Audio]: Set audio input rate to: 29970.03 Hz. [INFO] Found shader "/tmp/shaders/retroarch.glslp" [INFO] Found shader "/tmp/shaders/slang-conversion-template.glsl" [INFO] Found shader "/tmp/shaders/stock.glsl" [INFO] [Video]: Video @ fullscreen [INFO] [Video]: Starting threaded video driver ... [INFO] [DRM]: Found 2 connectors. [INFO] [DRM]: Connector 0 connected: yes [INFO] [DRM]: Connector 0 has 10 modes. [INFO] [DRM]: Connector 0 assigned to monitor index: #1. [INFO] [DRM]: Connector 1 connected: no [INFO] [DRM]: Connector 1 has 0 modes. [INFO] [DRM]: Mode 0: (1920x1080) 1920 x 1080, 60 Hz [INFO] [DRM]: Mode 1: (1680x1050) 1680 x 1050, 60 Hz [INFO] [DRM]: Mode 2: (1600x900) 1600 x 900, 60 Hz [INFO] [DRM]: Mode 3: (1280x1024) 1280 x 1024, 60 Hz [INFO] [DRM]: Mode 4: (1280x800) 1280 x 800, 60 Hz [INFO] [DRM]: Mode 5: (1280x720) 1280 x 720, 60 Hz [INFO] [DRM]: Mode 6: (1024x768) 1024 x 768, 60 Hz [INFO] [DRM]: Mode 7: (800x600) 800 x 600, 60 Hz [INFO] [DRM]: Mode 8: (640x480) 640 x 480, 60 Hz [INFO] [DRM]: Mode 9: (720x400) 720 x 400, 70 Hz [INFO] [GL]: Found GL context: kms [INFO] [GL]: Detecting screen resolution 1920x1080. [INFO] [EGL] Found EGL_EXT_platform_base, trying eglGetPlatformDisplayEXT [INFO] [EGL]: EGL version: 1.4 [INFO] [EGL]: Current context: 0xb4631a20. [INFO] [KMS]: New FB: 1920x1080 (stride: 7680). [INFO] [GL]: Vendor: nouveau, Renderer: Gallium 0.4 on NV50. [INFO] [GL]: Version: 3.0 Mesa 17.1.3. [INFO] [GL]: Using resolution 1920x1080 [INFO] [GL]: Default shader backend found: glsl. [INFO] [Shader driver]: Using GLSL shader backend. [INFO] [GLSL]: Checking GLSL shader support ... [INFO] [GLSL]: Found GLSL vertex shader. [INFO] [GLSL]: Found GLSL fragment shader. [INFO] [GLSL]: Linking GLSL program. [INFO] [GLSL]: Found GLSL vertex shader. [INFO] [GLSL]: Using GLSL version 130. [INFO] [GLSL]: Found GLSL fragment shader. [INFO] [GLSL]: Using GLSL version 130. [INFO] [GLSL]: Linking GLSL program. [INFO] [GLSL]: Found GLSL vertex shader. [INFO] [GLSL]: Using GLSL version 130. [INFO] [GLSL]: Found GLSL fragment shader. [INFO] [GLSL]: Using GLSL version 130. [INFO] [GLSL]: Linking GLSL program. [INFO] [GLSL]: Found GLSL vertex shader. [INFO] [GLSL]: Found GLSL fragment shader. [INFO] [GLSL]: Linking GLSL program. [INFO] [GLSL]: Found GLSL vertex shader. [INFO] [GLSL]: Found GLSL fragment shader. [INFO] [GLSL]: Linking GLSL program. [INFO] [GLSL]: Found GLSL vertex shader. [INFO] [GLSL]: Found GLSL fragment shader. [INFO] [GLSL]: Linking GLSL program. [INFO] [GLSL]: Found GLSL vertex shader. [INFO] [GLSL]: Found GLSL fragment shader. [INFO] [GLSL]: Linking GLSL program. [INFO] [GLSL]: Found GLSL vertex shader. [INFO] [GLSL]: Found GLSL fragment shader. [INFO] [GLSL]: Linking GLSL program. [INFO] [GLSL]: Found GLSL vertex shader. [INFO] [GLSL]: Found GLSL fragment shader. [INFO] [GLSL]: Linking GLSL program. [INFO] [GL]: Using 4 textures. [INFO] [GL]: Loaded 2 program(s). [INFO] [GL]: Using GL_RGB565 for texture uploads. [INFO] [GL]: Creating FBO 0 @ 512x512 [INFO] [Font]: Using font rendering backend: freetype. [INFO] [Video]: Graphics driver did not initialize an input driver. Attempting t o pick a suitable driver. [INFO] [udev]: Keyboard #0 (/dev/input/event2). [INFO] [Joypad]: Found joypad driver: "udev". [INFO] ALSA: Using signed 16-bit format. [INFO] ALSA: Period size: 384 frames [INFO] ALSA: Buffer size: 1536 frames [INFO] [Menu]: Found menu display driver: "menu_display_gl". [INFO] [Font]: Using font rendering backend: freetype. [INFO] [Font]: Using font rendering backend: freetype. [WARN] Input device ID 5 is unknown to this libretro implementation. Using RETRO _DEVICE_JOYPAD. [INFO] SRAM will not be saved. [INFO] Loading history file: [/storage/.config/retroarch/content_history.lpl]. [INFO] Loading history file: [/storage/.config/retroarch/content_favorites.lpl]. [INFO] Loading history file: [/storage/.config/retroarch/content_music_history.l pl]. [INFO] Loading history file: [/storage/.config/retroarch/content_video_history.l pl]. [INFO] Loading history file: [/storage/.config/retroarch/content_image_history.l pl]. [INFO] [KMS]: New FB: 1920x1080 (stride: 7680). [INFO] [KMS]: New FB: 1920x1080 (stride: 7680).

harmhoek commented 6 years ago

[INFO] [Video]: Graphics driver did not initialize an input driver. Attempting t o pick a suitable driver.

lol. Is this a problem?

gouchi commented 6 years ago

There are no audio related issues can you try other audio device ?

harmhoek commented 6 years ago

As stated when I use audio device = "sysdefault:CARD=Intel" it provides me audio via the motherboard.

gouchi commented 6 years ago

Yes I meant other audio device related to SB not motherboard.

May you try to connect on our irc channel.

harmhoek commented 6 years ago

I selected Front, Side, Rear etcetera. Everything on this card doesn't work. Also tried another PCI slot.

I get the feeling it's a hardware problem with this motherboard and this soundcard.

harmhoek commented 6 years ago

Update from my side:

With Alsa drivers I can change the output device in the GUI. No sound output however. I suppose we have to give some statement to the realtek codec to take the soundcard?

Ps. On windows 10 I noticed a big difference in sound quality compared to on-board! It is worth the effort!

harmhoek commented 6 years ago

Just noted -> DIGITAL OUTPUT works somehow with current setup (i get distorted sounds when I put analog in there)

-- I need to switch the card to digital output OFF / MUTE -- how?

amixer set IEC958 off worked but still no output on analog

Do i need to blacklist kernel, i.e.? blacklist snd_ens1370

amixer

Simple mixer control 'Master',0
  Capabilities: pvolume pvolume-joined pswitch pswitch-joined
  Playback channels: Mono
  Limits: Playback 0 - 64
  Mono: Playback 64 [100%] [0.00dB] [on]
Simple mixer control 'Headphone',0
  Capabilities: pvolume pswitch
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 64
  Mono:
  Front Left: Playback 64 [100%] [0.00dB] [on]
  Front Right: Playback 64 [100%] [0.00dB] [on]
Simple mixer control 'Front',0
  Capabilities: pvolume pswitch
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 64
  Mono:
  Front Left: Playback 64 [100%] [0.00dB] [on]
  Front Right: Playback 64 [100%] [0.00dB] [on]
Simple mixer control 'Front Mic',0
  Capabilities: pvolume pswitch
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 31
  Mono:
  Front Left: Playback 0 [0%] [-34.50dB] [off]
  Front Right: Playback 0 [0%] [-34.50dB] [off]
Simple mixer control 'Front Mic Boost',0
  Capabilities: volume
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: 0 - 3
  Front Left: 0 [0%] [0.00dB]
  Front Right: 0 [0%] [0.00dB]
Simple mixer control 'Surround',0
  Capabilities: pvolume pswitch
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 64
  Mono:
  Front Left: Playback 58 [91%] [-6.00dB] [on]
  Front Right: Playback 58 [91%] [-6.00dB] [on]
Simple mixer control 'Center',0
  Capabilities: pvolume pvolume-joined pswitch pswitch-joined
  Playback channels: Mono
  Limits: Playback 0 - 64
  Mono: Playback 64 [100%] [0.00dB] [on]
Simple mixer control 'LFE',0
  Capabilities: pvolume pvolume-joined pswitch pswitch-joined
  Playback channels: Mono
  Limits: Playback 0 - 64
  Mono: Playback 64 [100%] [0.00dB] [on]
Simple mixer control 'Side',0
  Capabilities: pvolume pswitch
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 64
  Mono:
  Front Left: Playback 64 [100%] [0.00dB] [on]
  Front Right: Playback 64 [100%] [0.00dB] [on]
Simple mixer control 'Line',0
  Capabilities: pvolume pswitch
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 31
  Mono:
  Front Left: Playback 0 [0%] [-34.50dB] [off]
  Front Right: Playback 0 [0%] [-34.50dB] [off]
Simple mixer control 'Line Boost',0
  Capabilities: volume
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: 0 - 3
  Front Left: 0 [0%] [0.00dB]
  Front Right: 0 [0%] [0.00dB]
Simple mixer control 'CD',0
  Capabilities: pvolume pswitch
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 31
  Mono:
  Front Left: Playback 0 [0%] [-34.50dB] [off]
  Front Right: Playback 0 [0%] [-34.50dB] [off]
Simple mixer control 'IEC958',0
  Capabilities: pswitch pswitch-joined cswitch cswitch-joined
  Playback channels: Mono
  Capture channels: Mono
  Mono: Playback [on] Capture [off]
Simple mixer control 'IEC958 Default PCM',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [on]
Simple mixer control 'Beep',0
  Capabilities: pvolume pswitch
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 31
  Mono:
  Front Left: Playback 0 [0%] [-34.50dB] [off]
  Front Right: Playback 0 [0%] [-34.50dB] [off]
Simple mixer control 'Capture',0
  Capabilities: cvolume cswitch
  Capture channels: Front Left - Front Right
  Limits: Capture 0 - 46
  Front Left: Capture 0 [0%] [-16.00dB] [off]
  Front Right: Capture 0 [0%] [-16.00dB] [off]
Simple mixer control 'Capture',1
  Capabilities: cvolume cswitch
  Capture channels: Front Left - Front Right
  Limits: Capture 0 - 46
  Front Left: Capture 0 [0%] [-16.00dB] [off]
  Front Right: Capture 0 [0%] [-16.00dB] [off]
Simple mixer control 'Capture',2
  Capabilities: cvolume cswitch
  Capture channels: Front Left - Front Right
  Limits: Capture 0 - 46
  Front Left: Capture 0 [0%] [-16.00dB] [off]
  Front Right: Capture 0 [0%] [-16.00dB] [off]
Simple mixer control 'Input Source',0
  Capabilities: cenum
  Items: 'Rear Mic' 'Front Mic' 'Line' 'CD'
  Item0: 'Rear Mic'
Simple mixer control 'Input Source',1
  Capabilities: cenum
  Items: 'Rear Mic' 'Front Mic' 'Line' 'CD'
  Item0: 'Rear Mic'
Simple mixer control 'Input Source',2
  Capabilities: cenum
  Items: 'Rear Mic' 'Front Mic' 'Line' 'CD'
  Item0: 'Rear Mic'
Simple mixer control 'Loopback Mixing',0
  Capabilities: enum
  Items: 'Disabled' 'Enabled'
  Item0: 'Disabled'
Simple mixer control 'Rear Mic',0
  Capabilities: pvolume pswitch
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 31
  Mono:
  Front Left: Playback 0 [0%] [-34.50dB] [off]
  Front Right: Playback 0 [0%] [-34.50dB] [off]
Simple mixer control 'Rear Mic Boost',0
  Capabilities: volume
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: 0 - 3
  Front Left: 0 [0%] [0.00dB]
  Front Right: 0 [0%] [0.00dB]

Module Size Used by 8021q 24576 0 bnep 20480 2 btusb 40960 0 btrtl 16384 1 btusb btbcm 16384 1 btusb btintel 16384 1 btusb bluetooth 307200 26 btrtl,btintel,bnep,btbcm,btusb snd_hda_codec_realtek 65536 1 snd_hda_codec_generic 65536 1 snd_hda_codec_realtek rfkill 20480 3 bluetooth snd_ca0106 45056 0 snd_ac97_codec 110592 1 snd_ca0106 ac97_bus 16384 1 snd_ac97_codec snd_rawmidi 24576 1 snd_ca0106 snd_hda_intel 28672 0 snd_hda_codec 90112 3 snd_hda_intel,snd_hda_codec_generic,snd_hda_codec_realtek snd_hda_core 49152 4 snd_hda_intel,snd_hda_codec,snd_hda_codec_generic,snd_hda_codec_realtek snd_hwdep 16384 1 snd_hda_codec

harmhoek commented 6 years ago

amixer controls

numid=46,iface=CARD,name='CD Phantom Jack'
numid=51,iface=CARD,name='Front Headphone Phantom Jack'
numid=44,iface=CARD,name='Front Mic Jack'
numid=45,iface=CARD,name='Line Jack'
numid=49,iface=CARD,name='Line Out CLFE Jack'
numid=47,iface=CARD,name='Line Out Front Jack'
numid=50,iface=CARD,name='Line Out Side Jack'
numid=48,iface=CARD,name='Line Out Surround Jack'
numid=43,iface=CARD,name='Rear Mic Jack'
numid=53,iface=CARD,name='SPDIF In Phantom Jack'
numid=52,iface=CARD,name='SPDIF Phantom Jack'
numid=42,iface=MIXER,name='Master Playback Switch'
numid=41,iface=MIXER,name='Master Playback Volume'
numid=12,iface=MIXER,name='Headphone Playback Switch'
numid=11,iface=MIXER,name='Headphone Playback Volume'
numid=62,iface=MIXER,name='PCM Playback Volume'
numid=32,iface=MIXER,name='Front Mic Boost Volume'
numid=17,iface=MIXER,name='Front Mic Playback Switch'
numid=16,iface=MIXER,name='Front Mic Playback Volume'
numid=2,iface=MIXER,name='Front Playback Switch'
numid=1,iface=MIXER,name='Front Playback Volume'
numid=4,iface=MIXER,name='Surround Playback Switch'
numid=3,iface=MIXER,name='Surround Playback Volume'
numid=7,iface=MIXER,name='Center Playback Switch'
numid=5,iface=MIXER,name='Center Playback Volume'
numid=8,iface=MIXER,name='LFE Playback Switch'
numid=6,iface=MIXER,name='LFE Playback Volume'
numid=33,iface=MIXER,name='Line Boost Volume'
numid=19,iface=MIXER,name='Line Playback Switch'
numid=18,iface=MIXER,name='Line Playback Volume'
numid=21,iface=MIXER,name='CD Playback Switch'
numid=20,iface=MIXER,name='CD Playback Volume'
numid=26,iface=MIXER,name='Capture Switch'
numid=28,iface=MIXER,name='Capture Switch',index=1
numid=30,iface=MIXER,name='Capture Switch',index=2
numid=25,iface=MIXER,name='Capture Volume'
numid=27,iface=MIXER,name='Capture Volume',index=1
numid=29,iface=MIXER,name='Capture Volume',index=2
numid=13,iface=MIXER,name='Loopback Mixing'
numid=38,iface=MIXER,name='IEC958 Default PCM Playback Switch'
numid=34,iface=MIXER,name='IEC958 Playback Con Mask'
numid=35,iface=MIXER,name='IEC958 Playback Pro Mask'
numid=36,iface=MIXER,name='IEC958 Playback Default'
numid=37,iface=MIXER,name='IEC958 Playback Switch'
numid=40,iface=MIXER,name='IEC958 Capture Default'
numid=39,iface=MIXER,name='IEC958 Capture Switch'
numid=55,iface=MIXER,name='Beep Playback Switch'
numid=54,iface=MIXER,name='Beep Playback Volume'
numid=22,iface=MIXER,name='Input Source'
numid=23,iface=MIXER,name='Input Source',index=1
numid=24,iface=MIXER,name='Input Source',index=2
numid=31,iface=MIXER,name='Rear Mic Boost Volume'
numid=15,iface=MIXER,name='Rear Mic Playback Switch'
numid=14,iface=MIXER,name='Rear Mic Playback Volume'
numid=10,iface=MIXER,name='Side Playback Switch'
numid=9,iface=MIXER,name='Side Playback Volume'
numid=57,iface=PCM,name='Capture Channel Map'
numid=56,iface=PCM,name='Playback Channel Map'
numid=59,iface=PCM,name='Capture Channel Map',device=1
numid=58,iface=PCM,name='Playback Channel Map',device=1
numid=60,iface=PCM,name='Capture Channel Map',device=2
numid=61,iface=PCM,name='Capture Channel Map',index=1,device=2

amixer cset numid=42 1 numid=42,iface=MIXER,name='Master Playback Switch' ; type=BOOLEAN,access=rw------,values=1 : values=on

Lakka:~ # amixer cset numid=52 1 amixer: Control default element write error: Operation not permitted

Any numid from the card is not permitted, what the?

ideas? https://forums.opensuse.org/showthread.php/386773-solution-creative-audigy-1-2-11-0-kde-gnome-alsa

https://github.com/w41l/wlsbuild/blob/master/openrc/init.d/alsa turn off digital switches set "SB Live Analog/Digital Output Jack" off set "Audigy Analog/Digital Output Jack" off no success

harmhoek commented 6 years ago

How do I default the audio and then put the commands as above?

or set ouput of this card device to JACK 1 ? instead of Digital?

_"Re: Soundblaster CA0106 no sound Post by the_josh » Tue Dec 14, 2010 2:53 pm

HI seeley!

Thanks a lot! My problem now got a solution! In the gnome-alsa-mixer gui, thereare below the mixer-bar 4 fields, IEC958 Analog Source Digital Source Shared Mic/line In

The first was activated. After I deactivated it, I got sound."_

https://forums.linuxmint.com/viewtopic.php?t=61919

harmhoek commented 6 years ago

Halleluya, it is fixed!! Got analog sound on the Soundblaster Audigy Card!

One of the following commands likely did the job: amixer -c1 set Master 100% unmute amixer -c1 cset name='IEC958 Playback Switch' off amixer -c1 set IEC958 off

-> amixer -c1 set IEC958 off this one <- now I just need this as automatic code on starttup

How-to autostart.sh: nano .config/autostart.sh

!/bin/sh

(sleep 10s; amixer -c1 set IEC958 off ) &

CRTL + X -> Y