Lines Matching refs:cs42l51
2 * cs42l51.c
36 #include "cs42l51.h"
82 struct cs42l51_private *cs42l51;
103 dev_info(&i2c_client->dev, "found device cs42l51 rev %d\n",
106 cs42l51 = kzalloc(sizeof(struct cs42l51_private), GFP_KERNEL);
107 if (!cs42l51) {
111 codec = &cs42l51->codec;
122 snd_soc_codec_set_drvdata(codec, cs42l51);
125 codec->reg_cache = cs42l51->reg_cache;
174 kfree(cs42l51);
181 struct cs42l51_private *cs42l51 = i2c_get_clientdata(client);
185 kfree(cs42l51);
191 {"cs42l51", 0},
422 struct cs42l51_private *cs42l51 = snd_soc_codec_get_drvdata(codec);
429 cs42l51->audio_mode = format & SND_SOC_DAIFMT_FORMAT_MASK;
438 cs42l51->func = MODE_MASTER;
441 cs42l51->func = MODE_SLAVE_AUTO;
486 struct cs42l51_private *cs42l51 = snd_soc_codec_get_drvdata(codec);
494 cs42l51->mclk = freq;
496 switch (cs42l51->func) {
542 struct cs42l51_private *cs42l51 = snd_soc_codec_get_drvdata(codec);
551 switch (cs42l51->func) {
566 ratio = cs42l51->mclk / rate; /* MCLK/LRCK ratio */
586 switch (cs42l51->func) {
599 switch (cs42l51->audio_mode) {