Patchwork [0/3] Add alsa-state from OE Classic v2

login
register
mail settings
Submitter Joshua Lock
Date Jan. 10, 2012, 5:39 p.m.
Message ID <cover.1326216024.git.josh@linux.intel.com>
Download mbox
Permalink /patch/18959/
State New
Headers show

Pull-request

git://git.openembedded.org/openembedded-core-contrib josh/devices

Comments

Joshua Lock - Jan. 10, 2012, 5:39 p.m.
The small series following 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.

Since v1 I've added an extra commit which:
a) defaults to /var/lib/alsa/ for state files, as this is the directory
alsactl writes to by default.
b) sed's the path to the state files into the init script, rather than hard
codes them.

The following changes since commit fff18970706913e7fd7f4a119d798dddb44b388a:

  base-files: filesystems: fix mount order (2012-01-06 14:41:19 +0000)

are available in the git repository at:
  git://git.openembedded.org/openembedded-core-contrib josh/devices
  http://cgit.openembedded.org/cgit.cgi/openembedded-core-contrib/log/?h=josh/devices

Joshua Lock (3):
  alsa-state: add alsa-state from oe classic
  alsa-state: move state files to localstatedir
  task-base: add alsa-state to task-base-alsa

 meta/recipes-bsp/alsa-state/alsa-state.bb          |   59 ++++++++++++++++++++
 meta/recipes-bsp/alsa-state/alsa-state/alsa-state  |   29 ++++++++++
 meta/recipes-bsp/alsa-state/alsa-state/asound.conf |   12 ++++
 .../recipes-bsp/alsa-state/alsa-state/asound.state |    1 +
 meta/recipes-core/tasks/task-base.bb               |    5 +-
 5 files changed, 104 insertions(+), 2 deletions(-)
 create mode 100644 meta/recipes-bsp/alsa-state/alsa-state.bb
 create mode 100755 meta/recipes-bsp/alsa-state/alsa-state/alsa-state
 create mode 100644 meta/recipes-bsp/alsa-state/alsa-state/asound.conf
 create mode 100644 meta/recipes-bsp/alsa-state/alsa-state/asound.state
Otavio Salvador - Jan. 10, 2012, 7:34 p.m.
On Tue, Jan 10, 2012 at 15:39, Joshua Lock <josh@linux.intel.com> wrote:

> The small series following 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.
>

If you're on the mood please also prepare a patch for meta-oe to add
support to systemd. It ought to be quite trivial to add and allow for easy
use for people using systemd based images.
Joshua Lock - Jan. 10, 2012, 7:45 p.m.
On 10/01/12 11:34, Otavio Salvador wrote:
> On Tue, Jan 10, 2012 at 15:39, Joshua Lock <josh@linux.intel.com
> <mailto:josh@linux.intel.com>> wrote:
>
>     The small series following 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.
>
>
> If you're on the mood please also prepare a patch for meta-oe to add
> support to systemd. It ought to be quite trivial to add and allow for
> easy use for people using systemd based images.

I haven't done *anything* with systemd yet but I'd like to check it out 
so I'll add this to my list.

Expect it to take a few days.

Joshua
Otavio Salvador - Jan. 10, 2012, 7:48 p.m.
On Tue, Jan 10, 2012 at 17:45, Joshua Lock <josh@linux.intel.com> wrote:

> On 10/01/12 11:34, Otavio Salvador wrote:
>
>> If you're on the mood please also prepare a patch for meta-oe to add
>> support to systemd. It ought to be quite trivial to add and allow for
>> easy use for people using systemd based images.
>>
>
> I haven't done *anything* with systemd yet but I'd like to check it out so
> I'll add this to my list.
>
> Expect it to take a few days.


If you need some help, ping me.
Joshua Lock - Jan. 24, 2012, 11:37 p.m.
On 10/01/12 11:34, Otavio Salvador wrote:
> On Tue, Jan 10, 2012 at 15:39, Joshua Lock <josh@linux.intel.com
> <mailto:josh@linux.intel.com>> wrote:
>
>     The small series following 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.
>
>
> If you're on the mood please also prepare a patch for meta-oe to add
> support to systemd. It ought to be quite trivial to add and allow for
> easy use for people using systemd based images.

As Koen pointed out, alsactl includes some systemd units to perform this 
function.

Cheers,
Joshua