On Wed, Sep 29, 2010, Mark Brown wrote: > On Wed, Sep 29, 2010 at 05:52:08PM -0700, Peter Hsiang wrote: > > On Wed, Sep 29, 2010, Mark Brown wrote: > > > > You're looking for the non-DAPM equivalent of SND_SOC_DAPM_VALUE_MUX(). > > > This is a simple table lookup of a register value from the index > > number given by SOC_ENUM, the same way it's been done in other drivers. > > Yes, exactly. > > > I found a "case snd_soc_dapm_value_mux:" in dapm_set_path_status() > > Is this what you are referring to? > > How is the code there relevant to this? > > No, I'm referring to the fact that it provides an enum that allows > arbatrary values to be set for each enum value rather than just allowing > indexes as the standard SOC_ENUM does. This is essentially what you've > implemented, it would factor out the code so that others can use it too > (and IIRC save you some code since IIRC you had more than one of these > in the driver). Thank you! _______________________________________________ Alsa-devel mailing list Alsa-devel@xxxxxxxxxxxxxxxx http://mailman.alsa-project.org/mailman/listinfo/alsa-devel