/** * Copyright (C) 2008, Creative Technology Ltd. All Rights Reserved. * * This source file is released under GPL v2 license (no other versions). * See the COPYING file included in the main directory of this source * distribution for the license terms and conditions. * * @File ctmixer.h * * @Brief * This file contains the definition of the mixer device functions. * * @Author Liu Chun * @Date Mar 28 2008 * */ #ifndef CTMIXER_H #define CTMIXER_H #include "ctatc.h" #include "ctresource.h" #define INIT_VOL 0x1c00 enum MIXER_PORT_T { MIX_WAVE_FRONT, MIX_WAVE_REAR, MIX_WAVE_CENTLFE, MIX_WAVE_SURROUND, MIX_SPDIF_OUT, MIX_PCMO_FRONT, MIX_MIC_IN, MIX_LINE_IN, MIX_SPDIF_IN, MIX_PCMI_FRONT, MIX_PCMI_REAR, MIX_PCMI_CENTLFE, MIX_PCMI_SURROUND, NUM_MIX_PORTS }; /* alsa mixer descriptor */ struct ct_mixer { struct ct_atc *atc; void **amixers; /* amixer resources for volume control */ void **sums; /* sum resources for signal collection */ unsigned int switch_state; /* A bit-map to indicate state of switches */ int (*get_output_ports)(struct ct_mixer *mixer, enum MIXER_PORT_T type, struct rsc **rleft, struct rsc **rright); int (*set_input_left)(struct ct_mixer *mixer, enum MIXER_PORT_T type, struct rsc *rsc); int (*set_input_right)(struct ct_mixer *mixer, enum MIXER_PORT_T type, struct rsc *rsc); #ifdef CONFIG_PM_SLEEP int (*resume)(struct ct_mixer *mixer); #endif }; int ct_alsa_mix_create(struct ct_atc *atc, enum CTALSADEVS device, const char *device_name); int ct_mixer_create(struct ct_atc *atc, struct ct_mixer **rmixer); int ct_mixer_destroy(struct ct_mixer *mixer); #endif /* CTMIXER_H */ d70fad4a03a8963e61f19021f2'>refslogtreecommitdiff
path: root/sound/soc/sti/uniperif.h
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2017-02-06 14:16:23 -0800
committerLinus Torvalds <torvalds@linux-foundation.org>2017-02-06 14:16:23 -0800
commit396bf4cd835e62d70fad4a03a8963e61f19021f2 (patch)
tree79ac8f33554260fea1a8d43e6f8c4c5460115f45 /sound/soc/sti/uniperif.h
parentd5adbfcd5f7bcc6fa58a41c5c5ada0e5c826ce2c (diff)
parent7c2cf1c4615cc2f576d0604406cdf0065f00b83b (diff)
Merge branch 'linus' of git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6
Pull crypto fixes from Herbert Xu: - use-after-free in algif_aead - modular aesni regression when pcbc is modular but absent - bug causing IO page faults in ccp - double list add in ccp - NULL pointer dereference in qat (two patches) - panic in chcr - NULL pointer dereference in chcr - out-of-bound access in chcr * 'linus' of git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6: crypto: chcr - Fix key length for RFC4106 crypto: algif_aead - Fix kernel panic on list_del crypto: aesni - Fix failure when pcbc module is absent crypto: ccp - Fix double add when creating new DMA command crypto: ccp - Fix DMA operations when IOMMU is enabled crypto: chcr - Check device is allocated before use crypto: chcr - Fix panic on dma_unmap_sg crypto: qat - zero esram only for DH85x devices crypto: qat - fix bar discovery for c62x
Diffstat (limited to 'sound/soc/sti/uniperif.h')