History

ALSA: emu10k1: drop redundant snd_emu10k1_efx_playback_pointer()

It's just an (outdated) copy of snd_emu10k1_playback_pointer().

Oswald Buddenhagen committed 3 years ago

Commit b9468c41 parent 79852431 file · +1 −18Browse files

Unified · Split

sound/pci/emu10k1/emupcm.c+1−18
@@ -76,23 +76,6 @@ static void snd_emu10k1_pcm_efx_interrupt(struct snd_emu10k1 *emu, · 75 unmodified lines
7676 snd_pcm_period_elapsed(emu->pcm_capture_efx_substream);
7777 }
7878
79−static snd_pcm_uframes_t snd_emu10k1_efx_playback_pointer(struct snd_pcm_substream *substream)
80−{
81− struct snd_emu10k1 *emu = snd_pcm_substream_chip(substream);
82− struct snd_pcm_runtime *runtime = substream->runtime;
83− struct snd_emu10k1_pcm *epcm = runtime->private_data;
84− unsigned int ptr;
85−
86− if (!epcm->running)
87− return 0;
88− ptr = snd_emu10k1_ptr_read(emu, CCCA, epcm->voices[0]->number) & 0x00ffffff;
89− ptr += runtime->buffer_size;
90− ptr -= epcm->ccca_start_addr;
91− ptr %= runtime->buffer_size;
92−
93− return ptr;
94−}
95−
9679 static int snd_emu10k1_pcm_channel_alloc(struct snd_emu10k1_pcm * epcm, int voices)
9780 {
9881 int err, i;
@@ -1345,7 +1328,7 @@ static const struct snd_pcm_ops snd_emu10k1_efx_playback_ops = { · 1246 unmodified lines
13451328 .hw_free = snd_emu10k1_playback_hw_free,
13461329 .prepare = snd_emu10k1_efx_playback_prepare,
13471330 .trigger = snd_emu10k1_efx_playback_trigger,
1348− .pointer = snd_emu10k1_efx_playback_pointer,
1331+ .pointer = snd_emu10k1_playback_pointer,
13491332 };
13501333
13511334 int snd_emu10k1_pcm(struct snd_emu10k1 *emu, int device)

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t