Commit Graph

20 Commits

Author SHA1 Message Date
Stefan Agner eb7c912edd
Drop tsched ALSA parameter for Raspberry Pi devices ()
Presumably the newer audio drivers in Linux 5.15/6.1 do not require this
parameter any longer. Tests on HAOS 9.5 and HAOS 10.1 with the VLC
add-on (using latest Alpine 3.17) provided mp3 and TTS playback without
dropouts (on the 3.5mm analog audio jack).
2023-04-26 11:01:43 +02:00
Stefan Agner 2b323b226d
Fix Audio on ODROID-C4 ()
With the new axg-sound-card sound card configuration ODROID-C4 gets a
valid sound card now. However, startup doesn't complete since the sound
card is not properly setup due to missing soundconfig. This leads to
100% CPU usage by the Audio plug-in on ODROID-C4.

This adds soundconfig for ODROID-C4 to fix the problem.
2023-04-25 13:40:39 +02:00
Stefan Agner c9c820dd0d
Apply soundconfig correctly to Khadas VIM3 () 2023-04-19 15:51:41 +02:00
Stefan Agner b290c6cb64
Amlogic ALSA configuration file fixes ()
* Add Khadas VIM3 configuration for HAOS 9.5

* Use new driver name for ALSA configuration

With Linux kernel commit bc387887ae22 ("ASoC: meson: implement
driver_name for snd_soc_card in meson-card-utils") [1] the Meson ASoC
driver passes the driver name (seemingly derrived from device tree
"compatible") to ALSA. This then reflects in /proc/asound/cards, which
now lists "axg-sound-card", instead of ODROID-N2 (derrived from the
device tree "model"):

Since Linux 5.16+
  # cat  /proc/asound/cards
   0 [ODROIDN2       ]: axg-sound-card - ODROID-N2
                        ODROID-N2

Linux 5.15 and earlier:
  # cat /proc/asound/cards
   0 [ODROIDN2       ]: ODROID-N2 - ODROID-N2
                        ODROID-N2

It seems that this string is used to find the ALSA configuration in
/usr/share/alsa/cards/.

Note that the same string is used in Khadas VIM3. But since the two
configuration files are the same, this actually deduplicate things.

[1] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=bc387887ae22d6ed6439e83968b5be3443a8e57d

* Use new driver name for ALSA configuration for ODROID-C2

Similar to ODROID-N2, the driver name changed for ODROID-C2 as well.
Add a configuration file for the new driver name.
2023-04-19 15:25:30 +02:00
Pascal Vizeli 69bf1675b9
Fix permissions ()
* Fix permissions

* fix s6

* Fix lint
2022-07-29 16:29:35 +02:00
Pascal Vizeli af6a9befdf
Support OS7 or older () 2022-05-04 17:16:21 +02:00
Stefan Agner 06fb96ad20
Add Khadas VIM3 support ()
* Add Khadas VIM3 support

Add sound configuration for Khadas VIM3. Currently only HDMI supported.
This requires access to device tree in sysfs.

* Add Khadas VIM3 specific config

* Add ODROID-N2 configuration for newer HAOS releases
2022-04-28 16:13:29 +02:00
Stefan Agner 1ebf3c88f2
Configure ALSA card for Yellow () 2022-04-28 15:35:55 +02:00
Pascal Vizeli ae22c2ed30
Add VC4 hdmi support (RPi4) () 2021-02-15 12:06:32 +01:00
Pascal Vizeli bf390bfd2e
Use tempio to generate config () 2021-02-13 15:03:39 +01:00
Pascal Vizeli 9a07613729
Fix issue on loadscript () 2020-07-03 11:13:12 +02:00
Pascal Vizeli 6b5dc4d424 Run soundconfig blocking 2020-06-29 16:49:48 +02:00
Pascal Vizeli 37e8e30fc7 Fix mixer 2020-06-29 16:32:57 +02:00
Pascal Vizeli 35bfe603f1
Fix alsa mixer settings on startup () 2020-06-29 15:57:48 +02:00
Pascal Vizeli c1e760d8a3 Fix LN/CR 2020-06-29 15:35:19 +02:00
Pascal Vizeli 4c92c2a581
Fix card information & add DAC ()
* Fix card information & add DAC

* fix style

* Fix output

* fix DAC style
2020-06-28 23:20:24 +02:00
Pascal Vizeli b7541f4102
Add audio N2 ()
* Add the line-in card

* Update soundconfig

* Fix sound settings

* fix copyright

* change order of output
2020-06-18 18:55:26 +02:00
Pascal Vizeli 14579c94ac
Fix alsa rules ()
* Simplify and fix alsa rules&config

* Fix naming
2020-04-02 12:14:55 +02:00
Pascal Vizeli 554fc59795
Update card profiles () 2020-04-01 17:12:46 +02:00
Pascal Vizeli fa0235540c Add all files 2020-02-23 15:25:53 +01:00