repo.or.cz
/
Rockbox.git
/
search
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
first
·
prev
·
next
Turn bufclose into a queue event sender to ensure a handle can't be closed while...
2007-10-25
Nicolas Pennequin
T
u
rn b
u
fclose
i
nto
a
queue e
v
ent sender to ensure
a
.
.
.
commit
|
commitdiff
|
tree
2007-10-25
Nicolas
P
ennequin
P
r
ote
c
t t
h
e
linked
list w
i
th a mute
x
commit
|
commitdiff
|
tree
2007-10-25
Nicolas
P
ennequin
S
o
m
e c
l
eanup/simplifica
t
ion
and an added
comment
commit
|
commitdiff
|
tree
2007-10-25
Nicolas Pennequin
Move th
e
call to ata_s
l
ee
p
() in
f
ill_buff
e
r(
)
commit
|
commitdiff
|
tree
2007-10-25
N
ic
o
l
as P
e
n
n
equin
No
b
ufclo
s
ing of handles a
f
ter t
r
ack change
commit
|
commitdiff
|
tree
2007-10-25
Nicolas
P
ennequin
Add a
b
i
t more debu
g
info
commit
|
commitdiff
|
tree
2007-10-25
N
icolas
P
en
n
equi
n
Rei
n
troduce codec_adv
a
nce_buffer_counters()
commit
|
commitdiff
|
tree
2007-10-25
Nicolas
P
enne
q
uin
Don
'
t
attempt to buffer tracks if there are
n
o more
.
.
.
commit
|
commitdiff
|
tree
2007-10-25
Ni
c
ol
a
s Pennequin
Hide the buffer
i
ng threa
d
a
n
d queue ins
i
de b
u
ffering
.
c
commit
|
commitdiff
|
tree
2007-10-25
Nicola
s
Pennequi
n
R
e
ver
t
"Repl
a
ce yield_c
o
d
ec() wit
h
a c
a
ll to queue_w
a
it_w_tm
.
.
.
commit
|
commitdiff
|
tree
2007-10-25
Nico
l
as Pennequin
Same as
t
he previo
u
s commit but w
i
t
h
a different callback
commit
|
commitdiff
|
tree
2007-10-25
Nicolas
P
en
n
equin
Check
that meta
d
ata i
s
p
r
esent be
f
ore cal
l
i
n
g
b
a
c
k
.
.
.
commit
|
commitdiff
|
tree
2007-10-25
Nicolas Pennequin
10 ticks i
s
way too
l
ong
commit
|
commitdiff
|
tree
2007-10-25
N
i
colas Pennequin
fi
l
eb
u
f_is_lowdata isn't
n
eede
d
a
nymore
commit
|
commitdiff
|
tree
2007-10-25
N
icolas Pennequin
Re
p
lac
e
yiel
d
_codec() wi
t
h a call to
q
u
e
u
e_
w
ait
_
w
_
t
m
o()
commit
|
commitdiff
|
tree
2007-10-25
Nic
o
las Pennequin
R
e
buffer
a
fter pl
a
ylist c
h
anges
commit
|
commitdiff
|
tree
2007-10-25
N
icolas P
e
nn
e
q
uin
Ena
b
le and correc
t
audio_inva
l
ida
t
e_tracks to make
.
.
.
commit
|
commitdiff
|
tree
2007-10-25
Nico
l
as P
e
n
n
e
q
ui
n
Line l
e
ngt
h
s
commit
|
commitdiff
|
tree
2007-10-25
N
i
colas Pennequin
Only attemp
t
t
o fill the bu
f
fe
r
if it
n
ee
d
s to be filled
commit
|
commitdiff
|
tree
2007-10-25
N
i
colas Pennequin
F
r
ee
t
he buffer more often when th
e
re is less data
.
.
.
commit
|
commitdiff
|
tree
2007-10-25
Nicolas Pennequi
n
I
m
pr
o
v
e
d buffer use by filling when the disk is active
.
.
.
commit
|
commitdiff
|
tree
2007-10-25
N
i
colas
P
e
nnequin
Th
e
number of tr
a
cks for
w
hich we have handles
is one
.
.
.
commit
|
commitdiff
|
tree
2007-10-25
Nicolas Pennequin
Add buffered_data
(
) f
o
r lat
e
r us
e
commit
|
commitdiff
|
tree
2007-10-25
Nicolas Pennequin
Debug scr
e
en f
o
r the buffering
t
hread
commit
|
commitdiff
|
tree
2007-10-25
Ni
c
olas P
e
n
n
equi
n
Make dir
skip
p
i
n
g w
o
rk correctly and
p
robably improve
.
.
.
commit
|
commitdiff
|
tree
2007-10-25
Nicolas Pennequ
i
n
c
o
dec_adva
n
ce_buff
e
r_c
a
llback: Remove u
n
use
d
code
commit
|
commitdiff
|
tree
2007-10-25
Nicolas
Pen
n
equin
codec_se
e
k_bu
f
fer_callback:
a
simple bufseek call is
.
.
.
commit
|
commitdiff
|
tree
2007-10-25
Nicolas Pennequi
n
Make
b
uf
a
dv
a
nce rely on b
u
fseek ins
t
ead of duplicating
.
.
.
commit
|
commitdiff
|
tree
2007-10-25
Nicolas Pennequin
Co
r
rect bufse
e
k
commit
|
commitdiff
|
tree
2007-10-25
N
i
co
l
as Pennequin
S
o
m
e cod
e
documentatio
n
u
p
date
s
commit
|
commitdiff
|
tree
2007-10-25
Nic
o
las
P
enne
q
uin
Rename free_buf
f
er() to
s
hrink_handle()
commit
|
commitdiff
|
tree
2007-10-25
Nicolas Pennequi
n
a
u
d
io_curren
t
_t
r
ack: Don't use
c
urtr
a
ck_id3 if
i
t
's
.
.
.
commit
|
commitdiff
|
tree
2007-10-25
Nic
o
las Pennequin
Fix warning
commit
|
commitdiff
|
tree
2007-10-25
Nicolas Pennequin
Clear static struct
s
on stop
commit
|
commitdiff
|
tree
2007-10-25
Nicolas Pennequin
I
m
prove metadata use
commit
|
commitdiff
|
tree
2007-10-25
Nico
l
as Penneq
u
in
Pointer cosmetic changes
commit
|
commitdiff
|
tree
2007-10-25
Nico
l
as Pe
n
nequ
i
n
Sil
e
nce warnin
g
s on coldfire
commit
|
commitdiff
|
tree
2007-10-25
Nicolas Pennequ
i
n
R
e
name getptr to b
u
f
g
etcodec and make
i
t ensure t
h
e
.
.
.
commit
|
commitdiff
|
tree
2007-10-25
Nicolas Penneq
u
in
bufopen
:
Immediate
l
y
r
e
qu
e
st bu
f
ferin
g
f
or
c
ertai
n
.
.
.
commit
|
commitdiff
|
tree
2007-10-25
N
i
cola
s
Pe
n
n
e
qui
n
Check for the case when
n
o
d
ata is ready and the
r
e
q
u
ire
d
.
.
.
commit
|
commitdiff
|
tree
2007-10-25
Nicolas Pennequin
Revert "Simplify code
c
_request_buffer_callback()"
commit
|
commitdiff
|
tree
2007-10-25
Nico
l
as
Pen
n
equi
n
curt
r
ack_id3 a
n
d nextt
r
a
ck_i
d
3 should be static
commit
|
commitdiff
|
tree
2007-10-25
Nicolas
Penne
q
uin
A
bit of maint
e
nan
c
e
commit
|
commitdiff
|
tree
2007-10-25
Nicol
a
s Pennequin
Simplify cod
e
c
_reques
t
_
buffer_cal
l
bac
k
()
commit
|
commitdiff
|
tree
2007-10-25
Nicolas Penn
e
qui
n
Only ask on
c
e f
o
r bufferin
g
,
then wait for the data
.
.
.
commit
|
commitdiff
|
tree
2007-10-25
Nicolas Pen
n
e
q
ui
n
Fix bufread implementat
i
on
.
This fixes problems
with
.
.
.
commit
|
commitdiff
|
tree
2007-10-25
Nico
l
as
P
ennequin
Minor cleanup
commit
|
commitdiff
|
tree
2007-10-25
Nicolas Pennequin
Properly clea
r
track
i
n
f
o
commit
|
commitdiff
|
tree
2007-10-25
Nico
l
as Pennequ
i
n
reset_handl
e
(): Fix warnin
g
and make it s
t
atic
commit
|
commitdiff
|
tree
2007-10-25
Nicolas Pennequin
Factor out the du
p
li
c
ate code
f
r
om
b
ufadva
n
ce in rebuf
f
e
r
_ha
.
.
.
commit
|
commitdiff
|
tree
2007-10-25
Nicolas Penn
e
quin
Implement backwards skip
p
ing b
y
co
m
m
p
leting a
u
d
i
o_rebuff
e
r()
commit
|
commitdiff
|
tree
2007-10-25
Nicolas Pe
n
nequin
Clear warni
n
gs and mor
e
clea
n
up
commit
|
commitdiff
|
tree
2007-10-25
Nic
o
las Pennequin
Clea
n
u
p
commit
|
commitdiff
|
tree
2007-10-25
Nicolas Pennequin
Silenc
e
the warn
i
ng from reset_handle()
commit
|
commitdiff
|
tree
2007-10-25
N
i
c
o
las Penn
e
quin
aud
i
o_stop_playback(): Relea
s
e track hand
l
es BEFORE
.
.
.
commit
|
commitdiff
|
tree
2007-10-25
Nic
o
las Pennequin
Seeking wa
s
n
'
t actully quite correct: make it se
e
k
.
.
.
commit
|
commitdiff
|
tree
2007-10-25
Nicol
a
s Penneq
u
in
Impl
e
me
n
t
r
ebufferi
n
g for seeking outside of bu
f
fered
.
.
.
commit
|
commitdiff
|
tree
2007-10-25
Nicolas Penne
q
uin
F
i
x playback resu
m
in
g
commit
|
commitdiff
|
tree
2007-10-25
Nicolas Pennequi
n
Prev
e
nt file
de
s
criptor le
a
k
a
ge or overuse
commit
|
commitdiff
|
tree
2007-10-25
N
icol
a
s Pe
n
neq
u
in
codec_filebuf_c
a
llback: Setting copy_n to 0 was a VERY
.
.
.
commit
|
commitdiff
|
tree
2007-10-25
Ni
c
olas Pennequi
n
Silence a few
w
arnings
commit
|
commitdiff
|
tree
2007-10-25
Nic
o
las Penn
e
quin
bufclose
:
Make
s
ure the handle's file descriptor is
.
.
.
commit
|
commitdiff
|
tree
2007-10-25
Ni
c
olas Pennequin
buf
o
p
e
n(): Don'
t
i
m
mediately buffer certain ty
p
es of
.
.
.
commit
|
commitdiff
|
tree
2007-10-25
Nicolas
P
enn
e
quin
codec_seek_buffer_callback(): Check
whether i
t
's
p
ossible
.
.
.
commit
|
commitdiff
|
tree
2007-10-25
Ni
c
olas Pennequin
Uncommen
t
a
p
art of audi
o
_rebuffe
r
() t
o
make reb
u
ffer
i
ng
.
.
.
commit
|
commitdiff
|
tree
2007-10-25
Nicolas Pennequin
W
h
e
n
data
can't wrap, start over
a
t the
b
eginning of
.
.
.
commit
|
commitdiff
|
tree
2007-10-25
Nico
l
as
P
ennequin
D
o
n't ask
to b
u
ffer trac
k
s
ri
g
ht
a
f
t
er
loading them
commit
|
commitdiff
|
tree
2007-10-25
Nicolas Pennequi
n
Add USB connection handling to the b
u
f
fering thread
commit
|
commitdiff
|
tree
2007-10-25
Nicolas
Penn
e
q
u
in
F
i
x tracks being
forgotten abo
u
t when the
r
e
was no
.
.
.
commit
|
commitdiff
|
tree
2007-10-25
Ni
c
olas Pennequin
I
m
p
r
o
v
e
yield_codec an
d
use it better to make audio
.
.
.
commit
|
commitdiff
|
tree
2007-10-25
Nicolas
Pennequin
bufgetdata
(
): fix the ava
i
lable v
s
.
re
q
uired
c
heck
.
commit
|
commitdiff
|
tree
2007-10-25
Nicolas
Penn
e
q
u
in
Fix a stu
p
id
b
u
g
that caused some han
d
les no
t
to be
.
.
.
commit
|
commitdiff
|
tree
2007-10-25
N
i
c
olas Pennequin
Introduce
yield_codec(), simi
l
ar
to
the original a
u
dio_yie
l
d
.
.
.
commit
|
commitdiff
|
tree
2007-10-25
N
i
c
o
las Pennequin
Make
t
he
t
arg
e
t
b
ehave the s
a
me as the s
i
m (do
n
't care
.
.
.
commit
|
commitdiff
|
tree
2007-10-25
Nicolas Pe
n
nequin
Trying
t
o make audi
o
start playing faster
.
commit
|
commitdiff
|
tree
2007-10-25
Ni
c
o
la
s
P
e
nnequin
Fix play
b
ack stopp
i
ng by closin
g
all track handles
.
.
.
commit
|
commitdiff
|
tree
2007-10-25
Nicolas Pennequin
A fe
w
comment
tweaks
commit
|
commitdiff
|
tree
2007-10-25
Nico
l
as
P
en
n
equin
Ad
d
a
test in aud
i
o
_
c
ur
r
ent_track()
commit
|
commitdiff
|
tree
2007-10-25
Nicolas Penne
q
uin
Do the initia
l
p
opulating of the static
ID3 structs
.
.
.
commit
|
commitdiff
|
tree
2007-10-25
N
ic
o
las
P
ennequin
Ma
k
e audi
o
_
read_next_met
a
data a b
i
t
s
afer
.
commit
|
commitdiff
|
tree
2007-10-25
Nicolas Penneq
u
in
Minor correction of
a
comment
commit
|
commitdiff
|
tree
2007-10-25
Nico
l
as
P
ennequin
U
se id3_hid rather than taginfo_rea
d
y to know if I
D
3
.
.
.
commit
|
commitdiff
|
tree
2007-10-25
Nicolas Pennequi
n
Reque
s
t bu
f
fer
i
ng of t
h
e current track
if it is to
.
.
.
commit
|
commitdiff
|
tree
2007-10-25
Nicolas Pen
n
equin
Add some
s
ynchr
o
nisation
to pre
v
ent some deadlocks
.
.
.
commit
|
commitdiff
|
tree
2007-10-25
Nicolas Pennequin
M
a
ke basic seeking actually wo
r
k
commit
|
commitdiff
|
tree
2007-10-25
Nicol
a
s Pennequin
Add
c
lose_track_handles and reenable
a
udio_
c
lear_track_entri
.
.
.
commit
|
commitdiff
|
tree
2007-10-25
Nicolas Penneq
u
in
Rel
e
ase data
f
or t
h
e finished trac
k
on tra
c
k
change
.
commit
|
commitdiff
|
tree
2007-10-25
Ni
c
olas Pennequin
Store filesize
o
n load
.
This makes basic seeking w
o
rk
.
commit
|
commitdiff
|
tree
2007-10-25
Nicol
a
s Pennequi
n
St
a
rt
us
i
ng "filling" correct
l
y
t
o
m
ake more tracks
.
.
.
commit
|
commitdiff
|
tree
2007-10-25
N
icolas Pennequin
Remove
t
he te
s
t plu
g
in
commit
|
commitdiff
|
tree
2007-10-25
Nicolas Pen
n
equin
I
ncr
e
ment
track_wid
x
af
t
er l
o
ading a
t
rack
commit
|
commitdiff
|
tree
2007-10-25
Nicolas Pe
n
n
equin
C
o
smetics
a
n
d
get r
i
d of warnings
.
commit
|
commitdiff
|
tree
2007-10-25
Nic
o
las Penn
e
quin
ID3 handling improvements
commit
|
commitdiff
|
tree
2007-10-25
Nic
o
l
as P
e
nnequin
Trig
g
er a CPU boost
b
efore reading from disk
commit
|
commitdiff
|
tree
2007-10-25
N
i
colas Pennequin
Debug o
u
tp
u
t
t
weaking
commit
|
commitdiff
|
tree
2007-10-25
Nicola
s
Pennequin
A bunch of improvements that make playback
o
f the first
.
.
.
commit
|
commitdiff
|
tree
2007-10-25
Nicolas Pennequin
Add a
get_offset API call to make code
c
_advance_buffer
_
loc_c
.
.
.
commit
|
commitdiff
|
tree
2007-10-25
Nicolas Pennequin
A
c
ouple m
o
re tweak
s
commit
|
commitdiff
|
tree
2007-10-25
N
i
co
l
as Pennequ
i
n
Fix a stupid bug that p
r
even
t
ed the b
u
ff
e
r
ing system
.
.
.
commit
|
commitdiff
|
tree
2007-10-25
Ni
c
ola
s
Pennequin
Brutally make p
l
a
yback
.
c compile by disabling l
o
ts
.
.
.
commit
|
commitdiff
|
tree
next