Go Back   Home > Forums > >
Home Forums Rules Articles diyAudio Store Blogs Gallery Wiki Register Donations FAQ Calendar Search Today's Posts Mark Forums Read

PC Based Computer music servers, crossovers, and equalization

ES9028Q2M driver for Raspbian based distro
ES9028Q2M driver for Raspbian based distro
Please consider donating to help us continue to serve you.

Ads on/off / Custom Title / More PMs / More album space / Advanced printing & mass image saving
Reply
 
Thread Tools Search this Thread
Old 4th March 2018, 11:46 PM   #1
gandolf is offline gandolf  United States
diyAudio Member
 
Join Date: Apr 2017
Default ES9028Q2M driver for Raspbian based distro

GitHub - VinnyLorrin/Rpi-ES9018K2M-DAC

Only tested on ES9028Q2M DAC, current known issue located at post#57

To use,
1. copy 'es9018k2m.ko' to /lib/modules/4.9.79-v7+/kernel/sound/soc/codecs/
2. copy 'rpi-es9018k2m-dac.ko' to /lib/modules/4.9.79-v7+/kernel/sound/soc/bcm
3. copy 'rpi-es9018k2m-dac.dtbo' to /boot/overlays/
4. execute 'depmod -a'
5. add 'dtparam=i2s=on', 'dtparam=i2c_arm=on' and 'dtoverlay=rpi-es9018k2m-dac' to /boot/config.txt, and remove the old DAC overlay entry.
6. reboot.

The code is developed based on GitHub - SatoruKawase/I-Sabre-K2M: Audiophonics I-Sabre K2M DAC Board ALSA Driver. The register definition is based on GitHub - luoyi/Rpi-ES9018K2M-DAC.

Enjoy

Attachment removed by moderation as requested by OP

Last edited by gandolf; 14th March 2018 at 03:32 AM.
  Reply With Quote
Old 5th March 2018, 01:23 AM   #2
DRONE7 is offline DRONE7  New Zealand
diyAudio Member
 
Join Date: Aug 2008
9028 specific ? would it work for 9018K2m or 9038Q2m.?

Since the Moode advanced kernels have been dropped from 4.0 the only i2s driver I can make work on 9038Q2m is rpi-dac.....
  Reply With Quote
Old 5th March 2018, 01:50 AM   #3
gandolf is offline gandolf  United States
diyAudio Member
 
Join Date: Apr 2017
Quote:
Originally Posted by DRONE7 View Post
9028 specific ? would it work for 9018K2m or 9038Q2m.?

Since the Moode advanced kernels have been dropped from 4.0 the only i2s driver I can make work on 9038Q2m is rpi-dac.....
I am not sure if 9038Q2M has the same register definition as ES9028Q2M. But ES9018K2M definitely does not work. You can download the datasheet for 9018 from https://myl8test.files.wordpress.com...sheet-here.pdf and modify the source file accordingly to compile your own driver. Or you can download the source from GitHub - SatoruKawase/I-Sabre-K2M: Audiophonics I-Sabre K2M DAC Board ALSA Driver, I think it was made specific to 9018K2M.
  Reply With Quote
Old 5th March 2018, 02:11 AM   #4
Greg Erskine is offline Greg Erskine  Australia
diyAudio Member
 
Greg Erskine's Avatar
 
Join Date: Jan 2002
Location: Sydney/Australia
ES9028Q2M driver for Raspbian based distro
hi gandolf,

Have you read your ESS NDA?

ESS will not let you open source drivers. That's why there are not any included in any of the Linux distributions.

regards
__________________
Greg Erskine
  Reply With Quote
Old 5th March 2018, 02:17 AM   #5
gandolf is offline gandolf  United States
diyAudio Member
 
Join Date: Apr 2017
Quote:
Originally Posted by Greg Erskine View Post
hi gandolf,

Have you read your ESS NDA?

ESS will not let you open source drivers. That's why there are not any included in any of the Linux distributions.

regards
Let me put it in this way.
1. All the sources are taken from the other GitHub repos, no new information from me.

2. The NDA indeed prohibits me from disclosing any information related to their datasheet, but I have never received any datasheets from ESS, I cannot violate the NDA by disclosing the information that I don't have, can I?
  Reply With Quote
Old 5th March 2018, 03:54 AM   #6
iancanada is offline iancanada  Canada
diyAudio Member
 
iancanada's Avatar
 
Join Date: Dec 2009
Location: Toronto
ES9028Q2M driver for Raspbian based distro
@gandolf

You did good job! Very nice indeed. Hopefully I can try it on my ES9028Q2M DAC.

By power on default, ES9028Q2M DAC doesn't support 44.1KHz 16bit I2S format. You need to address this issue by setting corresponding registers according to the music format.

Regards,
Ian
  Reply With Quote
Old 5th March 2018, 03:59 AM   #7
gandolf is offline gandolf  United States
diyAudio Member
 
Join Date: Apr 2017
Quote:
Originally Posted by iancanada View Post
@gandolf

You did good job! Very nice indeed. Hopefully I can try it on my ES9028Q2M DAC.

By power on default, ES9028Q2M DAC doesn't support 44.1KHz 16bit I2S format. You need to address this issue by setting corresponding registers according to the music format.

Regards,
Ian
The necessary register is set according to the audio format.
  Reply With Quote
Old 5th March 2018, 08:40 PM   #8
iancanada is offline iancanada  Canada
diyAudio Member
 
iancanada's Avatar
 
Join Date: Dec 2009
Location: Toronto
ES9028Q2M driver for Raspbian based distro
Quote:
Originally Posted by gandolf View Post
The necessary register is set according to the audio format.
That's great. I saw it in your source code. Thank you for the very professional design.

By the way, can I install your driver in Volumio?

Regards,
Ian

Last edited by iancanada; 5th March 2018 at 08:46 PM.
  Reply With Quote
Old 5th March 2018, 11:27 PM   #9
gandolf is offline gandolf  United States
diyAudio Member
 
Join Date: Apr 2017
Quote:
Originally Posted by iancanada View Post
That's great. I saw it in your source code. Thank you for the very professional design.

By the way, can I install your driver in Volumio?

Regards,
Ian
You are welcome. I believe most of credits should go to SatoruKawase and luoyi on github. Anyway, to use it in Volumio, please verify your kernel version is 4.9.79-v7+. If Volumio uses the same kernel, it should work.
  Reply With Quote
Old 6th March 2018, 01:32 AM   #10
gandolf is offline gandolf  United States
diyAudio Member
 
Join Date: Apr 2017
Updates:
Fixed several small bugs
Add alsamixer control for THD compensation coefficients.
Minimize pop

Attachment removed by moderation as requested by OP.
  Reply With Quote

Reply


ES9028Q2M driver for Raspbian based distroHide this!Advertise here!
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
I/V stage for ES9028Q2M gandolf Digital Line Level 25 9th February 2018 06:04 AM
ES9028Q2M balanced output evert1 Digital Line Level 0 26th December 2017 01:30 PM
No more JACK-rack on my raspbian. Deafuser PC Based 0 1st April 2016 05:50 PM
12vdc power distro lovitz Everything Else 3 30th April 2008 05:46 PM


New To Site? Need Help?

All times are GMT. The time now is 04:01 AM.


Search Engine Optimisation provided by DragonByte SEO (Pro) - vBulletin Mods & Addons Copyright © 2018 DragonByte Technologies Ltd.
Resources saved on this page: MySQL 14.29%
vBulletin Optimisation provided by vB Optimise (Pro) - vBulletin Mods & Addons Copyright © 2018 DragonByte Technologies Ltd.
Copyright ©1999-2018 diyAudio
Wiki