at73c213.c (7022b15e2a9f878fd5184586064c63352c3dd225) at73c213.c (bd7dd77c2a05c530684eea2e3af16449ae9c5d52)
1/*
2 * Driver for AT73C213 16-bit stereo DAC connected to Atmel SSC
3 *
4 * Copyright (C) 2006-2007 Atmel Norway
5 *
6 * This program is free software; you can redistribute it and/or modify it
7 * under the terms of the GNU General Public License version 2 as published by
8 * the Free Software Foundation.

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

960 return -ENXIO;
961 }
962
963 if (IS_ERR(board->dac_clk)) {
964 dev_dbg(&spi->dev, "no DAC clk\n");
965 return PTR_ERR(board->dac_clk);
966 }
967
1/*
2 * Driver for AT73C213 16-bit stereo DAC connected to Atmel SSC
3 *
4 * Copyright (C) 2006-2007 Atmel Norway
5 *
6 * This program is free software; you can redistribute it and/or modify it
7 * under the terms of the GNU General Public License version 2 as published by
8 * the Free Software Foundation.

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

960 return -ENXIO;
961 }
962
963 if (IS_ERR(board->dac_clk)) {
964 dev_dbg(&spi->dev, "no DAC clk\n");
965 return PTR_ERR(board->dac_clk);
966 }
967
968 retval = -ENOMEM;
969
970 /* Allocate "card" using some unused identifiers. */
971 snprintf(id, sizeof id, "at73c213_%d", board->ssc_id);
968 /* Allocate "card" using some unused identifiers. */
969 snprintf(id, sizeof id, "at73c213_%d", board->ssc_id);
972 card = snd_card_new(-1, id, THIS_MODULE, sizeof(struct snd_at73c213));
973 if (!card)
970 retval = snd_card_create(-1, id, THIS_MODULE,
971 sizeof(struct snd_at73c213), &card);
972 if (retval < 0)
974 goto out;
975
976 chip = card->private_data;
977 chip->spi = spi;
978 chip->board = board;
979
980 chip->ssc = ssc_request(board->ssc_id);
981 if (IS_ERR(chip->ssc)) {

--- 150 unchanged lines hidden ---
973 goto out;
974
975 chip = card->private_data;
976 chip->spi = spi;
977 chip->board = board;
978
979 chip->ssc = ssc_request(board->ssc_id);
980 if (IS_ERR(chip->ssc)) {

--- 150 unchanged lines hidden ---