Message ID | 20220308171730.454587-1-tanureal@opensource.cirrus.com |
---|---|
Headers | show |
Series | Support external boost at CS35l41 ASoC driver | expand |
On Tue, Mar 08, 2022 at 05:17:30PM +0000, Lucas Tanure wrote: > Add support for external boost voltage, where GPIO1 must control a > switch to isolate CS35L41 from the external Boost Voltage > > Signed-off-by: Lucas Tanure <tanureal@opensource.cirrus.com> > --- Acked-by: Charles Keepax <ckeepax@opensource.cirrus.com> Thanks, Charles
On Tue, 08 Mar 2022 18:17:17 +0100, Lucas Tanure wrote: > > ASoC and HDA can use a single function to configure the chip gpios. > > Signed-off-by: Lucas Tanure <tanureal@opensource.cirrus.com> > Acked-by: Charles Keepax <ckeepax@opensource.cirrus.com> Just use "ALSA:" prefix for the subject instead of "sound:" in case both ALSA HD-audio and ASoC are covered in the patch. thanks, Takashi
On Tue, 08 Mar 2022 18:17:15 +0100, Lucas Tanure wrote: > +enum cs35l41_gpio_func { > + CS35L41_HIZ, > + CS35L41_GPIO, > + CS35L41_INT_OPEN_DRAIN_GPIO2, > + CS35L41_MCLK, > + CS35L41_INT_PUSH_PULL_LOW_GPIO2, > + CS35L41_INT_PUSH_PULL_HIGH_GPIO2, > + CS35L41_PDM_CLK_GPIO2, > + CS35L41_PDM_DATA_GPIO2, > + CS35L41_MDSYNC_GPIO1 = 2, > + CS35L41_PDM_CLK_GPIO1 = 4, > + CS35L41_PDM_DATA_GPIO1 = 5, > }; So CS35L41_MDSYNC_GPIO1 is identical with *_DRAIN_GPIO2, i.e. it's an alias? thanks, Takashi
On 3/10/22 1:44 PM, Takashi Iwai <tiwai@suse.de> wrote: > On Tue, 08 Mar 2022 18:17:15 +0100, > Lucas Tanure wrote: > > +enum cs35l41_gpio_func { > > + CS35L41_HIZ, > > + CS35L41_GPIO, > > + CS35L41_INT_OPEN_DRAIN_GPIO2, > > + CS35L41_MCLK, > > + CS35L41_INT_PUSH_PULL_LOW_GPIO2, > > + CS35L41_INT_PUSH_PULL_HIGH_GPIO2, > > + CS35L41_PDM_CLK_GPIO2, > > + CS35L41_PDM_DATA_GPIO2, > > + CS35L41_MDSYNC_GPIO1 = 2, > > + CS35L41_PDM_CLK_GPIO1 = 4, > > + CS35L41_PDM_DATA_GPIO1 = 5, > > }; > > So CS35L41_MDSYNC_GPIO1 is identical with *_DRAIN_GPIO2, i.e. it's an > alias? > > > thanks, > > Takashi > The value 2 sets GPIO1 as MDSYNC pin and GPIO2 as IRQ pin (Open drain). It could be the same label, like CS35L41_GPIO1_MDSYNC_GPIO2_IRQ, but I think separating them is better for understanding the code and organizing the code.
On Thu, 10 Mar 2022 17:40:45 +0100, <tanureal@opensource.cirrus.com> wrote: > > On 3/10/22 1:44 PM, Takashi Iwai <tiwai@suse.de> wrote: > > On Tue, 08 Mar 2022 18:17:15 +0100, > > Lucas Tanure wrote: > > > +enum cs35l41_gpio_func { > > > + CS35L41_HIZ, > > > + CS35L41_GPIO, > > > + CS35L41_INT_OPEN_DRAIN_GPIO2, > > > + CS35L41_MCLK, > > > + CS35L41_INT_PUSH_PULL_LOW_GPIO2, > > > + CS35L41_INT_PUSH_PULL_HIGH_GPIO2, > > > + CS35L41_PDM_CLK_GPIO2, > > > + CS35L41_PDM_DATA_GPIO2, > > > + CS35L41_MDSYNC_GPIO1 = 2, > > > + CS35L41_PDM_CLK_GPIO1 = 4, > > > + CS35L41_PDM_DATA_GPIO1 = 5, > > > }; > > > > So CS35L41_MDSYNC_GPIO1 is identical with *_DRAIN_GPIO2, i.e. it's an > > alias? > > > > > > thanks, > > > > Takashi > > > > The value 2 sets GPIO1 as MDSYNC pin and GPIO2 as IRQ pin (Open drain). > It could be the same label, like CS35L41_GPIO1_MDSYNC_GPIO2_IRQ, but I think separating them is better for understanding the code and organizing the code. Yes, separating GPIO1 and GPIO2 would be less confusing. thanks, Takashi