All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jaroslav Kysela <perex@perex.cz>
To: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>,
	Takashi Iwai <tiwai@suse.de>, Mark Brown <broonie@kernel.org>
Cc: ALSA development <alsa-devel@alsa-project.org>
Subject: Re: [PATCH] ALSA: core - add more card sysfs entries
Date: Thu, 8 Apr 2021 18:53:43 +0200	[thread overview]
Message-ID: <3b33595e-777c-90b2-6d65-346c9bf6e003@perex.cz> (raw)
In-Reply-To: <3107db1d-f97d-539a-05db-6f880b762f00@linux.intel.com>

Dne 08. 04. 21 v 17:32 Pierre-Louis Bossart napsal(a):
> 
> 
> On 4/8/21 10:01 AM, Jaroslav Kysela wrote:
>> When we have a common standard layer for the plug-and-play handling (udev), we
>> should concentrate to allow changing / refining of this information there.
>> Those strings are not used for anything else than the user space. So from my
>> view, there's no reason to create another mechanism to handle the overrides.
>> It should be a safe, fast, flexible and_optional_  solution. The udev can
>> alter the sysfs attributes directly without any hassle with the file
>> modifications or looking for another way to pass / store this information
>> somewhere.
> 
> There's one part where I am lost.
> 
> The initial idea of udev what to modify kernel parameters to pick a 
> different path for firmware/topology before probing the PCI driver. At 

This may be a problematic point. The kernel cmdline cannot be modified from
udev (as far as I know). The module parameters can be set using modprobe's
config files or when loaded with sysfs attributes (/sys/module/*/parameters).
Eventually, you can call the modprobe command with custom module parameters
when the appropriate MODALIAS is probed.

Perhaps, I'm missing something here, too. Some example udev rules may help.

> that point there is no card and no sysfs attributes just yet, they will 
> be added at a later point during the probe itself.
> 
> So are we talking about a second set of rules that would be applied when 
> the card is created?

Yes, I'm talking about rules which depends on the sound driver specific sysfs
attributes (you can match the modified /sys/module/*/parameters here).

						Jaroslav

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

  reply	other threads:[~2021-04-08 16:54 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
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 [this message]
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=3b33595e-777c-90b2-6d65-346c9bf6e003@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.