From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1163056AbbKFWK2 (ORCPT ); Fri, 6 Nov 2015 17:10:28 -0500 Received: from mail-gw3-out.broadcom.com ([216.31.210.64]:18874 "EHLO mail-gw3-out.broadcom.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1030323AbbKFWK0 (ORCPT ); Fri, 6 Nov 2015 17:10:26 -0500 X-IronPort-AV: E=Sophos;i="5.20,254,1444719600"; d="scan'208";a="79731006" Subject: Re: [PATCH v2 1/2] dt-bindings: sound: Add DT bindings for Broadcom Cygnus audio To: Mark Brown References: <1446502284-23907-2-git-send-email-ssimran@broadcom.com> <20151104140746.GE1717@sirena.org.uk> <563BB5B0.5040501@broadcom.com> <20151106103147.GZ18409@sirena.org.uk> CC: Rob Herring , Pawel Moll , "Mark Rutland" , Ian Campbell , Kumar Gala , Ray Jui , Scott Branden , Liam Girdwood , Jaroslav Kysela , Takashi Iwai , Lori Hikichi , , , , , Arun Parameswaran , From: Simran Rai Message-ID: <563D254F.9090000@broadcom.com> Date: Fri, 6 Nov 2015 14:10:23 -0800 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-Version: 1.0 In-Reply-To: <20151106103147.GZ18409@sirena.org.uk> Content-Type: text/plain; charset="windows-1252"; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Mark, On 11/6/2015 2:31 AM, Mark Brown wrote: > On Thu, Nov 05, 2015 at 12:01:52PM -0800, Simran Rai wrote: >> On 11/4/2015 6:07 AM, Mark Brown wrote: >>> On Mon, Nov 02, 2015 at 02:11:23PM -0800, Simran Rai wrote: >>>> + Interfaces grouping of serial port. In multi-channel stereo, use >>>> + "2_0", in 3.1 multi-channel grouping, use "3_1" and in 5.1 >>>> + multi-channel grouping, use "5_1". >>> I don't really understand what this means or why this is not runtime >>> configured. >> By runtime configured, do you mean passing the channel grouping through >> machine file? Is there any specific callback that I can use? > No, this appears to just be setting the number of channels which is > normally configured depending on how many channels userspace is playing. This audio driver uses 'params_channels()' to determine the number of channels requested by userspace in TDM mode (multiple channels on one audio port). Channel grouping is another mode where more than one audio ports are grouped together to form 3.1 or 5.1 surround sound and this feature has been implemented through device tree settings. At this point, I will take out channel grouping functionality because it does not work as intended. In near future, once this feature is fixed, how do you suggest implementing it in the driver? Thanks, Simran