-
Notifications
You must be signed in to change notification settings - Fork 140
ASoC: Intel: boards: tgl_sdw_rt5682: Add machine driver #1885
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ASoC: Intel: boards: tgl_sdw_rt5682: Add machine driver #1885
Conversation
TGL machine driver with RT5682 connected SNDW Link0 with HDMI Audio & DMIC Support Signed-off-by: Naveen Manohar <naveen.m@intel.com>
|
Patch for Debug Purposes Only |
|
@naveen-manohar wrote:
Ack, I added "Draft-for-testing-not-ready-for-review" to inform people to not review this. Please remove the tag if you want to get reviews. |
|
@naveen-manohar could we look into reusing the same driver as for other SoundWire platforms? @RanderWang @bardliao now that I think of it, could we support the rt700 with the same machine driver, instead of maintaining sdw_rt700.c. That way we have a single machine driver for all SOF/SDW platforms. |
yes, the sdw_rt711_rt1308_rt715 can support rt700 and 5682 or other sdw codecs with codec info added. |
|
|
||
| config SND_SOC_INTEL_TGL_SOUNDWIRE_RT5682_MACH | ||
| tristate "TGL with RT5682 in SDW mode" | ||
| depends on I2C && ACPI |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
alignment
| ret = snd_soc_component_set_jack(component, jack, NULL); | ||
|
|
||
| if (ret == -EAGAIN) { | ||
| msleep(500); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
usleep_range()
|
|
||
| if (ret) { | ||
| dev_err(rtd->dev, "Headset Jack call-back failed: %d\n", ret); | ||
| return ret; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just do
if (ret)
dev_err(...);
return ret;
|
@naveen-manohar May I ask what would be the soc-acpi-intel-tgl-match.c change? Can you give an example |
@plbossart : Agreed, Let me try re-using sdw_rt711_rt1308_rt715.c for rt5682 at link0.. Its good thought to use single machine driver. |
|
@naveen-manohar we add more features in mach table, can I update your patch and create a PR for you ? |
|
Replaced by #1912 |
TGL machine driver with RT5682 connected SNDW Link0 with HDMI Audio
& DMIC Support
Signed-off-by: Naveen Manohar naveen.m@intel.com