Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751791AbeACQ3Q (ORCPT + 1 other); Wed, 3 Jan 2018 11:29:16 -0500 Received: from mail-wr0-f195.google.com ([209.85.128.195]:36309 "EHLO mail-wr0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751591AbeACQ1Q (ORCPT ); Wed, 3 Jan 2018 11:27:16 -0500 X-Google-Smtp-Source: ACJfBou+vyqcLjr7k07rk+TgQgYs+e3nxxZOPTwRp61IoDHvcs9cAFR2RiGs/Xrw+KmpkACu8SJcJA== Subject: Re: [RESEND PATCH v2 11/15] ASoC: qcom: qdsp6: Add support to q6afe dai driver To: Bjorn Andersson Cc: Andy Gross , Mark Brown , linux-arm-msm@vger.kernel.org, alsa-devel@alsa-project.org, David Brown , Rob Herring , Mark Rutland , Liam Girdwood , Patrick Lai , Banajit Goswami , Jaroslav Kysela , Takashi Iwai , linux-soc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, sboyd@codeaurora.org References: <20171214173402.19074-1-srinivas.kandagatla@linaro.org> <20171214173402.19074-12-srinivas.kandagatla@linaro.org> <20180102232811.GS478@tuxbook> From: Srinivas Kandagatla Message-ID: <4edcacb6-6567-8f1a-dd71-cbcce0a66e06@linaro.org> Date: Wed, 3 Jan 2018 16:27:12 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 MIME-Version: 1.0 In-Reply-To: <20180102232811.GS478@tuxbook> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: On 02/01/18 23:28, Bjorn Andersson wrote: > On Thu 14 Dec 09:33 PST 2017, srinivas.kandagatla@linaro.org wrote: > >> From: Srinivas Kandagatla >> >> This patch adds support to q6afe backend dais driver. >> > > Isn't the list of backend DAIs platform-dependent? dai links and connections between backend and front ends are platform dependent. > > [..] >> +static const struct snd_soc_dapm_widget hdmi_dapm_widgets[] = { >> + SND_SOC_DAPM_AIF_OUT("HDMI", "HDMI Playback", 0, 0, 0, 0), >> + SND_SOC_DAPM_OUTPUT("HDMI-RX"), >> +}; >> + >> +static const struct snd_soc_component_driver msm_dai_hdmi_q6_component = { > > How will this look beyond HDMI? I'm having issues mapping this to > downstream. ex: For slimbus dais, we would have more entries of "struct snd_soc_dai_driver" in this file. Basically these are the dais that are exposed by the dsp firmware. Depending on the actually platform some of these dais would be setup accordingly. > >> + .name = "msm-dai-q6-hdmi", >> + .dapm_widgets = hdmi_dapm_widgets, >> + .num_dapm_widgets = ARRAY_SIZE(hdmi_dapm_widgets), >> + .controls = hdmi_config_controls, >> + .num_controls = ARRAY_SIZE(hdmi_config_controls), >> + .dapm_routes = hdmi_dapm_routes, >> + .num_dapm_routes = ARRAY_SIZE(hdmi_dapm_routes), >> +}; >> + > > Regards, > Bjorn >