From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail.kapsi.fi ([217.30.184.167]:59674 "EHLO mail.kapsi.fi" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932243AbaEGM5S (ORCPT ); Wed, 7 May 2014 08:57:18 -0400 Message-ID: <536A2DA7.7050803@iki.fi> Date: Wed, 07 May 2014 15:57:11 +0300 From: Antti Palosaari MIME-Version: 1.0 To: Hans Verkuil , Mauro Carvalho Chehab , LMML Subject: V4L control units Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-media-owner@vger.kernel.org List-ID: Moikka What is preferred way implement controls that could have some known unit or unknown unit? For example for gain controls, I would like to offer gain in unit of dB (decibel) and also some unknown driver specific unit. Should I two controls, one for each unit? Like that V4L2_CID_RF_TUNER_LNA_GAIN_AUTO V4L2_CID_RF_TUNER_LNA_GAIN V4L2_CID_RF_TUNER_LNA_GAIN_dB regards Antti -- http://palosaari.fi/