@luz Hi Luz,
It's been a long time that I opened this thread - and also that you were here...
Based on your guide I tried to mimic what you did to reproduce the issue but I stuck at the very beginning.
I've compiled an image with the default settings based on the following:
https://docs.onion.io/omega2-docs/cross-compiling.html
The image built successfully, and run correctly on Omega2.
Then I applied patches you shared, but I cannot find sound related menu in the menuconfig (kernel sound support appears, enabled, compiled, but there is no sound / alsa-utils available in the top level menu).
Actually, I patched OMEGA2.dtsi manually as the whole section:
&i2s {
+ #sound-dai-cells = <0>;
status = "okay";
};
was missing.
Do you have any advice what else should I modify / configure (or what I missed)?
Thanks,
/sza2
Edit:
Finally I've managed to install alsa stuff by uncommenting some lines in feeds.conf.default and running an update, so now I have alsa.
However, I cannot see any soundcard:
root@LEDE:/# cat /proc/asound/cards
--- no soundcards ---
root@LEDE:/# cat /proc/asound/devices
33: : timer
root@LEDE:/# cat /proc/asound/timers
G0: system timer : 10000.000us (10000000 ticks)
root@LEDE:/# cat /proc/asound/version
Advanced Linux Sound Architecture Driver Version k4.9.34.
Thus alsactl init does nothing:
root@LEDE:/# alsactl init
alsactl: init:1758: No soundcards found...
The MAX98357A module (snd_soc_max98357a) is loaded:
i2c_core 20006 15 snd_soc_wm8960,v4l2_common,videodev,i2c_tiny_usb,i2c_mt7621,i2c_gpio,i2c_algo_pcf,i2c_algo_pca,i2c_algo_bit,i2c_mux_pca954x,i2c_mux_pca9541,i2c_mux_gpio,i2c_mux,i2c_dev,regmap_i2c
input_core 25126 5 uvcvideo,rotary_encoder,gpio_beeper,snd,input_polldev
regmap_core 32572 6 snd_soc_ralink_i2s,snd_soc_wm8960,snd_soc_core,regmap_spi,regmap_mmio,regmap_i2c,[permanent]
regmap_i2c 2298 1 snd_soc_wm8960
regmap_mmio 2020 1 snd_soc_ralink_i2s
snd 41166 10 snd_soc_wm8960,snd_soc_core,snd_compress,snd_pcm_oss,snd_mixer_oss,snd_pcm,snd_timer,snd_rawmidi,snd_seq_device,snd_hwdep
snd_compress 7076 0
snd_hwdep 4382 0
snd_mixer_oss 12761 1 snd_pcm_oss
snd_pcm 63733 5 snd_soc_ralink_i2s,snd_soc_wm8960,snd_soc_core,snd_pcm_dmaengine,snd_pcm_oss
snd_pcm_dmaengine 2907 1 snd_soc_core
snd_pcm_oss 35793 0
snd_rawmidi 15370 0
snd_seq_device 2191 1 snd_rawmidi
snd_soc_core 100019 5 snd_soc_max98357a,snd_soc_simple_card,snd_soc_simple_card_utils,snd_soc_ralink_i2s,snd_soc_wm8960
snd_soc_max98357a 1808 0
snd_soc_ralink_i2s 6320 0
snd_soc_simple_card 4304 0
snd_soc_simple_card_utils 2299 1 snd_soc_simple_card
snd_soc_wm8960 23360 0
snd_timer 15310 1 snd_pcm
soundcore 3836 1 snd
but it does not seem to used by any other module.