Comments (4)
I fixed this by running ./uninstall.sh in the driver directory, installing the 6.6 kernel, then re-running ./install.sh. This may help for you.
from wm8960-audio-hat.
I fixed this by running ./uninstall.sh in the driver directory, installing the 6.6 kernel, then re-running ./install.sh. This may help for you.
Doesn't work for me , you can install the latest kernel but it will fail again when you try build the wm8960 kernel module in 6.6.20.
The definition of "snd_soc_of_get_dai_name" has changed in soc.h compared to 6.1 kernel.
6.1:
int snd_soc_of_get_dai_name(struct device_node *of_node,
const char **dai_name);
6.6:
int snd_soc_of_get_dai_name(struct device_node *of_node,
const char **dai_name, int index);
from wm8960-audio-hat.
I made a quick and dirty fix so that the module could be compiled under 6.6.20+rpt-rpi-v7
Audio works but I'm not a programmer.
diff --git a/wm8960-soundcard.c b/wm8960-soundcard.c
index e1df3db..84f6230 100755
--- a/wm8960-soundcard.c
+++ b/wm8960-soundcard.c
@@ -89,7 +89,7 @@ static int asoc_simple_parse_dai(struct device_node *node,
* 2) user need to rebind Sound Card everytime
* if he unbinded CPU or Codec.
*/
- ret = snd_soc_of_get_dai_name(node, &dlc->dai_name);
+ ret = snd_soc_of_get_dai_name(node, &dlc->dai_name, 0);
if (ret < 0)
return ret;
diff --git a/wm8960.c b/wm8960.c
index b5bda3b..7c2c13a 100755
--- a/wm8960.c
+++ b/wm8960.c
@@ -1440,8 +1440,8 @@ static void wm8960_set_pdata_from_of(struct i2c_client *i2c,
pdata->shared_lrclk = true;
}
-static int wm8960_i2c_probe(struct i2c_client *i2c,
- const struct i2c_device_id *id)
+static int wm8960_i2c_probe(struct i2c_client *i2c)
+
{
struct wm8960_data *pdata = dev_get_platdata(&i2c->dev);
struct wm8960_priv *wm8960;
from wm8960-audio-hat.
I can confirm this appears to work, although I am dubious about removing a parameter from a function. (The patch did not work for me, and I had to edit the code manually based on the patch.)
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
- Build error on kernel: 6.1.21-v7+ (armv7l) (pi2zeroW) HOT 8
- Help needed for WM8960 support in yocto HOT 1
- SPI1 Pin Conflict HOT 1
- guide to compile HOT 1
- Why there is need a copy of wm8960.c file? HOT 1
- 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.