[OE-core] [PATCH 0/4] Add alsa-state from OE Classic v3
Joshua Lock
josh at linux.intel.com
Tue Jan 24 23:15:33 UTC 2012
On 24/01/12 07:02, Koen Kooi wrote:
>
> Op 13 jan. 2012, om 20:10 heeft Joshua Lock het volgende geschreven:
>
>> The small series which follows introduces the alsa-state recipe from oe-classic.
>> The reason for doing so is to remove the requirement for recipes like the
>> beagleboard-audio recipe in meta-yocto, which ensures the beagleboards sound
>> device has the volume turned up.
>>
>> Long term I'd like to implement something more generic for handling device
>> quirks, but alsa-state is a simple fix for an immediate need that should
>> standardise how alsa configuration is handled in layers.
>
> FWIW, alsa-lib itself includes initscripts to do this. I dropped asound.state in /var/lib/alsa and it just worked since alsactl also installs systemd units to handle this. So alsa-state can just hold the config files and drop the initscripts by the looks of it.
Thanks for raising this, I hadn't seen that alsa-utils provides some
extras with alsactl.
Taking a quick look I see that they ship systemd units for state save
and restore and a udev rule for restoring the state.
I can't see any initscript, so I think switching to what's provided by
alsa-utils would mean losing state saving for non-systemd folk but
systemd users can probably just set VIRTUAL-RUNTIME_alsa-state =
"alsa-utils-alsactl".
I am an alsa newb so if I'm missing something please point me at it.
Cheers,
Joshua
--
Joshua Lock
Yocto Project "Johannes factotum"
Intel Open Source Technology Centre
More information about the Openembedded-core
mailing list