linux-spi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Mika Westerberg <mika.westerberg-VuQAYsv1563Yd54FQh9/CA@public.gmane.org>
To: Christian Hartmann <cornogle-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org>
Cc: linux-spi-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
	alsa-devel-K7yf7f+aM1XWsZ/bQMPhNw@public.gmane.org,
	dan.carpenter-QHcLZuEGTsvQT0dZR+AlfA@public.gmane.org,
	Mark Brown <broonie-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>,
	Robert Jarzmik <robert.jarzmik-GANU6spQydw@public.gmane.org>,
	Daniel Mack <daniel-cYrQPVfZoowdnm+yROfE0A@public.gmane.org>,
	Haojian Zhuang
	<haojian.zhuang-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>,
	jarkko.nikula-VuQAYsv1563Yd54FQh9/CA@public.gmane.org
Subject: Re: Fwd: [alsa-devel] [PATCH 1/1] SPI : spi-pxa2xx : fix spi init of WM510205 codec via ACPI (resend)
Date: Thu, 25 Jun 2015 17:01:05 +0300	[thread overview]
Message-ID: <20150625140105.GP827@lahna.fi.intel.com> (raw)
In-Reply-To: <CAKor6TfxNW6UW6iX_FkRn2yZOHvdRHcsj6pKoKH-UWU51Bqvvg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>

On Thu, Jun 25, 2015 at 02:18:23PM +0200, Christian Hartmann wrote:
> Hi Mika, Dan et al.
> 
> @Dan : thank you, I will use get_maintainer.pl as of now.
> 
> @Mika: you mean I should prepare a new DSDT table and in this case
> overwrite the SPI  value there with the 0 and load it (the DSDT table
> ) into a custom kernel build ?? I will do this (cause all what I want
> is to enable the codec and to hear sound)

I thought that you are developing a new system where you can affect the
firmware/BIOS source.

Obviously this is not the case so you have close to zero possibility to
get the vendor to fix the broken firmware :-/

> currently I have in the extracted DSDT table from this device the SPI1
> controller for the "AUDI" device as seen in this snippet :
> 
>     Scope (_SB)
>     {
>         Device (LPEA)
>         {
>             Name (_ADR, Zero)  // _ADR: Address
>             Name (_HID, "80860F28" /* Intel SST Audio DSP */)  //
> _HID: Hardware ID
>             Name (_CID, "80860F28" /* Intel SST Audio DSP */)  //
> _CID: Compatible ID
>             Name (_DDN, "Intel(R) Low Power Audio Controller -
> 80860F28")  // _DDN: DOS Device Name
>             Name (_SUB, "17AA7004")  // _SUB: Subsystem ID
>             Name (_UID, One)  // _UID: Unique ID
>             Name (_DEP, Package (0x01)  // _DEP: Dependencies
>             {
>                 ^SPI1.AUDI
>             })
>             Name (_PR0, Package (0x01)  // _PR0: Power Resources for D0
>             {
>                 PLPE
>             })
> 
> .... some lines later follows the AUDI device with
>             Device (AUDI)
>             {
>                 Name (_HID, "WM510205")  // _HID: Hardware ID
>                 Name (_CID, "WM510205")  // _CID: Compatible ID
>                 Name (_DDN, "Wolfson Microelectronics Audio WM5102")
> // _DDN: DOS Device Name
>                 Method (_CRS, 0, NotSerialized)  // _CRS: Current
> Resource Settings
>                 {
>                     Name (SBUF, ResourceTemplate ()
>                     {
>                         SpiSerialBus (0x0001, PolarityLow, FourWireMode, 0x08,
>                             ControllerInitiated, 0x007A1200, ClockPolarityLow,
>                             ClockPhaseFirst, "\\_SB.SPI1",
>                             0x00, ResourceConsumer, ,
>                             )

This is wrong as, like I said the Intel Baytrail SPI host controller
only supports one native chipselect. 

>                         GpioInt (Edge, ActiveLow, ExclusiveAndWake,
> PullNone, 0x0000,
>                             "\\_SB.GPO2", 0x00, ResourceConsumer, ,
>                             )
>                             {   // Pin list
>                                 0x0004
>                             }
>                         GpioIo (Exclusive, PullDefault, 0x0000,
> 0x0000, IoRestrictionOutputOnly,
>                             "\\_SB.I2C7.PMIC", 0x00, ResourceConsumer, ,
>                             )
>                             {   // Pin list
>                                 0x0003
>                             }
>                         GpioIo (Exclusive, PullDefault, 0x0000,
> 0x0000, IoRestrictionOutputOnly,
>                             "\\_SB.GPO1", 0x00, ResourceConsumer, ,
>                             )
>                             {   // Pin list
>                                 0x0017
>                             }
>                     })
>                     Return (SBUF) /* \_SB_.SPI1.AUDI._CRS.SBUF */
>                 }
> ....
> 
> I t makes sense to me, to change the current value(s) in the DSDT and
> I have read about it to use a custom DSDT table but I am not 100% sure
> yet (until I have tested it).
> 
> If I understand you correct, than all I have to do is to change the
> 'SPI1' string in this dsdt to SPI0 like
> ^SPI1.AUDI to ^SPI0.AUDI and this block here
> SpiSerialBus (0x0001, PolarityLow, FourWireMode, 0x08,
>                             ControllerInitiated, 0x007A1200, ClockPolarityLow,
>                             ClockPhaseFirst, "\\_SB.SPI1",
>                             0x00, ResourceConsumer, ,
> 
> becomes
> SpiSerialBus (0x0000, PolarityLow, FourWireMode, 0x08,
>                             ControllerInitiated, 0x007A1200, ClockPolarityLow,
>                             ClockPhaseFirst, "\\_SB.SPI0",
>                             0x00, ResourceConsumer, ,

Only change the chipselect above. \\SB.SPI1 is the host controller and
that's probably correct.

It is worth a try using the custom DSDT. If it brings you working audio
then we need to figure out how to work this around in the kernel.

BTW, does the audio work in Windows?

I somehow suspect that it just ignores the chipselect in the SPI driver
which might explain why it works (if it works, that is).
--
To unsubscribe from this list: send the line "unsubscribe linux-spi" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

  parent reply	other threads:[~2015-06-25 14:01 UTC|newest]

Thread overview: 77+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <CAKor6TfKws63jh6f3VzyYpmTffL4-DHWDTdJ6GSgDC08C5W=8w@mail.gmail.com>
     [not found] ` <20150625073618.GH827@lahna.fi.intel.com>
     [not found]   ` <20150625073618.GH827-3PARRvDOhMZrdx17CPfAsdBPR1lH4CV8@public.gmane.org>
2015-06-25 12:18     ` Fwd: [alsa-devel] [PATCH 1/1] SPI : spi-pxa2xx : fix spi init of WM510205 codec via ACPI (resend) Christian Hartmann
     [not found]       ` <CAKor6TfxNW6UW6iX_FkRn2yZOHvdRHcsj6pKoKH-UWU51Bqvvg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2015-06-25 14:01         ` Mika Westerberg [this message]
2015-06-25 14:58         ` Mark Brown
     [not found]           ` <20150625145853.GP14071-GFdadSzt00ze9xe1eoZjHA@public.gmane.org>
2015-06-25 15:44             ` Charles Keepax
     [not found]               ` <20150625154407.GE6321-yzvPICuk2AATkU/dhu1WVueM+bqZidxxQQ4Iyu8u01E@public.gmane.org>
2015-06-25 15:56                 ` Mark Brown
     [not found]                   ` <20150625155612.GS14071-GFdadSzt00ze9xe1eoZjHA@public.gmane.org>
2015-06-25 16:11                     ` Charles Keepax
     [not found]                       ` <20150625161108.GF6321-yzvPICuk2AATkU/dhu1WVueM+bqZidxxQQ4Iyu8u01E@public.gmane.org>
2015-06-29  9:44                         ` Mark Brown
2015-06-29  8:12                     ` Christian Hartmann
     [not found]                       ` <CAKor6TdZNTLnhxpruqDxe4nQsDL+e6xgVHOtVdz4LuFisKNsoQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2015-06-29  8:35                         ` Charles Keepax
2015-06-26 11:46                 ` [alsa-devel] Fwd: " Pierre-Louis Bossart
     [not found]                   ` <558D3BAA.3080700-VuQAYsv1563Yd54FQh9/CA@public.gmane.org>
2015-06-26 11:58                     ` Mark Brown
     [not found]                       ` <20150626115823.GY14071-GFdadSzt00ze9xe1eoZjHA@public.gmane.org>
2015-06-29  7:27                         ` Christian Hartmann
     [not found]                           ` <CAKor6Tf20eC1WQSO=AV2b+XoB5Qv-2Oin_nrrTJUiDV4czxLjA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2015-06-29  7:46                             ` Christian Hartmann
     [not found]                               ` <CAKor6TdzzAqG1yNtqkWftdvNo8_bxC=qnU+60rgiM=38qrJ2yQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2015-06-29 10:22                                 ` Mark Brown
2015-06-29  9:48                             ` Mark Brown
     [not found]                               ` <20150629094854.GB11162-GFdadSzt00ze9xe1eoZjHA@public.gmane.org>
2015-06-30  7:14                                 ` Christian Hartmann
     [not found]                                   ` <CAKor6TdDPb2qOgdHbeX2w+yQa_ioDM5ak9bk+=jF+cKt_twiXw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2015-06-30  9:25                                     ` Mark Brown
2015-06-30 10:34                                     ` Charles Keepax
     [not found]                                       ` <20150630103404.GI6321-yzvPICuk2AATkU/dhu1WVueM+bqZidxxQQ4Iyu8u01E@public.gmane.org>
2015-07-07  7:06                                         ` Christian Hartmann
     [not found]                                           ` <CAKor6TdKk2OUz4o12RiQBSVZyhD=L4JpBJcYkGE=_6X+ZeQY_g-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2015-07-07  9:56                                             ` Charles Keepax
     [not found]                                               ` <20150707095613.GG16517-yzvPICuk2AATkU/dhu1WVueM+bqZidxxQQ4Iyu8u01E@public.gmane.org>
2015-07-07 11:40                                                 ` Mark Brown
2015-07-07 12:16                                             ` Charles Keepax
2015-07-13  9:53                                             ` Charles Keepax
     [not found]                                               ` <20150713095359.GM16517-yzvPICuk2AATkU/dhu1WVueM+bqZidxxQQ4Iyu8u01E@public.gmane.org>
2015-07-15  7:01                                                 ` Christian Hartmann
     [not found]                                                   ` <CAKor6Td83zgOS+iHGHGhFW4n26H=tC-QQDuzaHHfybhLeH-jvw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2015-07-15  7:17                                                     ` Christian Hartmann
     [not found]                                                       ` <CAKor6TdheYM73aqti362bOnP2GZmX60uuDY5v2eow1vqO9tcKw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2015-07-15  8:12                                                         ` Charles Keepax
     [not found]                                                           ` <20150715081224.GN16517-yzvPICuk2AATkU/dhu1WVueM+bqZidxxQQ4Iyu8u01E@public.gmane.org>
2015-07-15  9:17                                                             ` Mark Brown
     [not found]                                                               ` <20150715091709.GK11162-GFdadSzt00ze9xe1eoZjHA@public.gmane.org>
2015-07-17  6:56                                                                 ` Christian Hartmann
2015-07-17  7:11                                                                   ` Christian Hartmann
     [not found]                                                                   ` <CAKor6TcSc7n=Rd9NJAf-6cYXr50Z62cbcsbuaEutRMPAiM=2NQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2015-07-17  8:54                                                                     ` [alsa-devel] " Charles Keepax
2015-08-10  7:00                                                                       ` Christian Hartmann
     [not found]                                                                         ` <CAKor6Tcof3PA3JGD2=4X8mtSak8ka9BVD2L4zdYC4M1yEYEXjg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2015-08-10  7:53                                                                           ` [alsa-devel] " Charles Keepax
2015-08-10  8:00                                                                         ` Christian Hartmann
     [not found]                                                                           ` <CAKor6TdLkGZbARmV1CfqUiguH8HAD+oC8VSsH_OkNQ6E-7YVAw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2015-08-10  8:10                                                                             ` [alsa-devel] " Charles Keepax
2015-08-10  8:35                                                                               ` Mika Westerberg
     [not found]                                                                                 ` <20150810083540.GE1540-3PARRvDOhMZrdx17CPfAsdBPR1lH4CV8@public.gmane.org>
2015-08-10  9:20                                                                                   ` [alsa-devel] " Christian Hartmann
     [not found]                                                                                     ` <CAKor6TfZC3AY0p-85mFAUJJYQ360NoDu6AppipSqAD73S_EkzQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2015-08-10  9:26                                                                                       ` Mika Westerberg
     [not found]                                                                                         ` <20150810092632.GA1541-3PARRvDOhMZrdx17CPfAsdBPR1lH4CV8@public.gmane.org>
2015-08-10 12:43                                                                                           ` Christian Hartmann
2015-08-10 13:48                                                                                   ` Christian Hartmann
     [not found]                                                                                     ` <CAKor6Tc26kKG-7ytxBjT41S1h4eORoeTg_T=nZ4dZGM1H0gAMQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2015-08-10 14:02                                                                                       ` Mika Westerberg
     [not found]                                                                                         ` <20150810140207.GB1541-3PARRvDOhMZrdx17CPfAsdBPR1lH4CV8@public.gmane.org>
2015-08-14 10:08                                                                                           ` Christian Hartmann
     [not found]                                                                                             ` <CAKor6TdKrQrvXTPU=fzL9LTCBbyc9WAbLnYdObY+Wu73g1w6Fg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2015-08-19 10:29                                                                                               ` Christian Hartmann
     [not found]                                                                                                 ` <CAKor6Tep1jjOnoPn7e5Djird3RVDNP8Gjcb8HOKO6g-_R5++VQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2015-08-19 13:43                                                                                                   ` Mika Westerberg
     [not found]                                                                                                     ` <20150819134328.GU1552-3PARRvDOhMZrdx17CPfAsdBPR1lH4CV8@public.gmane.org>
2015-08-20  9:38                                                                                                       ` Christian Hartmann
     [not found]                                                                                                         ` <CAKor6Tc6RDW+2uuX2yMszk3O69=6QTPdd+emC-m_Cro67VPR8g-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2015-08-20  9:45                                                                                                           ` Mika Westerberg
     [not found]                                                                                                             ` <20150820094542.GC30005-3PARRvDOhMZrdx17CPfAsdBPR1lH4CV8@public.gmane.org>
2015-08-20 11:34                                                                                                               ` Christian Hartmann
     [not found]                                                                                                                 ` <CAKor6Te-DSDxx711-EQi=fw46nNPGnQNqhj-+6upBxhOOp5XvA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2015-08-20 11:52                                                                                                                   ` Christian Hartmann
2015-08-20 11:58                                                                                                                   ` Mika Westerberg
     [not found]                                                                                                                     ` <20150820115845.GF30005-3PARRvDOhMZrdx17CPfAsdBPR1lH4CV8@public.gmane.org>
2015-08-21  7:31                                                                                                                       ` Christian Hartmann
     [not found]                                                                                                                         ` <CAKor6Teq=Aoa6WYkTEVpjBPsWziL-o5FzQHxJWOMeaTrMzXpMg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2015-08-21  7:43                                                                                                                           ` Mika Westerberg
     [not found]                                                                                                                             ` <20150821074310.GM30005-3PARRvDOhMZrdx17CPfAsdBPR1lH4CV8@public.gmane.org>
2015-08-21 12:09                                                                                                                               ` Christian Hartmann
     [not found]                                                                                                                                 ` <CAKor6TeJp4ti6_QVCEpz0x7c2NwvUiS5wq_=_WDjM3B7T4=1Yg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2015-08-21 12:33                                                                                                                                   ` Christian Hartmann
2015-08-24  8:51                                                                                                                                 ` Charles Keepax
2015-08-24 13:25                                                                                                                                   ` Christian Hartmann
     [not found]                                                                                                                                     ` <CAKor6TcRWgn-Z+Va0JKCBqxVA9HBSLMR_vh-z8MSBZebn9kDVg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2015-08-25  6:21                                                                                                                                       ` [alsa-devel] " Mark Brown
     [not found]                                                                                                                                         ` <20150825062157.GB27431-GFdadSzt00ze9xe1eoZjHA@public.gmane.org>
2015-08-26  8:47                                                                                                                                           ` Christian Hartmann
     [not found]                                                                                                                                             ` <CAKor6Tf_8J4DVrVRShw2ked-zJzmP6G1P1i=vTcbzWX-J1H6dQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2015-08-26  8:58                                                                                                                                               ` Christian Hartmann
2015-08-26  9:13                                                                                                                                                 ` Charles Keepax
2015-08-28  7:22                                                                                                                                                   ` [alsa-devel] " Christian Hartmann
     [not found]                                                                                                                                                 ` <CAKor6TfpWuhTG6dfARdHmXEb+bLpm5Q6Z-A0g60VPD2fCWHbOg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2015-08-26 10:01                                                                                                                                                   ` Mika Westerberg
     [not found]                                                                                                                                                     ` <20150826100155.GA1513-3PARRvDOhMZrdx17CPfAsdBPR1lH4CV8@public.gmane.org>
2015-08-27 11:44                                                                                                                                                       ` Christian Hartmann
2015-08-27 11:59                                                                                                                                                         ` Mika Westerberg
     [not found]                                                                                                                                                           ` <20150827115914.GF28428-3PARRvDOhMZrdx17CPfAsdBPR1lH4CV8@public.gmane.org>
2015-08-27 14:56                                                                                                                                                             ` [alsa-devel] " Mark Brown
     [not found]                                                                                                                                                               ` <20150827145614.GC5313-GFdadSzt00ze9xe1eoZjHA@public.gmane.org>
2015-08-28  9:00                                                                                                                                                                 ` Mika Westerberg
2015-08-28  9:07                                                                                                                                                                   ` Richard Fitzgerald
     [not found]                                                                                                                                                                     ` <1440752855.25096.3.camel-WeElTRBN8n0bEPBeyYQi64iQ8/zYDDdY1BehtkLrGTY@public.gmane.org>
2015-08-28  9:12                                                                                                                                                                       ` [alsa-devel] " Mika Westerberg
     [not found]                                                                                                                                                                   ` <20150828090042.GI28428-3PARRvDOhMZrdx17CPfAsdBPR1lH4CV8@public.gmane.org>
2015-08-28  9:16                                                                                                                                                                     ` Mark Brown
     [not found]                                                                                                                                                               ` <CAKor6Tf8kB0WPXLTBFmCzUJkMVEDu-xTEyw0-_NZvBdFSyQSFA@mail.gmail.com>
     [not found]                                                                                                                                                                 ` <CAKor6Tf8kB0WPXLTBFmCzUJkMVEDu-xTEyw0-_NZvBdFSyQSFA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2015-08-28  9:50                                                                                                                                                                   ` Fwd: " Christian Hartmann
     [not found]                                                                                                                                                                     ` <CAKor6TfW4reRz3m-xkCr_ZUfHQkfqT3q+S7JCpO-9F+k1QW38g-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2015-09-01  9:45                                                                                                                                                                       ` Christian Hartmann
     [not found]                                                                                                                                                                         ` <CAKor6Tf7_Hiyc1v_TGvdVAU+G84Gp+KgKeSGi8EQJRoq9rhMuw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2015-09-02  8:13                                                                                                                                                                           ` Charles Keepax
2015-09-04 13:32                                                                                                                                                                             ` Christian Hartmann
2015-09-04 14:34                                                                                                                                                                               ` Charles Keepax
     [not found]                                                                                                                                                                                 ` <20150904143434.GA1514-ARjQNJ2nNhTg0ogRn3sK4gTTu0opVTaCmpATvIKMPHk@public.gmane.org>
2015-09-07  7:58                                                                                                                                                                                   ` [alsa-devel] " Christian Hartmann
     [not found]                                                                                                                                                                                     ` <CAKor6TfhaHfqkmz-dogJ6dEUe06QFv-ee7uPOLiEGSTh3ibkhQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2015-09-28  9:08                                                                                                                                                                                       ` Charles Keepax
2015-09-29  7:48                                                                                                                                                                                         ` Christian Hartmann
2015-09-29  7:57                                                                                                                                                                                           ` Charles Keepax
2015-10-05 10:54                                                                                                                                                                                             ` Christian Hartmann

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=20150625140105.GP827@lahna.fi.intel.com \
    --to=mika.westerberg-vuqaysv1563yd54fqh9/ca@public.gmane.org \
    --cc=alsa-devel-K7yf7f+aM1XWsZ/bQMPhNw@public.gmane.org \
    --cc=broonie-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org \
    --cc=cornogle-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org \
    --cc=dan.carpenter-QHcLZuEGTsvQT0dZR+AlfA@public.gmane.org \
    --cc=daniel-cYrQPVfZoowdnm+yROfE0A@public.gmane.org \
    --cc=haojian.zhuang-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
    --cc=jarkko.nikula-VuQAYsv1563Yd54FQh9/CA@public.gmane.org \
    --cc=linux-spi-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=robert.jarzmik-GANU6spQydw@public.gmane.org \
    /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).