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

DAC overlays #4154

Merged
merged 6 commits into from
Feb 19, 2021
Merged

DAC overlays #4154

merged 6 commits into from
Feb 19, 2021

Conversation

pifi-bz
Copy link

@pifi-bz pifi-bz commented Feb 18, 2021

  • as discussed.

Signed-off-by: David Knell <david.knell@gmail.com>
Signed-off-by: David Knell <david.knell@gmail.com>
Copy link
Contributor

@pelwell pelwell left a comment

Choose a reason for hiding this comment

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

I got my wish with finding something to comment on, but it's all minor stuff.

@@ -130,6 +130,8 @@ dtbo-$(CONFIG_ARCH_BCM2835) += \
pibell.dtbo \
pifacedigital.dtbo \
pifi-40.dtbo \
pifi-dac-zero.dtbo \
pifi-dac-hd.dtbo \
Copy link
Contributor

Choose a reason for hiding this comment

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

Alphabetical order, please.

Params: <None>


Name: pifi-dac-hd
Copy link
Contributor

Choose a reason for hiding this comment

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

Order again.

/plugin/;

/ {
compatible = "brcm,bcm2708";
Copy link
Contributor

Choose a reason for hiding this comment

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

Please use "brcm,bcm2835".

simple-audio-card,name = "PiFi-DAC-HD";
status="okay";

playback_link: simple-audio-card,dai-link@1 {
Copy link
Contributor

Choose a reason for hiding this comment

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

FYI, if nothing references a label (e.g. &playback_link) in an overlay and it isn't exported then it serves no purpose. The same goes for p_cpu_dai and p_codec_dai.

__overlay__ {
compatible = "simple-audio-card";
simple-audio-card,name = "PiFi-DAC-HD";
status="okay";
Copy link
Contributor

Choose a reason for hiding this comment

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

It's a bit picky, but the rest of the overlay is so nicely formatted that the lack of spaces here stands out.


status = "okay";

playback_link: simple-audio-card,dai-link@1 {
Copy link
Contributor

Choose a reason for hiding this comment

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

Same comment about unused labels.

target = <&i2s>;
__overlay__ {
status = "okay";
};
Copy link
Contributor

Choose a reason for hiding this comment

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

This line looks like a mixture of spaces and TABs - not a crime (unlike in the README), just a bit ugly.

@pifi-bz
Copy link
Author

pifi-bz commented Feb 19, 2021

Ooh dear. These should be all tidied up in the latest commit - are you OK with said commit being added to this pull request, or should I redo from start (as my Commodore PET used to say..)

@pelwell
Copy link
Contributor

pelwell commented Feb 19, 2021

If you are creating these commit in the GitHub GUI then do it any way you like and I'll squash them all. If you're creating the PRs on the command line and pushing them then the general way to update a PR is:

  1. Add a new commit with the changes. If the PR has multiple commits and you want to change more than one then split your changes across as many new commits. git add -p is useful for selectively staging changes in preparation for creating commits out of some of them.
  2. Use git rebase -i HEAD~<n>, where <n> is the number of commits at the top of the branch that should be considered for the PR. Having an <n> that is too large normally just slows things down, but it gets ugly if one of the extras is a merge commit...
  3. Use git push -f origin HEAD:<remote-branch-name> to update the PR.

Signed-off-by: David Knell <david.knell@gmail.com>
Signed-off-by: David Knell <david.knell@gmail.com>
Signed-off-by: David Knell <david.knell@gmail.com>
@pifi-bz
Copy link
Author

pifi-bz commented Feb 19, 2021

How's that?

@@ -3,23 +3,23 @@
/plugin/;

/ {
compatible = "brcm,bcm2708";
compatible = "brcm,bcm2735";
Copy link
Contributor

Choose a reason for hiding this comment

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

Oooh - so close.

Copy link
Author

Choose a reason for hiding this comment

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

Ouch. Thank you, again, for your patience.

Signed-off-by: David Knell <david.knell@gmail.com>
@pelwell pelwell merged commit 7f09832 into raspberrypi:rpi-5.10.y Feb 19, 2021
popcornmix added a commit to raspberrypi/firmware that referenced this pull request Feb 22, 2021
kernel: PiFi DAC overlays
See: raspberrypi/linux#4154

kernel: staging: rpivid: Fix crash when CMA alloc fails
See: raspberrypi/linux#4152

kernel: Imx477 long exposure control
See: raspberrypi/linux#4150

kernel: configs: Change CONFIG_BLK_DEV_NVME=y for 2711
See: raspberrypi/linux#4164

kernel: Some fixes to make imx290/imx327 exposure and vblank updates work correctly
See: raspberrypi/linux#4153

kernel: KMS VGA666 overlay
See: raspberrypi/linux#4141

kernel: gpio-fsm: Fix shutdown timeout handling

kernel: configs: Add various missing IPV6 modules
See: raspberrypi/linux#4144
popcornmix added a commit to Hexxeh/rpi-firmware that referenced this pull request Feb 22, 2021
kernel: PiFi DAC overlays
See: raspberrypi/linux#4154

kernel: staging: rpivid: Fix crash when CMA alloc fails
See: raspberrypi/linux#4152

kernel: Imx477 long exposure control
See: raspberrypi/linux#4150

kernel: configs: Change CONFIG_BLK_DEV_NVME=y for 2711
See: raspberrypi/linux#4164

kernel: Some fixes to make imx290/imx327 exposure and vblank updates work correctly
See: raspberrypi/linux#4153

kernel: KMS VGA666 overlay
See: raspberrypi/linux#4141

kernel: gpio-fsm: Fix shutdown timeout handling

kernel: configs: Add various missing IPV6 modules
See: raspberrypi/linux#4144
pelwell pushed a commit that referenced this pull request Feb 23, 2021
Adding overlays for PiFi DAC Zero and PiFi DAC HD.

Signed-off-by: David Knell <david.knell@gmail.com>
popcornmix pushed a commit that referenced this pull request Mar 16, 2021
Adding overlays for PiFi DAC Zero and PiFi DAC HD.

Signed-off-by: David Knell <david.knell@gmail.com>
popcornmix pushed a commit that referenced this pull request Mar 22, 2021
Adding overlays for PiFi DAC Zero and PiFi DAC HD.

Signed-off-by: David Knell <david.knell@gmail.com>
popcornmix pushed a commit that referenced this pull request Mar 29, 2021
Adding overlays for PiFi DAC Zero and PiFi DAC HD.

Signed-off-by: David Knell <david.knell@gmail.com>
popcornmix pushed a commit that referenced this pull request Apr 6, 2021
Adding overlays for PiFi DAC Zero and PiFi DAC HD.

Signed-off-by: David Knell <david.knell@gmail.com>
popcornmix pushed a commit that referenced this pull request Apr 19, 2021
Adding overlays for PiFi DAC Zero and PiFi DAC HD.

Signed-off-by: David Knell <david.knell@gmail.com>
popcornmix pushed a commit that referenced this pull request Apr 27, 2021
Adding overlays for PiFi DAC Zero and PiFi DAC HD.

Signed-off-by: David Knell <david.knell@gmail.com>
popcornmix pushed a commit that referenced this pull request Apr 30, 2021
Adding overlays for PiFi DAC Zero and PiFi DAC HD.

Signed-off-by: David Knell <david.knell@gmail.com>
popcornmix pushed a commit that referenced this pull request May 7, 2021
Adding overlays for PiFi DAC Zero and PiFi DAC HD.

Signed-off-by: David Knell <david.knell@gmail.com>
popcornmix pushed a commit that referenced this pull request May 13, 2021
Adding overlays for PiFi DAC Zero and PiFi DAC HD.

Signed-off-by: David Knell <david.knell@gmail.com>
popcornmix pushed a commit that referenced this pull request May 19, 2021
Adding overlays for PiFi DAC Zero and PiFi DAC HD.

Signed-off-by: David Knell <david.knell@gmail.com>
Noltari pushed a commit to Noltari/rpi-linux that referenced this pull request Aug 20, 2021
Adding overlays for PiFi DAC Zero and PiFi DAC HD.

Signed-off-by: David Knell <david.knell@gmail.com>
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.

None yet

3 participants