stac9766.c (cf0dbba515415bb19b11f9323d5f7bebd7f24fd6) stac9766.c (b2c812e22de88bb79c290c0e718280f10b64a48d)
1/*
2 * stac9766.c -- ALSA SoC STAC9766 codec support
3 *
4 * Copyright 2009 Jon Smirl, Digispeaker
5 * Author: Jon Smirl <jonsmirl@gmail.com>
6 *
7 * This program is free software; you can redistribute it and/or modify it
8 * under the terms of the GNU General Public License as published by the
9 * Free Software Foundation; either version 2 of the License, or (at your
10 * option) any later version.
11 *
12 * Features:-
13 *
14 * o Support for AC97 Codec, S/PDIF
15 */
16
17#include <linux/init.h>
1/*
2 * stac9766.c -- ALSA SoC STAC9766 codec support
3 *
4 * Copyright 2009 Jon Smirl, Digispeaker
5 * Author: Jon Smirl <jonsmirl@gmail.com>
6 *
7 * This program is free software; you can redistribute it and/or modify it
8 * under the terms of the GNU General Public License as published by the
9 * Free Software Foundation; either version 2 of the License, or (at your
10 * option) any later version.
11 *
12 * Features:-
13 *
14 * o Support for AC97 Codec, S/PDIF
15 */
16
17#include <linux/init.h>
18#include <linux/slab.h>
19#include <linux/module.h>
20#include <linux/device.h>
21#include <sound/core.h>
22#include <sound/pcm.h>
23#include <sound/ac97_codec.h>
24#include <sound/initval.h>
25#include <sound/pcm_params.h>
26#include <sound/soc.h>

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

405
406 return 0;
407
408reset_err:
409 snd_soc_free_pcms(socdev);
410pcm_err:
411 snd_soc_free_ac97_codec(codec);
412codec_err:
18#include <linux/module.h>
19#include <linux/device.h>
20#include <sound/core.h>
21#include <sound/pcm.h>
22#include <sound/ac97_codec.h>
23#include <sound/initval.h>
24#include <sound/pcm_params.h>
25#include <sound/soc.h>

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

404
405 return 0;
406
407reset_err:
408 snd_soc_free_pcms(socdev);
409pcm_err:
410 snd_soc_free_ac97_codec(codec);
411codec_err:
413 kfree(codec->private_data);
412 kfree(snd_soc_codec_get_drvdata(codec));
414cache_err:
415 kfree(socdev->card->codec);
416 socdev->card->codec = NULL;
417 return ret;
418}
419
420static int stac9766_codec_remove(struct platform_device *pdev)
421{

--- 24 unchanged lines hidden ---
413cache_err:
414 kfree(socdev->card->codec);
415 socdev->card->codec = NULL;
416 return ret;
417}
418
419static int stac9766_codec_remove(struct platform_device *pdev)
420{

--- 24 unchanged lines hidden ---