ALSA: Avoid using timespec for struct snd_pcm_status
[muen/linux.git] / sound / core / pcm.c
index 9a72d64..85db55e 100644 (file)
@@ -443,7 +443,7 @@ static void snd_pcm_substream_proc_status_read(struct snd_info_entry *entry,
 {
        struct snd_pcm_substream *substream = entry->private_data;
        struct snd_pcm_runtime *runtime;
-       struct snd_pcm_status status;
+       struct snd_pcm_status64 status;
        int err;
 
        mutex_lock(&substream->pcm->open_mutex);
@@ -453,17 +453,17 @@ static void snd_pcm_substream_proc_status_read(struct snd_info_entry *entry,
                goto unlock;
        }
        memset(&status, 0, sizeof(status));
-       err = snd_pcm_status(substream, &status);
+       err = snd_pcm_status64(substream, &status);
        if (err < 0) {
                snd_iprintf(buffer, "error %d\n", err);
                goto unlock;
        }
        snd_iprintf(buffer, "state: %s\n", snd_pcm_state_name(status.state));
        snd_iprintf(buffer, "owner_pid   : %d\n", pid_vnr(substream->pid));
-       snd_iprintf(buffer, "trigger_time: %ld.%09ld\n",
-               status.trigger_tstamp.tv_sec, status.trigger_tstamp.tv_nsec);
-       snd_iprintf(buffer, "tstamp      : %ld.%09ld\n",
-               status.tstamp.tv_sec, status.tstamp.tv_nsec);
+       snd_iprintf(buffer, "trigger_time: %lld.%09lld\n",
+               status.trigger_tstamp_sec, status.trigger_tstamp_nsec);
+       snd_iprintf(buffer, "tstamp      : %lld.%09lld\n",
+               status.tstamp_sec, status.tstamp_nsec);
        snd_iprintf(buffer, "delay       : %ld\n", status.delay);
        snd_iprintf(buffer, "avail       : %ld\n", status.avail);
        snd_iprintf(buffer, "avail_max   : %ld\n", status.avail_max);