Skip to content

Commit

Permalink
V4L/DVB: cx18-alsa: name alsa device after the actual card
Browse files Browse the repository at this point in the history
Use the cx18 board name in the ALSA description, to make it easier for users
who run "arecord -l" to see which device they should be looking for.

Also, use strlcpy() instead of strcpy().

Signed-off-by: Devin Heitmueller <dheitmueller@kernellabs.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
  • Loading branch information
Devin Heitmueller authored and Mauro Carvalho Chehab committed Feb 26, 2010
1 parent 1ec1c9b commit 5eb9978
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/media/video/cx18/cx18-alsa-pcm.c
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ int snd_cx18_pcm_create(struct snd_cx18_card *cxsc)
snd_pcm_set_ops(sp, SNDRV_PCM_STREAM_CAPTURE, &snd_cx18_pcm_capture_ops);
sp->info_flags = 0;
sp->private_data = cxsc;
strcpy(sp->name, "Conexant cx23418 Capture");
strlcpy(sp->name, cx->card_name, sizeof(sp->name));

return 0;

Expand Down

0 comments on commit 5eb9978

Please sign in to comment.