Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1321111 > unrolled thread
| Started by | Mark Brown <broonie@kernel.org> |
|---|---|
| First post | 2016-01-28 23:40 +0100 |
| Last post | 2016-01-29 12:20 +0100 |
| Articles | 9 — 3 participants |
Back to article view | Back to linux.kernel
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: [PATCH] ASoC: fsl: select SND_SOC_FSL_SAI or SND_SOC_FSL_SSI depending on SoC type Mark Brown <broonie@kernel.org> - 2016-01-28 23:40 +0100
Re: [PATCH] ASoC: fsl: select SND_SOC_FSL_SAI or SND_SOC_FSL_SSI depending on SoC type Nicolin Chen <nicoleotsuka@gmail.com> - 2016-01-29 00:10 +0100
Re: [PATCH] ASoC: fsl: select SND_SOC_FSL_SAI or SND_SOC_FSL_SSI depending on SoC type Lothar Waßmann <LW@KARO-electronics.de> - 2016-01-29 07:00 +0100
Re: [PATCH] ASoC: fsl: select SND_SOC_FSL_SAI or SND_SOC_FSL_SSI depending on SoC type Nicolin Chen <nicoleotsuka@gmail.com> - 2016-01-29 07:30 +0100
Re: [PATCH] ASoC: fsl: select SND_SOC_FSL_SAI or SND_SOC_FSL_SSI depending on SoC type Lothar Waßmann <LW@KARO-electronics.de> - 2016-01-29 12:40 +0100
Re: [PATCH] ASoC: fsl: select SND_SOC_FSL_SAI or SND_SOC_FSL_SSI depending on SoC type Lothar Waßmann <LW@KARO-electronics.de> - 2016-01-29 07:10 +0100
Re: [PATCH] ASoC: fsl: select SND_SOC_FSL_SAI or SND_SOC_FSL_SSI depending on SoC type Nicolin Chen <nicoleotsuka@gmail.com> - 2016-01-29 07:40 +0100
Re: [PATCH] ASoC: fsl: select SND_SOC_FSL_SAI or SND_SOC_FSL_SSI depending on SoC type Lothar Waßmann <LW@KARO-electronics.de> - 2016-01-29 10:50 +0100
Re: [PATCH] ASoC: fsl: select SND_SOC_FSL_SAI or SND_SOC_FSL_SSI depending on SoC type Mark Brown <broonie@kernel.org> - 2016-01-29 12:20 +0100
| From | Mark Brown <broonie@kernel.org> |
|---|---|
| Date | 2016-01-28 23:40 +0100 |
| Subject | Re: [PATCH] ASoC: fsl: select SND_SOC_FSL_SAI or SND_SOC_FSL_SSI depending on SoC type |
| Message-ID | <qW3ol-1FK-5@gated-at.bofh.it> |
[Multipart message — attachments visible in raw view] — view raw
On Wed, Jan 20, 2016 at 01:30:38PM +0100, Lothar Waßmann wrote: > - select SND_SOC_FSL_SSI > + select SND_SOC_FSL_SAI if SOC_IMX6UL > + select SND_SOC_FSL_SSI if SOC_IMX6Q || SOC_IMX6SL || SOC_IMX6SX Does this card not work for older i.MXs (which had the same SSI/AUDMUX combination as the majority of the i.MX6 family) as well?
[toc] | [next] | [standalone]
| From | Nicolin Chen <nicoleotsuka@gmail.com> |
|---|---|
| Date | 2016-01-29 00:10 +0100 |
| Message-ID | <qW3Ro-28Y-19@gated-at.bofh.it> |
| In reply to | #1321111 |
On Thu, Jan 28, 2016 at 11:33:52PM +0100, Mark Brown wrote: > On Wed, Jan 20, 2016 at 01:30:38PM +0100, Lothar Waßmann wrote: > > > - select SND_SOC_FSL_SSI > > + select SND_SOC_FSL_SAI if SOC_IMX6UL > > + select SND_SOC_FSL_SSI if SOC_IMX6Q || SOC_IMX6SL || SOC_IMX6SX > > Does this card not work for older i.MXs (which had the same SSI/AUDMUX > combination as the majority of the i.MX6 family) as well? It's widely used in older i.MXs according to their DTS files. So it should be safer to just leave SSI over here. And I actually doubt the feasibility of running this driver with i.MX6UL as there might not be an AUDMUX on i.MX6UL since it does not have SSI any more while the driver always touches the address space of AUDMUX which may not exist on i.MX6UL.
[toc] | [prev] | [next] | [standalone]
| From | Lothar Waßmann <LW@KARO-electronics.de> |
|---|---|
| Date | 2016-01-29 07:00 +0100 |
| Message-ID | <qWaga-6C8-17@gated-at.bofh.it> |
| In reply to | #1321126 |
Hi, On Thu, 28 Jan 2016 15:08:47 -0800 Nicolin Chen wrote: > On Thu, Jan 28, 2016 at 11:33:52PM +0100, Mark Brown wrote: > > On Wed, Jan 20, 2016 at 01:30:38PM +0100, Lothar Waßmann wrote: > > > > > - select SND_SOC_FSL_SSI > > > + select SND_SOC_FSL_SAI if SOC_IMX6UL > > > + select SND_SOC_FSL_SSI if SOC_IMX6Q || SOC_IMX6SL || SOC_IMX6SX > > > > Does this card not work for older i.MXs (which had the same SSI/AUDMUX > > combination as the majority of the i.MX6 family) as well? > > It's widely used in older i.MXs according to their DTS files. So > it should be safer to just leave SSI over here. > Nothing prevents you to enable the SSI driver on any i.MX6 module. The only change I made is to select the SAI driver instead of the SSI driver on i.MX6UL because the i.MX6UL does not have an SSI unit! > And I actually doubt the feasibility of running this driver with > i.MX6UL as there might not be an AUDMUX on i.MX6UL since it does > not have SSI any more while the driver always touches the address > space of AUDMUX which may not exist on i.MX6UL. > #define this driver The FSL_SAI driver does not touch the audmux address space in any way. The simple-card audio driver works perfectly well with the FSL_SAI driver on i.MX6UL. Lothar Waßmann
[toc] | [prev] | [next] | [standalone]
| From | Nicolin Chen <nicoleotsuka@gmail.com> |
|---|---|
| Date | 2016-01-29 07:30 +0100 |
| Message-ID | <qWaJb-77c-9@gated-at.bofh.it> |
| In reply to | #1321493 |
On Fri, Jan 29, 2016 at 06:51:33AM +0100, Lothar Waßmann wrote: > Hi, > > On Thu, 28 Jan 2016 15:08:47 -0800 Nicolin Chen wrote: > > On Thu, Jan 28, 2016 at 11:33:52PM +0100, Mark Brown wrote: > > > On Wed, Jan 20, 2016 at 01:30:38PM +0100, Lothar Waßmann wrote: > > > > > > > - select SND_SOC_FSL_SSI > > > > + select SND_SOC_FSL_SAI if SOC_IMX6UL > > > > + select SND_SOC_FSL_SSI if SOC_IMX6Q || SOC_IMX6SL || SOC_IMX6SX > > > > > > Does this card not work for older i.MXs (which had the same SSI/AUDMUX > > > combination as the majority of the i.MX6 family) as well? > > > > It's widely used in older i.MXs according to their DTS files. So > > it should be safer to just leave SSI over here. > > > Nothing prevents you to enable the SSI driver on any i.MX6 module. What about i.MX2, 3 and 5 series? Will they still be able to enable SSI without changing .config file as usual? > The only change I made is to select the SAI driver instead of the SSI > driver on i.MX6UL because the i.MX6UL does not have an SSI unit! > > > And I actually doubt the feasibility of running this driver with > > i.MX6UL as there might not be an AUDMUX on i.MX6UL since it does > > not have SSI any more while the driver always touches the address > > space of AUDMUX which may not exist on i.MX6UL. > > > #define this driver Your change is applied to "SND_SOC_IMX_SGTL5000" whose corresponding driver is the imx-sgtl5000.c file. > The FSL_SAI driver does not touch the audmux address space in any way. This imx-sgtl5000 driver does access AUDMUX registers. And I thought you tried to use this one which made me very confused. > The simple-card audio driver works perfectly well with the FSL_SAI > driver on i.MX6UL. It seems like you are using simple-card while letting the other driver (imx-sgtl5000) select SAI for you. It doesn't sound so right to me.
[toc] | [prev] | [next] | [standalone]
| From | Lothar Waßmann <LW@KARO-electronics.de> |
|---|---|
| Date | 2016-01-29 12:40 +0100 |
| Message-ID | <qWfzd-2gW-35@gated-at.bofh.it> |
| In reply to | #1321502 |
Hi, On Thu, 28 Jan 2016 22:25:30 -0800 Nicolin Chen wrote: > On Fri, Jan 29, 2016 at 06:51:33AM +0100, Lothar Waßmann wrote: > > Hi, > > > > On Thu, 28 Jan 2016 15:08:47 -0800 Nicolin Chen wrote: > > > On Thu, Jan 28, 2016 at 11:33:52PM +0100, Mark Brown wrote: > > > > On Wed, Jan 20, 2016 at 01:30:38PM +0100, Lothar Waßmann wrote: > > > > > > > > > - select SND_SOC_FSL_SSI > > > > > + select SND_SOC_FSL_SAI if SOC_IMX6UL > > > > > + select SND_SOC_FSL_SSI if SOC_IMX6Q || SOC_IMX6SL || SOC_IMX6SX > > > > > > > > Does this card not work for older i.MXs (which had the same SSI/AUDMUX > > > > combination as the majority of the i.MX6 family) as well? > > > > > > It's widely used in older i.MXs according to their DTS files. So > > > it should be safer to just leave SSI over here. > > > > > Nothing prevents you to enable the SSI driver on any i.MX6 module. > > What about i.MX2, 3 and 5 series? Will they still be able to enable > SSI without changing .config file as usual? > > > The only change I made is to select the SAI driver instead of the SSI > > driver on i.MX6UL because the i.MX6UL does not have an SSI unit! > > > > > And I actually doubt the feasibility of running this driver with > > > i.MX6UL as there might not be an AUDMUX on i.MX6UL since it does > > > not have SSI any more while the driver always touches the address > > > space of AUDMUX which may not exist on i.MX6UL. > > > > > #define this driver > > Your change is applied to "SND_SOC_IMX_SGTL5000" whose corresponding > driver is the imx-sgtl5000.c file. > > > The FSL_SAI driver does not touch the audmux address space in any way. > > This imx-sgtl5000 driver does access AUDMUX registers. And I thought > you tried to use this one which made me very confused. > That change is obsolete, because as Mark Brown suggested, the simple-card driver works perfectly well. > > The simple-card audio driver works perfectly well with the FSL_SAI > > driver on i.MX6UL. > > It seems like you are using simple-card while letting the other driver > (imx-sgtl5000) select SAI for you. It doesn't sound so right to me. > That was before I found out that the simple-card driver works. Lothar Waßmann
[toc] | [prev] | [next] | [standalone]
| From | Lothar Waßmann <LW@KARO-electronics.de> |
|---|---|
| Date | 2016-01-29 07:10 +0100 |
| Message-ID | <qWapP-6Zf-1@gated-at.bofh.it> |
| In reply to | #1321111 |
Hi, On Thu, 28 Jan 2016 23:33:52 +0100 Mark Brown wrote: > On Wed, Jan 20, 2016 at 01:30:38PM +0100, Lothar Waßmann wrote: > > > - select SND_SOC_FSL_SSI > > + select SND_SOC_FSL_SAI if SOC_IMX6UL > > + select SND_SOC_FSL_SSI if SOC_IMX6Q || SOC_IMX6SL || SOC_IMX6SX > > Does this card not work for older i.MXs (which had the same SSI/AUDMUX > combination as the majority of the i.MX6 family) as well? > Our baseboard contains an SGTL5000 codec which is working with i.MX25, i.MX27, i.MX5, i.MX6Q, i.MX6DL with the fsl_ssi and imx-sgtl5000 + imx-audmux driver, on i.MX28 with the mxs-saif and mxs-sgtl5000 driver and on i.MX6UL with the fsl_sai + simple-card driver. Lothar Waßmann
[toc] | [prev] | [next] | [standalone]
| From | Nicolin Chen <nicoleotsuka@gmail.com> |
|---|---|
| Date | 2016-01-29 07:40 +0100 |
| Message-ID | <qWaSR-7bs-1@gated-at.bofh.it> |
| In reply to | #1321495 |
On Fri, Jan 29, 2016 at 06:59:38AM +0100, Lothar Waßmann wrote: > Hi, > > On Thu, 28 Jan 2016 23:33:52 +0100 Mark Brown wrote: > > On Wed, Jan 20, 2016 at 01:30:38PM +0100, Lothar Waßmann wrote: > > > > > - select SND_SOC_FSL_SSI > > > + select SND_SOC_FSL_SAI if SOC_IMX6UL > > > + select SND_SOC_FSL_SSI if SOC_IMX6Q || SOC_IMX6SL || SOC_IMX6SX > > > > Does this card not work for older i.MXs (which had the same SSI/AUDMUX > > combination as the majority of the i.MX6 family) as well? > > > Our baseboard contains an SGTL5000 codec which is working with > i.MX25, i.MX27, i.MX5, i.MX6Q, i.MX6DL with the fsl_ssi and imx-sgtl5000 > + imx-audmux driver, on i.MX28 with the mxs-saif and mxs-sgtl5000 driver > and on i.MX6UL with the fsl_sai + simple-card driver. Have you tried fsl-asoc-card to connect SSI/SAI with sgtl5000? If it works for you directly, I believe things should be easier for you instead of dealing with Kconfig.
[toc] | [prev] | [next] | [standalone]
| From | Lothar Waßmann <LW@KARO-electronics.de> |
|---|---|
| Date | 2016-01-29 10:50 +0100 |
| Message-ID | <qWdQK-La-11@gated-at.bofh.it> |
| In reply to | #1321503 |
Hi, On Thu, 28 Jan 2016 22:30:13 -0800 Nicolin Chen wrote: > On Fri, Jan 29, 2016 at 06:59:38AM +0100, Lothar Waßmann wrote: > > Hi, > > > > On Thu, 28 Jan 2016 23:33:52 +0100 Mark Brown wrote: > > > On Wed, Jan 20, 2016 at 01:30:38PM +0100, Lothar Waßmann wrote: > > > > > > > - select SND_SOC_FSL_SSI > > > > + select SND_SOC_FSL_SAI if SOC_IMX6UL > > > > + select SND_SOC_FSL_SSI if SOC_IMX6Q || SOC_IMX6SL || SOC_IMX6SX > > > > > > Does this card not work for older i.MXs (which had the same SSI/AUDMUX > > > combination as the majority of the i.MX6 family) as well? > > > > > Our baseboard contains an SGTL5000 codec which is working with > > i.MX25, i.MX27, i.MX5, i.MX6Q, i.MX6DL with the fsl_ssi and imx-sgtl5000 > > + imx-audmux driver, on i.MX28 with the mxs-saif and mxs-sgtl5000 driver > > and on i.MX6UL with the fsl_sai + simple-card driver. > > Have you tried fsl-asoc-card to connect SSI/SAI with sgtl5000? If it > works for you directly, I believe things should be easier for you > instead of dealing with Kconfig. > My patch simply selects the FSL_SAI instead of the FSL_SSI interface for i.MX6UL since the latter is NOT AVAILABLE on i.MX6UL and thus it doesn't make any sense to select it on this SoC. But maybe the select statements should be removed altogether since they are a case of the frowned-upon "select for user visible symbols". Lothar Waßmann
[toc] | [prev] | [next] | [standalone]
| From | Mark Brown <broonie@kernel.org> |
|---|---|
| Date | 2016-01-29 12:20 +0100 |
| Message-ID | <qWffQ-240-23@gated-at.bofh.it> |
| In reply to | #1321495 |
[Multipart message — attachments visible in raw view] — view raw
On Fri, Jan 29, 2016 at 06:59:38AM +0100, Lothar Waßmann wrote: > On Thu, 28 Jan 2016 23:33:52 +0100 Mark Brown wrote: > > On Wed, Jan 20, 2016 at 01:30:38PM +0100, Lothar Waßmann wrote: > > > - select SND_SOC_FSL_SSI > > > + select SND_SOC_FSL_SAI if SOC_IMX6UL > > > + select SND_SOC_FSL_SSI if SOC_IMX6Q || SOC_IMX6SL || SOC_IMX6SX > > Does this card not work for older i.MXs (which had the same SSI/AUDMUX > > combination as the majority of the i.MX6 family) as well? > Our baseboard contains an SGTL5000 codec which is working with > i.MX25, i.MX27, i.MX5, i.MX6Q, i.MX6DL with the fsl_ssi and imx-sgtl5000 > + imx-audmux driver, on i.MX28 with the mxs-saif and mxs-sgtl5000 driver > and on i.MX6UL with the fsl_sai + simple-card driver. That's your base board but that doesn't really help other users who may be using this driver (and even for your system I'm not clear how any configuration without an i.MX6 will enable a CPU DAI driver with this change).
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web