Skip to content

ASoC: rt715-sdca: First version of rt715 sdw sdca codec driver - #2308

Merged
plbossart merged 1 commit into
thesofproject:topic/sof-devfrom
jack-cy-yu:topic/sof-dev
Oct 20, 2020
Merged

ASoC: rt715-sdca: First version of rt715 sdw sdca codec driver#2308
plbossart merged 1 commit into
thesofproject:topic/sof-devfrom
jack-cy-yu:topic/sof-dev

Conversation

@jack-cy-yu

Copy link
Copy Markdown

Update driver according to #2303 request.

Signed-off-by: Jack Yu jack.yu@realtek.com

@lyakhlyakh left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Thanks for the update! A couple more comments.

Comment threadsound/soc/codecs/rt715-sdca.c Outdated
Comment threadsound/soc/codecs/rt715-sdca.c Outdated
Comment threadsound/soc/codecs/rt715-sdca.c Outdated
Comment threadsound/soc/codecs/rt715-sdca.c Outdated
Comment threadsound/soc/codecs/rt715-sdca.c Outdated
Comment threadsound/soc/codecs/rt715-sdca.c Outdated
Comment threadsound/soc/codecs/rt715-sdca.c Outdated
Comment threadsound/soc/codecs/rt715-sdca.c Outdated
Comment threadsound/soc/codecs/rt715-sdca.c Outdated
Comment threadsound/soc/codecs/rt715-sdca.h Outdated
lyakh
lyakh previously approved these changes Jul 24, 2020

@lyakhlyakh left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Thanks for the update! Usually we update patches by force-pushing a new version, but a few weeks ago I indeed raised a question and proposed to do exactly what you have done - add a fixup patch on top of the existing commits. And your PR is a rather good example of why this is easier to review. Instead of comparing the two versions of your patch reviewing this small fixup is certainly easier. This difference is even much greater in multi-commit PRs. But I don't know what the maintainers will say, whether they'll agree to take these two commits and merge them into one themselves. What would probably help them though if you added a keyword "fixup!" in the beginning of your patch subject. You can just change the subject here to add it. You can also look through other PRs for examples.

RanderWang
RanderWang previously approved these changes Jul 24, 2020

@RanderWangRanderWang left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

LGTM

bardliao pushed a commit to bardliao/linux that referenced this pull request Aug 3, 2020
Update driver according to thesofproject#2308 request.
Signed-off-by: Jack Yu <jack.yu@realtek.com>
bardliao pushed a commit to bardliao/linux that referenced this pull request Aug 3, 2020
Update driver according to thesofproject#2308 request.
Signed-off-by: Jack Yu <jack.yu@realtek.com>

@bardliaobardliao left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Thanks @jack-cy-yu We are very closed. Please add rt714 in the id_table. Use dev_err instead of pr_err if possible and merge the two commits at last.

Comment threadsound/soc/codecs/rt715-sdca-sdw.c
Comment threadsound/soc/codecs/rt715-sdca.c Outdated
Comment threadsound/soc/codecs/rt715-sdca.c Outdated
@jack-cy-yujack-cy-yu reopened this Aug 4, 2020
@jack-cy-yu
jack-cy-yu dismissed stale reviews from RanderWang and lyakh via fb41e75August 4, 2020 05:55
bardliao pushed a commit to bardliao/linux that referenced this pull request Aug 4, 2020
Update driver according to thesofproject#2308 request.
Signed-off-by: Jack Yu <jack.yu@realtek.com>
Comment threadsound/soc/codecs/rt715-sdca.h
lyakh
lyakh previously approved these changes Aug 4, 2020
bardliao
bardliao previously approved these changes Aug 4, 2020
bardliao pushed a commit to bardliao/linux that referenced this pull request Aug 4, 2020
Update driver according to thesofproject#2308 request.
Signed-off-by: Jack Yu <jack.yu@realtek.com>
bardliao pushed a commit to bardliao/linux that referenced this pull request Aug 11, 2020
Update driver according to thesofproject#2308 request.
Signed-off-by: Jack Yu <jack.yu@realtek.com>
@jack-cy-yujack-cy-yu reopened this Aug 11, 2020
@jack-cy-yu
jack-cy-yu dismissed stale reviews from bardliao and lyakh via 957798aAugust 11, 2020 09:07
@jack-cy-yujack-cy-yu reopened this Sep 29, 2020
@marc-hb

Copy link
Copy Markdown
Collaborator

This needs (at least) to be rebased.

@plbossart

Copy link
Copy Markdown
Member

@jack-cy-yu can you rebase to have a newer branch, and address all Travis CI/checkpatch issues (except for alignment and newline after {), thanks!

@marc-hb

Copy link
Copy Markdown
Collaborator

This has already been rebased, "age of git base" is zero in https://travis-ci.org/github/thesofproject/linux/jobs/735662250

@bardliaobardliao left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

@jack-cy-yu It looks overall good. Some minor comments and checkpatch issues should be addressed. You can run "./scripts/checkpatch.pl --strict <patch name" before updating the patch. Thanks.

Comment threadsound/soc/codecs/rt715-sdca-sdw.c Outdated
Comment threadsound/soc/codecs/rt715-sdca-sdw.c Outdated
Comment threadsound/soc/codecs/rt715-sdca-sdw.c Outdated
Comment threadsound/soc/codecs/rt715-sdca-sdw.c Outdated
Comment threadsound/soc/codecs/rt715-sdca-sdw.c Outdated
Comment threadsound/soc/codecs/rt715-sdca.c
Comment threadsound/soc/codecs/rt715-sdca.c Outdated
Comment threadsound/soc/codecs/rt715-sdca-sdw.c Outdated
Comment threadsound/soc/codecs/rt715-sdca.c Outdated
Comment threadsound/soc/codecs/rt715-sdca.c
@marc-hb

Copy link
Copy Markdown
Collaborator

@jack-cy-yu I'm curious why you keep closing and re-opening?

@jack-cy-yu

Copy link
Copy Markdown
Author

@marc-hb I guess that's because I update my remote branch first and then send PR to thesofproject. When my remote branch got updated, this PR will also be closed. and when I push the latest PR to my remote branch, this PR can be reopened again.

@kv2019ikv2019i left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Looks good to me. The many checkpatch issues on alignment seem like something easy to fix, but some comments indicate these can be left, so maybe this has been covered already (tried to search the comments, but could not find where this was discussed).

@plbossartplbossart left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

@jack-cy-yu I think we are missing a devm_ initialization, see below.

Comment threadsound/soc/codecs/rt715-sdca-sdw.c Outdated
slave->ops = &rt715_sdca_slave_ops;

/* Regmap Initialization */
mbq_regmap = regmap_init_sdw_mbq(slave, &rt715_sdca_mbq_regmap);

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

can we use devm_regmap_init_sdw_mbq now?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

@plbossart Already fix it on v16. Thanks.

@bardliao

Copy link
Copy Markdown
Collaborator

@jack-cy-yu Can you remove the "v16" tag on the commit title?

First version of rt715 sdw sdca codec driver.
Signed-off-by: Jack Yu <jack.yu@realtek.com>
@jack-cy-yujack-cy-yu changed the title [v4] ASoC: rt715-sdca: First version of rt715 sdw sdca codec driverASoC: rt715-sdca: First version of rt715 sdw sdca codec driverOct 20, 2020
@jack-cy-yu

Copy link
Copy Markdown
Author

@bardliao I've updated both title and latest PR comment. Thanks.

@bardliaobardliao left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Thanks @jack-cy-yu LGTM

@plbossartplbossart left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks @jack-cy-yu I will merge but please look at the comments below for improvements that can be done with a fixup! patch

Comment threadsound/soc/codecs/rt715-sdca-sdw.c
Comment threadsound/soc/codecs/rt715-sdca-sdw.c
Comment threadsound/soc/codecs/rt715-sdca-sdw.c
enum {
RT715_AIF1,
RT715_AIF2,
RT715_AIFS,

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

you are not using this AIFS, what was it intended for?

I also see if in rt715.h.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

@plbossart I'll send a fixup patch to remove RT715_AIFS for rt715.h.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

you are not using this AIFS, what was it intended for?

I also see if in rt715.h.

The _AIFS indicates total number of audio interfaces. It is a common usage in Realtek codec drivers. For example, rt5682.h

@plbossart
plbossart merged commit 2b6d699 into thesofproject:topic/sof-devOct 20, 2020
@marc-hb

Copy link
Copy Markdown
Collaborator

@marc-hb I guess that's because I update my remote branch first and then send PR to thesofproject.

I'm not sure what you mean by "send PR to thesofproject". When you push to a remote branch already submitted in a PR then the PR gets updated automatically, there is nothing else to do besides git push.

When my remote branch got updated, this PR will also be closed. and when I push the latest PR to my remote branch, this PR can be reopened again.

@bardliao

Copy link
Copy Markdown
Collaborator

@marc-hb I guess that's because I update my remote branch first and then send PR to thesofproject.

I'm not sure what you mean by "send PR to thesofproject". When you push to a remote branch already submitted in a PR then the PR gets updated automatically, there is nothing else to do besides git push.

When my remote branch got updated, this PR will also be closed. and when I push the latest PR to my remote branch, this PR can be reopened again.

@marc-hb I discussed it with @jack-cy-yu. Now I think I can explain it. @jack-cy-yu pulled the latest code from thesofproject/topic/sof-dev to his own branch, and pushed it without adding his commits to his remote branch. i.e, jack-cy-yu/topic/sof-dev and thesofproject/topic/sof-dev are identical at this point. And github is smart enough to close the PR since there is nothing to merge. @jack-cy-yu pushed his remote branch with his commits then, and the PR re-opened.

@jack-cy-yu

Copy link
Copy Markdown
Author

@plbossart I've created another PR #2517 for fixup.

@marc-hb

marc-hb commented Oct 21, 2020

Copy link
Copy Markdown
Collaborator

Thanks @bardliao for solving this github mystery!

And github is smart enough to close the PR since there is nothing to merge.

I think you're being a bit too generous calling this "smart", especially so considering github confusingly does not say what happened. But I understand its logic :-)

Sign up for freeto 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.

8 participants

@jack-cy-yu@RanderWang@marc-hb@plbossart@bardliao@lyakh@paulstelian97@kv2019i