Rockbox open source high quality audio player as a Music Player Daemon
mpris rockbox mpd libadwaita audio rust zig deno
2
fork

Configure Feed

Select the types of activity you want to include in your feed.

Oops, that didn't belong in there.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29003 a1c6a512-1295-4272-9138-f99709370657

+7 -165
+6 -12
apps/lang/english.lang
··· 10516 10516 user: core 10517 10517 <source> 10518 10518 *: none 10519 - ipodvideo: "Bass Cutoff" 10520 - ipod6g: "Bass Cutoff" 10519 + ipodvideo,ipod6g: "Bass Cutoff" 10521 10520 </source> 10522 10521 <dest> 10523 10522 *: none 10524 - ipodvideo: "Bass Cutoff" 10525 - ipod6g: "Bass Cutoff" 10523 + ipodvideo,ipod6g: "Bass Cutoff" 10526 10524 </dest> 10527 10525 <voice> 10528 10526 *: none 10529 - ipodvideo: "Bass Cutoff" 10530 - ipod6g: "Bass Cutoff" 10527 + ipodvideo,ipod6g: "Bass Cutoff" 10531 10528 </voice> 10532 10529 </phrase> 10533 10530 <phrase> ··· 10536 10533 user: core 10537 10534 <source> 10538 10535 *: none 10539 - ipodvideo: "Treble Cutoff" 10540 - ipod6g: "Treble Cutoff" 10536 + ipodvideo,ipod6g: "Treble Cutoff" 10541 10537 </source> 10542 10538 <dest> 10543 10539 *: none 10544 - ipodvideo: "Treble Cutoff" 10545 - ipod6g: "Treble Cutoff" 10540 + ipodvideo,ipod6g: "Treble Cutoff" 10546 10541 </dest> 10547 10542 <voice> 10548 10543 *: none 10549 - ipodvideo: "Treble Cutoff" 10550 - ipod6g: "Treble Cutoff" 10544 + ipodvideo,ipod6g: "Treble Cutoff" 10551 10545 </voice> 10552 10546 </phrase> 10553 10547 <phrase>
-152
firmware/drivers/ata.c
··· 36 36 #include "ata-defines.h" 37 37 #include "storage.h" 38 38 39 - #define ATA_HAVE_BBT 40 - #define ATA_BBT_PAGES 2304 41 - 42 39 #define SECTOR_SIZE 512 43 40 44 41 #define SELECT_DEVICE1 0x10 ··· 80 77 81 78 #ifdef ATA_DRIVER_CLOSE 82 79 static unsigned int ata_thread_id = 0; 83 - #endif 84 - 85 - #ifdef ATA_HAVE_BBT 86 - uint16_t ata_bbt[ATA_BBT_PAGES][0x20]; 87 - uint64_t virtual_sectors; 88 - uint32_t ata_last_offset; 89 - uint64_t ata_last_phys; 90 - int ata_rw_sectors_internal(unsigned long sector, int count, void* buffer, int write); 91 - int ata_rw_chunk(unsigned long sector, int count, void* buffer, int write); 92 - 93 - void ata_bbt_read_sectors(uint32_t sector, int count, void* buffer) 94 - { 95 - int rc = ata_rw_sectors_internal(sector * 8, count * 8, buffer, 0); 96 - if (rc < 0) 97 - panicf("ATA: Error %d while reading BBT (sector %u, count %d)", 98 - rc, (unsigned)sector, count); 99 - } 100 80 #endif 101 81 102 82 #if defined(MAX_PHYS_SECTOR_SIZE) && MEM == 64 ··· 355 335 void* inbuf, 356 336 int write) 357 337 { 358 - #ifdef ATA_HAVE_BBT 359 - char* orig = (char*)inbuf; 360 - int realcount = incount; 361 - incount = (incount + 7) / 8; 362 - unsigned long startoffs = start & 7; 363 - start /= 8; 364 - if (start + incount > (unsigned)(virtual_sectors / 8)) return -9; 365 - while (realcount) 366 - { 367 - uint32_t offset; 368 - uint32_t l0idx = start >> 15; 369 - uint32_t l0offs = start & 0x7fff; 370 - uint32_t cnt = MIN((unsigned)incount, 0x8000 - l0offs); 371 - uint32_t l0data = ata_bbt[0][l0idx << 1]; 372 - uint32_t base = ata_bbt[0][(l0idx << 1) | 1] << 12; 373 - if (l0data < 0x8000) offset = l0data + base; 374 - else 375 - { 376 - uint32_t l1idx = (start >> 10) & 0x1f; 377 - uint32_t l1offs = start & 0x3ff; 378 - cnt = MIN((unsigned)incount, 0x400 - l1offs); 379 - uint32_t l1data = ata_bbt[l0data & 0x7fff][l1idx]; 380 - if (l1data < 0x8000) offset = l1data + base; 381 - else 382 - { 383 - uint32_t l2idx = (start >> 5) & 0x1f; 384 - uint32_t l2offs = start & 0x1f; 385 - cnt = MIN((unsigned)incount, 0x20 - l2offs); 386 - uint32_t l2data = ata_bbt[l1data & 0x7fff][l2idx]; 387 - if (l2data < 0x8000) offset = l2data + base; 388 - else 389 - { 390 - uint32_t l3idx = start & 0x1f; 391 - uint32_t l3data = ata_bbt[l2data & 0x7fff][l3idx]; 392 - for (cnt = 1; cnt < (unsigned)incount && l3idx + cnt < 0x20; cnt++) 393 - if (ata_bbt[l2data & 0x7fff][l3idx + cnt] != l3data) 394 - break; 395 - offset = l3data + base; 396 - } 397 - } 398 - } 399 - uint64_t phys = start + offset; 400 - if (offset != ata_last_offset && phys - ata_last_phys < 64) ata_soft_reset(); 401 - ata_last_offset = offset; 402 - ata_last_phys = phys + cnt; 403 - cnt = MIN(cnt * 8, (unsigned)realcount); 404 - int rc = ata_rw_sectors_internal(phys * 8 + startoffs, cnt, inbuf, write); 405 - if (rc < 0) return rc; 406 - inbuf += cnt * SECTOR_SIZE; 407 - start += cnt / 8; 408 - incount -= cnt / 8; 409 - realcount -= cnt; 410 - } 411 - return 0; 412 - } 413 - 414 - int ata_rw_sectors_internal(unsigned long start, 415 - int incount, 416 - void* inbuf, 417 - int write) 418 - { 419 - if (start + incount > total_sectors) return -9; 420 - while (incount) 421 - { 422 - uint32_t cnt = MIN(lba48 ? 65536 : 256, incount); 423 - int rc = -1; 424 - int tries = 3; 425 - while (tries-- && rc < 0) 426 - { 427 - rc = ata_rw_chunk(start, cnt, inbuf, write); 428 - if (rc < 0) ata_soft_reset(); 429 - } 430 - if (rc < 0) 431 - { 432 - void* buf = inbuf; 433 - unsigned long sect; 434 - for (sect = start; sect < start + cnt; sect++) 435 - { 436 - rc = -1; 437 - tries = 3; 438 - while (tries-- && rc < 0) 439 - { 440 - rc = ata_rw_chunk(sect, 1, buf, write); 441 - if (rc < 0) ata_soft_reset(); 442 - } 443 - if (rc < 0) break; 444 - inbuf += SECTOR_SIZE; 445 - } 446 - } 447 - if (rc < 0) return rc; 448 - inbuf += SECTOR_SIZE * cnt; 449 - start += cnt; 450 - incount -= cnt; 451 - } 452 - return 0; 453 - } 454 - 455 - int ata_rw_chunk(unsigned long start, 456 - int incount, 457 - void* inbuf, 458 - int write) 459 - { 460 - #endif 461 338 int ret = 0; 462 339 long timeout; 463 340 int count; ··· 1512 1389 1513 1390 mutex_lock(&ata_mtx); /* Balance unlock below */ 1514 1391 1515 - #ifdef ATA_HAVE_BBT 1516 - memset(ata_bbt, 0, sizeof(ata_bbt)); 1517 - uint32_t* buf = (uint32_t*)(ata_bbt[ARRAYLEN(ata_bbt) - 64]); 1518 - ata_bbt_read_sectors(0, 1, buf); 1519 - if (!memcmp(buf, "emBIbbth", 8)) 1520 - { 1521 - virtual_sectors = ((((uint64_t)buf[0x1fd]) << 32) | buf[0x1fc]) * 8; 1522 - uint32_t count = buf[0x1ff]; 1523 - if (count > (ATA_BBT_PAGES >> 6)) 1524 - panicf("ATA: BBT too big! (%d pages, limit: %d)", 1525 - (unsigned)(count << 6), ATA_BBT_PAGES); 1526 - uint32_t i; 1527 - uint32_t cnt; 1528 - for (i = 0; i < count; i += cnt) 1529 - { 1530 - uint32_t phys = buf[0x200 + i]; 1531 - for (cnt = 1; cnt < count; cnt++) 1532 - if (buf[0x200 + i + cnt] != phys + cnt) 1533 - break; 1534 - ata_bbt_read_sectors(phys, cnt, ata_bbt[i << 6]); 1535 - } 1536 - } 1537 - else virtual_sectors = total_sectors; 1538 - #endif 1539 - 1540 1392 last_disk_activity = current_tick; 1541 1393 #ifdef ATA_DRIVER_CLOSE 1542 1394 ata_thread_id = ··· 1604 1456 #endif 1605 1457 int i; 1606 1458 info->sector_size = SECTOR_SIZE; 1607 - #ifdef ATA_HAVE_BBT 1608 - info->num_sectors = virtual_sectors; 1609 - #else 1610 1459 info->num_sectors = total_sectors; 1611 - #endif 1612 1460 1613 1461 src = (unsigned short*)&identify_info[27]; 1614 1462 dest = (unsigned short*)vendor;
+1 -1
firmware/drivers/audio/cs42l55.c
··· 159 159 PWRCTL2_PDN_LINA_ALWAYS | PWRCTL2_PDN_LINB_ALWAYS); 160 160 } 161 161 162 - static void handle_dsp_power() 162 + static void handle_dsp_power(void) 163 163 { 164 164 if (bass || treble) 165 165 {