23 Mar
2020
23 Mar
'20
9:21 p.m.
On 3/23/20 2:41 PM, Mark Brown wrote:
On Mon, Mar 23, 2020 at 02:36:23PM -0500, Pierre-Louis Bossart wrote:
Add attribute and show the components string. This is useful to see what is provided to userspace and e.g. used by UCM to understand the card configuration:
root@plb:~# more /sys/class/sound/card0/components HDA:8086280b,80860101,00100000 cfg-spk:2 hs:rt711 spk:rt1308 mic:rt715
Sysfs is supposed to be one value per file so this should be a directory with a file for each component I guess.
that's fair, but the 'value' is already a string here. There's no syntax or grammar that would define what the contents of the string would be, so it'd be difficult to define any sort of ABI. Are you saying sysfs can't be used here?