oss4: don't iterate the formats table twice for each entry
authorTim-Philipp Müller <tim.muller@collabora.co.uk>
Thu, 8 Apr 2010 09:40:02 +0000 (10:40 +0100)
committerTim-Philipp Müller <tim.muller@collabora.co.uk>
Thu, 8 Apr 2010 09:43:26 +0000 (10:43 +0100)
commitd57534760369d384444d1cefd5ae92b44bd53166
treec310640998acb84d1c01c9d34bee9237936e6745
parentcd4099db89ff4b2ebbb3329a643a2a8a1ef0db05
oss4: don't iterate the formats table twice for each entry

When iterating the formats table, we can just pass the whole
entry to our helper function, which avoids iterating the table
again to find the entry structure from the passed format id.
sys/oss4/oss4-audio.c