]> git.alsa-project.org Git - alsa-lib.git/commitdiff
timer: obsolete legacy rtctimer instance
authorTakashi Sakamoto <o-takashi@sakamocchi.jp>
Fri, 21 Apr 2017 15:27:59 +0000 (00:27 +0900)
committerTakashi Iwai <tiwai@suse.de>
Fri, 21 Apr 2017 15:57:56 +0000 (17:57 +0200)
At v4.7 development, ALSA timer interface dropped device instance based on
legacy rtctimer implementation. User space applications should not use the
device instance.

This commit adds comments to notify a corresponding macro should not be
used anymore.

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
include/sound/asound.h
include/timer.h

index 67bf49d8c94407ca6fe5547e7ce07ef992bab3fc..609cadb8739dbd143b6136d26cb7af2d7a0fc08a 100644 (file)
@@ -672,7 +672,7 @@ enum {
 
 /* global timers (device member) */
 #define SNDRV_TIMER_GLOBAL_SYSTEM      0
-#define SNDRV_TIMER_GLOBAL_RTC         1
+#define SNDRV_TIMER_GLOBAL_RTC         1       /* unused */
 #define SNDRV_TIMER_GLOBAL_HPET                2
 #define SNDRV_TIMER_GLOBAL_HRTIMER     3
 
index 2803f532732959938bec475e71658d487fd9eb33..32d9b89576b3ecc8ed3739265a66e8854d9aff3b 100644 (file)
@@ -112,7 +112,7 @@ typedef struct _snd_timer_tread {
 /** global timer - system */
 #define SND_TIMER_GLOBAL_SYSTEM 0
 /** global timer - RTC */
-#define SND_TIMER_GLOBAL_RTC   1
+#define SND_TIMER_GLOBAL_RTC   1       /* Obsoleted, due to enough legacy. */
 /** global timer - HPET */
 #define SND_TIMER_GLOBAL_HPET  2
 /** global timer - HRTIMER */