* ASoC: CPU DAI samsung-i2s.0 not registered
@ 2014-08-14 2:19 Matt Flax
2014-08-14 2:28 ` Inha Song
0 siblings, 1 reply; 7+ messages in thread
From: Matt Flax @ 2014-08-14 2:19 UTC (permalink / raw)
To: alsa-devel@alsa-project.org
Hi there,
Any ideas why this problem is coming up when I try to load a driver ?
Here is the device tree :
i2s0: i2s@03830000 {
compatible = "samsung,i2s-v5";
reg = <0x03830000 0x100>;
dmas = <&pdma0 10
&pdma0 9
&pdma0 8>;
dma-names = "tx", "rx", "tx-sec";
clocks = <&clock_audss EXYNOS_I2S_BUS>,
<&clock_audss EXYNOS_I2S_BUS>,
<&clock_audss EXYNOS_SCLK_I2S>;
clock-names = "iis", "i2s_opclk0", "i2s_opclk1";
samsung,supports-6ch;
samsung,supports-rstclr;
samsung,supports-secdai;
samsung,idma-addr = <0x03000000>;
pinctrl-names = "default";
pinctrl-0 = <&i2s0_bus>;
};
implant: implant@0 {
compatible = "bva,implant";
};
sound {
compatible = "bva,implant-bva";
samsung,i2s-controller = <&i2s0>;
samsung,audio-codec = <&implant>;
};
^ permalink raw reply [flat|nested] 7+ messages in thread* Re: ASoC: CPU DAI samsung-i2s.0 not registered 2014-08-14 2:19 ASoC: CPU DAI samsung-i2s.0 not registered Matt Flax @ 2014-08-14 2:28 ` Inha Song 2014-08-14 4:12 ` Matt Flax 0 siblings, 1 reply; 7+ messages in thread From: Inha Song @ 2014-08-14 2:28 UTC (permalink / raw) To: Matt Flax; +Cc: alsa-devel@alsa-project.org Hi, Did you set to i2s0 status? -> status = "okay"; Best regards, Inha Song. On Thu, 14 Aug 2014 12:19:26 +1000 Matt Flax <flatmax@flatmax.org> wrote: > Hi there, > > Any ideas why this problem is coming up when I try to load a driver ? > > Here is the device tree : > > i2s0: i2s@03830000 { > compatible = "samsung,i2s-v5"; > reg = <0x03830000 0x100>; > dmas = <&pdma0 10 > &pdma0 9 > &pdma0 8>; > dma-names = "tx", "rx", "tx-sec"; > clocks = <&clock_audss EXYNOS_I2S_BUS>, > <&clock_audss EXYNOS_I2S_BUS>, > <&clock_audss EXYNOS_SCLK_I2S>; > clock-names = "iis", "i2s_opclk0", "i2s_opclk1"; > samsung,supports-6ch; > samsung,supports-rstclr; > samsung,supports-secdai; > samsung,idma-addr = <0x03000000>; > pinctrl-names = "default"; > pinctrl-0 = <&i2s0_bus>; > }; > > implant: implant@0 { > compatible = "bva,implant"; > }; > > sound { > compatible = "bva,implant-bva"; > > samsung,i2s-controller = <&i2s0>; > samsung,audio-codec = <&implant>; > }; > > _______________________________________________ > Alsa-devel mailing list > Alsa-devel@alsa-project.org > http://mailman.alsa-project.org/mailman/listinfo/alsa-devel ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: ASoC: CPU DAI samsung-i2s.0 not registered 2014-08-14 2:28 ` Inha Song @ 2014-08-14 4:12 ` Matt Flax 2014-08-14 5:10 ` Michael Trimarchi 2014-08-14 5:54 ` Matt Flax 0 siblings, 2 replies; 7+ messages in thread From: Matt Flax @ 2014-08-14 4:12 UTC (permalink / raw) To: alsa-devel Thanks for the idea ... I have set this : i2s0: i2s@03830000 { status = "okay"; }; and I get the same problem. Is there anything else which is required to register the samsun-i2s.0 driver ? Can you tell me whether my codec/driver requires any code to register the i2s0 ? I have the following in my driver : static struct snd_soc_dai_link implant_dai = { .name = "implant bva", .stream_name = "IMPLANT", .cpu_dai_name = "samsung-i2s.0", .codec_dai_name = "implant-pcm", .platform_name = "samsung-i2s.0", .codec_name = "implant-codec", }; thanks Matt On 14/08/14 12:28, Inha Song wrote: > Hi, > > Did you set to i2s0 status? > > -> status = "okay"; > > Best regards, > Inha Song. > > On Thu, 14 Aug 2014 12:19:26 +1000 > Matt Flax <flatmax@flatmax.org> wrote: > >> Hi there, >> >> Any ideas why this problem is coming up when I try to load a driver ? >> >> Here is the device tree : >> >> i2s0: i2s@03830000 { >> compatible = "samsung,i2s-v5"; >> reg = <0x03830000 0x100>; >> dmas = <&pdma0 10 >> &pdma0 9 >> &pdma0 8>; >> dma-names = "tx", "rx", "tx-sec"; >> clocks = <&clock_audss EXYNOS_I2S_BUS>, >> <&clock_audss EXYNOS_I2S_BUS>, >> <&clock_audss EXYNOS_SCLK_I2S>; >> clock-names = "iis", "i2s_opclk0", "i2s_opclk1"; >> samsung,supports-6ch; >> samsung,supports-rstclr; >> samsung,supports-secdai; >> samsung,idma-addr = <0x03000000>; >> pinctrl-names = "default"; >> pinctrl-0 = <&i2s0_bus>; >> }; >> >> implant: implant@0 { >> compatible = "bva,implant"; >> }; >> >> sound { >> compatible = "bva,implant-bva"; >> >> samsung,i2s-controller = <&i2s0>; >> samsung,audio-codec = <&implant>; >> }; >> >> _______________________________________________ >> Alsa-devel mailing list >> Alsa-devel@alsa-project.org >> http://mailman.alsa-project.org/mailman/listinfo/alsa-devel > _______________________________________________ > Alsa-devel mailing list > Alsa-devel@alsa-project.org > http://mailman.alsa-project.org/mailman/listinfo/alsa-devel ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: ASoC: CPU DAI samsung-i2s.0 not registered 2014-08-14 4:12 ` Matt Flax @ 2014-08-14 5:10 ` Michael Trimarchi 2014-08-14 6:31 ` Matt Flax 2014-08-14 5:54 ` Matt Flax 1 sibling, 1 reply; 7+ messages in thread From: Michael Trimarchi @ 2014-08-14 5:10 UTC (permalink / raw) To: Matt Flax; +Cc: alsa-devel Hi Il 14/ago/2014 06:12 "Matt Flax" <flatmax@flatmax.org> ha scritto: > > Thanks for the idea ... I have set this : > i2s0: i2s@03830000 { > status = "okay"; > }; > > and I get the same problem. > > Is there anything else which is required to register the samsun-i2s.0 driver ? > Can you tell me whether my codec/driver requires any code to register the i2s0 ? > > I have the following in my driver : > static struct snd_soc_dai_link implant_dai = { > .name = "implant bva", > .stream_name = "IMPLANT", > .cpu_dai_name = "samsung-i2s.0", > .codec_dai_name = "implant-pcm", > .platform_name = "samsung-i2s.0", > .codec_name = "implant-codec", > }; > > thanks > Matt > What version of the kernel are you using? Michael > > On 14/08/14 12:28, Inha Song wrote: >> >> Hi, >> >> Did you set to i2s0 status? >> >> -> status = "okay"; >> >> Best regards, >> Inha Song. >> >> On Thu, 14 Aug 2014 12:19:26 +1000 >> Matt Flax <flatmax@flatmax.org> wrote: >> >>> Hi there, >>> >>> Any ideas why this problem is coming up when I try to load a driver ? >>> >>> Here is the device tree : >>> >>> i2s0: i2s@03830000 { >>> compatible = "samsung,i2s-v5"; >>> reg = <0x03830000 0x100>; >>> dmas = <&pdma0 10 >>> &pdma0 9 >>> &pdma0 8>; >>> dma-names = "tx", "rx", "tx-sec"; >>> clocks = <&clock_audss EXYNOS_I2S_BUS>, >>> <&clock_audss EXYNOS_I2S_BUS>, >>> <&clock_audss EXYNOS_SCLK_I2S>; >>> clock-names = "iis", "i2s_opclk0", "i2s_opclk1"; >>> samsung,supports-6ch; >>> samsung,supports-rstclr; >>> samsung,supports-secdai; >>> samsung,idma-addr = <0x03000000>; >>> pinctrl-names = "default"; >>> pinctrl-0 = <&i2s0_bus>; >>> }; >>> >>> implant: implant@0 { >>> compatible = "bva,implant"; >>> }; >>> >>> sound { >>> compatible = "bva,implant-bva"; >>> >>> samsung,i2s-controller = <&i2s0>; >>> samsung,audio-codec = <&implant>; >>> }; >>> >>> _______________________________________________ >>> Alsa-devel mailing list >>> Alsa-devel@alsa-project.org >>> http://mailman.alsa-project.org/mailman/listinfo/alsa-devel >> >> _______________________________________________ >> Alsa-devel mailing list >> Alsa-devel@alsa-project.org >> http://mailman.alsa-project.org/mailman/listinfo/alsa-devel > > > _______________________________________________ > Alsa-devel mailing list > Alsa-devel@alsa-project.org > http://mailman.alsa-project.org/mailman/listinfo/alsa-devel ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: ASoC: CPU DAI samsung-i2s.0 not registered 2014-08-14 5:10 ` Michael Trimarchi @ 2014-08-14 6:31 ` Matt Flax 0 siblings, 0 replies; 7+ messages in thread From: Matt Flax @ 2014-08-14 6:31 UTC (permalink / raw) To: alsa-devel Hi Michael, I managed to get it to load the driver now with this strange device tree related hack I found in the smdk_wm8994 driver ... http://mailman.alsa-project.org/pipermail/alsa-devel/2014-August/080030.html But I got a new riddle there as well ... not sure how to register my codec now ... My kernel version is : Linux version 3.14.0 (flatmax@highAcuity) (gcc version 4.8.2 (GCC) ) #1 SMP PREEMPT Thu Aug 14 15:47:07 EST 2014 On 14/08/14 15:10, Michael Trimarchi wrote: > Hi > > Il 14/ago/2014 06:12 "Matt Flax" <flatmax@flatmax.org> ha scritto: >> Thanks for the idea ... I have set this : >> i2s0: i2s@03830000 { >> status = "okay"; >> }; >> >> and I get the same problem. >> >> Is there anything else which is required to register the samsun-i2s.0 > driver ? >> Can you tell me whether my codec/driver requires any code to register the > i2s0 ? >> I have the following in my driver : >> static struct snd_soc_dai_link implant_dai = { >> .name = "implant bva", >> .stream_name = "IMPLANT", >> .cpu_dai_name = "samsung-i2s.0", >> .codec_dai_name = "implant-pcm", >> .platform_name = "samsung-i2s.0", >> .codec_name = "implant-codec", >> }; >> >> thanks >> Matt >> > What version of the kernel are you using? > Michael > >> On 14/08/14 12:28, Inha Song wrote: >>> Hi, >>> >>> Did you set to i2s0 status? >>> >>> -> status = "okay"; >>> >>> Best regards, >>> Inha Song. >>> >>> On Thu, 14 Aug 2014 12:19:26 +1000 >>> Matt Flax <flatmax@flatmax.org> wrote: >>> >>>> Hi there, >>>> >>>> Any ideas why this problem is coming up when I try to load a driver ? >>>> >>>> Here is the device tree : >>>> >>>> i2s0: i2s@03830000 { >>>> compatible = "samsung,i2s-v5"; >>>> reg = <0x03830000 0x100>; >>>> dmas = <&pdma0 10 >>>> &pdma0 9 >>>> &pdma0 8>; >>>> dma-names = "tx", "rx", "tx-sec"; >>>> clocks = <&clock_audss EXYNOS_I2S_BUS>, >>>> <&clock_audss EXYNOS_I2S_BUS>, >>>> <&clock_audss EXYNOS_SCLK_I2S>; >>>> clock-names = "iis", "i2s_opclk0", "i2s_opclk1"; >>>> samsung,supports-6ch; >>>> samsung,supports-rstclr; >>>> samsung,supports-secdai; >>>> samsung,idma-addr = <0x03000000>; >>>> pinctrl-names = "default"; >>>> pinctrl-0 = <&i2s0_bus>; >>>> }; >>>> >>>> implant: implant@0 { >>>> compatible = "bva,implant"; >>>> }; >>>> >>>> sound { >>>> compatible = "bva,implant-bva"; >>>> >>>> samsung,i2s-controller = <&i2s0>; >>>> samsung,audio-codec = <&implant>; >>>> }; >>>> >>>> _______________________________________________ >>>> Alsa-devel mailing list >>>> Alsa-devel@alsa-project.org >>>> http://mailman.alsa-project.org/mailman/listinfo/alsa-devel >>> _______________________________________________ >>> Alsa-devel mailing list >>> Alsa-devel@alsa-project.org >>> http://mailman.alsa-project.org/mailman/listinfo/alsa-devel >> >> _______________________________________________ >> Alsa-devel mailing list >> Alsa-devel@alsa-project.org >> http://mailman.alsa-project.org/mailman/listinfo/alsa-devel > _______________________________________________ > Alsa-devel mailing list > Alsa-devel@alsa-project.org > http://mailman.alsa-project.org/mailman/listinfo/alsa-devel ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: ASoC: CPU DAI samsung-i2s.0 not registered 2014-08-14 4:12 ` Matt Flax 2014-08-14 5:10 ` Michael Trimarchi @ 2014-08-14 5:54 ` Matt Flax 2014-08-14 6:38 ` Matt Flax 1 sibling, 1 reply; 7+ messages in thread From: Matt Flax @ 2014-08-14 5:54 UTC (permalink / raw) To: alsa-devel I think I have gotten around this problem using the code in the samsung/smdk_wm8994.c probe function : implant_dai.cpu_dai_name = NULL; implant_dai.cpu_of_node = of_parse_phandle(np, "samsung,i2s-controller", 0); implant_dai.platform_name = NULL; implant_dai.platform_of_node = implant_dai.cpu_of_node; Now having problems with the codec registration : .codec_name = "implant-codec", ASoC: CODEC implant-codec not registered I am looking for the magic here ... Any ideas ? Matt On 14/08/14 14:12, Matt Flax wrote: > Thanks for the idea ... I have set this : > i2s0: i2s@03830000 { > status = "okay"; > }; > > and I get the same problem. > > Is there anything else which is required to register the samsun-i2s.0 > driver ? > Can you tell me whether my codec/driver requires any code to register > the i2s0 ? > > I have the following in my driver : > static struct snd_soc_dai_link implant_dai = { > .name = "implant bva", > .stream_name = "IMPLANT", > .cpu_dai_name = "samsung-i2s.0", > .codec_dai_name = "implant-pcm", > .platform_name = "samsung-i2s.0", > .codec_name = "implant-codec", > }; > > thanks > Matt > > On 14/08/14 12:28, Inha Song wrote: >> Hi, >> >> Did you set to i2s0 status? >> >> -> status = "okay"; >> >> Best regards, >> Inha Song. >> >> On Thu, 14 Aug 2014 12:19:26 +1000 >> Matt Flax <flatmax@flatmax.org> wrote: >> >>> Hi there, >>> >>> Any ideas why this problem is coming up when I try to load a driver ? >>> >>> Here is the device tree : >>> >>> i2s0: i2s@03830000 { >>> compatible = "samsung,i2s-v5"; >>> reg = <0x03830000 0x100>; >>> dmas = <&pdma0 10 >>> &pdma0 9 >>> &pdma0 8>; >>> dma-names = "tx", "rx", "tx-sec"; >>> clocks = <&clock_audss EXYNOS_I2S_BUS>, >>> <&clock_audss EXYNOS_I2S_BUS>, >>> <&clock_audss EXYNOS_SCLK_I2S>; >>> clock-names = "iis", "i2s_opclk0", "i2s_opclk1"; >>> samsung,supports-6ch; >>> samsung,supports-rstclr; >>> samsung,supports-secdai; >>> samsung,idma-addr = <0x03000000>; >>> pinctrl-names = "default"; >>> pinctrl-0 = <&i2s0_bus>; >>> }; >>> >>> implant: implant@0 { >>> compatible = "bva,implant"; >>> }; >>> >>> sound { >>> compatible = "bva,implant-bva"; >>> >>> samsung,i2s-controller = <&i2s0>; >>> samsung,audio-codec = <&implant>; >>> }; >>> >>> _______________________________________________ >>> Alsa-devel mailing list >>> Alsa-devel@alsa-project.org >>> http://mailman.alsa-project.org/mailman/listinfo/alsa-devel >> _______________________________________________ >> Alsa-devel mailing list >> Alsa-devel@alsa-project.org >> http://mailman.alsa-project.org/mailman/listinfo/alsa-devel > > _______________________________________________ > Alsa-devel mailing list > Alsa-devel@alsa-project.org > http://mailman.alsa-project.org/mailman/listinfo/alsa-devel ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: ASoC: CPU DAI samsung-i2s.0 not registered 2014-08-14 5:54 ` Matt Flax @ 2014-08-14 6:38 ` Matt Flax 0 siblings, 0 replies; 7+ messages in thread From: Matt Flax @ 2014-08-14 6:38 UTC (permalink / raw) To: alsa-devel On 14/08/14 15:54, Matt Flax wrote: > I think I have gotten around this problem using the code in the > samsung/smdk_wm8994.c probe function : > implant_dai.cpu_dai_name = NULL; > implant_dai.cpu_of_node = of_parse_phandle(np, > "samsung,i2s-controller", 0); > implant_dai.platform_name = NULL; > implant_dai.platform_of_node = implant_dai.cpu_of_node; > > Now having problems with the codec registration : > .codec_name = "implant-codec", > > ASoC: CODEC implant-codec not registered > > > I am looking for the magic here ... > > Any ideas ? > I solved this problem using the following code : implant_dai.codec_name = NULL; implant_dai.codec_of_node = of_parse_phandle(np, "samsung,audio-codec", 0); > Matt > > On 14/08/14 14:12, Matt Flax wrote: >> Thanks for the idea ... I have set this : >> i2s0: i2s@03830000 { >> status = "okay"; >> }; >> >> and I get the same problem. >> >> Is there anything else which is required to register the samsun-i2s.0 >> driver ? >> Can you tell me whether my codec/driver requires any code to register >> the i2s0 ? >> >> I have the following in my driver : >> static struct snd_soc_dai_link implant_dai = { >> .name = "implant bva", >> .stream_name = "IMPLANT", >> .cpu_dai_name = "samsung-i2s.0", >> .codec_dai_name = "implant-pcm", >> .platform_name = "samsung-i2s.0", >> .codec_name = "implant-codec", >> }; >> >> thanks >> Matt >> >> On 14/08/14 12:28, Inha Song wrote: >>> Hi, >>> >>> Did you set to i2s0 status? >>> >>> -> status = "okay"; >>> >>> Best regards, >>> Inha Song. >>> >>> On Thu, 14 Aug 2014 12:19:26 +1000 >>> Matt Flax <flatmax@flatmax.org> wrote: >>> >>>> Hi there, >>>> >>>> Any ideas why this problem is coming up when I try to load a driver ? >>>> >>>> Here is the device tree : >>>> >>>> i2s0: i2s@03830000 { >>>> compatible = "samsung,i2s-v5"; >>>> reg = <0x03830000 0x100>; >>>> dmas = <&pdma0 10 >>>> &pdma0 9 >>>> &pdma0 8>; >>>> dma-names = "tx", "rx", "tx-sec"; >>>> clocks = <&clock_audss EXYNOS_I2S_BUS>, >>>> <&clock_audss EXYNOS_I2S_BUS>, >>>> <&clock_audss EXYNOS_SCLK_I2S>; >>>> clock-names = "iis", "i2s_opclk0", "i2s_opclk1"; >>>> samsung,supports-6ch; >>>> samsung,supports-rstclr; >>>> samsung,supports-secdai; >>>> samsung,idma-addr = <0x03000000>; >>>> pinctrl-names = "default"; >>>> pinctrl-0 = <&i2s0_bus>; >>>> }; >>>> >>>> implant: implant@0 { >>>> compatible = "bva,implant"; >>>> }; >>>> >>>> sound { >>>> compatible = "bva,implant-bva"; >>>> >>>> samsung,i2s-controller = <&i2s0>; >>>> samsung,audio-codec = <&implant>; >>>> }; >>>> >>>> _______________________________________________ >>>> Alsa-devel mailing list >>>> Alsa-devel@alsa-project.org >>>> http://mailman.alsa-project.org/mailman/listinfo/alsa-devel >>> _______________________________________________ >>> Alsa-devel mailing list >>> Alsa-devel@alsa-project.org >>> http://mailman.alsa-project.org/mailman/listinfo/alsa-devel >> >> _______________________________________________ >> Alsa-devel mailing list >> Alsa-devel@alsa-project.org >> http://mailman.alsa-project.org/mailman/listinfo/alsa-devel > > _______________________________________________ > Alsa-devel mailing list > Alsa-devel@alsa-project.org > http://mailman.alsa-project.org/mailman/listinfo/alsa-devel ^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2014-08-14 6:38 UTC | newest] Thread overview: 7+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2014-08-14 2:19 ASoC: CPU DAI samsung-i2s.0 not registered Matt Flax 2014-08-14 2:28 ` Inha Song 2014-08-14 4:12 ` Matt Flax 2014-08-14 5:10 ` Michael Trimarchi 2014-08-14 6:31 ` Matt Flax 2014-08-14 5:54 ` Matt Flax 2014-08-14 6:38 ` Matt Flax
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.