-
Notifications
You must be signed in to change notification settings - Fork 140
ASoC: SOF: Intel: boards: fix GPIOLIB dependencies #3409
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
ASoC: SOF: Intel: boards: fix GPIOLIB dependencies #3409
Conversation
|
Might be dull question. I was curious about last commit which is about missing gpiolib dependency on 8 machine drivers. I checked on one of machine driver, sof-pcm512x.c. But I don't see explicit gpio access. Even without last commit I'm able to build the kernel. Can you educate me about last commit? |
Correct @fredoh9 in the upstream version there's no GPIOLIB in use. This would be needed with additional code to deal with the 'codec producer' mode in #1945 (abandoned). |
f65b726 to
0eac36b
Compare
|
@plbossart How do we judge is |
|
Good point @bardliao. I think we need GPIOLIB support for all of those drivers: |
0eac36b to
a4d6673
Compare
…is used" This patch reverts commit 4262ddc ("ASoC: Intel: boards: add explicit dependency on GPIOLIB when DMIC is used") and all follow-up additions of this dependency. Now that the DMIC does not depend on GPIOLIB we can simplify again. Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
We have eleven machine drivers who make explicit references to gpios. Let's add the dependency. The use of 'depends on' instead of 'select' is intentional. On one side it could be argued that the GPIOs are required, but on the other it might create more issues with randconfig builds. This patch sticks with the existing direction of using 'depends' on high-level non-audio dependencies Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
a4d6673 to
247d8f9
Compare
we no longer need a 'depends on GPIOLIB' for the DMIC stuff, but conversely we are missing dependencies for 8 machine drivers.