summaryrefslogtreecommitdiff
path: root/apps/playback.c
diff options
context:
space:
mode:
authorMichael Sevakis <jethead71@rockbox.org>2014-08-30 11:28:50 -0400
committerMichael Sevakis <jethead71@rockbox.org>2014-08-30 14:01:21 -0400
commit5b08f1a5b99136ef052b6f430b62bc618cd44946 (patch)
tree257d405d78e871e6b944db987ffaf5c40f862fce /apps/playback.c
parent5d31d3c3bc0358eeed08e2a5242dc2b065110aad (diff)
downloadrockbox-5b08f1a5b99136ef052b6f430b62bc618cd44946.tar.gz
rockbox-5b08f1a5b99136ef052b6f430b62bc618cd44946.zip
Remove I/O priority. It is harmful when used with the new file code.
HAVE_IO_PRIORITY was defined for native targets with dircache. It is already effectively disabled for the most part since dircache no longer lowers its thread's I/O priority. It existed primarily for the aforementioned configuration. Change-Id: Ia04935305397ba14df34647c8ea29c2acaea92aa
Diffstat (limited to 'apps/playback.c')
-rw-r--r--apps/playback.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/apps/playback.c b/apps/playback.c
index efc23306a0..5c2fc7f8ce 100644
--- a/apps/playback.c
+++ b/apps/playback.c
@@ -1560,9 +1560,6 @@ static bool audio_load_cuesheet(struct track_info *info,
1560 int hid = ERR_UNSUPPORTED_TYPE; 1560 int hid = ERR_UNSUPPORTED_TYPE;
1561 struct cuesheet_file cue_file; 1561 struct cuesheet_file cue_file;
1562 1562
1563#ifdef HAVE_IO_PRIORITY
1564 buf_back_off_storage(true);
1565#endif
1566 if (look_for_cuesheet_file(track_id3, &cue_file)) 1563 if (look_for_cuesheet_file(track_id3, &cue_file))
1567 { 1564 {
1568 hid = bufalloc(NULL, sizeof (struct cuesheet), TYPE_CUESHEET); 1565 hid = bufalloc(NULL, sizeof (struct cuesheet), TYPE_CUESHEET);
@@ -1586,9 +1583,6 @@ static bool audio_load_cuesheet(struct track_info *info,
1586 } 1583 }
1587 } 1584 }
1588 1585
1589#ifdef HAVE_IO_PRIORITY
1590 buf_back_off_storage(false);
1591#endif
1592 if (hid == ERR_BUFFER_FULL) 1586 if (hid == ERR_BUFFER_FULL)
1593 { 1587 {
1594 logf("buffer is full for now (%s)", __func__); 1588 logf("buffer is full for now (%s)", __func__);
@@ -1627,10 +1621,6 @@ static bool audio_load_albumart(struct track_info *info,
1627 memset(&user_data, 0, sizeof(user_data)); 1621 memset(&user_data, 0, sizeof(user_data));
1628 user_data.dim = &albumart_slots[i].dim; 1622 user_data.dim = &albumart_slots[i].dim;
1629 1623
1630#ifdef HAVE_IO_PRIORITY
1631 buf_back_off_storage(true);
1632#endif
1633
1634 /* We can only decode jpeg for embedded AA */ 1624 /* We can only decode jpeg for embedded AA */
1635 if (track_id3->has_embedded_albumart && track_id3->albumart.type == AA_TYPE_JPG) 1625 if (track_id3->has_embedded_albumart && track_id3->albumart.type == AA_TYPE_JPG)
1636 { 1626 {
@@ -1651,9 +1641,6 @@ static bool audio_load_albumart(struct track_info *info,
1651 } 1641 }
1652 } 1642 }
1653 1643
1654#ifdef HAVE_IO_PRIORITY
1655 buf_back_off_storage(false);
1656#endif
1657 if (hid == ERR_BUFFER_FULL) 1644 if (hid == ERR_BUFFER_FULL)
1658 { 1645 {
1659 logf("buffer is full for now (%s)", __func__); 1646 logf("buffer is full for now (%s)", __func__);