21 May
2015
21 May
'15
1:10 p.m.
On Tue, May 19, 2015 at 09:37:58AM -0700, Dylan Reid wrote:
Can the jacks can each be an aux_dev? The jack driver would create the jack at probe time and register it with the card in aux_dev->init. cht_bsw_max98090_ti.c is already doing something similar, although all contained in the machine driver.
Yes, that's just a CODEC driver registered without any DAIs connected so it'd just be another CODEC driver.
Then simple-card can have an optional property to specify aux devs. A GPIO jack device could handle simple switch-based jack detection.
That's useful anyway for external headphone/speaker drivers.