diff options
author | James Courtier-Dutton <James@superbug.co.uk> | 2007-07-26 13:31:39 -0400 |
---|---|---|
committer | Jaroslav Kysela <perex@perex.cz> | 2007-10-16 09:58:03 -0400 |
commit | f93abe51e8dc7e929d29e6a9a1991bf7fd234d4a (patch) | |
tree | e23ba606e72d14b59297a8d2937d1b76f34e5e2a /sound/pci/emu10k1/emu10k1_main.c | |
parent | 95a5b0850a96c155f6b8dac03f45c19bc482ced7 (diff) |
[ALSA] snd-emu10k1:Implement SPDIF/ADAT status.
Signed-off-by: James Courtier-Dutton <James@superbug.co.uk>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
Diffstat (limited to 'sound/pci/emu10k1/emu10k1_main.c')
-rw-r--r-- | sound/pci/emu10k1/emu10k1_main.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/sound/pci/emu10k1/emu10k1_main.c b/sound/pci/emu10k1/emu10k1_main.c index b985e660c60b..e22bb717e96a 100644 --- a/sound/pci/emu10k1/emu10k1_main.c +++ b/sound/pci/emu10k1/emu10k1_main.c | |||
@@ -873,7 +873,15 @@ static int snd_emu10k1_emu1010_init(struct snd_emu10k1 * emu) | |||
873 | snd_printk(KERN_INFO "emu1010: Card options=0x%x\n",reg); | 873 | snd_printk(KERN_INFO "emu1010: Card options=0x%x\n",reg); |
874 | snd_emu1010_fpga_read(emu, EMU_HANA_OPTICAL_TYPE, &tmp ); | 874 | snd_emu1010_fpga_read(emu, EMU_HANA_OPTICAL_TYPE, &tmp ); |
875 | /* Optical -> ADAT I/O */ | 875 | /* Optical -> ADAT I/O */ |
876 | snd_emu1010_fpga_write(emu, EMU_HANA_OPTICAL_TYPE, EMU_HANA_OPTICAL_IN_ADAT | EMU_HANA_OPTICAL_OUT_ADAT ); | 876 | /* 0 : SPDIF |
877 | * 1 : ADAT | ||
878 | */ | ||
879 | emu->emu1010.optical_in = 1; /* IN_ADAT */ | ||
880 | emu->emu1010.optical_out = 1; /* IN_ADAT */ | ||
881 | tmp = 0; | ||
882 | tmp = (emu->emu1010.optical_in ? EMU_HANA_OPTICAL_IN_ADAT : 0) | | ||
883 | (emu->emu1010.optical_out ? EMU_HANA_OPTICAL_OUT_ADAT : 0); | ||
884 | snd_emu1010_fpga_write(emu, EMU_HANA_OPTICAL_TYPE, tmp ); | ||
877 | snd_emu1010_fpga_read(emu, EMU_HANA_ADC_PADS, &tmp ); | 885 | snd_emu1010_fpga_read(emu, EMU_HANA_ADC_PADS, &tmp ); |
878 | /* Set no attenuation on Audio Dock pads. */ | 886 | /* Set no attenuation on Audio Dock pads. */ |
879 | snd_emu1010_fpga_write(emu, EMU_HANA_ADC_PADS, 0x00 ); | 887 | snd_emu1010_fpga_write(emu, EMU_HANA_ADC_PADS, 0x00 ); |