yrw801.c (e5451c8f8330e03ad3cfa16048b4daf961af434f) | yrw801.c (7debf0350e264c431f8c029a15d799317dd5d052) |
---|---|
1/* 2 * Information about the Yamaha YRW801 wavetable ROM chip 3 * 4 * Copyright (c) 2003 by Clemens Ladisch <clemens@ladisch.de> 5 * All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions --- 29 unchanged lines hidden (view full) --- 38 char buf[15]; 39 40 snd_opl4_read_memory(opl4, buf, 0x001200, 15); 41 if (memcmp(buf, "CopyrightYAMAHA", 15)) 42 return -ENODEV; 43 snd_opl4_read_memory(opl4, buf, 0x1ffffe, 2); 44 if (buf[0] != 0x01) 45 return -ENODEV; | 1/* 2 * Information about the Yamaha YRW801 wavetable ROM chip 3 * 4 * Copyright (c) 2003 by Clemens Ladisch <clemens@ladisch.de> 5 * All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions --- 29 unchanged lines hidden (view full) --- 38 char buf[15]; 39 40 snd_opl4_read_memory(opl4, buf, 0x001200, 15); 41 if (memcmp(buf, "CopyrightYAMAHA", 15)) 42 return -ENODEV; 43 snd_opl4_read_memory(opl4, buf, 0x1ffffe, 2); 44 if (buf[0] != 0x01) 45 return -ENODEV; |
46 snd_printdd("YRW801 ROM version %02x.%02x\n", buf[0], buf[1]); | 46 dev_dbg(opl4->card->dev, "YRW801 ROM version %02x.%02x\n", buf[0], buf[1]); |
47 return 0; 48} 49 50/* 51 * The instrument definitions are stored statically because, in practice, the 52 * OPL4 is always coupled with a YRW801. Dynamic instrument loading would be 53 * required if downloading sample data to external SRAM was actually supported 54 * by this driver. --- 907 unchanged lines hidden --- | 47 return 0; 48} 49 50/* 51 * The instrument definitions are stored statically because, in practice, the 52 * OPL4 is always coupled with a YRW801. Dynamic instrument loading would be 53 * required if downloading sample data to external SRAM was actually supported 54 * by this driver. --- 907 unchanged lines hidden --- |