mirror of
https://github.com/torvalds/linux
synced 2024-09-06 18:01:05 +00:00
![Linus Walleij](/assets/img/avatar_default.png)
This converts the Cirrus CS4271 ASoC codec driver to use GPIO descriptors. It turns out that there are two in-kernel users of the platform data passing mechanism so these are switched over as well. One locally defined GPIO "gpio_disabled" is declared in the state struct but completely unused in the driver, so we delete it. Reviewed-by: Alexander Sverdlin <alexander.sverdlin@gmail.com> Acked-by: Charles Keepax <ckeepax@opensource.cirrus.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org> Link: https://lore.kernel.org/r/20231201-descriptors-sound-cirrus-v2-6-ee9f9d4655eb@linaro.org Signed-off-by: Mark Brown <broonie@kernel.org>
31 lines
906 B
C
31 lines
906 B
C
/* SPDX-License-Identifier: GPL-2.0-or-later */
|
|
/*
|
|
* Definitions for CS4271 ASoC codec driver
|
|
*
|
|
* Copyright (c) 2010 Alexander Sverdlin <subaparts@yandex.ru>
|
|
*/
|
|
|
|
#ifndef __CS4271_H
|
|
#define __CS4271_H
|
|
|
|
struct cs4271_platform_data {
|
|
bool amutec_eq_bmutec; /* flag to enable AMUTEC=BMUTEC */
|
|
|
|
/*
|
|
* The CS4271 requires its LRCLK and MCLK to be stable before its RESET
|
|
* line is de-asserted. That also means that clocks cannot be changed
|
|
* without putting the chip back into hardware reset, which also requires
|
|
* a complete re-initialization of all registers.
|
|
*
|
|
* One (undocumented) workaround is to assert and de-assert the PDN bit
|
|
* in the MODE2 register. This workaround can be enabled with the
|
|
* following flag.
|
|
*
|
|
* Note that this is not needed in case the clocks are stable
|
|
* throughout the entire runtime of the codec.
|
|
*/
|
|
bool enable_soft_reset;
|
|
};
|
|
|
|
#endif /* __CS4271_H */
|