alc5632.c (959d851caa48829eb85cb85aa949fd6b4c5d5bc6) | alc5632.c (e6968a1719a88afa4708ff43696d6615f0be90be) |
---|---|
1/* 2* alc5632.c -- ALC5632 ALSA SoC Audio Codec 3* 4* Copyright (C) 2011 The AC100 Kernel Team <ac100@lists.lauchpad.net> 5* 6* Authors: Leon Romanovsky <leon@leon.nu> 7* Andrey Danin <danindrey@mail.ru> 8* Ilya Petrov <ilya.muromec@gmail.com> --- 847 unchanged lines hidden (view full) --- 856 } 857 858 return snd_soc_write(codec, ALC5632_DAI_CONTROL, iface); 859} 860 861static int alc5632_pcm_hw_params(struct snd_pcm_substream *substream, 862 struct snd_pcm_hw_params *params, struct snd_soc_dai *dai) 863{ | 1/* 2* alc5632.c -- ALC5632 ALSA SoC Audio Codec 3* 4* Copyright (C) 2011 The AC100 Kernel Team <ac100@lists.lauchpad.net> 5* 6* Authors: Leon Romanovsky <leon@leon.nu> 7* Andrey Danin <danindrey@mail.ru> 8* Ilya Petrov <ilya.muromec@gmail.com> --- 847 unchanged lines hidden (view full) --- 856 } 857 858 return snd_soc_write(codec, ALC5632_DAI_CONTROL, iface); 859} 860 861static int alc5632_pcm_hw_params(struct snd_pcm_substream *substream, 862 struct snd_pcm_hw_params *params, struct snd_soc_dai *dai) 863{ |
864 struct snd_soc_pcm_runtime *rtd = substream->private_data; 865 struct snd_soc_codec *codec = rtd->codec; | 864 struct snd_soc_codec *codec = dai->codec; |
866 int coeff, rate; 867 u16 iface; 868 869 iface = snd_soc_read(codec, ALC5632_DAI_CONTROL); 870 iface &= ~ALC5632_DAI_I2S_DL_MASK; 871 872 /* bit size */ 873 switch (params_format(params)) { --- 361 unchanged lines hidden --- | 865 int coeff, rate; 866 u16 iface; 867 868 iface = snd_soc_read(codec, ALC5632_DAI_CONTROL); 869 iface &= ~ALC5632_DAI_I2S_DL_MASK; 870 871 /* bit size */ 872 switch (params_format(params)) { --- 361 unchanged lines hidden --- |