control.h 581 B

1234567891011121314151617181920212223
  1. /* SPDX-License-Identifier: GPL-2.0-only */
  2. /*
  3. * Copyright(c) 2021-2022 Intel Corporation
  4. *
  5. * Authors: Amadeusz Slawinski <amadeuszx.slawinski@linux.intel.com>
  6. * Cezary Rojewski <cezary.rojewski@intel.com>
  7. */
  8. #ifndef __SOUND_SOC_INTEL_AVS_CTRL_H
  9. #define __SOUND_SOC_INTEL_AVS_CTRL_H
  10. #include <sound/control.h>
  11. struct avs_control_data {
  12. u32 id;
  13. long volume;
  14. };
  15. int avs_control_volume_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol);
  16. int avs_control_volume_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol);
  17. #endif