mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-24 13:44:26 -04:00
ALSA: opti93x: add support for Opti93x codec in cs4231-lib
This patch adds support for WSS compatible Opti93x codec to the cs4231-lib. Signed-off-by: Krzysztof Helt <krzysztof.h1@wp.pl> Tested-by: Rene Herman <rene.herman@gmail.com> Signed-off-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
parent
a6a950a8a8
commit
abf1f5aafc
3 changed files with 120 additions and 9 deletions
|
|
@ -177,4 +177,12 @@
|
|||
#define CS4236_RIGHT_WAVE 0x1c /* right wavetable serial port volume */
|
||||
#define CS4236_VERSION 0x9c /* chip version and ID */
|
||||
|
||||
/* definitions for extended registers - OPTI93X */
|
||||
#define OPTi931_AUX_LEFT_INPUT 0x10
|
||||
#define OPTi931_AUX_RIGHT_INPUT 0x11
|
||||
#define OPTi93X_MIC_LEFT_INPUT 0x14
|
||||
#define OPTi93X_MIC_RIGHT_INPUT 0x15
|
||||
#define OPTi93X_OUT_LEFT 0x16
|
||||
#define OPTi93X_OUT_RIGHT 0x17
|
||||
|
||||
#endif /* __SOUND_CS4231_REGS_H */
|
||||
|
|
|
|||
|
|
@ -58,6 +58,7 @@
|
|||
/* compatible, but clones */
|
||||
#define CS4231_HW_INTERWAVE 0x1000 /* InterWave chip */
|
||||
#define CS4231_HW_OPL3SA2 0x1101 /* OPL3-SA2 chip, similar to cs4231 */
|
||||
#define CS4231_HW_OPTI93X 0x1102 /* Opti 930/931/933 */
|
||||
|
||||
/* defines for codec.hwshare */
|
||||
#define CS4231_HWSHARE_IRQ (1<<0)
|
||||
|
|
@ -120,6 +121,8 @@ unsigned char snd_cs4236_ext_in(struct snd_cs4231 *chip, unsigned char reg);
|
|||
void snd_cs4231_mce_up(struct snd_cs4231 *chip);
|
||||
void snd_cs4231_mce_down(struct snd_cs4231 *chip);
|
||||
|
||||
void snd_cs4231_overrange(struct snd_cs4231 *chip);
|
||||
|
||||
irqreturn_t snd_cs4231_interrupt(int irq, void *dev_id);
|
||||
|
||||
const char *snd_cs4231_chip_id(struct snd_cs4231 *chip);
|
||||
|
|
|
|||
Loading…
Reference in a new issue