aboutsummaryrefslogtreecommitdiffstats
path: root/sound/pci/emu10k1/emupcm.c
diff options
context:
space:
mode:
authorJames Courtier-Dutton <James@superbug.co.uk>2007-11-04 09:08:26 -0500
committerMercurial server <hg@alsa0.alsa-project.org>2008-01-31 11:30:24 -0500
commit190d2c46e52592ba092e8bf8acd4427c920f2d69 (patch)
treebc4f4271f08aa57ac520fa2536c3990f8741fd55 /sound/pci/emu10k1/emupcm.c
parent44893a36ba49349e0f9d4bc3b7bbf9b54469ae1a (diff)
[ALSA] snd:emu10k1: E-Mu updates. Fixes to firmware loading and support for 0404.
Signed-off-by: James Courtier-Dutton <James@superbug.co.uk> Signed-off-by: Jaroslav Kysela <perex@perex.cz>
Diffstat (limited to 'sound/pci/emu10k1/emupcm.c')
-rw-r--r--sound/pci/emu10k1/emupcm.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sound/pci/emu10k1/emupcm.c b/sound/pci/emu10k1/emupcm.c
index cf4e3ec6530e..cf9276ddad42 100644
--- a/sound/pci/emu10k1/emupcm.c
+++ b/sound/pci/emu10k1/emupcm.c
@@ -357,7 +357,7 @@ static void snd_emu10k1_pcm_init_voice(struct snd_emu10k1 *emu,
357 snd_emu10k1_ptr_write(emu, PTRX, voice, (send_amount[0] << 8) | send_amount[1]); 357 snd_emu10k1_ptr_write(emu, PTRX, voice, (send_amount[0] << 8) | send_amount[1]);
358 snd_emu10k1_ptr_write(emu, DSL, voice, end_addr | (send_amount[3] << 24)); 358 snd_emu10k1_ptr_write(emu, DSL, voice, end_addr | (send_amount[3] << 24));
359 snd_emu10k1_ptr_write(emu, PSST, voice, start_addr | (send_amount[2] << 24)); 359 snd_emu10k1_ptr_write(emu, PSST, voice, start_addr | (send_amount[2] << 24));
360 if (emu->card_capabilities->emu1010) 360 if (emu->card_capabilities->emu_model)
361 pitch_target = PITCH_48000; /* Disable interpolators on emu1010 card */ 361 pitch_target = PITCH_48000; /* Disable interpolators on emu1010 card */
362 else 362 else
363 pitch_target = emu10k1_calc_pitch_target(runtime->rate); 363 pitch_target = emu10k1_calc_pitch_target(runtime->rate);
@@ -700,7 +700,7 @@ static void snd_emu10k1_playback_trigger_voice(struct snd_emu10k1 *emu, struct s
700 voice = evoice->number; 700 voice = evoice->number;
701 701
702 pitch = snd_emu10k1_rate_to_pitch(runtime->rate) >> 8; 702 pitch = snd_emu10k1_rate_to_pitch(runtime->rate) >> 8;
703 if (emu->card_capabilities->emu1010) 703 if (emu->card_capabilities->emu_model)
704 pitch_target = PITCH_48000; /* Disable interpolators on emu1010 card */ 704 pitch_target = PITCH_48000; /* Disable interpolators on emu1010 card */
705 else 705 else
706 pitch_target = emu10k1_calc_pitch_target(runtime->rate); 706 pitch_target = emu10k1_calc_pitch_target(runtime->rate);
@@ -1231,7 +1231,7 @@ static int snd_emu10k1_capture_efx_open(struct snd_pcm_substream *substream)
1231 runtime->hw.rates = SNDRV_PCM_RATE_48000; 1231 runtime->hw.rates = SNDRV_PCM_RATE_48000;
1232 runtime->hw.rate_min = runtime->hw.rate_max = 48000; 1232 runtime->hw.rate_min = runtime->hw.rate_max = 48000;
1233 spin_lock_irq(&emu->reg_lock); 1233 spin_lock_irq(&emu->reg_lock);
1234 if (emu->card_capabilities->emu1010) { 1234 if (emu->card_capabilities->emu_model) {
1235 /* Nb. of channels has been increased to 16 */ 1235 /* Nb. of channels has been increased to 16 */
1236 /* TODO 1236 /* TODO
1237 * SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_S32_LE 1237 * SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_S32_LE
@@ -1790,7 +1790,7 @@ int __devinit snd_emu10k1_pcm_efx(struct snd_emu10k1 * emu, int device, struct s
1790 /* emu->efx_voices_mask[0] = FXWC_DEFAULTROUTE_C | FXWC_DEFAULTROUTE_A; */ 1790 /* emu->efx_voices_mask[0] = FXWC_DEFAULTROUTE_C | FXWC_DEFAULTROUTE_A; */
1791 if (emu->audigy) { 1791 if (emu->audigy) {
1792 emu->efx_voices_mask[0] = 0; 1792 emu->efx_voices_mask[0] = 0;
1793 if (emu->card_capabilities->emu1010) 1793 if (emu->card_capabilities->emu_model)
1794 /* Pavel Hofman - 32 voices will be used for 1794 /* Pavel Hofman - 32 voices will be used for
1795 * capture (write mode) - 1795 * capture (write mode) -
1796 * each bit = corresponding voice 1796 * each bit = corresponding voice