From mboxrd@z Thu Jan 1 00:00:00 1970 From: Timur Tabi Subject: Re: [PATCH v3 1/6] ASoC: fsl_ssi: Real hardware channels max number is 32 Date: Mon, 18 Jan 2016 09:46:07 -0600 Message-ID: <569D08BF.7000008@tabi.org> References: <1453130771-24419-1-git-send-email-arnaud.mouiche@invoxia.com> <1453130771-24419-2-git-send-email-arnaud.mouiche@invoxia.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit Return-path: Received: from muin.pair.com (muin.pair.com [209.68.1.55]) by alsa0.perex.cz (Postfix) with ESMTP id E3D45260534 for ; Mon, 18 Jan 2016 16:46:10 +0100 (CET) In-Reply-To: <1453130771-24419-2-git-send-email-arnaud.mouiche@invoxia.com> 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: Arnaud Mouiche , Nicolin Chen , Xiubo Li , Liam Girdwood , Mark Brown , alsa-devel@alsa-project.org, Caleb Crome List-Id: alsa-devel@alsa-project.org Arnaud Mouiche wrote: > The max number of slots in TDM mode is 32: > - Frame Rate Divider Control is a 5bit value > - Time slot mask registers control 32 slots. > > Signed-off-by: Arnaud Mouiche > --- > sound/soc/fsl/fsl_ssi.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/sound/soc/fsl/fsl_ssi.c b/sound/soc/fsl/fsl_ssi.c > index 40dfd8a..cfc78b8 100644 > --- a/sound/soc/fsl/fsl_ssi.c > +++ b/sound/soc/fsl/fsl_ssi.c > @@ -1167,14 +1167,14 @@ static struct snd_soc_dai_driver fsl_ssi_dai_template = { > .playback = { > .stream_name = "CPU-Playback", > .channels_min = 1, > - .channels_max = 2, > + .channels_max = 32, TDM mode is not normally used. What happens if we're not in TDM mode, and the user tries to start a stream with more than 2 channels?