-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Rpi 4.4.y adau1977 #1454
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
Rpi 4.4.y adau1977 #1454
Conversation
Forgot to mention that the adau1977-adc is based on HifiBerry DAC driver by Florian Meier and the guides and specs for the HW are at http://www.analog.com/en/products/audio-video/audio-ad-converters/adau1977.html#product-overview |
There are a number of problems with this PR:
There may be more, but that's enough for now. |
Thanks for your comments, will rework in short time. |
Here are the follow-up commits. |
And another minor typo... |
@@ -161,6 +161,13 @@ Params: | |||
and the other i2c baudrate parameters. | |||
|
|||
|
|||
Name: adau1977-adc | |||
Info: Overlay for activation of ADAU1977 ADC codec over I2C for conrtrol |
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.
There is a typo ("conrtrol" -> "control") and whitespace at the end of this line.
The final pieces you are missing are the additions to bcmrpi_defconfig and bcm2709_defconfig to cause the codec and card driver to be built:
Make the changes I have suggested, then squash all the commits into one and update your PR using |
f40885c
to
9cd196c
Compare
Done. |
@@ -161,6 +161,13 @@ Params: | |||
and the other i2c baudrate parameters. | |||
|
|||
|
|||
Name: adau1977-adc | |||
Info: Overlay for activation of ADAU1977 ADC codec over I2C for control |
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.
You still have whitespace at the end of this line.
Remove the trailing whitespace plus the two dev_info()s, squash and push, and I will merge it. |
This commit adds basic support for the codec usage including: Device tree overlay, binding I2S bus and setting I2S mode, clock source and frequency setting according to spec. Signed-off-by: Andrey Grodzovsky <[email protected]>
9cd196c
to
055cc05
Compare
Done. |
kernel: adau1977-adc: Add basic machine driver for adau1977 codec driver See: raspberrypi/linux#1454 kernel: Allow up to 24dB digital gain to be applied when using IQAudIO DAC See: raspberrypi/linux#1458 kernel: config: Add CONFIG_DRM_LOAD_EDID_FIRMWARE See: raspberrypi/linux#1456 kernel: Rpi 4.4.y: HDMI hotplug detection, overlay cleanup See: raspberrypi/linux#1457 kernel: BCM270X_DT: Add umbrella I2C Mux overlay i2c-mux See: raspberrypi/linux#1465 kernel: BCM270X_DT: Fix the tinylcd35 overlay RTC support firmware: ldconfig: Support filter based on gpio level firmware: ldconfig: Allow specifying a overlay_prefix from config.txt See: #593 firmware: dispmanx: Avoid dispmanx updates when running vc4-kms-v3d driver See: #595 firmware: RIL Camera: Correct buffer size checking for RGB and BGR888 firmware: RIL video_encode: Add support for levels 4.1 and 4.2 firmware: IMX219: Add assert on failure to init firmware: imx219: New VGA and full FOV 720p modes firmware: imx219: Reorder modes to roughly match OV5647 firmware: imx219: Enable sensor DPC See: https://www.raspberrypi.org/forums/viewtopic.php?f=43&t=145815
kernel: adau1977-adc: Add basic machine driver for adau1977 codec driver See: raspberrypi/linux#1454 kernel: Allow up to 24dB digital gain to be applied when using IQAudIO DAC See: raspberrypi/linux#1458 kernel: config: Add CONFIG_DRM_LOAD_EDID_FIRMWARE See: raspberrypi/linux#1456 kernel: Rpi 4.4.y: HDMI hotplug detection, overlay cleanup See: raspberrypi/linux#1457 kernel: BCM270X_DT: Add umbrella I2C Mux overlay i2c-mux See: raspberrypi/linux#1465 kernel: BCM270X_DT: Fix the tinylcd35 overlay RTC support firmware: ldconfig: Support filter based on gpio level firmware: ldconfig: Allow specifying a overlay_prefix from config.txt See: raspberrypi/firmware#593 firmware: dispmanx: Avoid dispmanx updates when running vc4-kms-v3d driver See: raspberrypi/firmware#595 firmware: RIL Camera: Correct buffer size checking for RGB and BGR888 firmware: RIL video_encode: Add support for levels 4.1 and 4.2 firmware: IMX219: Add assert on failure to init firmware: imx219: New VGA and full FOV 720p modes firmware: imx219: Reorder modes to roughly match OV5647 firmware: imx219: Enable sensor DPC See: https://www.raspberrypi.org/forums/viewtopic.php?f=43&t=145815
kernel: adau1977-adc: Add basic machine driver for adau1977 codec driver See: raspberrypi/linux#1454 kernel: Allow up to 24dB digital gain to be applied when using IQAudIO DAC See: raspberrypi/linux#1458 kernel: config: Add CONFIG_DRM_LOAD_EDID_FIRMWARE See: raspberrypi/linux#1456 kernel: Rpi 4.4.y: HDMI hotplug detection, overlay cleanup See: raspberrypi/linux#1457 kernel: BCM270X_DT: Add umbrella I2C Mux overlay i2c-mux See: raspberrypi/linux#1465 kernel: BCM270X_DT: Fix the tinylcd35 overlay RTC support firmware: ldconfig: Support filter based on gpio level firmware: ldconfig: Allow specifying a overlay_prefix from config.txt See: raspberrypi#593 firmware: dispmanx: Avoid dispmanx updates when running vc4-kms-v3d driver See: raspberrypi#595 firmware: RIL Camera: Correct buffer size checking for RGB and BGR888 firmware: RIL video_encode: Add support for levels 4.1 and 4.2 firmware: IMX219: Add assert on failure to init firmware: imx219: New VGA and full FOV 720p modes firmware: imx219: Reorder modes to roughly match OV5647 firmware: imx219: Enable sensor DPC See: https://www.raspberrypi.org/forums/viewtopic.php?f=43&t=145815
The following 2 commits are result of my work on bring up of ADAU1977 ADC on RPI 2b+.
They add basic support for the codec usage including: Device tree overlay, binding I2S bus and setting I2S mode, clock source and frequency setting according to specification.