Skip to content
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

hda: phytium: Add Phytium hda driver support [New] #312

Merged

Conversation

Avenger-285714
Copy link
Collaborator

@Avenger-285714 Avenger-285714 commented Jul 7, 2024

This patch adds the Phytium hda driver support.

@deepin-ci-robot
Copy link

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign yukarichiba for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@Avenger-285714
Copy link
Collaborator Author

@@ -134,7 +134,11 @@ void snd_hdac_stream_start(struct hdac_stream *azx_dev)

trace_snd_hdac_stream_start(bus, azx_dev);

#ifdef CONFIG_SND_HDA_PHYTIUM
azx_dev->start_wallclk = snd_hdac_chip_readl(bus, WALLCLK) / 15;
Copy link
Member

Choose a reason for hiding this comment

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

这里/15和下面的/25是什么含义? 需要做read_cpuid_implementor隔离吧,不然会影响arm64的内核。

Choose a reason for hiding this comment

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

这里是可以删掉的,实测不影响功能,这算是遗留的一个问题,主线一直没有去掉,建议直接去掉(/15和下面的/25)

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

这里是可以删掉的,实测不影响功能,这算是遗留的一个问题,主线一直没有去掉,建议直接去掉(/15和下面的/25)

done.

@@ -172,6 +175,42 @@ int snd_hdac_bus_send_cmd(struct hdac_bus *bus, unsigned int val)
bus->corb.buf[wp] = cpu_to_le32(val);
snd_hdac_chip_writew(bus, CORBWP, wp);

if (bus->cmd_resend) {
Copy link
Contributor

Choose a reason for hiding this comment

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

个人认为按照主线标准的话 cmd_resend 相关的逻辑应该独立成一个 commit (以及变成位域这件事情真的不如直接 squash ……)

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

个人认为按照主线标准的话 cmd_resend 相关的逻辑应该独立成一个 commit (以及变成位域这件事情真的不如直接 squash ……)

我这边的看法是尽量保留来自上下游厂商的原汁原味的补丁,如有异议再另行修改

tianwei and others added 2 commits July 8, 2024 15:07
This patch adds the Phytium hda driver support.

Signed-off-by: Chen Baozi <[email protected]>
Signed-off-by: Wang Yinfeng <[email protected]>
Signed-off-by: Tian Wei <[email protected]>
Reviewed-by: Wentao Guan <[email protected]>
Signed-off-by: WangYuli <[email protected]>
A ':1' bit field gives the compiler the option to squeeze it in
with other booleans, thereby optimizing memory usage.

Suggested-by: Icenowy <[email protected]>
Signed-off-by: WangYuli <[email protected]>
@deepin-ci-robot
Copy link

deepin pr auto review

Add Phytium HDA driver

git-svn-id: 366494441966da344b4f78a40f55d24973fa8e5@1668 13f79535-47bb-0310-9956-ffa450edef68

@Avenger-285714 Avenger-285714 merged commit d91779f into deepin-community:linux-6.6.y Jul 8, 2024
3 of 5 checks passed
@Avenger-285714 Avenger-285714 deleted the phytium-hda branch July 8, 2024 08:28
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.

6 participants