From: Shuah Khan <shuahkh@osg.samsung.com>
To: Hans Verkuil <hverkuil@xs4all.nl>,
mchehab@osg.samsung.com, hans.verkuil@cisco.com
Cc: linux-media@vger.kernel.org, linux-kernel@vger.kernel.org,
Shuah Khan <shuahkh@osg.samsung.com>
Subject: Re: [PATCH] media: add prefixes to interface types
Date: Fri, 4 Mar 2016 13:44:35 -0700 [thread overview]
Message-ID: <56D9F3B3.2070601@osg.samsung.com> (raw)
In-Reply-To: <56D9468C.3090205@xs4all.nl>
Hi Hans,
Thanks for the review.
Mauro,
Do you prefer dvb-conditional-access or dvb-ca?
thanks,
-- Shuah
On 03/04/2016 01:25 AM, Hans Verkuil wrote:
>
>
> On 03/04/2016 01:08 AM, Shuah Khan wrote:
>> Add missing prefixes for DVB, V4L, and ALSA interface types.
>>
>> Signed-off-by: Shuah Khan <shuahkh@osg.samsung.com>
>> ---
>> drivers/media/media-entity.c | 32 ++++++++++++++++----------------
>> 1 file changed, 16 insertions(+), 16 deletions(-)
>>
>> diff --git a/drivers/media/media-entity.c b/drivers/media/media-entity.c
>> index bcd7464..561c939 100644
>> --- a/drivers/media/media-entity.c
>> +++ b/drivers/media/media-entity.c
>> @@ -46,41 +46,41 @@ static inline const char *intf_type(struct media_interface *intf)
>> {
>> switch (intf->type) {
>> case MEDIA_INTF_T_DVB_FE:
>> - return "frontend";
>> + return "dvb-frontend";
>> case MEDIA_INTF_T_DVB_DEMUX:
>> - return "demux";
>> + return "dvb-demux";
>> case MEDIA_INTF_T_DVB_DVR:
>> - return "DVR";
>> + return "dvb-DVR";
>
> 'dvb-dvr', everything else is lower case as well.
>
>> case MEDIA_INTF_T_DVB_CA:
>> - return "CA";
>> + return "dvb-conditional-access";
>
> I'd keep this 'dvb-ca', unless Mauro likes this better.
>
>> case MEDIA_INTF_T_DVB_NET:
>> - return "dvbnet";
>> + return "dvb-net";
>> case MEDIA_INTF_T_V4L_VIDEO:
>> - return "video";
>> + return "v4l-video";
>> case MEDIA_INTF_T_V4L_VBI:
>> - return "vbi";
>> + return "v4l-vbi";
>> case MEDIA_INTF_T_V4L_RADIO:
>> - return "radio";
>> + return "v4l-radio";
>> case MEDIA_INTF_T_V4L_SUBDEV:
>> return "v4l2-subdev";
>
> Change this to 'v4l-subdev'.
>
>> case MEDIA_INTF_T_V4L_SWRADIO:
>> - return "swradio";
>> + return "v4l-swradio";
>> case MEDIA_INTF_T_ALSA_PCM_CAPTURE:
>> - return "pcm-capture";
>> + return "alsa-pcm-capture";
>> case MEDIA_INTF_T_ALSA_PCM_PLAYBACK:
>> - return "pcm-playback";
>> + return "alsa-pcm-playback";
>> case MEDIA_INTF_T_ALSA_CONTROL:
>> return "alsa-control";
>> case MEDIA_INTF_T_ALSA_COMPRESS:
>> - return "compress";
>> + return "alsa-compress";
>> case MEDIA_INTF_T_ALSA_RAWMIDI:
>> - return "rawmidi";
>> + return "alsa-rawmidi";
>> case MEDIA_INTF_T_ALSA_HWDEP:
>> - return "hwdep";
>> + return "alsa-hwdep";
>> case MEDIA_INTF_T_ALSA_SEQUENCER:
>> - return "sequencer";
>> + return "alsa-sequencer";
>> case MEDIA_INTF_T_ALSA_TIMER:
>> - return "timer";
>> + return "alsa-timer";
>> default:
>> return "unknown-intf";
>> }
>>
>
> Regards,
>
> Hans
>
--
Shuah Khan
Sr. Linux Kernel Developer
Open Source Innovation Group
Samsung Research America (Silicon Valley)
shuahkh@osg.samsung.com | (970) 217-8978
prev parent reply other threads:[~2016-03-04 20:44 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-03-04 0:08 [PATCH] media: add prefixes to interface types Shuah Khan
2016-03-04 8:25 ` Hans Verkuil
2016-03-04 20:44 ` Shuah Khan [this message]
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=56D9F3B3.2070601@osg.samsung.com \
--to=shuahkh@osg.samsung.com \
--cc=hans.verkuil@cisco.com \
--cc=hverkuil@xs4all.nl \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-media@vger.kernel.org \
--cc=mchehab@osg.samsung.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox