/[openvortex]/alsa/alsa-kernel/core/pcm.c
ViewVC logotype

Diff of /alsa/alsa-kernel/core/pcm.c

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

revision 1.2 by vizard, Sat May 31 02:35:09 2003 UTC revision 1.3 by vizard, Sun Jun 15 21:01:30 2003 UTC
# Line 641  int snd_pcm_new(snd_card_t * card, char Line 641  int snd_pcm_new(snd_card_t * card, char
641          pcm->card = card;          pcm->card = card;
642          pcm->device = device;          pcm->device = device;
643          if (id) {          if (id) {
644                  strncpy(pcm->id, id, sizeof(pcm->id) - 1);                  strlcpy(pcm->id, id, sizeof(pcm->id));
645          }          }
646          if ((err = snd_pcm_new_stream(pcm, SNDRV_PCM_STREAM_PLAYBACK, playback_count)) < 0) {          if ((err = snd_pcm_new_stream(pcm, SNDRV_PCM_STREAM_PLAYBACK, playback_count)) < 0) {
647                  snd_pcm_free(pcm);                  snd_pcm_free(pcm);

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