Index | Thread | Search

From:
Crystal Kolipe <kolipe.c@exoticsilicon.com>
Subject:
Re: sndio: show the real device name in server.device control
To:
Alexandre Ratchov <alex@caoua.org>
Cc:
tech@openbsd.org
Date:
Thu, 7 Mar 2024 08:26:46 -0300

Download raw body.

Thread
On Thu, Mar 07, 2024 at 11:33:54AM +0100, Alexandre Ratchov wrote:
> This diff adds a "display string" to sndio controls, and starts using
> it to report the device names of the server.device control. Ex:
> 
> $ sndioctl
> output.level=1.000
> output.mute=0
> server.device=6(uaudio2)
> 
> $ sndioctl -i server.device
> server.device=0(azalia0),2(envy0),3(envy1),4(uaudio0),5(uaudio1),6(uaudio2)
> 
> Above strings are simply the driver names. The plan is to change the
> low-level drivers to report the chipset, the vendor/product name, the
> codec models, or whatever appropriate; there are preliminary diffs for
> this.

With this first version of the code, these strings are unique.  Do we
intend to guarantee this when the names are expanded to include further
chipset information?

If not, should we mention this somewhere to avoid userland code relying
on behaviour that will change later on?