summary refs log tree commit diff
path: root/pkgs/os-specific/linux/wis-go7007/alsa.patch
blob: 64fd9310e7757454aeee588d97eba40530684795 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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) {