Alsa-Devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Takashi Iwai <tiwai@suse.de>
To: Lennart Poettering <mznyfn@0pointer.de>
Cc: ALSA Development Mailing List <alsa-devel@alsa-project.org>,
	Kay Sievers <kay.sievers@vrfy.org>,
	jkysela@redhat.com
Subject: Re: [PATCHES] Integrate minimal systemd support in alsa-utils
Date: Tue, 23 Nov 2010 07:07:02 +0100	[thread overview]
Message-ID: <s5h62vor2t5.wl%tiwai@suse.de> (raw)
In-Reply-To: <20101123021657.GA17275@tango.0pointer.de>

At Tue, 23 Nov 2010 03:16:58 +0100,
Lennart Poettering wrote:
> 
> >From c5b414489626fcd46d792ab96db06e254dfeff90 Mon Sep 17 00:00:00 2001
> From: David B. Harris <david@eelf.ddts.net>
> Date: Tue, 23 Nov 2010 02:59:18 +0100
> Subject: [PATCH 1/2] Move asound.state location to /var/lib/alsa/
> 
> /etc might be on a read-only partition which is not suitable for dynamic
> data such as the mixer settings. Hence move the location of asound.state
> to /var/lib.

Could you add configure option to specify the path instead of
replacing the fixed path?
I don't mind to change the default path, but dropping the old path is
no good approach, since alsa-utils is still used by many old distros.


thanks,

Takashi


> ---
>  alsaconf/alsaconf.in |    4 ++--
>  alsactl/alsactl.1    |    4 ++--
>  alsactl/alsactl.c    |    2 +-
>  3 files changed, 5 insertions(+), 5 deletions(-)
> 
> diff --git a/alsaconf/alsaconf.in b/alsaconf/alsaconf.in
> index ccc1b37..b9815d1 100644
> --- a/alsaconf/alsaconf.in
> +++ b/alsaconf/alsaconf.in
> @@ -956,8 +956,8 @@ If you have a big amplifier, lower your volumes or say no.
>  	  aplay -N $TESTSOUND
>        fi
>      fi
> -    if [ ! -r /etc/asound.state ]; then
> -	xecho "Saving the mixer setup used for this in /etc/asound.state."
> +    if [ ! -r /var/lib/alsa/asound.state ]; then
> +	xecho "Saving the mixer setup used for this in /var/lib/alsa/asound.state."
>  	$sbindir/alsactl store
>      fi
>      clear
> diff --git a/alsactl/alsactl.1 b/alsactl/alsactl.1
> index eb3cbd1..eb5968c 100644
> --- a/alsactl/alsactl.1
> +++ b/alsactl/alsactl.1
> @@ -43,7 +43,7 @@ Print alsactl version number.
>  
>  .TP
>  \fI\-f, \-\-file\fP
> -Select the configuration file to use. The default is /etc/asound.state.
> +Select the configuration file to use. The default is /var/lib/alsa/asound.state.
>  
>  .TP
>  \fI\-F, \-\-force\fP
> @@ -90,7 +90,7 @@ The configuration file for init. By default, PREFIX/share/alsa/init/00main
>  is used.
>  
>  .SH FILES
> -\fI/etc/asound.state\fP (or whatever file you specify with the
> +\fI/var/lib/alsa/asound.state\fP (or whatever file you specify with the
>  \fB\-f\fP flag) is used to store current settings for your
>  soundcards. The settings include all the usual soundcard mixer
>  settings.  More importantly, alsactl is
> diff --git a/alsactl/alsactl.c b/alsactl/alsactl.c
> index 3b5dfda..59f0738 100644
> --- a/alsactl/alsactl.c
> +++ b/alsactl/alsactl.c
> @@ -30,7 +30,7 @@
>  #include <alsa/asoundlib.h>
>  #include "alsactl.h"
>  
> -#define SYS_ASOUNDRC "/etc/asound.state"
> +#define SYS_ASOUNDRC "/var/lib/alsa/asound.state"
>  
>  int debugflag = 0;
>  int force_restore = 1;
> -- 
> 1.7.3.2
> 

  reply	other threads:[~2010-11-23  6:07 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-11-23  2:16 [PATCHES] Integrate minimal systemd support in alsa-utils Lennart Poettering
2010-11-23  6:07 ` Takashi Iwai [this message]
2010-11-23  6:16 ` Takashi Iwai
2010-11-23 17:05   ` Kay Sievers
2010-11-24  5:40     ` Takashi Iwai
2010-11-24 10:50       ` Kay Sievers
2010-11-24 11:08         ` Takashi Iwai
2010-11-24 11:04       ` Kay Sievers
2010-11-26  8:36     ` Takashi Iwai
2010-11-26 11:50       ` Kay Sievers
2010-11-26 11:57         ` Takashi Iwai
2010-11-30  6:12           ` Kay Sievers
2010-11-30  7:06             ` Takashi Iwai
2010-11-30  9:35               ` Kay Sievers
2010-11-23  7:08 ` David Henningsson
2010-11-23 11:42   ` Lennart Poettering
2010-11-23 13:55     ` David Henningsson
2010-11-23 14:58       ` Daniel Chen
2010-11-23  9:44 ` Jaroslav Kysela
2010-11-23 14:43   ` Lennart Poettering
2010-11-23 14:53     ` Jaroslav Kysela
2010-11-24 17:55 ` Colin Guthrie
2010-11-24 19:47   ` Lennart Poettering
2010-11-25 21:45     ` Colin Guthrie

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=s5h62vor2t5.wl%tiwai@suse.de \
    --to=tiwai@suse.de \
    --cc=alsa-devel@alsa-project.org \
    --cc=jkysela@redhat.com \
    --cc=kay.sievers@vrfy.org \
    --cc=mznyfn@0pointer.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox