Skip to content

Add composite RPi driver for pcm512x DAC HAT cards #2702

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

Merged
merged 1 commit into from
Oct 9, 2018

Conversation

timg236
Copy link
Contributor

@timg236 timg236 commented Oct 5, 2018

It might be possible to add other drivers but I started with these smaller drivers first.

  • Allo Piano DAC
  • DionAudio Loco V2
  • Justboom DAC
  • IQAudioIO DAC

I've tested this with the Justboom DAC so it would be great if anyone could test the other cards.

@HiassofT @iqaudio @allocom

@iqaudio
Copy link

iqaudio commented Oct 5, 2018 via email

@pelwell
Copy link
Contributor

pelwell commented Oct 5, 2018

Don't worry Gordon, I promise we'll help you with that when the day comes.

@iqaudio
Copy link

iqaudio commented Oct 5, 2018 via email

@pelwell
Copy link
Contributor

pelwell commented Oct 5, 2018

@timg236 is one of us, and he knows what he's doing.

@HiassofT
Copy link
Contributor

HiassofT commented Oct 6, 2018

IQaudio DAC worked fine here, code looks good to me as well, thanks a lot!

@pelwell
Copy link
Contributor

pelwell commented Oct 8, 2018

If you rebase against the latest 4.18 commits I'll merge it.

static struct snd_rpi_pcm512x_drvdata drvdata_allo_piano_dac = {
.card_name = "PianoDAC",
.dai = snd_allo_piano_dac_dai,
.digital_gain_0db_name_dt = "alloc,24db_digital_gain",
Copy link
Contributor Author

Choose a reason for hiding this comment

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

typo: "allo" not "alloc"

@timg236 timg236 force-pushed the soc-snd-rpi-pcm512x branch from 24dddaa to ffe4b34 Compare October 8, 2018 16:01
Create a new composite driver to support PCM512x based Pi-HAT
DAC soundcards in order to reduce the maintenance overhead
for upstream changes.

This replaces the specific drivers for the following cards:
* Allo Piano DAC
* DionAudio Loco V2
* Justboom DAC
* IQAudioIO DAC
@timg236 timg236 force-pushed the soc-snd-rpi-pcm512x branch from ffe4b34 to 7e0fb11 Compare October 9, 2018 09:43
@timg236
Copy link
Contributor Author

timg236 commented Oct 9, 2018

If you rebase against the latest 4.18 commits I'll merge it.

done

@pelwell pelwell merged commit 286abfb into raspberrypi:rpi-4.18.y Oct 9, 2018
@pelwell
Copy link
Contributor

pelwell commented Oct 9, 2018

Merged - thanks, everyone.

@timg236
Copy link
Contributor Author

timg236 commented Oct 9, 2018

Merged - thanks, everyone.

Thanks!

popcornmix added a commit to raspberrypi/firmware that referenced this pull request Oct 15, 2018
kernel: Revert net: pskb_trim_rcsum() and CHECKSUM_COMPLETE are friends
See: raspberrypi/linux#2717

kernel: thermal: add hysteresis support and adjust PoE HAT trip points
See: raspberrypi/linux#2700

kernel: Add composite RPi driver for pcm512x DAC HAT cards
See: raspberrypi/linux#2702

firmware: jpeg/mjpeg: MJPEG doesn't insert JFIF APP0 header
See: raspberrypi/userland#345

firmware: Add IL HVS component

firmware: mmal: Acquire zero copy buffers on being passed to the VPU

firmware: video_render: Use per pixel alpha on RGBA and BGRA

firmware: video_render: Add support for alpha options (MIX and PREMULT)
popcornmix added a commit to Hexxeh/rpi-firmware that referenced this pull request Oct 15, 2018
kernel: Revert net: pskb_trim_rcsum() and CHECKSUM_COMPLETE are friends
See: raspberrypi/linux#2717

kernel: thermal: add hysteresis support and adjust PoE HAT trip points
See: raspberrypi/linux#2700

kernel: Add composite RPi driver for pcm512x DAC HAT cards
See: raspberrypi/linux#2702

firmware: jpeg/mjpeg: MJPEG doesn't insert JFIF APP0 header
See: raspberrypi/userland#345

firmware: Add IL HVS component

firmware: mmal: Acquire zero copy buffers on being passed to the VPU

firmware: video_render: Use per pixel alpha on RGBA and BGRA

firmware: video_render: Add support for alpha options (MIX and PREMULT)
@allocom
Copy link

allocom commented Oct 16, 2018

Hi timg236 & pelwell,
Had some problem with forwarding of emails, just observed on github and tested with our piano card. I see "compatible" string mismatch, it should be "allo,piano-dac" instead of "allo,allo-piano-dac" at line no 257.
What do you suggest to do? You can make the corrections OR want us to send a pull request ??

@timg236
Copy link
Contributor Author

timg236 commented Oct 16, 2018

Ah, sorry. I'll fix that now

@allocom
Copy link

allocom commented Oct 17, 2018

Thanks timg236

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.

5 participants