Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1652411ybt; Thu, 2 Jul 2020 10:23:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJybNiO9KOH+pmGzOOwZJ9tdiIk4T0VV63k1WaS6AkYwbVIB63gA6UdBJY+/kddAXxm9p1Xs X-Received: by 2002:aa7:c5d4:: with SMTP id h20mr35254411eds.115.1593710614094; Thu, 02 Jul 2020 10:23:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593710614; cv=none; d=google.com; s=arc-20160816; b=qpmdObkddKdkPHI9fGFR7MUqycUdXKyOTnmtd57vUmh6ZlLDCS7BpQCjmrC9UCZtAX n+UU34N8xZ52Sgl2xbSUoweiGPppgdh664NztknwsgtFCB3bNyNg7mK8xhCUtjDzN9pj 2aF4Ln0W/3OXyU5i369M9WoZnDQlPrf4FNn/ne5GGxz6PIPNKY9sJ7CXclihD4rofKM/ By97vfopt4vcrr9MA7B25k7TqeOafW3T316hz54ZE5Jan3x65vwkQcwzCac88V32fhDX q46ArcwxILI5p/CsYwNwTIsIheM++4WSYaa/DOcMaupHFiA7gmT3BXeexjuJ40zouMJa 70LQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :ironport-sdr:ironport-sdr; bh=j7zlRV2nu1W0N4xwbpguqDn1cRtTFxdC3LZ+4tCgwpc=; b=mPKURGg+X1P8NQUw2LsxqpKBliEmw/LNdkecOSbLtNSQ9I9oxOISMQ1IQOu9UnBpET z6Al/d0ztFicCJXYcqgqzZtS4hzi2ik1NQDt+1XvpIyk0YgOhqUKGqOhbGsfIULUtzi/ SZoi1jHYVWzDz+9hTga27a9k0QVIudyRYxvs5MLuemmkAIjyq4FjEjcvkY0GMYCzZ6Uc hez/JR5j50W0Sp8tguaZg0iNs5Bx0AHTtjtkc/nf1bwhtaQCxSWPqlpPlXXM2xydoEED uKbgx4yUqpYLifaDULK8mB6ednG0tph0tOmVpZHvLVEVoYtAMB+pUk9AH5pvgw246gQ0 ta5A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b21si6192075ejz.710.2020.07.02.10.23.11; Thu, 02 Jul 2020 10:23:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727881AbgGBRWy (ORCPT + 99 others); Thu, 2 Jul 2020 13:22:54 -0400 Received: from mga02.intel.com ([134.134.136.20]:2603 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727856AbgGBRWx (ORCPT ); Thu, 2 Jul 2020 13:22:53 -0400 IronPort-SDR: EtChEPvKkCzuSE8nqIpH6B9+KvAZXIhua6ku1QHkhRnixig7BvpL4IhXb1Wrtfjyrpt4dqzih3 6O5dqqkPyCYA== X-IronPort-AV: E=McAfee;i="6000,8403,9670"; a="135255677" X-IronPort-AV: E=Sophos;i="5.75,304,1589266800"; d="scan'208";a="135255677" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Jul 2020 10:22:52 -0700 IronPort-SDR: 4tbJVHoxpfHyKr4pVs60jgiNeWvWfkvRCg1DzXQtBcCXKNQF0yZDHTy7phJdY91tVoRs9s7GDU RPNOnzHJu6JQ== X-IronPort-AV: E=Sophos;i="5.75,304,1589266800"; d="scan'208";a="356521264" Received: from nzbastur-mobl1.amr.corp.intel.com (HELO pbossart-mobl3.amr.corp.intel.com) ([10.255.231.182]) by orsmga001-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Jul 2020 10:22:51 -0700 From: Pierre-Louis Bossart To: alsa-devel@alsa-project.org Cc: tiwai@suse.de, broonie@kernel.org, Pierre-Louis Bossart , Timur Tabi , Nicolin Chen , Xiubo Li , Fabio Estevam , Liam Girdwood , Jaroslav Kysela , Takashi Iwai , linuxppc-dev@lists.ozlabs.org (open list:FREESCALE SOC SOUND DRIVERS), linux-kernel@vger.kernel.org (open list) Subject: [PATCH 6/6] ASoC: fsl: fsl_esai: fix kernel-doc Date: Thu, 2 Jul 2020 12:22:27 -0500 Message-Id: <20200702172227.164474-7-pierre-louis.bossart@linux.intel.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200702172227.164474-1-pierre-louis.bossart@linux.intel.com> References: <20200702172227.164474-1-pierre-louis.bossart@linux.intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix W=1 warnings. Fix kernel-doc syntax and add missing parameters. Signed-off-by: Pierre-Louis Bossart --- sound/soc/fsl/fsl_esai.c | 32 ++++++++++++++++++-------------- 1 file changed, 18 insertions(+), 14 deletions(-) diff --git a/sound/soc/fsl/fsl_esai.c b/sound/soc/fsl/fsl_esai.c index cbcb70d6f8c8..a1db69061b4b 100644 --- a/sound/soc/fsl/fsl_esai.c +++ b/sound/soc/fsl/fsl_esai.c @@ -22,8 +22,7 @@ SNDRV_PCM_FMTBIT_S24_LE) /** - * fsl_esai_soc_data: soc specific data - * + * struct fsl_esai_soc_data - soc specific data * @imx: for imx platform * @reset_at_xrun: flags for enable reset operaton */ @@ -33,8 +32,7 @@ struct fsl_esai_soc_data { }; /** - * fsl_esai: ESAI private data - * + * struct fsl_esai - ESAI private data * @dma_params_rx: DMA parameters for receive channel * @dma_params_tx: DMA parameters for transmit channel * @pdev: platform device pointer @@ -49,6 +47,8 @@ struct fsl_esai_soc_data { * @fifo_depth: depth of tx/rx FIFO * @slot_width: width of each DAI slot * @slots: number of slots + * @tx_mask: slot mask for TX + * @rx_mask: slot mask for RX * @channels: channel num for tx or rx * @hck_rate: clock rate of desired HCKx clock * @sck_rate: clock rate of desired SCKx clock @@ -157,13 +157,15 @@ static irqreturn_t esai_isr(int irq, void *devid) } /** - * This function is used to calculate the divisors of psr, pm, fp and it is - * supposed to be called in set_dai_sysclk() and set_bclk(). + * fsl_esai_divisor_cal - This function is used to calculate the + * divisors of psr, pm, fp and it is supposed to be called in + * set_dai_sysclk() and set_bclk(). * + * @dai: pointer to DAI + * @tx: current setting is for playback or capture * @ratio: desired overall ratio for the paticipating dividers * @usefp: for HCK setting, there is no need to set fp divider * @fp: bypass other dividers by setting fp directly if fp != 0 - * @tx: current setting is for playback or capture */ static int fsl_esai_divisor_cal(struct snd_soc_dai *dai, bool tx, u32 ratio, bool usefp, u32 fp) @@ -250,13 +252,12 @@ static int fsl_esai_divisor_cal(struct snd_soc_dai *dai, bool tx, u32 ratio, } /** - * This function mainly configures the clock frequency of MCLK (HCKT/HCKR) - * - * @Parameters: - * clk_id: The clock source of HCKT/HCKR + * fsl_esai_set_dai_sysclk - This function mainly configures the clock frequency of MCLK (HCKT/HCKR) + * @dai: pointer to DAI + * @clk_id: The clock source of HCKT/HCKR * (Input from outside; output from inside, FSYS or EXTAL) - * freq: The required clock rate of HCKT/HCKR - * dir: The clock direction of HCKT/HCKR + * @freq: The required clock rate of HCKT/HCKR + * @dir: The clock direction of HCKT/HCKR * * Note: If the direction is input, we do not care about clk_id. */ @@ -358,7 +359,10 @@ static int fsl_esai_set_dai_sysclk(struct snd_soc_dai *dai, int clk_id, } /** - * This function configures the related dividers according to the bclk rate + * fsl_esai_set_bclk - This function configures the related dividers according to the bclk rate + * @dai: pointer to DAI + * @tx: direction boolean + * @freq: bclk freq */ static int fsl_esai_set_bclk(struct snd_soc_dai *dai, bool tx, u32 freq) { -- 2.25.1