sta529.c (c13aca79ff3c4af5fd31a5b2743a90eba6e36a26) | sta529.c (54b5927067dd79b58032a4938ee13b233f1a368c) |
---|---|
1/* 2 * ASoC codec driver for spear platform 3 * 4 * sound/soc/codecs/sta529.c -- spear ALSA Soc codec driver 5 * 6 * Copyright (C) 2012 ST Microelectronics 7 * Rajeev Kumar <rajeevkumar.linux@gmail.com> 8 * --- 237 unchanged lines hidden (view full) --- 246 bclk_to_fs_ratio << 4); 247 snd_soc_component_update_bits(component, STA529_MISC, CAP_FREQ_RANGE_MSK, 248 record_freq_val << 2); 249 } 250 251 return 0; 252} 253 | 1/* 2 * ASoC codec driver for spear platform 3 * 4 * sound/soc/codecs/sta529.c -- spear ALSA Soc codec driver 5 * 6 * Copyright (C) 2012 ST Microelectronics 7 * Rajeev Kumar <rajeevkumar.linux@gmail.com> 8 * --- 237 unchanged lines hidden (view full) --- 246 bclk_to_fs_ratio << 4); 247 snd_soc_component_update_bits(component, STA529_MISC, CAP_FREQ_RANGE_MSK, 248 record_freq_val << 2); 249 } 250 251 return 0; 252} 253 |
254static int sta529_mute(struct snd_soc_dai *dai, int mute) | 254static int sta529_mute(struct snd_soc_dai *dai, int mute, int direction) |
255{ 256 u8 val = 0; 257 258 if (mute) 259 val |= CODEC_MUTE_VAL; 260 261 snd_soc_component_update_bits(dai->component, STA529_FFXCFG0, AUDIO_MUTE_MSK, val); 262 --- 23 unchanged lines hidden (view full) --- 286 snd_soc_component_update_bits(component, STA529_S2PCFG0, DATA_FORMAT_MSK, mode); 287 288 return 0; 289} 290 291static const struct snd_soc_dai_ops sta529_dai_ops = { 292 .hw_params = sta529_hw_params, 293 .set_fmt = sta529_set_dai_fmt, | 255{ 256 u8 val = 0; 257 258 if (mute) 259 val |= CODEC_MUTE_VAL; 260 261 snd_soc_component_update_bits(dai->component, STA529_FFXCFG0, AUDIO_MUTE_MSK, val); 262 --- 23 unchanged lines hidden (view full) --- 286 snd_soc_component_update_bits(component, STA529_S2PCFG0, DATA_FORMAT_MSK, mode); 287 288 return 0; 289} 290 291static const struct snd_soc_dai_ops sta529_dai_ops = { 292 .hw_params = sta529_hw_params, 293 .set_fmt = sta529_set_dai_fmt, |
294 .digital_mute = sta529_mute, | 294 .mute_stream = sta529_mute, 295 .no_capture_mute = 1, |
295}; 296 297static struct snd_soc_dai_driver sta529_dai = { 298 .name = "sta529-audio", 299 .playback = { 300 .stream_name = "Playback", 301 .channels_min = 2, 302 .channels_max = 2, --- 89 unchanged lines hidden --- | 296}; 297 298static struct snd_soc_dai_driver sta529_dai = { 299 .name = "sta529-audio", 300 .playback = { 301 .stream_name = "Playback", 302 .channels_min = 2, 303 .channels_max = 2, --- 89 unchanged lines hidden --- |