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
76 snd_pcm_period_elapsed(emu->pcm_capture_efx_substream);76 snd_pcm_period_elapsed(emu->pcm_capture_efx_substream);
77} 77}
78 78
79static 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
96static int snd_emu10k1_pcm_channel_alloc(struct snd_emu10k1_pcm * epcm, int voices)79static int snd_emu10k1_pcm_channel_alloc(struct snd_emu10k1_pcm * epcm, int voices)
97{80{
98 int err, i;81 int err, i;
@@ -1345,7 +1328,7 @@ static const struct snd_pcm_ops snd_emu10k1_efx_playback_ops = { · 1246 unmodified lines
1345 .hw_free = snd_emu10k1_playback_hw_free,1328 .hw_free = snd_emu10k1_playback_hw_free,
1346 .prepare = snd_emu10k1_efx_playback_prepare,1329 .prepare = snd_emu10k1_efx_playback_prepare,
1347 .trigger = snd_emu10k1_efx_playback_trigger,1330 .trigger = snd_emu10k1_efx_playback_trigger,
1348 .pointer = snd_emu10k1_efx_playback_pointer,1331 .pointer = snd_emu10k1_playback_pointer,
1349};1332};
1350 1333
1351int snd_emu10k1_pcm(struct snd_emu10k1 *emu, int device)1334int 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