- Timestamp:
- Jan 26, 2021, 4:54:11 AM (5 years ago)
- Location:
- GPL/branches/uniaud32-next
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
GPL/branches/uniaud32-next/alsa-kernel/core/pcm_lib.c
r629 r661 1404 1404 EXPORT_SYMBOL(snd_pcm_hw_constraint_ratdens); 1405 1405 1406 #ifdef TARGET_OS2 1407 static inline min_not_zero(unsigned int x, unsigned int y) { 1408 unsigned int __x = (x); 1409 unsigned int __y = (y); 1410 __x == 0 ? __y : ((__y == 0) ? __x : min(__x, __y)); 1411 } 1412 #endif 1413 1406 1414 static int snd_pcm_hw_rule_msbits(struct snd_pcm_hw_params *params, 1407 1415 struct snd_pcm_hw_rule *rule) … … 1418 1426 if ((snd_interval_value(i) == width) || 1419 1427 (width == 0 && snd_interval_value(i) > msbits)) 1420 #ifdef TARGET_OS2 //fixme min_not_zero uses typeof()1421 params->msbits = msbits;1422 #else1423 1428 params->msbits = min_not_zero(params->msbits, msbits); 1424 #endif1425 1429 1426 1430 return 0; -
GPL/branches/uniaud32-next/lib32/seq_file.c
r615 r661 128 128 if (error < 0) 129 129 break; 130 #if 0 //fixme 131 if (unlikely(error)) { 130 if (error) { 132 131 error = 0; 133 132 m->count = 0; 134 133 } 135 #endif136 134 if (seq_has_overflowed(m)) 137 135 goto Eoverflow; … … 196 194 m->version = file->f_version; 197 195 198 #if 0 //fixme199 196 /* Don't assume *ppos is where we left it */ 200 if ( unlikely(*ppos != m->read_pos)) {197 if (*ppos != m->read_pos) { 201 198 while ((err = traverse(m, *ppos)) == -EAGAIN) 202 199 ; … … 212 209 } 213 210 } 214 #endif 211 215 212 /* grab buffer if we didn't have one */ 216 213 if (!m->buf) { … … 247 244 if (err < 0) 248 245 break; 249 #if 0 //fixme 250 if (unlikely(err)) 246 if (err) 251 247 m->count = 0; 252 if ( unlikely(!m->count)) {248 if (!m->count) { 253 249 p = m->op->next(m, p, &pos); 254 250 m->index = pos; 255 251 continue; 256 252 } 257 #endif258 253 if (m->count < m->size) 259 254 goto Fill; … … 284 279 if (seq_has_overflowed(m) || err) { 285 280 m->count = offs; 286 #if 0 //fixme 287 if (likely(err <= 0)) 281 if (err <= 0) 288 282 break; 289 #endif290 283 } 291 284 pos = next;
Note:
See TracChangeset
for help on using the changeset viewer.