aboutsummaryrefslogtreecommitdiffstats
path: root/sound/core/oss/pcm_oss.c
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2014-02-04 12:22:11 -0500
committerTakashi Iwai <tiwai@suse.de>2014-02-14 02:14:17 -0500
commit61efcee8608c38c1f3147aee9c60248b6e2b141f (patch)
tree76185a139d21dc15d0692e12be8e2182d674f748 /sound/core/oss/pcm_oss.c
parent2ebef69fc5a69ff8ef04922020d8ceeb4f6c8fbb (diff)
ALSA: oss: Use standard printk helpers
Use dev_err() & co as much as possible. If not available (no device assigned at the calling point), use pr_xxx() helpers instead. Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/core/oss/pcm_oss.c')
-rw-r--r--sound/core/oss/pcm_oss.c99
1 files changed, 48 insertions, 51 deletions
diff --git a/sound/core/oss/pcm_oss.c b/sound/core/oss/pcm_oss.c
index c89349372385..ada69d7a8d70 100644
--- a/sound/core/oss/pcm_oss.c
+++ b/sound/core/oss/pcm_oss.c
@@ -854,7 +854,7 @@ static int snd_pcm_oss_change_params(struct snd_pcm_substream *substream)
854 params = kmalloc(sizeof(*params), GFP_KERNEL); 854 params = kmalloc(sizeof(*params), GFP_KERNEL);
855 sparams = kmalloc(sizeof(*sparams), GFP_KERNEL); 855 sparams = kmalloc(sizeof(*sparams), GFP_KERNEL);
856 if (!sw_params || !params || !sparams) { 856 if (!sw_params || !params || !sparams) {
857 snd_printd("No memory\n"); 857 pcm_dbg(substream->pcm, "No memory\n");
858 err = -ENOMEM; 858 err = -ENOMEM;
859 goto failure; 859 goto failure;
860 } 860 }
@@ -877,7 +877,7 @@ static int snd_pcm_oss_change_params(struct snd_pcm_substream *substream)
877 } 877 }
878 err = snd_pcm_hw_param_mask(substream, sparams, SNDRV_PCM_HW_PARAM_ACCESS, &mask); 878 err = snd_pcm_hw_param_mask(substream, sparams, SNDRV_PCM_HW_PARAM_ACCESS, &mask);
879 if (err < 0) { 879 if (err < 0) {
880 snd_printd("No usable accesses\n"); 880 pcm_dbg(substream->pcm, "No usable accesses\n");
881 err = -EINVAL; 881 err = -EINVAL;
882 goto failure; 882 goto failure;
883 } 883 }
@@ -902,7 +902,7 @@ static int snd_pcm_oss_change_params(struct snd_pcm_substream *substream)
902 break; 902 break;
903 } 903 }
904 if ((__force int)sformat > (__force int)SNDRV_PCM_FORMAT_LAST) { 904 if ((__force int)sformat > (__force int)SNDRV_PCM_FORMAT_LAST) {
905 snd_printd("Cannot find a format!!!\n"); 905 pcm_dbg(substream->pcm, "Cannot find a format!!!\n");
906 err = -EINVAL; 906 err = -EINVAL;
907 goto failure; 907 goto failure;
908 } 908 }
@@ -942,14 +942,16 @@ static int snd_pcm_oss_change_params(struct snd_pcm_substream *substream)
942 if ((err = snd_pcm_plug_format_plugins(substream, 942 if ((err = snd_pcm_plug_format_plugins(substream,
943 params, 943 params,
944 sparams)) < 0) { 944 sparams)) < 0) {
945 snd_printd("snd_pcm_plug_format_plugins failed: %i\n", err); 945 pcm_dbg(substream->pcm,
946 "snd_pcm_plug_format_plugins failed: %i\n", err);
946 snd_pcm_oss_plugin_clear(substream); 947 snd_pcm_oss_plugin_clear(substream);
947 goto failure; 948 goto failure;
948 } 949 }
949 if (runtime->oss.plugin_first) { 950 if (runtime->oss.plugin_first) {
950 struct snd_pcm_plugin *plugin; 951 struct snd_pcm_plugin *plugin;
951 if ((err = snd_pcm_plugin_build_io(substream, sparams, &plugin)) < 0) { 952 if ((err = snd_pcm_plugin_build_io(substream, sparams, &plugin)) < 0) {
952 snd_printd("snd_pcm_plugin_build_io failed: %i\n", err); 953 pcm_dbg(substream->pcm,
954 "snd_pcm_plugin_build_io failed: %i\n", err);
953 snd_pcm_oss_plugin_clear(substream); 955 snd_pcm_oss_plugin_clear(substream);
954 goto failure; 956 goto failure;
955 } 957 }
@@ -983,7 +985,7 @@ static int snd_pcm_oss_change_params(struct snd_pcm_substream *substream)
983 snd_pcm_kernel_ioctl(substream, SNDRV_PCM_IOCTL_DROP, NULL); 985 snd_pcm_kernel_ioctl(substream, SNDRV_PCM_IOCTL_DROP, NULL);
984 986
985 if ((err = snd_pcm_kernel_ioctl(substream, SNDRV_PCM_IOCTL_HW_PARAMS, sparams)) < 0) { 987 if ((err = snd_pcm_kernel_ioctl(substream, SNDRV_PCM_IOCTL_HW_PARAMS, sparams)) < 0) {
986 snd_printd("HW_PARAMS failed: %i\n", err); 988 pcm_dbg(substream->pcm, "HW_PARAMS failed: %i\n", err);
987 goto failure; 989 goto failure;
988 } 990 }
989 991
@@ -1016,7 +1018,7 @@ static int snd_pcm_oss_change_params(struct snd_pcm_substream *substream)
1016 } 1018 }
1017 1019
1018 if ((err = snd_pcm_kernel_ioctl(substream, SNDRV_PCM_IOCTL_SW_PARAMS, sw_params)) < 0) { 1020 if ((err = snd_pcm_kernel_ioctl(substream, SNDRV_PCM_IOCTL_SW_PARAMS, sw_params)) < 0) {
1019 snd_printd("SW_PARAMS failed: %i\n", err); 1021 pcm_dbg(substream->pcm, "SW_PARAMS failed: %i\n", err);
1020 goto failure; 1022 goto failure;
1021 } 1023 }
1022 1024
@@ -1110,7 +1112,8 @@ static int snd_pcm_oss_prepare(struct snd_pcm_substream *substream)
1110 1112
1111 err = snd_pcm_kernel_ioctl(substream, SNDRV_PCM_IOCTL_PREPARE, NULL); 1113 err = snd_pcm_kernel_ioctl(substream, SNDRV_PCM_IOCTL_PREPARE, NULL);
1112 if (err < 0) { 1114 if (err < 0) {
1113 snd_printd("snd_pcm_oss_prepare: SNDRV_PCM_IOCTL_PREPARE failed\n"); 1115 pcm_dbg(substream->pcm,
1116 "snd_pcm_oss_prepare: SNDRV_PCM_IOCTL_PREPARE failed\n");
1114 return err; 1117 return err;
1115 } 1118 }
1116 runtime->oss.prepare = 0; 1119 runtime->oss.prepare = 0;
@@ -1175,12 +1178,10 @@ snd_pcm_sframes_t snd_pcm_oss_write3(struct snd_pcm_substream *substream, const
1175 if (runtime->status->state == SNDRV_PCM_STATE_XRUN || 1178 if (runtime->status->state == SNDRV_PCM_STATE_XRUN ||
1176 runtime->status->state == SNDRV_PCM_STATE_SUSPENDED) { 1179 runtime->status->state == SNDRV_PCM_STATE_SUSPENDED) {
1177#ifdef OSS_DEBUG 1180#ifdef OSS_DEBUG
1178 if (runtime->status->state == SNDRV_PCM_STATE_XRUN) 1181 pcm_dbg(substream->pcm,
1179 printk(KERN_DEBUG "pcm_oss: write: " 1182 "pcm_oss: write: recovering from %s\n",
1180 "recovering from XRUN\n"); 1183 runtime->status->state == SNDRV_PCM_STATE_XRUN ?
1181 else 1184 "XRUN" : "SUSPEND");
1182 printk(KERN_DEBUG "pcm_oss: write: "
1183 "recovering from SUSPEND\n");
1184#endif 1185#endif
1185 ret = snd_pcm_oss_prepare(substream); 1186 ret = snd_pcm_oss_prepare(substream);
1186 if (ret < 0) 1187 if (ret < 0)
@@ -1213,12 +1214,10 @@ snd_pcm_sframes_t snd_pcm_oss_read3(struct snd_pcm_substream *substream, char *p
1213 if (runtime->status->state == SNDRV_PCM_STATE_XRUN || 1214 if (runtime->status->state == SNDRV_PCM_STATE_XRUN ||
1214 runtime->status->state == SNDRV_PCM_STATE_SUSPENDED) { 1215 runtime->status->state == SNDRV_PCM_STATE_SUSPENDED) {
1215#ifdef OSS_DEBUG 1216#ifdef OSS_DEBUG
1216 if (runtime->status->state == SNDRV_PCM_STATE_XRUN) 1217 pcm_dbg(substream->pcm,
1217 printk(KERN_DEBUG "pcm_oss: read: " 1218 "pcm_oss: read: recovering from %s\n",
1218 "recovering from XRUN\n"); 1219 runtime->status->state == SNDRV_PCM_STATE_XRUN ?
1219 else 1220 "XRUN" : "SUSPEND");
1220 printk(KERN_DEBUG "pcm_oss: read: "
1221 "recovering from SUSPEND\n");
1222#endif 1221#endif
1223 ret = snd_pcm_kernel_ioctl(substream, SNDRV_PCM_IOCTL_DRAIN, NULL); 1222 ret = snd_pcm_kernel_ioctl(substream, SNDRV_PCM_IOCTL_DRAIN, NULL);
1224 if (ret < 0) 1223 if (ret < 0)
@@ -1261,12 +1260,10 @@ snd_pcm_sframes_t snd_pcm_oss_writev3(struct snd_pcm_substream *substream, void
1261 if (runtime->status->state == SNDRV_PCM_STATE_XRUN || 1260 if (runtime->status->state == SNDRV_PCM_STATE_XRUN ||
1262 runtime->status->state == SNDRV_PCM_STATE_SUSPENDED) { 1261 runtime->status->state == SNDRV_PCM_STATE_SUSPENDED) {
1263#ifdef OSS_DEBUG 1262#ifdef OSS_DEBUG
1264 if (runtime->status->state == SNDRV_PCM_STATE_XRUN) 1263 pcm_dbg(substream->pcm,
1265 printk(KERN_DEBUG "pcm_oss: writev: " 1264 "pcm_oss: writev: recovering from %s\n",
1266 "recovering from XRUN\n"); 1265 runtime->status->state == SNDRV_PCM_STATE_XRUN ?
1267 else 1266 "XRUN" : "SUSPEND");
1268 printk(KERN_DEBUG "pcm_oss: writev: "
1269 "recovering from SUSPEND\n");
1270#endif 1267#endif
1271 ret = snd_pcm_oss_prepare(substream); 1268 ret = snd_pcm_oss_prepare(substream);
1272 if (ret < 0) 1269 if (ret < 0)
@@ -1299,12 +1296,10 @@ snd_pcm_sframes_t snd_pcm_oss_readv3(struct snd_pcm_substream *substream, void *
1299 if (runtime->status->state == SNDRV_PCM_STATE_XRUN || 1296 if (runtime->status->state == SNDRV_PCM_STATE_XRUN ||
1300 runtime->status->state == SNDRV_PCM_STATE_SUSPENDED) { 1297 runtime->status->state == SNDRV_PCM_STATE_SUSPENDED) {
1301#ifdef OSS_DEBUG 1298#ifdef OSS_DEBUG
1302 if (runtime->status->state == SNDRV_PCM_STATE_XRUN) 1299 pcm_dbg(substream->pcm,
1303 printk(KERN_DEBUG "pcm_oss: readv: " 1300 "pcm_oss: readv: recovering from %s\n",
1304 "recovering from XRUN\n"); 1301 runtime->status->state == SNDRV_PCM_STATE_XRUN ?
1305 else 1302 "XRUN" : "SUSPEND");
1306 printk(KERN_DEBUG "pcm_oss: readv: "
1307 "recovering from SUSPEND\n");
1308#endif 1303#endif
1309 ret = snd_pcm_kernel_ioctl(substream, SNDRV_PCM_IOCTL_DRAIN, NULL); 1304 ret = snd_pcm_kernel_ioctl(substream, SNDRV_PCM_IOCTL_DRAIN, NULL);
1310 if (ret < 0) 1305 if (ret < 0)
@@ -1561,7 +1556,7 @@ static int snd_pcm_oss_sync1(struct snd_pcm_substream *substream, size_t size)
1561 init_waitqueue_entry(&wait, current); 1556 init_waitqueue_entry(&wait, current);
1562 add_wait_queue(&runtime->sleep, &wait); 1557 add_wait_queue(&runtime->sleep, &wait);
1563#ifdef OSS_DEBUG 1558#ifdef OSS_DEBUG
1564 printk(KERN_DEBUG "sync1: size = %li\n", size); 1559 pcm_dbg(substream->pcm, "sync1: size = %li\n", size);
1565#endif 1560#endif
1566 while (1) { 1561 while (1) {
1567 result = snd_pcm_oss_write2(substream, runtime->oss.buffer, size, 1); 1562 result = snd_pcm_oss_write2(substream, runtime->oss.buffer, size, 1);
@@ -1587,7 +1582,8 @@ static int snd_pcm_oss_sync1(struct snd_pcm_substream *substream, size_t size)
1587 break; 1582 break;
1588 } 1583 }
1589 if (res == 0) { 1584 if (res == 0) {
1590 snd_printk(KERN_ERR "OSS sync error - DMA timeout\n"); 1585 pcm_err(substream->pcm,
1586 "OSS sync error - DMA timeout\n");
1591 result = -EIO; 1587 result = -EIO;
1592 break; 1588 break;
1593 } 1589 }
@@ -1618,7 +1614,7 @@ static int snd_pcm_oss_sync(struct snd_pcm_oss_file *pcm_oss_file)
1618 mutex_lock(&runtime->oss.params_lock); 1614 mutex_lock(&runtime->oss.params_lock);
1619 if (runtime->oss.buffer_used > 0) { 1615 if (runtime->oss.buffer_used > 0) {
1620#ifdef OSS_DEBUG 1616#ifdef OSS_DEBUG
1621 printk(KERN_DEBUG "sync: buffer_used\n"); 1617 pcm_dbg(substream->pcm, "sync: buffer_used\n");
1622#endif 1618#endif
1623 size = (8 * (runtime->oss.period_bytes - runtime->oss.buffer_used) + 7) / width; 1619 size = (8 * (runtime->oss.period_bytes - runtime->oss.buffer_used) + 7) / width;
1624 snd_pcm_format_set_silence(format, 1620 snd_pcm_format_set_silence(format,
@@ -1631,7 +1627,7 @@ static int snd_pcm_oss_sync(struct snd_pcm_oss_file *pcm_oss_file)
1631 } 1627 }
1632 } else if (runtime->oss.period_ptr > 0) { 1628 } else if (runtime->oss.period_ptr > 0) {
1633#ifdef OSS_DEBUG 1629#ifdef OSS_DEBUG
1634 printk(KERN_DEBUG "sync: period_ptr\n"); 1630 pcm_dbg(substream->pcm, "sync: period_ptr\n");
1635#endif 1631#endif
1636 size = runtime->oss.period_bytes - runtime->oss.period_ptr; 1632 size = runtime->oss.period_bytes - runtime->oss.period_ptr;
1637 snd_pcm_format_set_silence(format, 1633 snd_pcm_format_set_silence(format,
@@ -1983,7 +1979,7 @@ static int snd_pcm_oss_set_trigger(struct snd_pcm_oss_file *pcm_oss_file, int tr
1983 int err, cmd; 1979 int err, cmd;
1984 1980
1985#ifdef OSS_DEBUG 1981#ifdef OSS_DEBUG
1986 printk(KERN_DEBUG "pcm_oss: trigger = 0x%x\n", trigger); 1982 pcm_dbg(substream->pcm, "pcm_oss: trigger = 0x%x\n", trigger);
1987#endif 1983#endif
1988 1984
1989 psubstream = pcm_oss_file->streams[SNDRV_PCM_STREAM_PLAYBACK]; 1985 psubstream = pcm_oss_file->streams[SNDRV_PCM_STREAM_PLAYBACK];
@@ -2203,9 +2199,9 @@ static int snd_pcm_oss_get_space(struct snd_pcm_oss_file *pcm_oss_file, int stre
2203 } 2199 }
2204 2200
2205#ifdef OSS_DEBUG 2201#ifdef OSS_DEBUG
2206 printk(KERN_DEBUG "pcm_oss: space: bytes = %i, fragments = %i, " 2202 pcm_dbg(substream->pcm,
2207 "fragstotal = %i, fragsize = %i\n", 2203 "pcm_oss: space: bytes = %i, fragments = %i, fragstotal = %i, fragsize = %i\n",
2208 info.bytes, info.fragments, info.fragstotal, info.fragsize); 2204 info.bytes, info.fragments, info.fragstotal, info.fragsize);
2209#endif 2205#endif
2210 if (copy_to_user(_info, &info, sizeof(info))) 2206 if (copy_to_user(_info, &info, sizeof(info)))
2211 return -EFAULT; 2207 return -EFAULT;
@@ -2215,7 +2211,7 @@ static int snd_pcm_oss_get_space(struct snd_pcm_oss_file *pcm_oss_file, int stre
2215static int snd_pcm_oss_get_mapbuf(struct snd_pcm_oss_file *pcm_oss_file, int stream, struct buffmem_desc __user * _info) 2211static int snd_pcm_oss_get_mapbuf(struct snd_pcm_oss_file *pcm_oss_file, int stream, struct buffmem_desc __user * _info)
2216{ 2212{
2217 // it won't be probably implemented 2213 // it won't be probably implemented
2218 // snd_printd("TODO: snd_pcm_oss_get_mapbuf\n"); 2214 // pr_debug("TODO: snd_pcm_oss_get_mapbuf\n");
2219 return -EINVAL; 2215 return -EINVAL;
2220} 2216}
2221 2217
@@ -2519,7 +2515,7 @@ static long snd_pcm_oss_ioctl(struct file *file, unsigned int cmd, unsigned long
2519 if (((cmd >> 8) & 0xff) != 'P') 2515 if (((cmd >> 8) & 0xff) != 'P')
2520 return -EINVAL; 2516 return -EINVAL;
2521#ifdef OSS_DEBUG 2517#ifdef OSS_DEBUG
2522 printk(KERN_DEBUG "pcm_oss: ioctl = 0x%x\n", cmd); 2518 pr_debug("pcm_oss: ioctl = 0x%x\n", cmd);
2523#endif 2519#endif
2524 switch (cmd) { 2520 switch (cmd) {
2525 case SNDCTL_DSP_RESET: 2521 case SNDCTL_DSP_RESET:
@@ -2646,7 +2642,7 @@ static long snd_pcm_oss_ioctl(struct file *file, unsigned int cmd, unsigned long
2646 case SNDCTL_DSP_PROFILE: 2642 case SNDCTL_DSP_PROFILE:
2647 return 0; /* silently ignore */ 2643 return 0; /* silently ignore */
2648 default: 2644 default:
2649 snd_printd("pcm_oss: unknown command = 0x%x\n", cmd); 2645 pr_debug("pcm_oss: unknown command = 0x%x\n", cmd);
2650 } 2646 }
2651 return -EINVAL; 2647 return -EINVAL;
2652} 2648}
@@ -2673,8 +2669,9 @@ static ssize_t snd_pcm_oss_read(struct file *file, char __user *buf, size_t coun
2673#else 2669#else
2674 { 2670 {
2675 ssize_t res = snd_pcm_oss_read1(substream, buf, count); 2671 ssize_t res = snd_pcm_oss_read1(substream, buf, count);
2676 printk(KERN_DEBUG "pcm_oss: read %li bytes " 2672 pcm_dbg(substream->pcm,
2677 "(returned %li bytes)\n", (long)count, (long)res); 2673 "pcm_oss: read %li bytes (returned %li bytes)\n",
2674 (long)count, (long)res);
2678 return res; 2675 return res;
2679 } 2676 }
2680#endif 2677#endif
@@ -2693,7 +2690,7 @@ static ssize_t snd_pcm_oss_write(struct file *file, const char __user *buf, size
2693 substream->f_flags = file->f_flags & O_NONBLOCK; 2690 substream->f_flags = file->f_flags & O_NONBLOCK;
2694 result = snd_pcm_oss_write1(substream, buf, count); 2691 result = snd_pcm_oss_write1(substream, buf, count);
2695#ifdef OSS_DEBUG 2692#ifdef OSS_DEBUG
2696 printk(KERN_DEBUG "pcm_oss: write %li bytes (wrote %li bytes)\n", 2693 pcm_dbg(substream->pcm, "pcm_oss: write %li bytes (wrote %li bytes)\n",
2697 (long)count, (long)result); 2694 (long)count, (long)result);
2698#endif 2695#endif
2699 return result; 2696 return result;
@@ -2772,7 +2769,7 @@ static int snd_pcm_oss_mmap(struct file *file, struct vm_area_struct *area)
2772 int err; 2769 int err;
2773 2770
2774#ifdef OSS_DEBUG 2771#ifdef OSS_DEBUG
2775 printk(KERN_DEBUG "pcm_oss: mmap begin\n"); 2772 pr_debug("pcm_oss: mmap begin\n");
2776#endif 2773#endif
2777 pcm_oss_file = file->private_data; 2774 pcm_oss_file = file->private_data;
2778 switch ((area->vm_flags & (VM_READ | VM_WRITE))) { 2775 switch ((area->vm_flags & (VM_READ | VM_WRITE))) {
@@ -2822,7 +2819,7 @@ static int snd_pcm_oss_mmap(struct file *file, struct vm_area_struct *area)
2822 runtime->silence_threshold = 0; 2819 runtime->silence_threshold = 0;
2823 runtime->silence_size = 0; 2820 runtime->silence_size = 0;
2824#ifdef OSS_DEBUG 2821#ifdef OSS_DEBUG
2825 printk(KERN_DEBUG "pcm_oss: mmap ok, bytes = 0x%x\n", 2822 pr_debug("pcm_oss: mmap ok, bytes = 0x%x\n",
2826 runtime->oss.mmap_bytes); 2823 runtime->oss.mmap_bytes);
2827#endif 2824#endif
2828 /* In mmap mode we never stop */ 2825 /* In mmap mode we never stop */
@@ -3010,7 +3007,7 @@ static void register_oss_dsp(struct snd_pcm *pcm, int index)
3010 if (snd_register_oss_device(SNDRV_OSS_DEVICE_TYPE_PCM, 3007 if (snd_register_oss_device(SNDRV_OSS_DEVICE_TYPE_PCM,
3011 pcm->card, index, &snd_pcm_oss_f_reg, 3008 pcm->card, index, &snd_pcm_oss_f_reg,
3012 pcm) < 0) { 3009 pcm) < 0) {
3013 snd_printk(KERN_ERR "unable to register OSS PCM device %i:%i\n", 3010 pcm_err(pcm, "unable to register OSS PCM device %i:%i\n",
3014 pcm->card->number, pcm->device); 3011 pcm->card->number, pcm->device);
3015 } 3012 }
3016} 3013}
@@ -3091,12 +3088,12 @@ static int __init alsa_pcm_oss_init(void)
3091 /* check device map table */ 3088 /* check device map table */
3092 for (i = 0; i < SNDRV_CARDS; i++) { 3089 for (i = 0; i < SNDRV_CARDS; i++) {
3093 if (dsp_map[i] < 0 || dsp_map[i] >= SNDRV_PCM_DEVICES) { 3090 if (dsp_map[i] < 0 || dsp_map[i] >= SNDRV_PCM_DEVICES) {
3094 snd_printk(KERN_ERR "invalid dsp_map[%d] = %d\n", 3091 pr_err("ALSA: pcm_oss: invalid dsp_map[%d] = %d\n",
3095 i, dsp_map[i]); 3092 i, dsp_map[i]);
3096 dsp_map[i] = 0; 3093 dsp_map[i] = 0;
3097 } 3094 }
3098 if (adsp_map[i] < 0 || adsp_map[i] >= SNDRV_PCM_DEVICES) { 3095 if (adsp_map[i] < 0 || adsp_map[i] >= SNDRV_PCM_DEVICES) {
3099 snd_printk(KERN_ERR "invalid adsp_map[%d] = %d\n", 3096 pr_err("ALSA: pcm_oss: invalid adsp_map[%d] = %d\n",
3100 i, adsp_map[i]); 3097 i, adsp_map[i]);
3101 adsp_map[i] = 1; 3098 adsp_map[i] = 1;
3102 } 3099 }