From: Inki Dae <inki.dae@samsung.com>
To: Marek Szyprowski <m.szyprowski@samsung.com>,
Sylwester Nawrocki <s.nawrocki@samsung.com>
Cc: devicetree@vger.kernel.org, linux-samsung-soc@vger.kernel.org,
jy0922.shim@samsung.com, b.zolnierkie@samsung.com,
sw0312.kim@samsung.com, dri-devel@lists.freedesktop.org,
robh+dt@kernel.org, linux-arm-kernel@lists.infradead.org
Subject: Re: [PATCH] dt-bindings: exynos: Document #sound-dai-cells property of the HDMI node
Date: Thu, 08 Mar 2018 17:15:09 +0900 [thread overview]
Message-ID: <5AA0F10D.9010602@samsung.com> (raw)
In-Reply-To: <9f1e8619-974d-cd07-79c3-c6d9a4dc0f97@samsung.com>
Hi Marek,
2018년 03월 08일 16:36에 Marek Szyprowski 이(가) 쓴 글:
> Hi Inki,
>
> On 2018-03-08 07:50, Inki Dae wrote:
>> 2018년 03월 08일 15:29에 Marek Szyprowski 이(가) 쓴 글:
>>> On 2018-03-08 05:01, Inki Dae wrote:
>>>> 2018년 03월 08일 02:11에 Sylwester Nawrocki 이(가) 쓴 글:
>>>>> The #sound-dai-cells DT property is required to describe link between
>>>>> the HDMI IP block and the SoC's audio subsystem.
>>>>>
>>>>> Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
>>>>> ---
>>>>> Documentation/devicetree/bindings/display/exynos/exynos_hdmi.txt | 3 +++
>>>>> 1 file changed, 3 insertions(+)
>>>>>
>>>>> diff --git a/Documentation/devicetree/bindings/display/exynos/exynos_hdmi.txt b/Documentation/devicetree/bindings/display/exynos/exynos_hdmi.txt
>>>>> index 8715ff06c457..6b2a526ec586 100644
>>>>> --- a/Documentation/devicetree/bindings/display/exynos/exynos_hdmi.txt
>>>>> +++ b/Documentation/devicetree/bindings/display/exynos/exynos_hdmi.txt
>>>>> @@ -50,6 +50,9 @@ Required properties for Exynos 5433:
>>>>> - clock-names: aliases for above clock specfiers.
>>>>> - samsung,sysreg: handle to syscon used to control the system registers.
>>>>> +Optional properties for Exynos 4210, 4212, 5420 and 5433:
>>>>> + - #sound-dai-cells: should be 0.
>>>>> +
>>>> Just trivial question. 'sound-dai-cells' property could affect hdmi driver? I looked into HDMI codec driver but I didn't find relevat code.
>>>> I mean that if this property never affect HDMI driver then this property would be a dead thing even through this can be declared optionally.
>>> This property is used by ASoC framework when it is building connections
>>> between all elements of the virtual 'sound card'. It allows generic
>>> code to find proper driver for the digital audio interface (DAI) object.
>> I also assumed that some place of ASoC framework checks this property. For this I looked into HDMI codec driver(sound/soc/codecs/hdmi-codec.c) and relevant interfaces of ASoC framework.
>> But I couldn't find it. :( Could you let me know which code of ASoC framework checks this? I saw this property only in 'snd_soc_of_get_dai_name' and 'snd_soc_of_get_dai_link_codecs' functions but seems these functions aren't called by the HDMI codec driver.
>
> It is used by snd_soc_of_get_dai_link_codecs() function, which is called
> from respective board/machine driver. See sound/soc/samsung/odroid.c for
> good example. It allows to automatically create connection to max98090 and
> hdmi codec devices, which are specified in 'sound/codec' node (see
> exynos5422-odroidxu3-audio.dtsi).
Ah, sorry, I missed to check that driver and checked only DRM drivers. :)
By the way, it seems 'sound-dai-cells' property never affect Exynos4210/4212/5420/5433. It seems that even through ALSA TM2 audio driver(tm2_wm5110.c) exists the driver never check the property.
However, this patch adds below description.
"Optional properties for Exynos 4210, 4212, 5420 and 5433"
Is there a possibility for other boards based on Exynos4210/4212/5420/5433 SoC to use this property later?
Thanks,
Inki Dae
>
> Best regards
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
next prev parent reply other threads:[~2018-03-08 8:15 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <CGME20180307171131epcas1p4687ef394d1a0a6d0eb2de2691c977c3f@epcas1p4.samsung.com>
2018-03-07 17:11 ` [PATCH] dt-bindings: exynos: Document #sound-dai-cells property of the HDMI node Sylwester Nawrocki
2018-03-08 2:41 ` Rob Herring
2018-03-08 4:01 ` Inki Dae
2018-03-08 6:29 ` Marek Szyprowski
2018-03-08 6:50 ` Inki Dae
2018-03-08 7:36 ` Marek Szyprowski
2018-03-08 8:15 ` Inki Dae [this message]
2018-03-08 11:22 ` Sylwester Nawrocki
2018-03-09 2:35 ` Inki Dae
2018-03-09 11:10 ` Sylwester Nawrocki
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5AA0F10D.9010602@samsung.com \
--to=inki.dae@samsung.com \
--cc=b.zolnierkie@samsung.com \
--cc=devicetree@vger.kernel.org \
--cc=dri-devel@lists.freedesktop.org \
--cc=jy0922.shim@samsung.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-samsung-soc@vger.kernel.org \
--cc=m.szyprowski@samsung.com \
--cc=robh+dt@kernel.org \
--cc=s.nawrocki@samsung.com \
--cc=sw0312.kim@samsung.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).