Comments (8)
Based on the results, it is able to very accurately recognize it as a sound card:
My hardware:
Raspberry Pi Zero 2
WM8960 Audio HAT
After assembly
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:
Further error information
Looks identical, doesn't it? 😏😏
When I tried to reboot:
Ok, it failed.
When I checked journalctl -xe
to investigate further:
Memory leak? But when I checked htop
, I found no applications hogging system resources:
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.
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.
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.
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.
Maybe we need some code that would either disabling vc4hdmi or setting proper card by searching in system wm8960soundcard.
from wm8960-audio-hat.
I have been experience the same problem.
from wm8960-audio-hat.
Okay, it looks like I figured out what's problem.
from wm8960-audio-hat.
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)
- Will not compile on Linux ubuntu 5.13.0-1011-raspi HOT 2
- Install on piCore
- WM8960 and RPi0-2W running Raspbian (v 5.10.103, armv7l) HOT 1
- Works on Raspberry Pi 3B+ Rasperry Pi OS, 2022, version 1
- Software (systemd) does not work with Raspberry Pi 4b with current Raspberry Pi OS 64bit HOT 1
- Build error on kernel: 5.15.30-v7+ (armv7l) HOT 42
- Error! Bad return status for module build on kernel: 5.15.32-v7l+ (armv7l) HOT 7
- Adding unrelated dtoverlays kills soundcard
- Sound Output
- Error! Bad return status for module build on kernel: 6.1.19-v8+ (aarch64) HOT 4
- No sound from wm8960-audio-hat HOT 1
- Error! Bad return status for module build on kernel: 5.10.103-v7+ (armv7l) HOT 1
- The driver does not seem to work on Raspberry Pi 5 HOT 2
- Help needed for WM8960 support in yocto HOT 1
- Kernel build fails on kernel 6.6.20+rpt-rpi-v7 (armv7l) (bookworm) HOT 4
- SPI1 Pin Conflict HOT 1
- guide to compile HOT 1
- Why there is need a copy of wm8960.c file?
- Why does WM8960-Audio-HAT Installer hard code location of config files?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wm8960-audio-hat.