File indexing completed on 2024-06-16 07:42:25

0001 /*
0002     SPDX-FileCopyrightText: 1998-2007 Sebastian Trueg <trueg@k3b.org>
0003     SPDX-License-Identifier: GPL-2.0-or-later
0004 */
0005 
0006 #include "k3bexceptions.h"
0007 #include "k3bdevice.h"
0008 
0009 bool K3b::Exceptions::brokenDaoAudio( K3b::Device::Device* dev )
0010 {
0011     if( dev->vendor().toUpper().startsWith("PIONEER") )
0012         if( dev->description().toUpper().startsWith("DVR-106D") ||
0013             dev->description().toUpper().startsWith("DVD-RW  DVR-K12D") )
0014             return true;
0015 
0016     if( dev->vendor().toUpper().startsWith("HL-DT-ST") )
0017         if( dev->description().toUpper().startsWith("RW/DVD GCC-4320B") ||
0018             dev->description().toUpper().contains("GCE-8520B") )
0019             return true;
0020 
0021     if( dev->vendor().toUpper().startsWith("PHILIPS") &&
0022         dev->description().toUpper().startsWith("CDRWDVD3210") )
0023         return true;
0024 
0025     if( dev->vendor().toUpper().startsWith("LITE-ON") )
0026         if( dev->description().toUpper().startsWith("LTR-32123S") ||
0027             dev->description().toUpper().startsWith("LTR-40125S") ||
0028             dev->description().toUpper().contains("LTC-48161H") ||
0029             dev->description().toUpper().startsWith("DVDRW LDW-811S") )
0030             return true;
0031 
0032     return false;
0033 }