All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jaroslav Kysela <perex@perex.cz>
To: Takashi Iwai <tiwai@suse.de>
Cc: ALSA development <alsa-devel@alsa-project.org>,
	Mark Brown <broonie@kernel.org>,
	Pierre-louis Bossart <pierre-louis.bossart@linux.intel.com>
Subject: Re: [PATCH] ALSA: core - add more card sysfs entries
Date: Thu, 8 Apr 2021 13:21:52 +0200	[thread overview]
Message-ID: <45acc908-3603-3479-9fb2-5206339a9ace@perex.cz> (raw)
In-Reply-To: <s5h35w182a5.wl-tiwai@suse.de>

Dne 08. 04. 21 v 13:05 Takashi Iwai napsal(a):
> On Thu, 08 Apr 2021 12:38:19 +0200,
> Takashi Sakamoto wrote:
>>
>> It should be done to emit snd_ctl_event when changing card parameters.
>> Silent change is the worst since many userspace applications can refer
>> to them in advance.
> 
> Agreed.  The changes of those names during operation is fairly
> intrusive, and can bring many side-effects.

The event may be nice, indeed. The locking is also not so safe. But it should
be implemented separately.

> Any reason that mixername and co have to be changeable inevitably?
> If that's about UCM profile and its selection of the hardware
> configuration, can it be another additional information instead of
> overwriting the existing strings set by the driver?

Thanks for the discussion. I expected it. The ASoC drivers set all those
parameters in an inconsistent way (nobody verifies that) and I just propose to
fix things at boot in the user space. The goal is not to allow the random user
changes, but to modify this settings via udev in a persistent way. Also,
another firmware can really make the card different from the user space view.

Yes, it's for UCM, but even if we don't consider this purpose, the kernel API
should return some reasonable information rather than very generic (or empty)
strings which are used in the native ALSA utilities for example. So, I think
that we should allow to "fix" this info also from the user space rather than
to extend the existing API.

					Jaroslav

-- 
Jaroslav Kysela <perex@perex.cz>
Linux Sound Maintainer; ALSA Project; Red Hat, Inc.

  reply	other threads:[~2021-04-08 11:23 UTC|newest]

Thread overview: 35+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-04-08  9:43 [PATCH] ALSA: core - add more card sysfs entries Jaroslav Kysela
2021-04-08 10:38 ` Takashi Sakamoto
2021-04-08 11:05   ` Takashi Iwai
2021-04-08 11:21     ` Jaroslav Kysela [this message]
2021-04-08 12:05       ` Mark Brown
2021-04-08 13:18         ` Takashi Iwai
2021-04-08 14:12           ` Pierre-Louis Bossart
2021-04-08 14:47             ` Mark Brown
2021-04-08 15:04               ` Jaroslav Kysela
2021-04-08 15:11                 ` Amadeusz Sławiński
2021-04-08 15:01           ` Jaroslav Kysela
2021-04-08 15:32             ` Pierre-Louis Bossart
2021-04-08 16:53               ` Jaroslav Kysela
2021-04-08 18:51                 ` Pierre-Louis Bossart
2021-04-08 19:25                   ` Jaroslav Kysela
2021-04-08 19:41                     ` Pierre-Louis Bossart
2021-04-08 19:56                       ` Curtis Malainey
2021-04-08 20:01                       ` Jaroslav Kysela
2021-04-09 16:43                         ` Jaroslav Kysela
2021-04-09  7:39                   ` Takashi Iwai
2021-04-09  8:34                     ` Jaroslav Kysela
2021-04-09  8:55                       ` Takashi Iwai
2021-04-09  9:09                       ` Amadeusz Sławiński
2021-04-09 13:54                         ` Jaroslav Kysela
2021-04-09 15:55                         ` Pierre-Louis Bossart
2021-04-09 16:38                           ` Takashi Iwai
2021-04-09 18:55                             ` Pierre-Louis Bossart
2021-04-09 16:39                           ` Mark Brown
2021-04-08 16:22             ` Mark Brown
2021-04-08 16:50               ` Pierre-Louis Bossart
2021-04-08 18:20                 ` Mark Brown
2021-04-08 17:20               ` Jaroslav Kysela
2021-04-08 17:47                 ` Mark Brown
2021-04-08 11:25   ` Jaroslav Kysela
2021-04-10 19:11 ` Jaroslav Kysela

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=45acc908-3603-3479-9fb2-5206339a9ace@perex.cz \
    --to=perex@perex.cz \
    --cc=alsa-devel@alsa-project.org \
    --cc=broonie@kernel.org \
    --cc=pierre-louis.bossart@linux.intel.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 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.