diff mbox

DocBook: media: struct v4l2_capability card field is a UTF-8 string

Message ID 1357590624-28567-1-git-send-email-laurent.pinchart@ideasonboard.com (mailing list archive)
State New, archived
Headers show

Commit Message

Laurent Pinchart Jan. 7, 2013, 8:30 p.m. UTC
The struct v4l2_capability card field stores the device name. That name
can be hardcoded in drivers, or be retrieved directly from the device.
The later is very common with USB devices. As several devices already
report names that include non-ASCII characters, update the field
description to use UTF-8.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
---
 .../DocBook/media/v4l/vidioc-querycap.xml          |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Comments

Hans Verkuil Jan. 11, 2013, 11:23 a.m. UTC | #1
On Mon January 7 2013 21:30:24 Laurent Pinchart wrote:
> The struct v4l2_capability card field stores the device name. That name
> can be hardcoded in drivers, or be retrieved directly from the device.
> The later is very common with USB devices. As several devices already
> report names that include non-ASCII characters, update the field
> description to use UTF-8.
>

I missed this patch on Monday, but better late than never:

Acked-by: Hans Verkuil <hans.verkuil@cisco.com>

> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
> ---
>  .../DocBook/media/v4l/vidioc-querycap.xml          |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/Documentation/DocBook/media/v4l/vidioc-querycap.xml b/Documentation/DocBook/media/v4l/vidioc-querycap.xml
> index 4c70215..d5a3c97 100644
> --- a/Documentation/DocBook/media/v4l/vidioc-querycap.xml
> +++ b/Documentation/DocBook/media/v4l/vidioc-querycap.xml
> @@ -76,7 +76,7 @@ make sure the strings are properly NUL-terminated.</para></entry>
>  	  <row>
>  	    <entry>__u8</entry>
>  	    <entry><structfield>card</structfield>[32]</entry>
> -	    <entry>Name of the device, a NUL-terminated ASCII string.
> +	    <entry>Name of the device, a NUL-terminated UTF-8 string.
>  For example: "Yoyodyne TV/FM". One driver may support different brands
>  or models of video hardware. This information is intended for users,
>  for example in a menu of available devices. Since multiple TV cards of
> 
--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/Documentation/DocBook/media/v4l/vidioc-querycap.xml b/Documentation/DocBook/media/v4l/vidioc-querycap.xml
index 4c70215..d5a3c97 100644
--- a/Documentation/DocBook/media/v4l/vidioc-querycap.xml
+++ b/Documentation/DocBook/media/v4l/vidioc-querycap.xml
@@ -76,7 +76,7 @@  make sure the strings are properly NUL-terminated.</para></entry>
 	  <row>
 	    <entry>__u8</entry>
 	    <entry><structfield>card</structfield>[32]</entry>
-	    <entry>Name of the device, a NUL-terminated ASCII string.
+	    <entry>Name of the device, a NUL-terminated UTF-8 string.
 For example: "Yoyodyne TV/FM". One driver may support different brands
 or models of video hardware. This information is intended for users,
 for example in a menu of available devices. Since multiple TV cards of