From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752065AbcHHHwq (ORCPT ); Mon, 8 Aug 2016 03:52:46 -0400 Received: from ns.pmeerw.net ([84.19.176.92]:35925 "EHLO pmeerw.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751158AbcHHHwp (ORCPT ); Mon, 8 Aug 2016 03:52:45 -0400 Date: Mon, 8 Aug 2016 09:52:43 +0200 (CEST) From: Peter Meerwald-Stadler To: Adam Thomson cc: Mark Brown , Liam Girdwood , Jaroslav Kysela , Takashi Iwai , alsa-devel@alsa-project.org, Support Opensource , linux-kernel@vger.kernel.org Subject: Re: [alsa-devel] [PATCH 1/4] ASoC: da7213: Default to 64 BCLKs per WCLK to support all formats In-Reply-To: Message-ID: References: User-Agent: Alpine 2.02 (DEB 1266 2009-07-14) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > Previously code defaulted to 32 BCLKS per WCLK which meant 24 and > 32 bit DAI formats would not work properly. This patch fixes the > issue by defaulting to 64 BCLKs per WCLK. Tested-by: Peter Meerwald-Stadler > Signed-off-by: Adam Thomson > --- > sound/soc/codecs/da7213.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/sound/soc/codecs/da7213.c b/sound/soc/codecs/da7213.c > index e5527bc..bcf1834 100644 > --- a/sound/soc/codecs/da7213.c > +++ b/sound/soc/codecs/da7213.c > @@ -1247,8 +1247,8 @@ static int da7213_set_dai_fmt(struct snd_soc_dai *codec_dai, unsigned int fmt) > return -EINVAL; > } > > - /* By default only 32 BCLK per WCLK is supported */ > - dai_clk_mode |= DA7213_DAI_BCLKS_PER_WCLK_32; > + /* By default only 64 BCLK per WCLK is supported */ > + dai_clk_mode |= DA7213_DAI_BCLKS_PER_WCLK_64; > > snd_soc_write(codec, DA7213_DAI_CLK_MODE, dai_clk_mode); > snd_soc_update_bits(codec, DA7213_DAI_CTRL, DA7213_DAI_FORMAT_MASK, > -- Peter Meerwald-Stadler +43-664-2444418 (mobile)