All of lore.kernel.org
 help / color / mirror / Atom feed
From: Takashi Iwai <tiwai@suse.de>
To: John Frankish <john.frankish@outlook.com>
Cc: "alsa-devel@alsa-project.org" <alsa-devel@alsa-project.org>
Subject: Re: Intel alsa sound request for Laptops
Date: Tue, 31 Jan 2017 10:13:27 +0100	[thread overview]
Message-ID: <s5hk29blhhk.wl-tiwai@suse.de> (raw)
In-Reply-To: <DBXPR04MB3340C1D5BD1B60E46F0D17FF34A0@DBXPR04MB334.eurprd04.prod.outlook.com>

On Tue, 31 Jan 2017 09:37:46 +0100,
John Frankish wrote:
> 
> > > > > > > Is there any chance of that being fixed in the future?
> > > > > > >
> > > > > > As already mentioned, the "fix" is to use PA.
> > > > > >
> > > > > Using pulseaudio is not going to fix the broken analogue sound 
> > > > > when the i915 driver is not loaded
> > > >
> > > > Did you really test it?  If yes, please give the log.
> > > >
> > > As per earlier in the thread:
> > > 
> > > $ aplay -l
> > > **** List of PLAYBACK Hardware Devices **** card 1: PCH [HDA Intel 
> > > PCH], device 0: ALC3226 Analog [ALC3226 Analog]
> > > Subdevices: 1/1
> > > 
> > > $ alsamixer
> > > cannot open mixer: No such file or directory
> > > 
> > You didn't use PA, right?
> > 
> We're testing alsa so, no, I did not use pulseaudio.
> 
> > If you use PA, the hole of the card 0 doesn't matter.  PA probes the all devices and manages the right one.
> > Also, there is pulse alsa-plugins, and this allows the native ALSA-API apps to talk with PA.
> > 
> > I feel like a broken record, but let me repeat:
> > if you don't use PA, you need the manual adjustment.
> > 
> > In short, pass snd_hda_intel.index=1,0 option no matter whether to pass nomodeset or not when you're using a
> > HSW or BDW machine and seeing such a problem.  Then the analog audio will be assigned to card#0.
> > 
> > There is no "fix" in the ALSA side, because it's no real issue in ALSA layer.
> > ALSA driver and lib are for low-level accesses, and they don't assure the full automation in a high-level device management.
> > The policy decision -- which device to be preferred -- is such a high-level management.
> > If you don't agree with the system default values, it needs the manual adjustment.
> > 
> > This is normal in allover the kernel drivers: think of other devices, e.g. eth0 vs eth1, or /dev/sda vs /dev/sdb.
> > 
> I can understand the rationale behind using the first sound device the system discovers as the default sound device.
> 
> However, if the default sound device has been disabled by not loading i915, then alsa should be smart enough to use the next available sound device without the need to resort to obscure commands (snd_hda_intel.index=1,0) or additional software (pulseaudio).

Sorry, ALSA layer isn't designed to be smart.  It's rather dumb, gives
simply what the kernel provides.  You can implement many things on top
of it in a form of plugins, but the basic policy is not to modify the
given stuff, and pass it as is.

And, as mentioned, such a smartness can be implemented in another
layer where you have a better view over the whole devices, too.


Takashi

  reply	other threads:[~2017-01-31  9:13 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-01-28 12:46 Intel alsa sound request for Laptops John Frankish
2017-01-28 15:56 ` Takashi Iwai
2017-01-28 16:54   ` John Frankish
2017-01-28 20:20     ` Takashi Iwai
2017-01-29  5:27       ` John Frankish
2017-01-29  7:49         ` Takashi Iwai
2017-01-29  8:15           ` John Frankish
2017-01-29  8:35             ` Takashi Iwai
2017-01-29  9:59               ` John Frankish
2017-01-29 12:25                 ` Takashi Iwai
2017-01-29 13:06                   ` John Frankish
2017-01-29 13:47                     ` Takashi Iwai
2017-01-29 14:23                       ` John Frankish
2017-01-29 22:24                         ` John Rigg
2017-01-30 20:21                         ` Takashi Iwai
2017-01-31  6:40                           ` John Frankish
2017-01-31  7:19                             ` Takashi Iwai
2017-01-31  7:47                               ` John Frankish
2017-01-31  8:16                                 ` Takashi Iwai
2017-01-31  8:37                                   ` John Frankish
2017-01-31  9:13                                     ` Takashi Iwai [this message]
2017-01-31 10:37                                       ` Lars-Peter Clausen
2017-01-31 10:48                                         ` Takashi Iwai
2017-01-29 13:23             ` Lars-Peter Clausen

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=s5hk29blhhk.wl-tiwai@suse.de \
    --to=tiwai@suse.de \
    --cc=alsa-devel@alsa-project.org \
    --cc=john.frankish@outlook.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.