[alsa-devel] [Device-drivers-devel] [PATCH v2] ASoC: add SSM2604 codec driver

Mike Frysinger vapier at gentoo.org
Sun Mar 27 06:11:54 CEST 2011


On Sat, Mar 26, 2011 at 08:12, Mark Brown wrote:
> On Sat, Mar 26, 2011 at 05:07:20AM -0400, Mike Frysinger wrote:
>> +#if defined(CONFIG_I2C) || defined(CONFIG_I2C_MODULE)
>> +     ret = i2c_add_driver(&ssm2604_i2c_driver);
>> +     if (ret != 0) {
>> +             printk(KERN_ERR "Failed to register ssm2604 I2C driver: %d\n",
>> +                    ret);
>> +     }
>> +#endif
>
> If the device only supports I2C then there's no need for the ifdefs.

i thought in the past you wanted these things because you wanted to be
able to build codecs regardless of the bus support (for testing iirc?)
-mike


More information about the Alsa-devel mailing list