summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2015-09-24 15:54:09 +0200
committerTakashi Iwai <tiwai@suse.de>2015-09-24 15:54:09 +0200
commit5de7356402ac8bfc1caea780d814f211358c5a9d (patch)
treeb50cfc5125b2f3bccf33ae913451a0a7d30a1786
parent5976c9c36159178990071766e088607a1cc959f8 (diff)
downloadalsa-driver-build-unstable-5de7356402ac8bfc1caea780d814f211358c5a9d.tar.gz
Refresh pcm.patch
Get rid of kABI compatibility hacks that often lead to the patch conflicts while it rarely helps in practice. This fixes the patch conflict after merging 4.3-rc1 base. Signed-off-by: Takashi Iwai <tiwai@suse.de>
-rw-r--r--alsa/include/sound/pcm.patch171
1 files changed, 3 insertions, 168 deletions
diff --git a/alsa/include/sound/pcm.patch b/alsa/include/sound/pcm.patch
index 70a8c95d9..7ea2b1894 100644
--- a/alsa/include/sound/pcm.patch
+++ b/alsa/include/sound/pcm.patch
@@ -1,125 +1,6 @@
---- ../../alsa-kernel/include/pcm.h 2015-01-05 10:52:39.979055860 +0100
-+++ pcm.h 2015-01-14 15:50:55.945973100 +0100
-@@ -283,10 +283,18 @@
- snd_pcm_uframes_t avail_max;
- snd_pcm_uframes_t hw_ptr_base; /* Position at buffer restart */
- snd_pcm_uframes_t hw_ptr_interrupt; /* Position at interrupt time */
-+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 30)
- unsigned long hw_ptr_jiffies; /* Time when hw_ptr is updated */
-+#endif
-+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 37)
- unsigned long hw_ptr_buffer_jiffies; /* buffer time in jiffies */
-+#endif
-+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 31)
- snd_pcm_sframes_t delay; /* extra delay; typically FIFO size */
-+#endif
-+#if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 7, 0)
- u64 hw_ptr_wrap; /* offset for hw_ptr due to boundary wrap-around */
-+#endif
-
- /* -- HW params -- */
- snd_pcm_access_t access; /* access mode */
-@@ -297,6 +305,9 @@
- snd_pcm_uframes_t period_size; /* period size */
- unsigned int periods; /* periods */
- snd_pcm_uframes_t buffer_size; /* buffer size */
-+#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 25)
-+ unsigned int tick_time; /* for ABI compatibility */
-+#endif
- snd_pcm_uframes_t min_align; /* Min alignment for the format */
- size_t byte_align;
- unsigned int frame_bits;
-@@ -304,11 +315,17 @@
- unsigned int info;
- unsigned int rate_num;
- unsigned int rate_den;
-+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 38)
- unsigned int no_period_wakeup: 1;
-+#endif
-
- /* -- SW params -- */
- int tstamp_mode; /* mmap timestamp is updated */
- unsigned int period_step;
-+#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 25)
-+ unsigned int sleep_min; /* for ABI compatibility */
-+ snd_pcm_uframes_t xfer_align; /* for ABI compatibility */
-+#endif
- snd_pcm_uframes_t start_threshold;
- snd_pcm_uframes_t stop_threshold;
- snd_pcm_uframes_t silence_threshold; /* Silence filling happens when
-@@ -326,9 +343,22 @@
- struct snd_pcm_mmap_control *control;
-
- /* -- locking / scheduling -- */
-+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 36)
- snd_pcm_uframes_t twake; /* do transfer (!poll) wakeup if non-zero */
-+#elif LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 34)
-+#ifdef __GENKSYMS__
-+ unsigned int twake: 1; /* for ABI compatibility */
-+#else
-+ unsigned int old_twake: 1; /* for ABI compatibility */
-+#endif
-+#endif
- wait_queue_head_t sleep; /* poll sleep */
-+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 34)
- wait_queue_head_t tsleep; /* transfer sleep */
-+#endif
-+#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 25)
-+ struct timer_list tick_timer; /* for ABI compatibility */
-+#endif
- struct fasync_struct *fasync;
-
- /* -- private section -- */
-@@ -345,8 +375,9 @@
-
- /* -- timer -- */
- unsigned int timer_resolution; /* timer resolution */
-+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 25)
- int tstamp_type; /* timestamp type */
--
-+#endif
- /* -- DMA -- */
- unsigned char *dma_area; /* DMA area */
- dma_addr_t dma_addr; /* physical bus address (not accessible from main CPU) */
-@@ -359,9 +390,37 @@
- struct snd_pcm_oss_runtime oss;
- #endif
-
-+ /* appended below for ABI compatibility */
-+#ifndef __GENKSYMS__
- #ifdef CONFIG_SND_PCM_XRUN_DEBUG
- struct snd_pcm_hwptr_log *hwptr_log;
- #endif
-+
-+#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 30)
-+ unsigned long hw_ptr_jiffies; /* Time when hw_ptr is updated */
-+#endif
-+#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 31)
-+ snd_pcm_sframes_t delay; /* extra delay; typically FIFO size */
-+#endif
-+#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 25)
-+ int tstamp_type; /* timestamp type */
-+#endif
-+#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 34)
-+ wait_queue_head_t tsleep; /* transfer sleep */
-+#endif
-+#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 36)
-+ snd_pcm_uframes_t twake; /* do transfer (!poll) wakeup if non-zero */
-+#endif
-+#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 37)
-+ unsigned long hw_ptr_buffer_jiffies; /* buffer time in jiffies */
-+#endif
-+#if LINUX_VERSION_CODE < KERNEL_VERSION(3, 7, 0)
-+ u64 hw_ptr_wrap; /* offset for hw_ptr due to boundary wrap-around */
-+#endif
-+#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 38)
-+ unsigned int no_period_wakeup: 1;
-+#endif
-+#endif /* !__GENKSYMS__ */
- };
-
- struct snd_pcm_group { /* keep linked substreams */
-@@ -380,7 +439,15 @@
+--- ../../alsa-kernel/include/pcm.h 2015-09-13 12:03:42.003506463 +0200
++++ pcm.h 2015-09-24 14:52:36.974428470 +0200
+@@ -444,7 +444,15 @@
int number;
char name[32]; /* substream name */
int stream; /* stream (direction) */
@@ -135,49 +16,3 @@
size_t buffer_bytes_max; /* limit ring buffer size */
struct snd_dma_buffer dma_buffer;
size_t dma_max;
-@@ -391,6 +458,9 @@
- /* -- timer section -- */
- struct snd_timer *timer; /* timer */
- unsigned timer_running: 1; /* time is running */
-+#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 30)
-+ spinlock_t timer_lock; /* just place holder */
-+#endif
- /* -- next substream -- */
- struct snd_pcm_substream *next;
- /* -- linked substreams -- */
-@@ -403,7 +473,9 @@
- atomic_t mmap_count;
- unsigned int f_flags;
- void (*pcm_release)(struct snd_pcm_substream *);
-+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 33)
- struct pid *pid;
-+#endif
- #if defined(CONFIG_SND_PCM_OSS) || defined(CONFIG_SND_PCM_OSS_MODULE)
- /* -- OSS things -- */
- struct snd_pcm_oss_substream oss;
-@@ -422,6 +494,13 @@
- #endif /* CONFIG_SND_VERBOSE_PROCFS */
- /* misc flags */
- unsigned int hw_opened: 1;
-+
-+ /* appended below for ABI compatibility */
-+#ifndef __GENKSYMS__
-+#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 33)
-+ struct pid *pid;
-+#endif
-+#endif
- };
-
- #define SUBSTREAM_BUSY(substream) ((substream)->ref_count > 0)
-@@ -504,7 +583,11 @@
- int snd_pcm_status(struct snd_pcm_substream *substream,
- struct snd_pcm_status *status);
- int snd_pcm_start(struct snd_pcm_substream *substream);
-+#if defined(__GENKSYMS__) && LINUX_VERSION_CODE <= KERNEL_VERSION(2, 6, 38)
-+int snd_pcm_stop(struct snd_pcm_substream *substream, int status);
-+#else
- int snd_pcm_stop(struct snd_pcm_substream *substream, snd_pcm_state_t status);
-+#endif
- int snd_pcm_drain_done(struct snd_pcm_substream *substream);
- int snd_pcm_stop_xrun(struct snd_pcm_substream *substream);
- #ifdef CONFIG_PM