mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2026-03-29 07:57:59 -04:00
Completed pcm_update implementation
This commit is contained in:
parent
3a6ce53704
commit
e77cbd919d
6 changed files with 51 additions and 2 deletions
|
|
@ -139,6 +139,16 @@ static int snd_pcm_hw_channel_status(snd_pcm_t *pcm, snd_pcm_channel_status_t *
|
|||
return 0;
|
||||
}
|
||||
|
||||
static int snd_pcm_hw_channel_update(snd_pcm_t *pcm, int channel)
|
||||
{
|
||||
int fd;
|
||||
snd_pcm_hw_t *hw = (snd_pcm_hw_t*) &pcm->private;
|
||||
fd = hw->chan[channel].fd;
|
||||
if (ioctl(fd, SND_PCM_IOCTL_CHANNEL_UPDATE) < 0)
|
||||
return -errno;
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int snd_pcm_hw_channel_prepare(snd_pcm_t *pcm, int channel)
|
||||
{
|
||||
int fd;
|
||||
|
|
@ -329,6 +339,7 @@ struct snd_pcm_ops snd_pcm_hw_ops = {
|
|||
channel_setup: snd_pcm_hw_channel_setup,
|
||||
voice_setup: snd_pcm_hw_voice_setup,
|
||||
channel_status: snd_pcm_hw_channel_status,
|
||||
channel_update: snd_pcm_hw_channel_update,
|
||||
channel_prepare: snd_pcm_hw_channel_prepare,
|
||||
channel_go: snd_pcm_hw_channel_go,
|
||||
sync_go: snd_pcm_hw_sync_go,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue