From patchwork Tue Feb 19 03:59:35 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrey Smirnov X-Patchwork-Id: 2161401 Return-Path: X-Original-To: patchwork-linux-media@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id 16585DF24C for ; Tue, 19 Feb 2013 04:01:03 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932296Ab3BSEAS (ORCPT ); Mon, 18 Feb 2013 23:00:18 -0500 Received: from mail-pb0-f50.google.com ([209.85.160.50]:56615 "EHLO mail-pb0-f50.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932164Ab3BSEAL (ORCPT ); Mon, 18 Feb 2013 23:00:11 -0500 Received: by mail-pb0-f50.google.com with SMTP id up1so2003373pbc.37 for ; Mon, 18 Feb 2013 20:00:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:from:to:cc:subject:date:message-id:x-mailer:in-reply-to :references; bh=geNXpK/4r49uSlIL/fV/SwQtdjkJK9jeurvdarAgd1g=; b=YcRoyMymkmmRXZGj38wUY8zUxBXBpOOa3tXXECMiF94vDbccrdE5dFqBGYvHcrc7A9 CWHL15als/IyZzVAvi7a3nGUWc9hTfYJVL8b7SNPN3clPJ3r9KFVzS1RmlJXIavR5KBS xN06V4PX0bGqnPF/N6P1SnAtYKdwsTEvFIVvLPJIdvDPaUHpC5BWUIcYEmS/YOSfhzMe 23v6dkNtPy1NFdfKk8WsQQVDm7PzcDC9QTmgZ4REaf2iiHvUys7OS7QLhUof7SttdN27 UZb70CC+H/zNiqJEBNgv3tfErwKwSMj0Avp9qPFcBjP5zec/jYV7KJOvPehkCwSNQ+70 4Q5g== X-Received: by 10.68.237.165 with SMTP id vd5mr36373789pbc.52.1361246411272; Mon, 18 Feb 2013 20:00:11 -0800 (PST) Received: from localhost.localdomain (c-24-19-54-161.hsd1.wa.comcast.net. [24.19.54.161]) by mx.google.com with ESMTPS id 1sm16506432pbg.18.2013.02.18.20.00.09 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 18 Feb 2013 20:00:10 -0800 (PST) From: Andrey Smirnov To: andrew.smirnov@gmail.com Cc: hverkuil@xs4all.nl, broonie@opensource.wolfsonmicro.com, mchehab@redhat.com, sameo@linux.intel.com, perex@perex.cz, tiwai@suse.de, linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v4 7/7] sound/soc/codecs: Cosmetic changes to SI476X codec driver Date: Mon, 18 Feb 2013 19:59:35 -0800 Message-Id: <1361246375-8848-8-git-send-email-andrew.smirnov@gmail.com> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1361246375-8848-1-git-send-email-andrew.smirnov@gmail.com> References: <1361246375-8848-1-git-send-email-andrew.smirnov@gmail.com> Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org - Add appropriate license header - Change email address in MODULE_AUTHOR - Remove trailing whitespaces Signed-off-by: Andrey Smirnov --- sound/soc/codecs/si476x.c | 25 ++++++++++++++++++++++--- 1 file changed, 22 insertions(+), 3 deletions(-) diff --git a/sound/soc/codecs/si476x.c b/sound/soc/codecs/si476x.c index 30aebbe..68b648a 100644 --- a/sound/soc/codecs/si476x.c +++ b/sound/soc/codecs/si476x.c @@ -1,3 +1,22 @@ +/* + * sound/soc/codecs/si476x.c -- Codec driver for SI476X chips + * + * Copyright (C) 2012 Innovative Converged Devices(ICD) + * Copyright (C) 2013 Andrey Smirnov + * + * Author: Andrey Smirnov + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; version 2 of the License. + * + * This program is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + */ + #include #include #include @@ -156,7 +175,7 @@ static int si476x_codec_set_dai_fmt(struct snd_soc_dai *codec_dai, dev_err(codec_dai->codec->dev, "Failed to set output format\n"); return err; } - + return 0; } @@ -197,7 +216,7 @@ static int si476x_codec_hw_params(struct snd_pcm_substream *substream, err = snd_soc_update_bits(dai->codec, SI476X_DIGITAL_IO_OUTPUT_FORMAT, SI476X_DIGITAL_IO_OUTPUT_WIDTH_MASK, - (width << SI476X_DIGITAL_IO_SLOT_SIZE_SHIFT) | + (width << SI476X_DIGITAL_IO_SLOT_SIZE_SHIFT) | (width << SI476X_DIGITAL_IO_SAMPLE_SIZE_SHIFT)); if (err < 0) { dev_err(dai->codec->dev, "Failed to set output width\n"); @@ -266,6 +285,6 @@ static struct platform_driver si476x_platform_driver = { }; module_platform_driver(si476x_platform_driver); -MODULE_AUTHOR("Andrey Smirnov "); +MODULE_AUTHOR("Andrey Smirnov "); MODULE_DESCRIPTION("ASoC Si4761/64 codec driver"); MODULE_LICENSE("GPL");