Message ID | 878u557qff.wl%kuninori.morimoto.gx@renesas.com (mailing list archive) |
---|---|
State | Accepted |
Commit | 2020dddd67c1884ea7cb9891b36aac7ff5e73038 |
Headers | show |
On Tue, Dec 08, 2015 at 12:10:59AM +0000, Kuninori Morimoto wrote: > > From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> > > Renesas sound driver needs #sound-dai-cells settings, but, this usage > is a little bit confusable. It came from ALSA SoC historical reasons. > The sound DAI naming method is different between Single/Multi DAI in > the ALSA framework, and it is used for sound card matching. > And this #sound-dai-cells has relationship to it. > Current SoC dtsi has #sound-dai-cells = <1> as default settings > (= it is assuming that board/platform has multi DAI), and > board/platform side needs to overwrite it if board/platform was single > DAI. This style is more confusable for users. > This patch removes SoC side default settings, and force to set it by > board/platform side. > > Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> > --- > This patch is based on Geert's > ARM: shmobile: bockw dts: Override #sound-dai-cells to zero Is Geert's patch necessary with this patch? > arch/arm/boot/dts/r8a7778.dtsi | 7 ++++++- > 1 file changed, 6 insertions(+), 1 deletion(-) > > diff --git a/arch/arm/boot/dts/r8a7778.dtsi b/arch/arm/boot/dts/r8a7778.dtsi > index 4f8e078..b140627 100644 > --- a/arch/arm/boot/dts/r8a7778.dtsi > +++ b/arch/arm/boot/dts/r8a7778.dtsi > @@ -236,7 +236,12 @@ > }; > > rcar_sound: sound@ffd90000 { > - #sound-dai-cells = <1>; > + /* > + * #sound-dai-cells is required > + * > + * Single DAI : #sound-dai-cells = <0>; <&rcar_sound>; > + * Multi DAI : #sound-dai-cells = <1>; <&rcar_sound N>; > + */ > compatible = "renesas,rcar_sound-r8a7778", "renesas,rcar_sound-gen1"; > reg = <0xffd90000 0x1000>, /* SRU */ > <0xffd91000 0x240>, /* SSI */ > -- > 1.9.1 > -- To unsubscribe from this list: send the line "unsubscribe linux-sh" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Hi Simon > > From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> > > > > Renesas sound driver needs #sound-dai-cells settings, but, this usage > > is a little bit confusable. It came from ALSA SoC historical reasons. > > The sound DAI naming method is different between Single/Multi DAI in > > the ALSA framework, and it is used for sound card matching. > > And this #sound-dai-cells has relationship to it. > > Current SoC dtsi has #sound-dai-cells = <1> as default settings > > (= it is assuming that board/platform has multi DAI), and > > board/platform side needs to overwrite it if board/platform was single > > DAI. This style is more confusable for users. > > This patch removes SoC side default settings, and force to set it by > > board/platform side. > > > > Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> > > --- > > This patch is based on Geert's > > ARM: shmobile: bockw dts: Override #sound-dai-cells to zero > > Is Geert's patch necessary with this patch? I think best order (for git bisect) is 1. Geert's patch 2. My patch -- To unsubscribe from this list: send the line "unsubscribe linux-sh" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
On Tue, Dec 08, 2015 at 01:30:12AM +0000, Kuninori Morimoto wrote: > > Hi Simon > > > > From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> > > > > > > Renesas sound driver needs #sound-dai-cells settings, but, this usage > > > is a little bit confusable. It came from ALSA SoC historical reasons. > > > The sound DAI naming method is different between Single/Multi DAI in > > > the ALSA framework, and it is used for sound card matching. > > > And this #sound-dai-cells has relationship to it. > > > Current SoC dtsi has #sound-dai-cells = <1> as default settings > > > (= it is assuming that board/platform has multi DAI), and > > > board/platform side needs to overwrite it if board/platform was single > > > DAI. This style is more confusable for users. > > > This patch removes SoC side default settings, and force to set it by > > > board/platform side. > > > > > > Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> > > > --- > > > This patch is based on Geert's > > > ARM: shmobile: bockw dts: Override #sound-dai-cells to zero > > > > Is Geert's patch necessary with this patch? > > I think best order (for git bisect) is > > 1. Geert's patch > 2. My patch Thanks, I will make it so. -- To unsubscribe from this list: send the line "unsubscribe linux-sh" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
diff --git a/arch/arm/boot/dts/r8a7778.dtsi b/arch/arm/boot/dts/r8a7778.dtsi index 4f8e078..b140627 100644 --- a/arch/arm/boot/dts/r8a7778.dtsi +++ b/arch/arm/boot/dts/r8a7778.dtsi @@ -236,7 +236,12 @@ }; rcar_sound: sound@ffd90000 { - #sound-dai-cells = <1>; + /* + * #sound-dai-cells is required + * + * Single DAI : #sound-dai-cells = <0>; <&rcar_sound>; + * Multi DAI : #sound-dai-cells = <1>; <&rcar_sound N>; + */ compatible = "renesas,rcar_sound-r8a7778", "renesas,rcar_sound-gen1"; reg = <0xffd90000 0x1000>, /* SRU */ <0xffd91000 0x240>, /* SSI */