Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 366555
b: refs/heads/master
c: cab3e1f
h: refs/heads/master
i:
  366553: 01b01be
  366551: 1a3c7fa
v: v3
  • Loading branch information
Peter Senna Tschudin authored and Mauro Carvalho Chehab committed Mar 18, 2013
1 parent 7961e6d commit 74bd6ce
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 16 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 52dee392f491e166cef21c787d1736f052a902cd
refs/heads/master: cab3e1ffbe1b9c7a607506338f590dc1e6ca9909
21 changes: 6 additions & 15 deletions trunk/drivers/media/pci/cx25821/cx25821-audio-upstream.c
Original file line number Diff line number Diff line change
Expand Up @@ -728,26 +728,17 @@ int cx25821_audio_upstream_init(struct cx25821_dev *dev, int channel_select)
dev->_audio_lines_count = LINES_PER_AUDIO_BUFFER;
_line_size = AUDIO_LINE_SIZE;

if (dev->input_audiofilename) {
if ((dev->input_audiofilename) &&
(strcmp(dev->input_audiofilename, "") != 0))
dev->_audiofilename = kstrdup(dev->input_audiofilename,
GFP_KERNEL);

if (!dev->_audiofilename) {
err = -ENOMEM;
goto error;
}

/* Default if filename is empty string */
if (strcmp(dev->input_audiofilename, "") == 0)
dev->_audiofilename = "/root/audioGOOD.wav";
} else {
else
dev->_audiofilename = kstrdup(_defaultAudioName,
GFP_KERNEL);

if (!dev->_audiofilename) {
err = -ENOMEM;
goto error;
}
if (!dev->_audiofilename) {
err = -ENOMEM;
goto error;
}

cx25821_sram_channel_setup_upstream_audio(dev, sram_ch,
Expand Down

0 comments on commit 74bd6ce

Please sign in to comment.