tlv320aic26.c (959d851caa48829eb85cb85aa949fd6b4c5d5bc6) | tlv320aic26.c (e6968a1719a88afa4708ff43696d6615f0be90be) |
---|---|
1/* 2 * Texas Instruments TLV320AIC26 low power audio CODEC 3 * ALSA SoC CODEC driver 4 * 5 * Copyright (C) 2008 Secret Lab Technologies Ltd. 6 */ 7 8#include <linux/module.h> --- 112 unchanged lines hidden (view full) --- 121 122/* --------------------------------------------------------------------- 123 * Digital Audio Interface Operations 124 */ 125static int aic26_hw_params(struct snd_pcm_substream *substream, 126 struct snd_pcm_hw_params *params, 127 struct snd_soc_dai *dai) 128{ | 1/* 2 * Texas Instruments TLV320AIC26 low power audio CODEC 3 * ALSA SoC CODEC driver 4 * 5 * Copyright (C) 2008 Secret Lab Technologies Ltd. 6 */ 7 8#include <linux/module.h> --- 112 unchanged lines hidden (view full) --- 121 122/* --------------------------------------------------------------------- 123 * Digital Audio Interface Operations 124 */ 125static int aic26_hw_params(struct snd_pcm_substream *substream, 126 struct snd_pcm_hw_params *params, 127 struct snd_soc_dai *dai) 128{ |
129 struct snd_soc_pcm_runtime *rtd = substream->private_data; 130 struct snd_soc_codec *codec = rtd->codec; | 129 struct snd_soc_codec *codec = dai->codec; |
131 struct aic26 *aic26 = snd_soc_codec_get_drvdata(codec); 132 int fsref, divisor, wlen, pval, jval, dval, qval; 133 u16 reg; 134 135 dev_dbg(&aic26->spi->dev, "aic26_hw_params(substream=%p, params=%p)\n", 136 substream, params); 137 dev_dbg(&aic26->spi->dev, "rate=%i format=%i\n", params_rate(params), 138 params_format(params)); --- 320 unchanged lines hidden --- | 130 struct aic26 *aic26 = snd_soc_codec_get_drvdata(codec); 131 int fsref, divisor, wlen, pval, jval, dval, qval; 132 u16 reg; 133 134 dev_dbg(&aic26->spi->dev, "aic26_hw_params(substream=%p, params=%p)\n", 135 substream, params); 136 dev_dbg(&aic26->spi->dev, "rate=%i format=%i\n", params_rate(params), 137 params_format(params)); --- 320 unchanged lines hidden --- |