ucm: let rval_sysfs check the device/driver/module first

GitHub pull_request - opened github at alsa-project.org
Wed Aug 19 06:10:57 CEST 2020


alsa-project/alsa-lib pull request #79 was opened from jason77-wang:

We plan to use the sound driver module's name for the top ucm's name,
I checked it on 3 different ASoC machines, the device/driver links to
machine driver while deice/driver/module links to the sound driver
module, so change the code to readlink the device/driver/module first,
if it fails then readlink the device/driver.

This is the output from those 3 machines:
$readlink /sys/class/sound/card0/device/driver
../../../../bus/platform/drivers/skl_hda_dsp_generic
$readlink /sys/class/sound/card0/device/driver/module
../../../../module/snd_soc_skl_hda_dsp

$readlink /sys/class/sound/card2/device/driver
../../../../../bus/platform/drivers/acp_pdm_mach
$readlink /sys/class/sound/card2/device/driver/module
../../../../module/snd_acp3x_rn

$readlink /sys/class/sound/card0/device/driver
../../../../bus/platform/drivers/sof_sdw
$readlink /sys/class/sound/card0/device/driver/module
../../../../module/snd_soc_sof_sdw

Signed-off-by: Hui Wang <hui.wang at canonical.com>

Request URL   : https://github.com/alsa-project/alsa-lib/pull/79
Patch URL     : https://github.com/alsa-project/alsa-lib/pull/79.patch
Repository URL: https://github.com/alsa-project/alsa-lib


More information about the Alsa-devel mailing list