Giter VIP home page Giter VIP logo

Comments (8)

YuMingC233 avatar YuMingC233 commented on July 17, 2024 2

Based on the results, it is able to very accurately recognize it as a sound card:

Untitled

Untitled (1)

My hardware:

Raspberry Pi Zero 2

WM8960 Audio HAT

IMG_20231222_202056

After assembly

IMG_20231222_202656

My kernel version:

Linux raspberrypi 6.1.21-v8+ #1642 SMP PREEMPT Mon Apr 3 17:24:16 BST 2023 aarch64 GNU/Linux

How I discovered this anomaly

When I normally boot it up, there is an error at the end of the startup, like this:

IMG_20231222_203026

Further error information

Untitled (2)

Looks identical, doesn't it? 😏😏

When I tried to reboot:

Untitled (3)

Ok, it failed.

When I checked journalctl -xe to investigate further:

Untitled (4)

Memory leak? But when I checked htop, I found no applications hogging system resources:

Untitled (5)

However, when I tried to reboot it again, the same error occurred.

Actually, this issue is not "fatal." When I use aplay xxx.wav in this state, it can play correctly, and even more advanced "real-time listening" commands like arecord -f cd | sudo arecord -f cd | aplay work fine.

Note, none of my commands explicitly specify the hardware.

@Fysek You might also try testing to see if you can replicate it.

Cheers 🥂

from wm8960-audio-hat.

YuMingC233 avatar YuMingC233 commented on July 17, 2024 1

I encountered the same wm8960-soundcard.service error code 99 issue, but I just did a test and it doesn't seem to affect any related functionalities, such as running commands like aplay xxx.wav, etc. It's really strange, isn't it?

from wm8960-audio-hat.

Fysek avatar Fysek commented on July 17, 2024 1

Interesting finding @YuMingC233, did you try to run alsamixer to check if raspbian sees it as a sound card? Here's a manual https://www.waveshare.com/wiki/WM8960_Audio_HAT
Btw. what is your hardware and kernel version?

from wm8960-audio-hat.

Subuday avatar Subuday commented on July 17, 2024 1

On my Raspberry Pi Zero 2 W, by default I have two devices:

card 0: vc4hdmi
card 1: wm8960soundcard

You can check this using aplay -l.

Then I checked logs of wm8960-soundcard.service:
alsactl restore

No state is present for card vc4hdmi
alsa-lib main.c:1014:(snd_use_case_mgr_open) error: failed to import hw:0 use case configuration -2
Found hardware: "vc4-hdmi" "" "" "" ""
Hardware is initialized using a generic method
No state is present for card vc4hdmi

So it looks like alsactl tries to restore by default with card 0 that is vc4hdmi instead wm8960soundcard.

To fix starting of the service, just modify it to launch with the correct card. In my case it is alsactl restore -c 1

from wm8960-audio-hat.

Subuday avatar Subuday commented on July 17, 2024 1

Maybe we need some code that would either disabling vc4hdmi or setting proper card by searching in system wm8960soundcard.

from wm8960-audio-hat.

Subuday avatar Subuday commented on July 17, 2024

I have been experience the same problem.

from wm8960-audio-hat.

Subuday avatar Subuday commented on July 17, 2024

Okay, it looks like I figured out what's problem.

from wm8960-audio-hat.

Fysek avatar Fysek commented on July 17, 2024

Okay, it looks like I figured out what's problem.

@Subuday Could you share what's the problem and any possible solutions, please?

from wm8960-audio-hat.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.