[alsa-devel] [PATCH -mm] sound/pci/pcxhr/pcxhr_hwdep.c remove unused code
25 Mar
2007
25 Mar
'07
6:52 p.m.
This patch is against the latest -mm snapshot.
Regards, Michal
--
Michal K. K. Piotrowski
LTG - Linux Testers Group (PL)
(http://www.stardust.webpages.pl/ltg/)
LTG - Linux Testers Group (EN)
(http://www.stardust.webpages.pl/linux_testers_group_en/)
Signed-off-by: Michal Piotrowski michal.k.k.piotrowski@gmail.com
--- linux-work5/sound/pci/pcxhr/pcxhr_hwdep.c 2007-02-04 19:44:54.000000000 +0100
+++ linux-work3/sound/pci/pcxhr/pcxhr_hwdep.c 2007-03-25 14:39:47.000000000 +0200
@@ -175,38 +175,6 @@ static int pcxhr_dsp_allocate_pipe( stru
return 0;
}
-/*
- * free playback/capture pipe (pcmp0/pcmc0)
- */
-#if 0
-static int pcxhr_dsp_free_pipe( struct pcxhr_mgr *mgr, struct pcxhr_pipe *pipe)
-{
- struct pcxhr_rmh rmh;
- int capture_mask = 0;
- int playback_mask = 0;
- int err = 0;
-
- if (pipe->is_capture)
- capture_mask = (1 << pipe->first_audio);
- else
- playback_mask = (1 << pipe->first_audio);
-
- /* stop one pipe */
- err = pcxhr_set_pipe_state(mgr, playback_mask, capture_mask, 0);
- if (err < 0)
- snd_printk(KERN_ERR "error stopping pipe!\n");
- /* release the pipe */
- pcxhr_init_rmh(&rmh, CMD_FREE_PIPE);
- pcxhr_set_pipe_cmd_params(&rmh, pipe->is_capture, pipe->first_audio, 0, 0);
- err = pcxhr_send_msg(mgr, &rmh);
- if (err < 0)
- snd_printk(KERN_ERR "error pipe release (CMD_FREE_PIPE) err(%x)\n", err);
- pipe->status = PCXHR_PIPE_UNDEFINED;
- return err;
-}
-#endif
-
-
static int pcxhr_config_pipes(struct pcxhr_mgr *mgr)
{
int err, i, j;
6432
Age (days ago)
6432
Last active (days ago)
0 comments
1 participants
participants (1)
-
Michal Piotrowski