SANTA CLARA, Calif. (Reuters) - Consumer electronics maker Sonicblue Inc. said on Friday it plans to file for bankruptcy and that it agreed to sell the assets of its main product lines for $52.5 million.

Sonicblue said it agreed to sell its Rio unit, which made the first mainstream device to play music in the popular MP3 format, and its ReplayTV digital video recorder unit to D&M Holdings of Japan for $40 million, plus the assumption of about $5 million in liabilities.