···777777778778static struct snd_emu_chip_details emu_chip_details[] = {779779 /* Audigy 2 Value AC3 out does not work yet. Need to find out how to turn off interpolators.*/780780- /* Audigy4 SB0400 */781781- {.vendor = 0x1102, .device = 0x0008, .subsystem = 0x10211102,782782- .driver = "Audigy2", .name = "Audigy 4 [SB0400]", 783783- .id = "Audigy2",784784- .emu10k2_chip = 1,785785- .ca0108_chip = 1,786786- .spk71 = 1,787787- .ac97_chip = 1} ,788780 /* Tested by James@superbug.co.uk 3rd July 2005 */789781 /* DSP: CA0108-IAT790782 * DAC: CS4382-KQ···791799 .ca0108_chip = 1,792800 .spk71 = 1,793801 .ac97_chip = 1} ,802802+ /* Audigy4 (Not PRO) SB0610 */803803+ /* Tested by James@superbug.co.uk 4th April 2006 */804804+ /* A_IOCFG bits805805+ * Output806806+ * 0: ?807807+ * 1: ?808808+ * 2: ?809809+ * 3: 0 - Digital Out, 1 - Line in810810+ * 4: ?811811+ * 5: ?812812+ * 6: ?813813+ * 7: ?814814+ * Input815815+ * 8: ?816816+ * 9: ?817817+ * A: Green jack sense (Front)818818+ * B: ?819819+ * C: Black jack sense (Rear/Side Right)820820+ * D: Yellow jack sense (Center/LFE/Side Left)821821+ * E: ?822822+ * F: ?823823+ *824824+ * Digital Out/Line in switch using A_IOCFG bit 3 (0x08)825825+ * 0 - Digital Out826826+ * 1 - Line in827827+ */828828+ /* Mic input not tested.829829+ * Analog CD input not tested830830+ * Digital Out not tested.831831+ * Line in working.832832+ * Audio output 5.1 working. Side outputs not working.833833+ */834834+ /* DSP: CA10300-IAT LF835835+ * DAC: Cirrus Logic CS4382-KQZ836836+ * ADC: Philips 1361T837837+ * AC97: Sigmatel STAC9750838838+ * CA0151: None839839+ */840840+ {.vendor = 0x1102, .device = 0x0008, .subsystem = 0x10211102,841841+ .driver = "Audigy2", .name = "Audigy 4 [SB0610]", 842842+ .id = "Audigy2",843843+ .emu10k2_chip = 1,844844+ .ca0108_chip = 1,845845+ .spk71 = 1,846846+ .adc_1361t = 1, /* 24 bit capture instead of 16bit */847847+ .ac97_chip = 1} ,794848 /* Audigy 2 ZS Notebook Cardbus card.*/795849 /* Tested by James@superbug.co.uk 22th December 2005 */796850 /* Audio output 7.1/Headphones working.797851 * Digital output working. (AC3 not checked, only PCM)798852 * Audio inputs not tested.799853 */ 800800- /* DSP: Tiny2854854+ /* DSP: Tina2801855 * DAC: Wolfson WM8768/WM8568802856 * ADC: Wolfson WM8775803857 * AC97: None
+52-2
sound/pci/emu10k1/emumixer.c
···777777 };778778 static char *audigy_remove_ctls[] = {779779 /* Master/PCM controls on ac97 of Audigy has no effect */780780+ /* On the Audigy2 the AC97 playback is piped into781781+ * the Philips ADC for 24bit capture */780782 "PCM Playback Switch",781783 "PCM Playback Volume",782784 "Master Mono Playback Switch",···804802 /* "Wave Capture Volume", "PCM Capture Volume", */805803 "Wave Master Playback Volume", "Master Playback Volume",806804 "AMic Playback Volume", "Mic Playback Volume",805805+ NULL806806+ };807807+ static char *audigy_remove_ctls_1361t_adc[] = {808808+ /* On the Audigy2 the AC97 playback is piped into809809+ * the Philips ADC for 24bit capture */810810+ "PCM Playback Switch",811811+ "PCM Playback Volume",812812+ "Master Mono Playback Switch",813813+ "Master Mono Playback Volume",814814+ "Capture Source",815815+ "Capture Switch",816816+ "Capture Volume",817817+ "Mic Capture Volume",818818+ "Headphone Playback Switch",819819+ "Headphone Playback Volume",820820+ "3D Control - Center",821821+ "3D Control - Depth",822822+ "3D Control - Switch",823823+ "Line2 Playback Volume",824824+ "Line2 Capture Volume",825825+ NULL826826+ };827827+ static char *audigy_rename_ctls_1361t_adc[] = {828828+ "Master Playback Switch", "Master Capture Switch",829829+ "Master Playback Volume", "Master Capture Volume",830830+ "Wave Master Playback Volume", "Master Playback Volume",831831+ "PC Speaker Playback Switch", "PC Speaker Capture Switch",832832+ "PC Speaker Playback Volume", "PC Speaker Capture Volume",833833+ "Phone Playback Switch", "Phone Capture Switch",834834+ "Phone Playback Volume", "Phone Capture Volume",835835+ "Mic Playback Switch", "Mic Capture Switch",836836+ "Mic Playback Volume", "Mic Capture Volume",837837+ "Line Playback Switch", "Line Capture Switch",838838+ "Line Playback Volume", "Line Capture Volume",839839+ "CD Playback Switch", "CD Capture Switch",840840+ "CD Playback Volume", "CD Capture Volume",841841+ "Aux Playback Switch", "Aux Capture Switch",842842+ "Aux Playback Volume", "Aux Capture Volume",843843+ "Video Playback Switch", "Video Capture Switch",844844+ "Video Playback Volume", "Video Capture Volume",845845+807846 NULL808847 };809848···877834 snd_ac97_write_cache(emu->ac97, AC97_MASTER, 0x0000);878835 /* set capture source to mic */879836 snd_ac97_write_cache(emu->ac97, AC97_REC_SEL, 0x0000);880880- c = audigy_remove_ctls;837837+ if (emu->card_capabilities->adc_1361t)838838+ c = audigy_remove_ctls_1361t_adc;839839+ else 840840+ c = audigy_remove_ctls;881841 } else {882842 /*883843 * Credits for cards based on STAC9758:···909863 }910864911865 if (emu->audigy)912912- c = audigy_rename_ctls;866866+ if (emu->card_capabilities->adc_1361t)867867+ c = audigy_rename_ctls_1361t_adc;868868+ else869869+ c = audigy_rename_ctls;913870 else914871 c = emu10k1_rename_ctls;915872 for (; *c; c += 2)916873 rename_ctl(card, c[0], c[1]);874874+917875 if (emu->card_capabilities->subsystem == 0x20071102) { /* Audigy 4 Pro */918876 rename_ctl(card, "Line2 Capture Volume", "Line1/Mic Capture Volume");919877 rename_ctl(card, "Analog Mix Capture Volume", "Line2 Capture Volume");
+2-6
sound/pci/emu10k1/tina2.h
···11/*22 * Copyright (c) by James Courtier-Dutton <James@superbug.demon.co.uk>33- * Driver p16v chips44- * Version: 0.2155- *66- *77- * This code was initally based on code from ALSA's emu10k1x.c which is:88- * Copyright (c) by Francisco Moraes <fmoraes@nc.rr.com>33+ * Driver tina2 chips44+ * Version: 0.195 *106 * This program is free software; you can redistribute it and/or modify117 * it under the terms of the GNU General Public License as published by