OSDN Git Service

pcm: hw: minor refactoring for initialization of control data
authorTakashi Sakamoto <o-takashi@sakamocchi.jp>
Fri, 30 Jun 2017 11:00:26 +0000 (20:00 +0900)
committerTakashi Iwai <tiwai@suse.de>
Fri, 30 Jun 2017 14:34:45 +0000 (16:34 +0200)
commit4396c83a4d572c32e88a6eb9d3f48240bf89da8e
tree70daaf84302de0bac413e4a4843aeaf139e4dc23
parent5c9582b8b428f3dbacb9e2fc32924f55c38efe8d
pcm: hw: minor refactoring for initialization of control data

At failure of control data mapping, alsa-lib goes to fallback mode. In
this mode, a buffer is kept in user space and executes ioctl(2) with
SNDRV_PCM_IOCTL_SYNC_PTR for the buffer to synchronize the control data.

In current implementation, no helper function is used for initialize
the control data. This commit use an proper helper function instead of
a direct call of ioctl(2).

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
src/pcm/pcm_hw.c