mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Alistair John Strachan <s0348365@sms.ed.ac.uk>
To: Lee Revell <rlrevell@joe-job.com>
Cc: Gene Heskett <gene.heskett@verizon.net>,
	linux-kernel@vger.kernel.org, Andrew Benton <b3nt@ukonline.co.uk>,
	Takashi Iwai <tiwai@suse.de>,
	alsa-devel <alsa-devel@lists.sourceforge.net>
Subject: Re: ALSA problems with 2.6.18-rc3
Date: Wed, 9 Aug 2006 23:07:27 +0100	[thread overview]
Message-ID: <200608092307.27615.s0348365@sms.ed.ac.uk> (raw)
In-Reply-To: <1155159278.26338.208.camel@mindpipe>

On Wednesday 09 August 2006 22:34, Lee Revell wrote:
> On Wed, 2006-08-09 at 22:22 +0100, Alistair John Strachan wrote:
> > On Wednesday 09 August 2006 21:57, Lee Revell wrote:
> > > On Wed, 2006-08-09 at 16:51 -0400, Gene Heskett wrote:
> >
> > [snip]
> >
> > > > I already have the 'alsactl restore' in my rc.local.  Would there be
> > > > any harm in just adding the -F to that invocation, or will that just
> > > > restore it to a 'default' condition always.  Seems like it would,
> > > > canceling anything you have done & then did an 'alsactl store' to
> > > > save..
> > >
> > > That's what I was suggesting - just add -F to the alsactl restore in
> > > your init script.  It won't restore it to a default state - the only
> > > difference is that it will do a better job restoring your mixer state
> > > if new controls are added by a driver update.
> > >
> > > alsactl --help:
> > >
> > >   -F,--force      try to restore the matching controls as much as
> > > possible
> >
> > I assume there are drawbacks to such an option, since whatever method is
> > used to "force" the control may make a mistake if similarly named
> > controls are renamed.
> >
> > Personally, I think the correct approach would be to have more sensible
> > default values. Having the External Amplifier default off when it
> > cripples analogue output on emu10k1, and has no effect on digital output,
> > seems rather weird.
>
> It's impossible to predict the effect of some mixer controls across the
> wide range of hardware that ALSA supports.  What makes sound work on one
> machine is likely to break it on another.

However, ALSA _has_ defaults for these controls, which I believe are 
usually "off" or "zero". All I'm suggesting is that these defaults are 
plainly suboptimal for emu10k1, and probably other cards to which this 
statement simply does not apply. Shipping defaults is one thing, but shipping 
useless defaults is quite another. We have policy all over the kernel for 
providing "sane defaults" e.g. filesystem mount options.

> >  Also, I never really understood the rationale for the "all zeros"
> > mixer default. Why not 50%?
>
> This is policy and policy belongs in userspace.  Distros are free to
> ship with any default mixer settings they choose.

True, I suppose if the mixers aren't even vaguely compatible across 
hardware, "zero" is your best bet. I still see people reporting bugs (such as 
this) where the distro has failed them. -F is not a complete solution.

-- 
Cheers,
Alistair.

Final year Computer Science undergraduate.
1F2 55 South Clerk Street, Edinburgh, UK.

  reply	other threads:[~2006-08-09 22:07 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-08-08 20:28 Andrew Benton
2006-08-08 21:50 ` Lee Revell
2006-08-09 16:30   ` Andrew Benton
2006-08-09 16:35     ` Lee Revell
2006-08-09 16:51       ` [Alsa-devel] " Liam Girdwood
2006-08-09 18:17       ` Gene Heskett
2006-08-09 20:41         ` Lee Revell
2006-08-09 20:51           ` Gene Heskett
2006-08-09 20:57             ` Lee Revell
2006-08-09 21:22               ` Alistair John Strachan
2006-08-09 21:34                 ` Lee Revell
2006-08-09 22:07                   ` Alistair John Strachan [this message]
2006-08-09 22:11                     ` Lee Revell
2006-08-09 22:28                       ` Alistair John Strachan
2006-08-09 22:49                         ` Lee Revell
2006-08-10  8:47                         ` Takashi Iwai
2006-08-10  1:47               ` Gene Heskett
2006-08-10 13:13       ` [Alsa-devel] " Takashi Iwai
2006-08-09 10:58 ` Takashi Iwai

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=200608092307.27615.s0348365@sms.ed.ac.uk \
    --to=s0348365@sms.ed.ac.uk \
    --cc=alsa-devel@lists.sourceforge.net \
    --cc=b3nt@ukonline.co.uk \
    --cc=gene.heskett@verizon.net \
    --cc=linux-kernel@vger.kernel.org \
    --cc=rlrevell@joe-job.com \
    --cc=tiwai@suse.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

all inboxes | Powered by JetHome®