cardRecords_.clear();
final String cardsFilePath = "/proc/asound/cards";
File cardsFile = new File(cardsFilePath);
try {
FileReader reader = new FileReader(cardsFile);
BufferedReader bufferedReader = new BufferedReader(reader);
String line = "";
while ((line = bufferedReader.readLine()) != null) {
AlsaCardRecord cardRecord = new AlsaCardRecord();
cardRecord.parse(line, 0);
cardRecord.parse(line = bufferedReader.readLine(), 1);
cardRecords_.add(cardRecord);
}
reader.close();
} catch (FileNotFoundException e) {
e.printStackTrace();
} catch (IOException e) {
e.printStackTrace();
}