From mboxrd@z Thu Jan 1 00:00:00 1970 From: Lars-Peter Clausen Subject: cs42l52 alsa driver broken beep volume control Date: Thu, 20 Jun 2013 10:34:26 +0200 Message-ID: <51C2BE92.5020901@metafoo.de> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from smtp-out-035.synserver.de (smtp-out-035.synserver.de [212.40.185.35]) by alsa0.perex.cz (Postfix) with ESMTP id 002D2265211 for ; Thu, 20 Jun 2013 10:34:14 +0200 (CEST) List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org To: Brian Austin , Nicolas Schichan Cc: Linux-ALSA List-Id: alsa-devel@alsa-project.org Hi, I stumbled upon this while making some changes to the SOC_SINGLE_VALUE macro. For the Beep Volume control the cs42l52 driver sets the invert field to 7, which doesn't make much sense and is causing a build warning with my changes. I assume the intention was to actually use SOC_SINGLE_SX_TLV instead of SOC_SINGLE_TLV. But I'm not sure if setting min to 0x1f and max 0x7 is right either. Also according to the datasheet the tlv dB info seems to be wrong. The Beep Volume uses 2dB steps while the info uses 0.5dB steps. - Lars