soc.h (b388dc1f62a9bdd9c4758a0664e61d0f9a9da519) soc.h (71ccef0df533cd9c8c6cbf1483a636a092088ab9)
1/*
2 * linux/sound/soc.h -- ALSA SoC Layer
3 *
4 * Author: Liam Girdwood
5 * Created: Aug 11th 2005
6 * Copyright: Wolfson Microelectronics. PLC.
7 *
8 * This program is free software; you can redistribute it and/or modify

--- 781 unchanged lines hidden (view full) ---

790 const struct snd_soc_dapm_route *dapm_routes;
791 unsigned int num_dapm_routes;
792
793 int (*probe)(struct snd_soc_component *);
794 void (*remove)(struct snd_soc_component *);
795 int (*suspend)(struct snd_soc_component *);
796 int (*resume)(struct snd_soc_component *);
797
1/*
2 * linux/sound/soc.h -- ALSA SoC Layer
3 *
4 * Author: Liam Girdwood
5 * Created: Aug 11th 2005
6 * Copyright: Wolfson Microelectronics. PLC.
7 *
8 * This program is free software; you can redistribute it and/or modify

--- 781 unchanged lines hidden (view full) ---

790 const struct snd_soc_dapm_route *dapm_routes;
791 unsigned int num_dapm_routes;
792
793 int (*probe)(struct snd_soc_component *);
794 void (*remove)(struct snd_soc_component *);
795 int (*suspend)(struct snd_soc_component *);
796 int (*resume)(struct snd_soc_component *);
797
798 /* component wide operations */
799 int (*set_sysclk)(struct snd_soc_component *component,
800 int clk_id, int source, unsigned int freq, int dir);
801
798 /* DT */
799 int (*of_xlate_dai_name)(struct snd_soc_component *component,
800 struct of_phandle_args *args,
801 const char **dai_name);
802 int (*of_xlate_dai_id)(struct snd_soc_component *comment,
803 struct device_node *endpoint);
804 void (*seq_notifier)(struct snd_soc_component *, enum snd_soc_dapm_type,
805 int subseq);

--- 54 unchanged lines hidden (view full) ---

860
861 struct snd_soc_codec *codec;
862
863 int (*probe)(struct snd_soc_component *);
864 void (*remove)(struct snd_soc_component *);
865 int (*suspend)(struct snd_soc_component *);
866 int (*resume)(struct snd_soc_component *);
867
802 /* DT */
803 int (*of_xlate_dai_name)(struct snd_soc_component *component,
804 struct of_phandle_args *args,
805 const char **dai_name);
806 int (*of_xlate_dai_id)(struct snd_soc_component *comment,
807 struct device_node *endpoint);
808 void (*seq_notifier)(struct snd_soc_component *, enum snd_soc_dapm_type,
809 int subseq);

--- 54 unchanged lines hidden (view full) ---

864
865 struct snd_soc_codec *codec;
866
867 int (*probe)(struct snd_soc_component *);
868 void (*remove)(struct snd_soc_component *);
869 int (*suspend)(struct snd_soc_component *);
870 int (*resume)(struct snd_soc_component *);
871
872 int (*set_sysclk)(struct snd_soc_component *component,
873 int clk_id, int source, unsigned int freq, int dir);
874
868 /* machine specific init */
869 int (*init)(struct snd_soc_component *component);
870
871#ifdef CONFIG_DEBUG_FS
872 void (*init_debugfs)(struct snd_soc_component *component);
873 const char *debugfs_prefix;
874#endif
875};

--- 578 unchanged lines hidden (view full) ---

1454int snd_soc_component_update_bits(struct snd_soc_component *component,
1455 unsigned int reg, unsigned int mask, unsigned int val);
1456int snd_soc_component_update_bits_async(struct snd_soc_component *component,
1457 unsigned int reg, unsigned int mask, unsigned int val);
1458void snd_soc_component_async_complete(struct snd_soc_component *component);
1459int snd_soc_component_test_bits(struct snd_soc_component *component,
1460 unsigned int reg, unsigned int mask, unsigned int value);
1461
875 /* machine specific init */
876 int (*init)(struct snd_soc_component *component);
877
878#ifdef CONFIG_DEBUG_FS
879 void (*init_debugfs)(struct snd_soc_component *component);
880 const char *debugfs_prefix;
881#endif
882};

--- 578 unchanged lines hidden (view full) ---

1461int snd_soc_component_update_bits(struct snd_soc_component *component,
1462 unsigned int reg, unsigned int mask, unsigned int val);
1463int snd_soc_component_update_bits_async(struct snd_soc_component *component,
1464 unsigned int reg, unsigned int mask, unsigned int val);
1465void snd_soc_component_async_complete(struct snd_soc_component *component);
1466int snd_soc_component_test_bits(struct snd_soc_component *component,
1467 unsigned int reg, unsigned int mask, unsigned int value);
1468
1469/* component wide operations */
1470int snd_soc_component_set_sysclk(struct snd_soc_component *component,
1471 int clk_id, int source, unsigned int freq, int dir);
1472
1462#ifdef CONFIG_REGMAP
1463
1464void snd_soc_component_init_regmap(struct snd_soc_component *component,
1465 struct regmap *regmap);
1466void snd_soc_component_exit_regmap(struct snd_soc_component *component);
1467
1468/**
1469 * snd_soc_codec_init_regmap() - Initialize regmap instance for the CODEC

--- 262 unchanged lines hidden ---
1473#ifdef CONFIG_REGMAP
1474
1475void snd_soc_component_init_regmap(struct snd_soc_component *component,
1476 struct regmap *regmap);
1477void snd_soc_component_exit_regmap(struct snd_soc_component *component);
1478
1479/**
1480 * snd_soc_codec_init_regmap() - Initialize regmap instance for the CODEC

--- 262 unchanged lines hidden ---