diff mbox series

ASoC: SOF: Intel: hda: Fix SKL dai count

Message ID 20200113114054.9716-1-cezary.rojewski@intel.com (mailing list archive)
State Accepted
Commit a6947c9d86bcfd61b758b5693eba58defe7fd2ae
Headers show
Series ASoC: SOF: Intel: hda: Fix SKL dai count | expand

Commit Message

Cezary Rojewski Jan. 13, 2020, 11:40 a.m. UTC
With fourth pin added for iDisp for skl_dai, update SOF_SKL_DAI_NUM to
account for the change. Without this, dais from the bottom of the list
are skipped. In current state that's the case for 'Alt Analog CPU DAI'.

Fixes: ac42b142cd76 ("ASoC: SOF: Intel: hda: Add iDisp4 DAI")
Signed-off-by: Cezary Rojewski <cezary.rojewski@intel.com>
---
 sound/soc/sof/intel/hda.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Pierre-Louis Bossart Jan. 13, 2020, 3:30 p.m. UTC | #1
On 1/13/20 5:40 AM, Cezary Rojewski wrote:
> With fourth pin added for iDisp for skl_dai, update SOF_SKL_DAI_NUM to
> account for the change. Without this, dais from the bottom of the list
> are skipped. In current state that's the case for 'Alt Analog CPU DAI'.

Can you clarify if you are fixing an issue on TGL - which isn't 
supported in the mainline? Or fixing an issue with SKL w/ HDaudio support?

FWIW, I couldn't make HDaudio codec support work on KBL, with the 
changes in ASoC core, the HDaudio support is broken with the SKL driver 
(or depends on an unreleased topology). See traces at:

https://github.com/thesofproject/linux/pull/1667/commits/ae584cf633f232d9cf828bb599a1b620cd0b4fe0

> 
> Fixes: ac42b142cd76 ("ASoC: SOF: Intel: hda: Add iDisp4 DAI")
> Signed-off-by: Cezary Rojewski <cezary.rojewski@intel.com>
> ---
>   sound/soc/sof/intel/hda.h | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/sound/soc/sof/intel/hda.h b/sound/soc/sof/intel/hda.h
> index 47408ec0de40..a4d030bfeee1 100644
> --- a/sound/soc/sof/intel/hda.h
> +++ b/sound/soc/sof/intel/hda.h
> @@ -348,7 +348,7 @@
>   
>   /* Number of DAIs */
>   #if IS_ENABLED(CONFIG_SND_SOC_SOF_HDA)
> -#define SOF_SKL_NUM_DAIS		14
> +#define SOF_SKL_NUM_DAIS		15
>   #else
>   #define SOF_SKL_NUM_DAIS		8
>   #endif
>
Pierre-Louis Bossart Jan. 14, 2020, 4:13 p.m. UTC | #2
On 1/14/20 5:18 AM, Cezary Rojewski wrote:
> On 2020-01-13 16:30, Pierre-Louis Bossart wrote:
>> On 1/13/20 5:40 AM, Cezary Rojewski wrote:
>>> With fourth pin added for iDisp for skl_dai, update SOF_SKL_DAI_NUM to
>>> account for the change. Without this, dais from the bottom of the list
>>> are skipped. In current state that's the case for 'Alt Analog CPU DAI'.
>>
>> Can you clarify if you are fixing an issue on TGL - which isn't 
>> supported in the mainline? Or fixing an issue with SKL w/ HDaudio 
>> support?
> 
> This is not strictly connected to TGL but to any platform making use of 
> 'skl_dai[]' within /sof/intel. Encountered this issue when playing with 
> probes - my BEs added at the bottom of the list were omitted during 
> component registration. Once debug flags in asoc were enabled, 
> root-cause presented itself clearly.

ok.

Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>

> 
>> FWIW, I couldn't make HDaudio codec support work on KBL, with the 
>> changes in ASoC core, the HDaudio support is broken with the SKL 
>> driver (or depends on an unreleased topology). See traces at:
>>
>> https://github.com/thesofproject/linux/pull/1667/commits/ae584cf633f232d9cf828bb599a1b620cd0b4fe0 
>>
> 
> We do have working cAVS 1.5 machines (e.g.: SKL, KBL, KBL-R, ABL..) with 
> HDA on our end.
> Will checkout the existing "vanilla skylake" to filter the least amount 
> of changes needed to enable it. However, this can lead to topology 
> binary needed to be updated.

yes, that's the problem I faced, and since I don't have a clue how to 
change the topology on SKL I commented out the hard-coded parts in the 
machine driver.
diff mbox series

Patch

diff --git a/sound/soc/sof/intel/hda.h b/sound/soc/sof/intel/hda.h
index 47408ec0de40..a4d030bfeee1 100644
--- a/sound/soc/sof/intel/hda.h
+++ b/sound/soc/sof/intel/hda.h
@@ -348,7 +348,7 @@ 
 
 /* Number of DAIs */
 #if IS_ENABLED(CONFIG_SND_SOC_SOF_HDA)
-#define SOF_SKL_NUM_DAIS		14
+#define SOF_SKL_NUM_DAIS		15
 #else
 #define SOF_SKL_NUM_DAIS		8
 #endif