1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-18 10:56:53 +00:00
nixpkgs/pkgs/os-specific/linux/wis-go7007/alsa.patch

21 lines
710 B
Diff
Raw Normal View History

diff -rc wis-go7007-linux-0.9.8-orig/apps/gorecord.c wis-go7007-linux-0.9.8/apps/gorecord.c
*** wis-go7007-linux-0.9.8-orig/apps/gorecord.c 2006-04-02 00:35:17.000000000 +0200
--- wis-go7007-linux-0.9.8/apps/gorecord.c 2008-06-20 19:47:48.000000000 +0200
***************
*** 196,202 ****
sprintf(sympath, "/sys/class/sound/pcmC%dD0c/device", i);
if (realpath(sympath, canonpath) == NULL)
continue;
! if (!strcmp(gopath, canonpath))
break;
}
if (i == 20) {
--- 196,202 ----
sprintf(sympath, "/sys/class/sound/pcmC%dD0c/device", i);
if (realpath(sympath, canonpath) == NULL)
continue;
! if (!strncmp(gopath, canonpath, strlen(gopath)))
break;
}
if (i == 20) {