/[openvortex]/alsa/alsa-kernel/isa/ad1848/ad1848_lib.c
ViewVC logotype

Diff of /alsa/alsa-kernel/isa/ad1848/ad1848_lib.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.2 by vizard, Sat May 31 02:35:11 2003 UTC revision 1.3 by vizard, Sun Jun 15 21:01:31 2003 UTC
# Line 1148  int snd_ad1848_add_ctl(ad1848_t *chip, c Line 1148  int snd_ad1848_add_ctl(ad1848_t *chip, c
1148          ctl = snd_ctl_new1(&newctls[type], chip);          ctl = snd_ctl_new1(&newctls[type], chip);
1149          if (! ctl)          if (! ctl)
1150                  return -ENOMEM;                  return -ENOMEM;
1151          strncpy(ctl->id.name, name, sizeof(ctl->id.name)-1);          strlcpy(ctl->id.name, name, sizeof(ctl->id.name));
1152          ctl->id.index = index;          ctl->id.index = index;
1153          ctl->private_value = value;          ctl->private_value = value;
1154          if ((err = snd_ctl_add(chip->card, ctl)) < 0) {          if ((err = snd_ctl_add(chip->card, ctl)) < 0) {

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26