Skip to content

Conversation

@bardliao
Copy link
Collaborator

@bardliao bardliao commented Jan 4, 2021

SOF driver will be selected if DMIC or SoundWire is used.

Signed-off-by: Bard Liao bard.liao@intel.com

Fixes: #2661

@bardliao bardliao changed the title [RFC] ALSA: hda: intel-dsp-config: add PCI id for TGL-H ALSA: hda: intel-dsp-config: add PCI id for TGL-H Jan 6, 2021
@bardliao bardliao requested a review from xiulipan January 6, 2021 09:05
Copy link

@xiulipan xiulipan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link

@xiulipan xiulipan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bardliao maybe also a quick clean up for EHL?

RanderWang
RanderWang previously approved these changes Jan 7, 2021
bardliao and others added 2 commits January 7, 2021 15:31
Currently, SOF is the only audio driver which supports TGL or EHL platforms.
So we should select SOF driver unconditionally.

Fixes: 82d9d54 ('ALSA: hda: add Intel DSP configuration / probe code')
Signed-off-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Adding PCI id for TGL-H and SOF will be the default audio driver.

Signed-off-by: Bard Liao <bard.liao@intel.com>
@bardliao
Copy link
Collaborator Author

bardliao commented Jan 7, 2021

@bardliao maybe also a quick clean up for EHL?

@xiulipan Done

Copy link

@xiulipan xiulipan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the fix.

@bardliao bardliao merged commit fc682e3 into thesofproject:topic/sof-dev Jan 7, 2021
@kv2019i
Copy link
Collaborator

kv2019i commented Jan 7, 2021

@bardliao @xiulipan @libinyang I'm afraid this is not quite correct. Even for TGL, EHL and newer, the legacy driver should still be the default, unless Soundwire or DMIC is detected.

@xiulipan
Copy link

xiulipan commented Jan 7, 2021

@mengdonglin @plbossart Any clarify here? On TGL+ platforms, will SOF be default or SOF only if DMIC and SDW.

@bardliao
Copy link
Collaborator Author

bardliao commented Jan 7, 2021

@bardliao @xiulipan @libinyang I'm afraid this is not quite correct. Even for TGL, EHL and newer, the legacy driver should still be the default, unless Soundwire or DMIC is detected.

@kv2019i Oops, I forgot legacy HDA driver. Can we revert 7c86362?

@bardliao
Copy link
Collaborator Author

bardliao commented Jan 7, 2021

The fixup PR is #2672. I am thinking someday we may need to detect I2S as well since SOF will be the default if I2S is using.

Copy link
Member

@plbossart plbossart left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Revert needed!

},
{
.flags = FLAG_SOF | FLAG_SOF_ONLY_IF_DMIC_OR_SOUNDWIRE,
.device = 0xa0c8,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No that's not correct. If we don't have DMIC/SoundWire, and it's not a Chromebook, then we want to use the legacy HDaudio driver.
The Chromebook does not rely on NHLT so the DMIC detection will fail, so it needs a dedicated quirk.

This needs to be reverted IMHO.

{
.flags = FLAG_SOF,
.device = 0x43c8,
},
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same comment as above, this will unconditionally select SOF. This is not what we want.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] Multimedia audio device 8086:43c8 should load SOF driver by default

7 participants