mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-11-05 13:30:00 -05:00
ucm: implement sysset sequence command
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
parent
2b418648cf
commit
1c6fb20232
5 changed files with 107 additions and 9 deletions
|
|
@ -508,12 +508,12 @@ static char *rval_sysfs(snd_use_case_mgr_t *uc_mgr ATTRIBUTE_UNUSED, const char
|
|||
char path[PATH_MAX], link[PATH_MAX + 1];
|
||||
struct stat sb;
|
||||
ssize_t len;
|
||||
char *e;
|
||||
const char *e;
|
||||
int fd;
|
||||
|
||||
e = getenv("SYSFS_PATH");
|
||||
e = uc_mgr_sysfs_root();
|
||||
if (e == NULL)
|
||||
e = "/sys";
|
||||
return NULL;
|
||||
if (id[0] == '/')
|
||||
id++;
|
||||
snprintf(path, sizeof(path), "%s/%s", e, id);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue