5 Jan
2014
5 Jan
'14
5:43 p.m.
On Sun, 2014-01-05 at 16:38 +0100, Federico Simoncelli wrote: ...
- static const u16 setup[][2] = {
+/* { USBTV_BASE + 0x00a2, 0x0013 }, */
A minor style issue here, please avoid useless comments.
- strncpy(card->driver, usbtv->dev->driver->name,
sizeof(card->driver) - 1);
- strncpy(card->shortname, "usbtv", sizeof(card->shortname) - 1);
I suggest you use the strlcpy() instead, as is used in the rest of the driver. Aside from that it is more consistent, it would make it a bit easier to verify that the string is properly terminated without having to take a look at snd_card_create() to see whether zeroes out the structure for you.
- strncpy(pcm->name, "USBTV Audio Input", sizeof(pcm->name) - 1);
Ditto.
Thank you! Lubo