Main Restorations Software Audio/Jukebox/MP3 Everything Else Buy/Sell/Trade
Project Announcements Monitor/Video GroovyMAME Merit/JVL Touchscreen Meet Up Retail Vendors
Driving & Racing Woodworking Software Support Forums Consoles Project Arcade Reviews
Automated Projects Artwork Frontend Support Forums Pinball Forum Discussion Old Boards
Raspberry Pi & Dev Board controls.dat Linux Miscellaneous Arcade Wiki Discussion Old Archives
Lightguns Arcade1Up Try the site in https mode Site News

Unread posts | New Replies | Recent posts | Rules | Chatroom | Wiki | File Repository | RSS | Submit news

  

Author Topic: [PROBLEM BYPASSED] After system update: snd_hda_intel - no codecs found!  (Read 8734 times)

0 Members and 1 Guest are viewing this topic.

DreyMIX

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 59
  • Last login:Today at 03:00:34 pm
  • I want to build my own arcade controls!
After updating the whole system a bit with the command "sudo pacman -Su" and the kernel to "Linux 5.11.11-arch1-1-15khz", I can't get the audio to work anymore.

snd_hda_intel 0000:00:1b.0: no codecs found!

This is what I get when typing the command "sudo dmesg". I also tried to configure the audio through the gasetup, but there was no way.

How can I solve?

Thank you

« Last Edit: April 13, 2021, 11:03:22 am by DreyMIX »

DreyMIX

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 59
  • Last login:Today at 03:00:34 pm
  • I want to build my own arcade controls!
Re: After system update: snd_hda_intel - no codecs found!
« Reply #1 on: April 10, 2021, 06:31:54 am »
I also tried to run the command "sudo /usr/bin/alsa-info.sh" and it gives me this output

http://alsa-project.org/db/?f=cff23265699cd2f3948bce01a36db461fe50911c

Substring

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 816
  • Last login:March 15, 2024, 06:37:57 am
  • Forking GroovyArcade
    • forum.arcadecontrols.com/index.php/topic,160023.0.html
    • GroovyArcade active fork
Re: After system update: snd_hda_intel - no codecs found!
« Reply #2 on: April 10, 2021, 10:37:06 am »
This doesn't seem related to groovyarcade arcade itself. Are you using my distro ?

Can you go in alsamixer, press F6, and see if the sound card is detected and can be set ?

DreyMIX

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 59
  • Last login:Today at 03:00:34 pm
  • I want to build my own arcade controls!
Re: After system update: snd_hda_intel - no codecs found!
« Reply #3 on: April 10, 2021, 02:00:20 pm »
Yes, I was using your 2020 distribution (I don't remember the exact month, maybe April or May). Yesterday I do not know why this alone seems to me to have updated the kernel by myself passing to 5.11.x and I was forced to update the rest as well, otherwise everything crashed. The problem is that the audio is missing.

Substring

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 816
  • Last login:March 15, 2024, 06:37:57 am
  • Forking GroovyArcade
    • forum.arcadecontrols.com/index.php/topic,160023.0.html
    • GroovyArcade active fork
Re: After system update: snd_hda_intel - no codecs found!
« Reply #4 on: April 10, 2021, 02:07:17 pm »
pacman -Syu is a full system update ;)

No idea out of my head sadly. Have you tried the alsamixer thing ?

DreyMIX

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 59
  • Last login:Today at 03:00:34 pm
  • I want to build my own arcade controls!
Re: After system update: snd_hda_intel - no codecs found!
« Reply #5 on: April 10, 2021, 02:20:39 pm »
Yes, I forgot to tell you that if I open alsamixer I see this:





And sorry I got confused but I don't think I'm using your version. I remember that I started from this: GroovyArcade-Arch2020.04.08-x86_64.iso

Code: [Select]
[arcade@GroovyArcade ~]$ sudo pacman -Syu
:: Synchronizing package databases...
 groovyarcade is up to date
 core is up to date
 extra                                                                             1619.7 KiB  1467 KiB/s 00:01 [###################################################################] 100%
 community                                                                            5.5 MiB  2.90 MiB/s 00:02 [###################################################################] 100%
:: Starting full system upgrade...
 there is nothing to do

Code: [Select]
[arcade@GroovyArcade ~]$ uname -a
Linux GroovyArcade 5.11.11-arch1-1-15khz #1 SMP PREEMPT Thu, 01 Apr 2021 00:38:27 +0000 x86_64 GNU/Linux
[arcade@GroovyArcade ~]$
« Last Edit: April 10, 2021, 02:33:49 pm by DreyMIX »

Substring

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 816
  • Last login:March 15, 2024, 06:37:57 am
  • Forking GroovyArcade
    • forum.arcadecontrols.com/index.php/topic,160023.0.html
    • GroovyArcade active fork
Re: After system update: snd_hda_intel - no codecs found!
« Reply #6 on: April 10, 2021, 03:17:52 pm »
That is my groovyarcade indeed, but you're missing a bunch of mixers. This looks like a kernel bug that I can't fix, but I may come with a solution in a few days (need to compile the lts kernel version and drop it in groovyarcade). Will take some time for me though, not even sure it will fix your issue

DreyMIX

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 59
  • Last login:Today at 03:00:34 pm
  • I want to build my own arcade controls!
Re: After system update: snd_hda_intel - no codecs found!
« Reply #7 on: April 10, 2021, 04:26:10 pm »
Thank you very much. No problem, take your time. Hoping to be able to solve: D

Maybe as soon as you are done, update this post ;)
« Last Edit: April 10, 2021, 04:28:15 pm by DreyMIX »

Substring

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 816
  • Last login:March 15, 2024, 06:37:57 am
  • Forking GroovyArcade
    • forum.arcadecontrols.com/index.php/topic,160023.0.html
    • GroovyArcade active fork
Re: After system update: snd_hda_intel - no codecs found!
« Reply #8 on: April 10, 2021, 06:32:38 pm »
Update the post or MP you.

But the current LTS is 5.10, not sure it would solve your problems

DreyMIX

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 59
  • Last login:Today at 03:00:34 pm
  • I want to build my own arcade controls!
Re: After system update: snd_hda_intel - no codecs found!
« Reply #9 on: April 10, 2021, 06:49:54 pm »
I understand, thx.

If it doesn't work, are there any solutions via usb audio with jack, compatible with this distribution? or like to buy some PCI sound card?

Substring

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 816
  • Last login:March 15, 2024, 06:37:57 am
  • Forking GroovyArcade
    • forum.arcadecontrols.com/index.php/topic,160023.0.html
    • GroovyArcade active fork
Re: After system update: snd_hda_intel - no codecs found!
« Reply #10 on: April 11, 2021, 12:31:47 pm »
OK, here we go :
  • download all 3 packages at https://we.tl/t-tY9LAadKmd
  • copy them to your GA install
  • locally connect or use ssh to run pacman -U linux-lts-15khz-*.zst in the folder where you've copied them
  • then we need to point the bootloader to the new kernel and initramfs : sudo sed -i "s/linux-15khz/linux-lts-15khz/g" /boot/syslinux/syslinux.cfg (I suppose you're not on UEFI ? If UEFI, then it's /boot/EFI/syslinux/syslinux.cfg)
  • reboot
  • pray
  • reply here  ;D

I've been thinking for a while to use the LTS kernel, wasn't really sure if it would be worth ... I hope it will help you at least.

DreyMIX

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 59
  • Last login:Today at 03:00:34 pm
  • I want to build my own arcade controls!
Re: After system update: snd_hda_intel - no codecs found!
« Reply #11 on: April 11, 2021, 01:04:32 pm »
What speed! Thanks so much.

Code: [Select]
[arcade@GroovyArcade shared]$ sudo pacman -U linux-lts-15khz-*.zst
loading packages...
resolving dependencies...
looking for conflicting packages...

Packages (3) linux-lts-15khz-5.10.28-1  linux-lts-15khz-docs-5.10.28-1  linux-lts-15khz-headers-5.10.28-1

Total Installed Size:  383.38 MiB

:: Proceed with installation? [Y/n]
(3/3) checking keys in keyring                                                                                   [###################################################################] 100%
(3/3) checking package integrity                                                                                 [###################################################################] 100%
(3/3) loading package files                                                                                      [###################################################################] 100%
(3/3) checking for file conflicts                                                                                [###################################################################] 100%
:: Processing package changes...
(1/3) installing linux-lts-15khz                                                                                 [###################################################################] 100%
Optional dependencies for linux-lts-15khz
    crda: to set the correct wireless channels of your country [installed]
    linux-firmware: firmware images needed for some devices [installed]
(2/3) installing linux-lts-15khz-docs                                                                            [###################################################################] 100%
(3/3) installing linux-lts-15khz-headers                                                                         [###################################################################] 100%
:: Running post-transaction hooks...
(1/4) Arming ConditionNeedsUpdate...
(2/4) Updating module dependencies...
(3/4) Install DKMS modules
==> dkms install --no-depmod -m rtl88x2bu -v 5.8.7.2 -k 5.10.28-1-lts-15khz
==> depmod 5.10.28-1-lts-15khz
(4/4) Updating linux initcpios...
==> Building image from preset: /etc/mkinitcpio.d/linux-lts-15khz.preset: 'default'
  -> -k /boot/vmlinuz-linux-lts-15khz -c /etc/mkinitcpio.conf -g /boot/initramfs-linux-lts-15khz.img
==> Starting build: 5.10.28-1-lts-15khz
  -> Running build hook: [base]
  -> Running build hook: [udev]
  -> Running build hook: [autodetect]
  -> Running build hook: [modconf]
  -> Running build hook: [block]
  -> Running build hook: [filesystems]
  -> Running build hook: [keyboard]
  -> Running build hook: [fsck]
  -> Running build hook: [plymouth]
==> Generating module dependencies
==> Creating zstd-compressed initcpio image: /boot/initramfs-linux-lts-15khz.img
==> Image generation successful
==> Building image from preset: /etc/mkinitcpio.d/linux-lts-15khz.preset: 'fallback'
  -> -k /boot/vmlinuz-linux-lts-15khz -c /etc/mkinitcpio.conf -g /boot/initramfs-linux-lts-15khz-fallback.img -S autodetect
==> Starting build: 5.10.28-1-lts-15khz
  -> Running build hook: [base]
  -> Running build hook: [udev]
  -> Running build hook: [modconf]
  -> Running build hook: [block]
==> WARNING: Possibly missing firmware for module: wd719x
==> WARNING: Possibly missing firmware for module: aic94xx
==> WARNING: Possibly missing firmware for module: xhci_pci
  -> Running build hook: [filesystems]
  -> Running build hook: [keyboard]
  -> Running build hook: [fsck]
  -> Running build hook: [plymouth]
==> Generating module dependencies
==> Creating zstd-compressed initcpio image: /boot/initramfs-linux-lts-15khz-fallback.img
==> Image generation successful
[arcade@GroovyArcade shared]$


Code: [Select]
[arcade@GroovyArcade shared]$ sudo sed -i "s/linux-15khz/linux-lts-15khz/g" /boot/syslinux/syslinux.cfg
[arcade@GroovyArcade shared]$ sudo cat /boot/syslinux/syslinux.cfg
default arch
timeout 0
prompt 0
#UI vesamenu.c32
menu title Groovy Arcade Linux
menu background GA.png
label arch
menu label GroovyArcade
linux ../vmlinuz-linux-lts-15khz
append root=/dev/disk/by-label/GA rw quiet rd.udev.log-priority=3 splash mitigations=off audit=0 monitor=arcade_15 video=VGA-1:640x240Se
initrd ../initramfs-linux-lts-15khz.img
[arcade@GroovyArcade shared]$

Here everything looks ok. I rebooted the pc and the audio is still not heard. So I exited from AM with alt + f4 (via keyboard) and went into the GA audio setup again. On the "default card" it still gives me "1 HDA-ATI", while on alsamixer the volumes of the various channels are still hidden (like the images I showed you in the previous post).

I opened a console via SSH and tried to see if there was still any error on dmesg and check that the kernel was correct:
Code: [Select]
[arcade@GroovyArcade ~]$ uname -a
Linux GroovyArcade 5.10.28-1-lts-15khz #1 SMP Sun, 11 Apr 2021 10:57:02 +0000 x86_64 GNU/Linux
[arcade@GroovyArcade ~]$

Turning to dmesg log. There is this line that I don't think was there before (I don't know if that's a problem though):
Code: [Select]
[   38.492686] snd_hda_intel 0000:02:00.1: IRQ timing workaround is activated for card #1. Suggest a bigger bdl_pos_adj.
And the problem still seems to persist:
Code: [Select]
[    6.743816] snd_hda_intel 0000:00:1b.0: no codecs found!
If you find this information useful (updated to date):
http://alsa-project.org/db/?f=11bab8555bf4186c74de6ab7eed170dc15667bbd
« Last Edit: April 11, 2021, 01:20:08 pm by DreyMIX »

Substring

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 816
  • Last login:March 15, 2024, 06:37:57 am
  • Forking GroovyArcade
    • forum.arcadecontrols.com/index.php/topic,160023.0.html
    • GroovyArcade active fork
Re: After system update: snd_hda_intel - no codecs found!
« Reply #12 on: April 11, 2021, 01:31:30 pm »
Mmmhhh ... If you have a spare usb stick, can you try to burn the last GA ISO (2021.03), boot on it and see if you have sound ? That way we can put aside a bad update.

Still looking for snd_hda_intel options that could help in your case. I have 2 Ga installs that use that codec, no problem so far.

edit: most fixes I've found so far mean flashing the BIOS ...
« Last Edit: April 11, 2021, 01:33:10 pm by Substring »

DreyMIX

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 59
  • Last login:Today at 03:00:34 pm
  • I want to build my own arcade controls!
Re: After system update: snd_hda_intel - no codecs found!
« Reply #13 on: April 11, 2021, 02:20:35 pm »
Yes, I have a USB stick. I'll try and let you know.

DreyMIX

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 59
  • Last login:Today at 03:00:34 pm
  • I want to build my own arcade controls!
Re: After system update: snd_hda_intel - no codecs found!
« Reply #14 on: April 11, 2021, 04:49:51 pm »
I burned the ISO image with Etcher to a USB stick (groovyarcade-2021.03-x86_64.iso)

I booted from USB, every now and then it gave some errors I think (bottom left via console) while the graphical interface went from one configuration to another. When it has reached the point "Live CD - GroovyArcade test", another window appears with the message "video monitor setup" and I press enter, an error appears on the console "/blablabla/interactive: line 339: worker_select_video_menu: command not found" and returns to the menu.
So I exited the GUI and typed "sudo dmesg". There is still a codec problem (no codec found!) as from the following image.


What can I do now?
« Last Edit: April 11, 2021, 04:51:34 pm by DreyMIX »

Substring

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 816
  • Last login:March 15, 2024, 06:37:57 am
  • Forking GroovyArcade
    • forum.arcadecontrols.com/index.php/topic,160023.0.html
    • GroovyArcade active fork
Re: After system update: snd_hda_intel - no codecs found!
« Reply #15 on: April 11, 2021, 05:03:42 pm »
Mmmhhhh the licecd test works here, you may have missed the video configuration. I'll fix the error message.

What's your mobo ?

DreyMIX

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 59
  • Last login:Today at 03:00:34 pm
  • I want to build my own arcade controls!
Re: After system update: snd_hda_intel - no codecs found!
« Reply #16 on: April 11, 2021, 05:06:51 pm »
Ok. At first I chose SVGA / LCD and then LCD.

My Mobo: P6T SE

Substring

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 816
  • Last login:March 15, 2024, 06:37:57 am
  • Forking GroovyArcade
    • forum.arcadecontrols.com/index.php/topic,160023.0.html
    • GroovyArcade active fork
Re: After system update: snd_hda_intel - no codecs found!
« Reply #17 on: April 11, 2021, 05:17:09 pm »
Looking for fixes for ALC1200, as it's probably the best way to go before buying a USB sound adapter ...

https://ubuntuforums.org/showthread.php?t=1159334 maybe ?

or https://askubuntu.com/questions/1231524/ubuntu-20-04-no-sound that has various solutions
« Last Edit: April 11, 2021, 05:19:28 pm by Substring »

DreyMIX

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 59
  • Last login:Today at 03:00:34 pm
  • I want to build my own arcade controls!
Re: After system update: snd_hda_intel - no codecs found!
« Reply #18 on: April 11, 2021, 06:04:44 pm »
The fact is that they just say "no sound" to them, you have to see if it actually gives them the same problem as mine that doesn't load the codec.

That value "options snd-hda-intel model = auto probe_mask = 1", I had already tried it and after rebooting the PC, nothing has changed. However if I output the video signal through the HDMI the audio is heard through the HDMI. While with the Jack (which is the configuration I use inside the cabinet) the audio no longer comes out.

Substring

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 816
  • Last login:March 15, 2024, 06:37:57 am
  • Forking GroovyArcade
    • forum.arcadecontrols.com/index.php/topic,160023.0.html
    • GroovyArcade active fork
Re: After system update: snd_hda_intel - no codecs found!
« Reply #19 on: April 11, 2021, 06:31:13 pm »
try model=generic

or reinstall the iso, and blacklist kernel updates

DreyMIX

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 59
  • Last login:Today at 03:00:34 pm
  • I want to build my own arcade controls!
Re: After system update: snd_hda_intel - no codecs found!
« Reply #20 on: April 12, 2021, 06:51:27 am »
I tried both with:
options snd_hda_intel model=generic

that:
options snd_intel_dspcfg dsp_driver=1

It didn't help much. Today, however, I get an audio USB stick, which I bought for about € 7 on amazon. It says it is also compatible with linux, let's see. To the bad, I make the return.

To reinstall everything from scratch is just the last thing to do. If other things weren't working for me, then ok. But here it is only audio, somehow I can manage to make it work via external USB sticks or by buying PCI cards, maybe compatible with the kernel, right?

Another thing, I'm at the point since at the moment it is not working, we might as well go back to the last kernel (5.11.2), how can I put it back?

Substring

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 816
  • Last login:March 15, 2024, 06:37:57 am
  • Forking GroovyArcade
    • forum.arcadecontrols.com/index.php/topic,160023.0.html
    • GroovyArcade active fork
Re: After system update: snd_hda_intel - no codecs found!
« Reply #21 on: April 12, 2021, 07:44:18 am »
To get back to the mainline kernel, simply
Code: [Select]
sudo sed -i "s/linux-lts-15khz/linux-15khz/g" /boot/syslinux/syslinux.cfg
Now for compatible sound cards, better check twice before buying ;)

DreyMIX

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 59
  • Last login:Today at 03:00:34 pm
  • I want to build my own arcade controls!
Re: After system update: snd_hda_intel - no codecs found!
« Reply #22 on: April 12, 2021, 08:17:18 am »
So for the moment I took this USB audio stick in a hurry, I also needed it so much. So if it doesn't work on the PC with GroovyArcade, I'll use it elsewhere.
https://www.amazon.com/Sabrent-External-Adapter-Windows-AU-MMSA/dp/B00IRVQ0F8/

Is there a wiki or page where I can see which PCI sound cards or even USB audio sticks are compatible with this distribution?

Thanks again for all the help.  Too bad we couldn't fix it.

Substring

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 816
  • Last login:March 15, 2024, 06:37:57 am
  • Forking GroovyArcade
    • forum.arcadecontrols.com/index.php/topic,160023.0.html
    • GroovyArcade active fork
Re: After system update: snd_hda_intel - no codecs found!
« Reply #23 on: April 12, 2021, 09:20:18 am »
I don't know any compatibility list, it's just the default linux ones. I had a somehow similar usb device and it worked fine (on a raspberry, 3 years ago)

DreyMIX

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 59
  • Last login:Today at 03:00:34 pm
  • I want to build my own arcade controls!
Re: After system update: snd_hda_intel - no codecs found!
« Reply #24 on: April 12, 2021, 09:28:22 am »
do you have a USB audio device? In case you tell me exactly the model you have? So if it works for you on the latest kernels, I'll take it too, in case the USB audio device I got on amazon doesn't work: D

Thank you

DreyMIX

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 59
  • Last login:Today at 03:00:34 pm
  • I want to build my own arcade controls!
Re: After system update: snd_hda_intel - no codecs found!
« Reply #25 on: April 12, 2021, 12:06:15 pm »
Resolved!!! With this USB audio stick, purchased on amazon. From the pc off, I inserted it, I inserted the jack that previously went directly to the internal sound card of the motherboard. Turned on the cabinet and boom! The audio works again. I say that for 7 € it is absolutely worth it, rather than reinstalling everything from scratch and reconfiguring everything eheh




Only thing I'm noticing. If I don't set the right sound card, on the audio configuration of GA, when starting AM, the audio is heard, but as soon as I start the game, no.
Opening the log "mame.log" I have this:
Code: [Select]
PortAudio: API ALSA has 5 devices
PortAudio: ALSA: "USB Audio Device: - (hw:0,0)"
PortAudio: ALSA: "HDA ATI HDMI: 0 (hw:2,3)" (default)
PortAudio: ALSA: "sysdefault"
PortAudio: ALSA: "spdif"
PortAudio: ALSA: "default"
PortAudio: API OSS has 0 devices
PortAudio: Unable to find specified API or device or none set, reverting to default
PortAudio: Using device "HDA ATI HDMI: 0 (hw:2,3)" on API "ALSA"

It sets me by default the audio of the internal card via HDMI.

If, on the other hand, I enter the GA settings, and set the right card (ie USB Audio). Audio will now be heard when starting the game. Going to re-read the log, this appears:
Code: [Select]
PortAudio: API ALSA has 9 devices
PortAudio: ALSA: "USB Audio Device: - (hw:0,0)"
PortAudio: ALSA: "HDA ATI HDMI: 0 (hw:2,3)"
PortAudio: ALSA: "sysdefault"
PortAudio: ALSA: "front"
PortAudio: ALSA: "surround40"
PortAudio: ALSA: "iec958"
PortAudio: ALSA: "spdif"
PortAudio: ALSA: "default" (default)
PortAudio: ALSA: "dmix"
PortAudio: API OSS has 0 devices
PortAudio: Unable to find specified API or device or none set, reverting to default
PortAudio: Using device "default" on API "ALSA"

But as soon as I turn off the pc or reboot, I have to redo this configuration every time. How maybe the system or the mame to tell him to use the USB sound card?

Substring

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 816
  • Last login:March 15, 2024, 06:37:57 am
  • Forking GroovyArcade
    • forum.arcadecontrols.com/index.php/topic,160023.0.html
    • GroovyArcade active fork
Re: After system update: snd_hda_intel - no codecs found!
« Reply #26 on: April 12, 2021, 12:22:05 pm »
What's inside your ~/.asoundrc ?

DreyMIX

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 59
  • Last login:Today at 03:00:34 pm
  • I want to build my own arcade controls!
Re: After system update: snd_hda_intel - no codecs found!
« Reply #27 on: April 12, 2021, 12:32:55 pm »
This:
Code: [Select]
defaults.pcm.card 0
defaults.ctl.card 0

Code: [Select]
[arcade@GroovyArcade ~]$ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: Device [USB Audio Device], device 0: USB Audio [USB Audio]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 2: HDMI [HDA ATI HDMI], device 3: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
[arcade@GroovyArcade ~]$

Edit:
I also found that the audio activates in the game even by doing these steps:

1) I turn on the PC
2) AM starts up, then I start the game and no sound is heard. I then close the game and AM with alt+f4.
3) I am now on GA. I close this too.
4) I restart GA with "sudo gasetup" and then I restart AM. Now if I start a game the audio will be heard.

What an oddity is it?  :o
« Last Edit: April 12, 2021, 01:01:15 pm by DreyMIX »

Substring

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 816
  • Last login:March 15, 2024, 06:37:57 am
  • Forking GroovyArcade
    • forum.arcadecontrols.com/index.php/topic,160023.0.html
    • GroovyArcade active fork
Re: After system update: snd_hda_intel - no codecs found!
« Reply #28 on: April 12, 2021, 05:58:39 pm »
I should check if AM is not started with root rights, that would explain the audio issue. As you're using an old iso, some things have changed since. Maje sure arcade is in the audio group. Or change to sdl sound in mame.ini i stead of portaudio

DreyMIX

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 59
  • Last login:Today at 03:00:34 pm
  • I want to build my own arcade controls!
Re: After system update: snd_hda_intel - no codecs found!
« Reply #29 on: April 13, 2021, 04:33:45 am »
is this the correct executable that I should switch from root to arcade?

[arcade@GroovyArcade ~]$ sudo ls -l /usr/bin/attract
-rwxr-xr-x 1 root root 3118512 Apr 11  2020 /usr/bin/attract
[arcade@GroovyArcade ~]$

Substring

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 816
  • Last login:March 15, 2024, 06:37:57 am
  • Forking GroovyArcade
    • forum.arcadecontrols.com/index.php/topic,160023.0.html
    • GroovyArcade active fork
Re: After system update: snd_hda_intel - no codecs found!
« Reply #30 on: April 13, 2021, 06:15:35 am »
No need to change perms or owner on the file, the question is rather regarding audio devices -> groups arcade

If you're not in the audio group : sudo usermod arcade -a -G audio


DreyMIX

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 59
  • Last login:Today at 03:00:34 pm
  • I want to build my own arcade controls!
Re: After system update: snd_hda_intel - no codecs found!
« Reply #31 on: April 13, 2021, 06:53:42 am »
No it didn't work. I also rebooted for safety after running this command.

Edit: But if I set sdl2, on mame.ini, it works! But which of these is the best for audio: sdl, sdl2 or portaudio?
« Last Edit: April 13, 2021, 06:57:41 am by DreyMIX »

Substring

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 816
  • Last login:March 15, 2024, 06:37:57 am
  • Forking GroovyArcade
    • forum.arcadecontrols.com/index.php/topic,160023.0.html
    • GroovyArcade active fork
Re: After system update: snd_hda_intel - no codecs found!
« Reply #32 on: April 13, 2021, 09:38:17 am »
PA is said to have the least latency, but gives trouble to some people (including me in my cab, not my test rigs). I'd say go for sdl2.

DreyMIX

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 59
  • Last login:Today at 03:00:34 pm
  • I want to build my own arcade controls!
Re: After system update: snd_hda_intel - no codecs found!
« Reply #33 on: April 13, 2021, 10:15:56 am »
Ok, I runned a lot of games and with sdl2 it's just fine!

At this point thanks again for all the help you have given me, although unfortunately we were unable to resolve the internal sound card issue, but it does nothing. At least so I fixed it without reinstalling everything from scratch.

I don't know whether to update the title of the topic and put it "solved", in reality I solved it in part. I do not know.

Substring

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 816
  • Last login:March 15, 2024, 06:37:57 am
  • Forking GroovyArcade
    • forum.arcadecontrols.com/index.php/topic,160023.0.html
    • GroovyArcade active fork
Re: After system update: snd_hda_intel - no codecs found!
« Reply #34 on: April 13, 2021, 10:49:38 am »
It's not exactly solved like it should have been, it's rather circumvented. Hopefully you can enjoy your cab :)

DreyMIX

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 59
  • Last login:Today at 03:00:34 pm
  • I want to build my own arcade controls!
Re: After system update: snd_hda_intel - no codecs found!
« Reply #35 on: April 13, 2021, 11:01:48 am »
Yes indeed: D
Thanks anyway.