From: Lubomir Rintel <lkundrak@v3.sk>
To: Federico Simoncelli <federico.simoncelli@gmail.com>
Cc: alsa-devel@alsa-project.org, Federico Simoncelli <fsimonce@redhat.com>
Subject: Re: [PATCH 2/2] usbtv: add audio support
Date: Sun, 05 Jan 2014 17:43:52 +0100 [thread overview]
Message-ID: <1388940232.16586.8.camel@odvarok.lan> (raw)
In-Reply-To: <1388936292-8974-2-git-send-email-fsimonce@redhat.com>
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
next prev parent reply other threads:[~2014-01-05 16:44 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-01-05 15:38 [PATCH 1/2] usbtv: split core and video implementation Federico Simoncelli
2014-01-05 15:38 ` [PATCH 2/2] usbtv: add audio support Federico Simoncelli
2014-01-05 16:43 ` Lubomir Rintel [this message]
2014-01-05 16:37 ` [PATCH 1/2] usbtv: split core and video implementation Lubomir Rintel
-- strict thread matches above, loose matches on Subject: below --
2014-01-07 22:13 Federico Simoncelli
2014-01-07 22:13 ` [PATCH 2/2] usbtv: add audio support Federico Simoncelli
2014-02-04 8:22 ` Mauro Carvalho Chehab
2014-08-06 5:46 ` Lubomir Rintel
2014-08-06 5:46 ` Lubomir Rintel
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1388940232.16586.8.camel@odvarok.lan \
--to=lkundrak@v3.sk \
--cc=alsa-devel@alsa-project.org \
--cc=federico.simoncelli@gmail.com \
--cc=fsimonce@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.