From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sven Van Asbroeck Subject: [PATCH 2/2] sound: hdmi-codec: propagate physical_width Date: Thu, 21 Feb 2019 13:18:14 -0500 Message-ID: <20190221181814.24829-2-TheSven73@gmail.com> References: <20190221181814.24829-1-TheSven73@gmail.com> Return-path: In-Reply-To: <20190221181814.24829-1-TheSven73@gmail.com> Sender: linux-kernel-owner@vger.kernel.org To: Russell King , David Airlie , Daniel Vetter Cc: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org List-Id: dri-devel@lists.freedesktop.org Infrastructure patch which allows the tda998x patch to build. This patch will be submitted for review if/when the tda998x patch gets accepted. Signed-off-by: Sven Van Asbroeck --- include/sound/hdmi-codec.h | 1 + sound/soc/codecs/hdmi-codec.c | 1 + 2 files changed, 2 insertions(+) diff --git a/include/sound/hdmi-codec.h b/include/sound/hdmi-codec.h index 9483c55f871b..5ba3db37e349 100644 --- a/include/sound/hdmi-codec.h +++ b/include/sound/hdmi-codec.h @@ -52,6 +52,7 @@ struct hdmi_codec_params { struct snd_aes_iec958 iec; int sample_rate; int sample_width; + int physical_width; int channels; }; diff --git a/sound/soc/codecs/hdmi-codec.c b/sound/soc/codecs/hdmi-codec.c index e5b6769b9797..007f20f2c5ac 100644 --- a/sound/soc/codecs/hdmi-codec.c +++ b/sound/soc/codecs/hdmi-codec.c @@ -518,6 +518,7 @@ static int hdmi_codec_hw_params(struct snd_pcm_substream *substream, hp.sample_width = params_width(params); hp.sample_rate = params_rate(params); + hp.physical_width = params_physical_width(params); hp.channels = params_channels(params); return hcp->hcd.ops->hw_params(dai->dev->parent, hcp->hcd.data, -- 2.17.1