···44#include <sound/core.h>55#include <sound/pcm.h>6677+/*88+ * @reset_gpio: AC97 reset gpio (normally gpio113 or gpio95)99+ * a -1 value means no gpio will be used for reset1010+1111+ * reset_gpio should only be specified for pxa27x CPUs where a silicon1212+ * bug prevents correct operation of the reset line. If not specified,1313+ * the default behaviour on these CPUs is to consider gpio 113 as the1414+ * AC97 reset line, which is the default on most boards.1515+ */716typedef struct {817 int (*startup)(struct snd_pcm_substream *, void *);918 void (*shutdown)(struct snd_pcm_substream *, void *);1019 void (*suspend)(void *);1120 void (*resume)(void *);1221 void *priv;2222+ int reset_gpio;1323} pxa2xx_audio_ops_t;14241525extern void pxa_set_ac97_info(pxa2xx_audio_ops_t *ops);
···377377#include <linux/i2c/pca953x.h>378378379379static struct pca953x_platform_data pca9536_data = {380380- .gpio_base = NR_BUILTIN_GPIO + 1,380380+ .gpio_base = NR_BUILTIN_GPIO,381381};382382383383static int gpio_bus_switch;···405405 int ret;406406407407 if (!gpio_bus_switch) {408408- ret = gpio_request(NR_BUILTIN_GPIO + 1, "camera");408408+ ret = gpio_request(NR_BUILTIN_GPIO, "camera");409409 if (!ret) {410410- gpio_bus_switch = NR_BUILTIN_GPIO + 1;410410+ gpio_bus_switch = NR_BUILTIN_GPIO;411411 gpio_direction_output(gpio_bus_switch, 0);412412 } else413413 gpio_bus_switch = -EINVAL;
-15
include/sound/pxa2xx-lib.h
···4242extern int pxa2xx_ac97_hw_probe(struct platform_device *dev);4343extern void pxa2xx_ac97_hw_remove(struct platform_device *dev);44444545-/* AC97 platform_data */4646-/**4747- * struct pxa2xx_ac97_platform_data - pxa ac97 platform data4848- * @reset_gpio: AC97 reset gpio (normally gpio113 or gpio95)4949- * a -1 value means no gpio will be used for reset5050- *5151- * Platform data should only be specified for pxa27x CPUs where a silicon bug5252- * prevents correct operation of the reset line. If not specified, the default5353- * behaviour is to consider gpio 113 as the AC97 reset line, which is the5454- * default on most boards.5555- */5656-struct pxa2xx_ac97_platform_data {5757- int reset_gpio;5858-};5959-6045#endif