alc5623.c (959d851caa48829eb85cb85aa949fd6b4c5d5bc6) alc5623.c (e6968a1719a88afa4708ff43696d6615f0be90be)
1/*
2 * alc5623.c -- alc562[123] ALSA Soc Audio driver
3 *
4 * Copyright 2008 Realtek Microelectronics
5 * Author: flove <flove@realtek.com> Ethan <eku@marvell.com>
6 *
7 * Copyright 2010 Arnaud Patard <arnaud.patard@rtp-net.org>
8 *

--- 691 unchanged lines hidden (view full) ---

700 }
701
702 return snd_soc_write(codec, ALC5623_DAI_CONTROL, iface);
703}
704
705static int alc5623_pcm_hw_params(struct snd_pcm_substream *substream,
706 struct snd_pcm_hw_params *params, struct snd_soc_dai *dai)
707{
1/*
2 * alc5623.c -- alc562[123] ALSA Soc Audio driver
3 *
4 * Copyright 2008 Realtek Microelectronics
5 * Author: flove <flove@realtek.com> Ethan <eku@marvell.com>
6 *
7 * Copyright 2010 Arnaud Patard <arnaud.patard@rtp-net.org>
8 *

--- 691 unchanged lines hidden (view full) ---

700 }
701
702 return snd_soc_write(codec, ALC5623_DAI_CONTROL, iface);
703}
704
705static int alc5623_pcm_hw_params(struct snd_pcm_substream *substream,
706 struct snd_pcm_hw_params *params, struct snd_soc_dai *dai)
707{
708 struct snd_soc_pcm_runtime *rtd = substream->private_data;
709 struct snd_soc_codec *codec = rtd->codec;
708 struct snd_soc_codec *codec = dai->codec;
710 struct alc5623_priv *alc5623 = snd_soc_codec_get_drvdata(codec);
711 int coeff, rate;
712 u16 iface;
713
714 iface = snd_soc_read(codec, ALC5623_DAI_CONTROL);
715 iface &= ~ALC5623_DAI_I2S_DL_MASK;
716
717 /* bit size */

--- 392 unchanged lines hidden ---
709 struct alc5623_priv *alc5623 = snd_soc_codec_get_drvdata(codec);
710 int coeff, rate;
711 u16 iface;
712
713 iface = snd_soc_read(codec, ALC5623_DAI_CONTROL);
714 iface &= ~ALC5623_DAI_I2S_DL_MASK;
715
716 /* bit size */

--- 392 unchanged lines hidden ---