diff options
| author | Mark Brown <broonie@linaro.org> | 2013-10-24 06:24:02 -0400 |
|---|---|---|
| committer | Mark Brown <broonie@linaro.org> | 2013-10-24 06:24:02 -0400 |
| commit | d6ee232c7f763646ad00dd948a0c2fbedaa63ec6 (patch) | |
| tree | 8f87c29db7eb4ecfb57793e8bcada34bfb1637f6 /include | |
| parent | 618056167059afdf43a36aa9db40e51a6482797d (diff) | |
| parent | 6833c452c2fb47353566aa705d68541c6045c796 (diff) | |
Merge remote-tracking branch 'asoc/topic/core' into asoc-next
Diffstat (limited to 'include')
| -rw-r--r-- | include/sound/soc.h | 60 | ||||
| -rw-r--r-- | include/trace/events/asoc.h | 1 |
2 files changed, 4 insertions, 57 deletions
diff --git a/include/sound/soc.h b/include/sound/soc.h index 1dd7dc5f7d52..6ed3dc0773cc 100644 --- a/include/sound/soc.h +++ b/include/sound/soc.h | |||
| @@ -331,7 +331,6 @@ struct soc_enum; | |||
| 331 | struct snd_soc_jack; | 331 | struct snd_soc_jack; |
| 332 | struct snd_soc_jack_zone; | 332 | struct snd_soc_jack_zone; |
| 333 | struct snd_soc_jack_pin; | 333 | struct snd_soc_jack_pin; |
| 334 | struct snd_soc_cache_ops; | ||
| 335 | #include <sound/soc-dapm.h> | 334 | #include <sound/soc-dapm.h> |
| 336 | #include <sound/soc-dpcm.h> | 335 | #include <sound/soc-dpcm.h> |
| 337 | 336 | ||
| @@ -349,10 +348,6 @@ enum snd_soc_control_type { | |||
| 349 | SND_SOC_REGMAP, | 348 | SND_SOC_REGMAP, |
| 350 | }; | 349 | }; |
| 351 | 350 | ||
| 352 | enum snd_soc_compress_type { | ||
| 353 | SND_SOC_FLAT_COMPRESSION = 1, | ||
| 354 | }; | ||
| 355 | |||
| 356 | enum snd_soc_pcm_subclass { | 351 | enum snd_soc_pcm_subclass { |
| 357 | SND_SOC_PCM_CLASS_PCM = 0, | 352 | SND_SOC_PCM_CLASS_PCM = 0, |
| 358 | SND_SOC_PCM_CLASS_BE = 1, | 353 | SND_SOC_PCM_CLASS_BE = 1, |
| @@ -404,12 +399,6 @@ int snd_soc_cache_write(struct snd_soc_codec *codec, | |||
| 404 | unsigned int reg, unsigned int value); | 399 | unsigned int reg, unsigned int value); |
| 405 | int snd_soc_cache_read(struct snd_soc_codec *codec, | 400 | int snd_soc_cache_read(struct snd_soc_codec *codec, |
| 406 | unsigned int reg, unsigned int *value); | 401 | unsigned int reg, unsigned int *value); |
| 407 | int snd_soc_default_volatile_register(struct snd_soc_codec *codec, | ||
| 408 | unsigned int reg); | ||
| 409 | int snd_soc_default_readable_register(struct snd_soc_codec *codec, | ||
| 410 | unsigned int reg); | ||
| 411 | int snd_soc_default_writable_register(struct snd_soc_codec *codec, | ||
| 412 | unsigned int reg); | ||
| 413 | int snd_soc_platform_read(struct snd_soc_platform *platform, | 402 | int snd_soc_platform_read(struct snd_soc_platform *platform, |
| 414 | unsigned int reg); | 403 | unsigned int reg); |
| 415 | int snd_soc_platform_write(struct snd_soc_platform *platform, | 404 | int snd_soc_platform_write(struct snd_soc_platform *platform, |
| @@ -543,22 +532,6 @@ int snd_soc_put_strobe(struct snd_kcontrol *kcontrol, | |||
| 543 | struct snd_ctl_elem_value *ucontrol); | 532 | struct snd_ctl_elem_value *ucontrol); |
| 544 | 533 | ||
| 545 | /** | 534 | /** |
| 546 | * struct snd_soc_reg_access - Describes whether a given register is | ||
| 547 | * readable, writable or volatile. | ||
| 548 | * | ||
| 549 | * @reg: the register number | ||
| 550 | * @read: whether this register is readable | ||
| 551 | * @write: whether this register is writable | ||
| 552 | * @vol: whether this register is volatile | ||
| 553 | */ | ||
| 554 | struct snd_soc_reg_access { | ||
| 555 | u16 reg; | ||
| 556 | u16 read; | ||
| 557 | u16 write; | ||
| 558 | u16 vol; | ||
| 559 | }; | ||
| 560 | |||
| 561 | /** | ||
| 562 | * struct snd_soc_jack_pin - Describes a pin to update based on jack detection | 535 | * struct snd_soc_jack_pin - Describes a pin to update based on jack detection |
| 563 | * | 536 | * |
| 564 | * @pin: name of the pin to update | 537 | * @pin: name of the pin to update |
| @@ -658,19 +631,6 @@ struct snd_soc_compr_ops { | |||
| 658 | int (*trigger)(struct snd_compr_stream *); | 631 | int (*trigger)(struct snd_compr_stream *); |
| 659 | }; | 632 | }; |
| 660 | 633 | ||
| 661 | /* SoC cache ops */ | ||
| 662 | struct snd_soc_cache_ops { | ||
| 663 | const char *name; | ||
| 664 | enum snd_soc_compress_type id; | ||
| 665 | int (*init)(struct snd_soc_codec *codec); | ||
| 666 | int (*exit)(struct snd_soc_codec *codec); | ||
| 667 | int (*read)(struct snd_soc_codec *codec, unsigned int reg, | ||
| 668 | unsigned int *value); | ||
| 669 | int (*write)(struct snd_soc_codec *codec, unsigned int reg, | ||
| 670 | unsigned int value); | ||
| 671 | int (*sync)(struct snd_soc_codec *codec); | ||
| 672 | }; | ||
| 673 | |||
| 674 | /* component interface */ | 634 | /* component interface */ |
| 675 | struct snd_soc_component_driver { | 635 | struct snd_soc_component_driver { |
| 676 | const char *name; | 636 | const char *name; |
| @@ -684,10 +644,12 @@ struct snd_soc_component_driver { | |||
| 684 | struct snd_soc_component { | 644 | struct snd_soc_component { |
| 685 | const char *name; | 645 | const char *name; |
| 686 | int id; | 646 | int id; |
| 687 | int num_dai; | ||
| 688 | struct device *dev; | 647 | struct device *dev; |
| 689 | struct list_head list; | 648 | struct list_head list; |
| 690 | 649 | ||
| 650 | struct snd_soc_dai_driver *dai_drv; | ||
| 651 | int num_dai; | ||
| 652 | |||
| 691 | const struct snd_soc_component_driver *driver; | 653 | const struct snd_soc_component_driver *driver; |
| 692 | }; | 654 | }; |
| 693 | 655 | ||
| @@ -704,8 +666,6 @@ struct snd_soc_codec { | |||
| 704 | struct list_head list; | 666 | struct list_head list; |
| 705 | struct list_head card_list; | 667 | struct list_head card_list; |
| 706 | int num_dai; | 668 | int num_dai; |
| 707 | enum snd_soc_compress_type compress_type; | ||
| 708 | size_t reg_size; /* reg_cache_size * reg_word_size */ | ||
| 709 | int (*volatile_register)(struct snd_soc_codec *, unsigned int); | 669 | int (*volatile_register)(struct snd_soc_codec *, unsigned int); |
| 710 | int (*readable_register)(struct snd_soc_codec *, unsigned int); | 670 | int (*readable_register)(struct snd_soc_codec *, unsigned int); |
| 711 | int (*writable_register)(struct snd_soc_codec *, unsigned int); | 671 | int (*writable_register)(struct snd_soc_codec *, unsigned int); |
| @@ -729,10 +689,7 @@ struct snd_soc_codec { | |||
| 729 | unsigned int (*hw_read)(struct snd_soc_codec *, unsigned int); | 689 | unsigned int (*hw_read)(struct snd_soc_codec *, unsigned int); |
| 730 | unsigned int (*read)(struct snd_soc_codec *, unsigned int); | 690 | unsigned int (*read)(struct snd_soc_codec *, unsigned int); |
| 731 | int (*write)(struct snd_soc_codec *, unsigned int, unsigned int); | 691 | int (*write)(struct snd_soc_codec *, unsigned int, unsigned int); |
| 732 | int (*bulk_write_raw)(struct snd_soc_codec *, unsigned int, const void *, size_t); | ||
| 733 | void *reg_cache; | 692 | void *reg_cache; |
| 734 | const void *reg_def_copy; | ||
| 735 | const struct snd_soc_cache_ops *cache_ops; | ||
| 736 | struct mutex cache_rw_mutex; | 693 | struct mutex cache_rw_mutex; |
| 737 | int val_bytes; | 694 | int val_bytes; |
| 738 | 695 | ||
| @@ -785,9 +742,6 @@ struct snd_soc_codec_driver { | |||
| 785 | short reg_cache_step; | 742 | short reg_cache_step; |
| 786 | short reg_word_size; | 743 | short reg_word_size; |
| 787 | const void *reg_cache_default; | 744 | const void *reg_cache_default; |
| 788 | short reg_access_size; | ||
| 789 | const struct snd_soc_reg_access *reg_access_default; | ||
| 790 | enum snd_soc_compress_type compress_type; | ||
| 791 | 745 | ||
| 792 | /* codec bias level */ | 746 | /* codec bias level */ |
| 793 | int (*set_bias_level)(struct snd_soc_codec *, | 747 | int (*set_bias_level)(struct snd_soc_codec *, |
| @@ -955,12 +909,6 @@ struct snd_soc_codec_conf { | |||
| 955 | * associated per device | 909 | * associated per device |
| 956 | */ | 910 | */ |
| 957 | const char *name_prefix; | 911 | const char *name_prefix; |
| 958 | |||
| 959 | /* | ||
| 960 | * set this to the desired compression type if you want to | ||
| 961 | * override the one supplied in codec->driver->compress_type | ||
| 962 | */ | ||
| 963 | enum snd_soc_compress_type compress_type; | ||
| 964 | }; | 912 | }; |
| 965 | 913 | ||
| 966 | struct snd_soc_aux_dev { | 914 | struct snd_soc_aux_dev { |
| @@ -1132,8 +1080,6 @@ struct soc_enum { | |||
| 1132 | unsigned int snd_soc_read(struct snd_soc_codec *codec, unsigned int reg); | 1080 | unsigned int snd_soc_read(struct snd_soc_codec *codec, unsigned int reg); |
| 1133 | unsigned int snd_soc_write(struct snd_soc_codec *codec, | 1081 | unsigned int snd_soc_write(struct snd_soc_codec *codec, |
| 1134 | unsigned int reg, unsigned int val); | 1082 | unsigned int reg, unsigned int val); |
| 1135 | unsigned int snd_soc_bulk_write_raw(struct snd_soc_codec *codec, | ||
| 1136 | unsigned int reg, const void *data, size_t len); | ||
| 1137 | 1083 | ||
| 1138 | /* device driver data */ | 1084 | /* device driver data */ |
| 1139 | 1085 | ||
diff --git a/include/trace/events/asoc.h b/include/trace/events/asoc.h index 5fc2dcdd21cd..03996b2bb04f 100644 --- a/include/trace/events/asoc.h +++ b/include/trace/events/asoc.h | |||
| @@ -14,6 +14,7 @@ struct snd_soc_codec; | |||
| 14 | struct snd_soc_platform; | 14 | struct snd_soc_platform; |
| 15 | struct snd_soc_card; | 15 | struct snd_soc_card; |
| 16 | struct snd_soc_dapm_widget; | 16 | struct snd_soc_dapm_widget; |
| 17 | struct snd_soc_dapm_path; | ||
| 17 | 18 | ||
| 18 | /* | 19 | /* |
| 19 | * Log register events | 20 | * Log register events |
