From: Marcus Cooper <[email protected]>

Signed-off-by: Marcus Cooper <[email protected]>
---
 sound/soc/sunxi/sunxi-codec.c | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)

diff --git a/sound/soc/sunxi/sunxi-codec.c b/sound/soc/sunxi/sunxi-codec.c
index 8c7d34c..3e48fcf 100644
--- a/sound/soc/sunxi/sunxi-codec.c
+++ b/sound/soc/sunxi/sunxi-codec.c
@@ -140,10 +140,9 @@ static struct snd_pcm_hardware sunxi_pcm_capture_hardware =
        .fifo_size              = 32,//fifo字节数
 };
 
-struct sunxi_codec{
-       long samplerate;
-       struct snd_card *card;
-       struct snd_pcm *pcm;
+struct sunxi_codec {
+       struct snd_card *card;
+       struct snd_pcm  *pcm;
 };
 
 static void codec_resume_events(struct work_struct *work);
@@ -1462,7 +1461,6 @@ static int __devinit sunxi_codec_probe(struct 
platform_device *pdev)
        /*声卡芯片的专用数据*/
        card->private_free = snd_sunxi_codec_free;//card私有数据释放
        chip->card = card;
-       chip->samplerate = AUDIO_RATE_DEFAULT;
 
        /*
        *       mixer,注册control(mixer)接口
-- 
1.9.1

-- 
You received this message because you are subscribed to the Google Groups 
"linux-sunxi" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to