max98926.c (cdd38c5f1ce4398ec58fec95904b75824daab7b5) | max98926.c (502e1c8d07222561b046a1da7b8207696f575288) |
---|---|
1// SPDX-License-Identifier: GPL-2.0-only 2/* 3 * max98926.c -- ALSA SoC MAX98926 driver 4 * Copyright 2013-15 Maxim Integrated Products 5 */ 6#include <linux/delay.h> 7#include <linux/i2c.h> 8#include <linux/module.h> --- 317 unchanged lines hidden (view full) --- 326 unsigned int fmt) 327{ 328 struct snd_soc_component *component = codec_dai->component; 329 struct max98926_priv *max98926 = snd_soc_component_get_drvdata(component); 330 unsigned int invert = 0; 331 332 dev_dbg(component->dev, "%s: fmt 0x%08X\n", __func__, fmt); 333 | 1// SPDX-License-Identifier: GPL-2.0-only 2/* 3 * max98926.c -- ALSA SoC MAX98926 driver 4 * Copyright 2013-15 Maxim Integrated Products 5 */ 6#include <linux/delay.h> 7#include <linux/i2c.h> 8#include <linux/module.h> --- 317 unchanged lines hidden (view full) --- 326 unsigned int fmt) 327{ 328 struct snd_soc_component *component = codec_dai->component; 329 struct max98926_priv *max98926 = snd_soc_component_get_drvdata(component); 330 unsigned int invert = 0; 331 332 dev_dbg(component->dev, "%s: fmt 0x%08X\n", __func__, fmt); 333 |
334 switch (fmt & SND_SOC_DAIFMT_MASTER_MASK) { 335 case SND_SOC_DAIFMT_CBS_CFS: | 334 switch (fmt & SND_SOC_DAIFMT_CLOCK_PROVIDER_MASK) { 335 case SND_SOC_DAIFMT_CBC_CFC: |
336 max98926_set_sense_data(max98926); 337 break; 338 default: 339 dev_err(component->dev, "DAI clock mode unsupported\n"); 340 return -EINVAL; 341 } 342 343 switch (fmt & SND_SOC_DAIFMT_INV_MASK) { --- 251 unchanged lines hidden --- | 336 max98926_set_sense_data(max98926); 337 break; 338 default: 339 dev_err(component->dev, "DAI clock mode unsupported\n"); 340 return -EINVAL; 341 } 342 343 switch (fmt & SND_SOC_DAIFMT_INV_MASK) { --- 251 unchanged lines hidden --- |