Skip to contentSkip to conversation

NEC VR5701 support

PATCH Sergey Podstavin 1 participant 1 message Feb 23, 2006

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

Source: MontaVista Software, Inc. Igor Goryachev <[email protected]>
MR: 16114
Type: Defect Fix
Disposition: needs submitting to linuxmips-embedded mailing list

Description:
Fixes bug with sound recording on NEC vr5701.

include/linux/lsppatchlevel.h +1 -1
Index: linux-2.6.10/include/linux/lsppatchlevel.h
===================================================================
@@ -6,4 +6,4 @@
  * is licensed "as is" without any warranty of any kind, whether express
  * or implied.
  */
-#define LSP_PATCH_LEVEL "10"
+#define LSP_PATCH_LEVEL "11"
mvl_patches/pro-0011.c new file +16 -0
Index: linux-2.6.10/mvl_patches/pro-0011.c
===================================================================
@@ -0,0 +1,16 @@
+/*
+ * Author: MontaVista Software, Inc. <[email protected]>
+ *
+ * 2005 (c) MontaVista Software, Inc. This file is licensed under
+ * the terms of the GNU General Public License version 2. This program
+ * is licensed "as is" without any warranty of any kind, whether express
+ * or implied.
+ */
+#include <linux/init.h>
+#include <linux/mvl_patch.h>
+
+static __init int regpatch(void)
+{
+        return mvl_register_patch(11);
+}
+module_init(regpatch);
sound/pci/vr5701/nec_vr5701_sg2.h +1 -1
Index: linux-2.6.10/sound/pci/vr5701/nec_vr5701_sg2.h
===================================================================
@@ -138,7 +138,7 @@ static snd_pcm_hardware_t snd_vr5701_pla
 /* hardware definition */
 static snd_pcm_hardware_t snd_vr5701_capture_hw = {
 	.info = (SNDRV_PCM_INFO_MMAP |
-                   SNDRV_PCM_INFO_INTERLEAVED |
+                   SNDRV_PCM_INFO_NONINTERLEAVED |
                    SNDRV_PCM_INFO_BLOCK_TRANSFER |
                    SNDRV_PCM_INFO_MMAP_VALID),
 	.formats =          SNDRV_PCM_FMTBIT_S16_LE,