3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/os-specific/linux/wis-go7007/alsa.patch
Eelco Dolstra a64c9e4b8f * Some patches to make gorecord more useful.
svn path=/nixpkgs/trunk/; revision=12172
2008-06-20 18:17:27 +00:00

21 lines
710 B
Diff

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) {