aboutsummaryrefslogtreecommitdiffstats
path: root/sound/pci/asihpi
diff options
context:
space:
mode:
authorEliot Blennerhassett <eblennerhassett@audioscience.com>2011-12-21 19:38:35 -0500
committerTakashi Iwai <tiwai@suse.de>2011-12-22 02:12:59 -0500
commitcbd757daf5ed29618214b4ec4e298c79117baa8e (patch)
tree8e8f9315c1c1748f58a2eba7110f831c5a7d080a /sound/pci/asihpi
parentd4b06d23ab1c5aefbb1377fb01939b555236f57f (diff)
ALSA: asihpi - Use snd_pcm_debug_name to get substream name.
Signed-off-by: Eliot Blennerhassett <eblennerhassett@audioscience.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/asihpi')
-rw-r--r--sound/pci/asihpi/asihpi.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/sound/pci/asihpi/asihpi.c b/sound/pci/asihpi/asihpi.c
index 6e89e5b83a49..96a6eb0df4a6 100644
--- a/sound/pci/asihpi/asihpi.c
+++ b/sound/pci/asihpi/asihpi.c
@@ -904,7 +904,9 @@ static void snd_card_asihpi_timer_function(unsigned long data)
904static int snd_card_asihpi_playback_ioctl(struct snd_pcm_substream *substream, 904static int snd_card_asihpi_playback_ioctl(struct snd_pcm_substream *substream,
905 unsigned int cmd, void *arg) 905 unsigned int cmd, void *arg)
906{ 906{
907 snd_printddd(KERN_INFO "P%d ioctl %d\n", substream->number, cmd); 907 char name[16];
908 snd_pcm_debug_name(substream, name, sizeof(name));
909 snd_printddd(KERN_INFO "%s ioctl %d\n", name, cmd);
908 return snd_pcm_lib_ioctl(substream, cmd, arg); 910 return snd_pcm_lib_ioctl(substream, cmd, arg);
909} 911}
910 912
@@ -929,9 +931,11 @@ snd_card_asihpi_playback_pointer(struct snd_pcm_substream *substream)
929 struct snd_pcm_runtime *runtime = substream->runtime; 931 struct snd_pcm_runtime *runtime = substream->runtime;
930 struct snd_card_asihpi_pcm *dpcm = runtime->private_data; 932 struct snd_card_asihpi_pcm *dpcm = runtime->private_data;
931 snd_pcm_uframes_t ptr; 933 snd_pcm_uframes_t ptr;
934 char name[16];
935 snd_pcm_debug_name(substream, name, sizeof(name));
932 936
933 ptr = bytes_to_frames(runtime, dpcm->pcm_buf_dma_ofs % dpcm->buffer_bytes); 937 ptr = bytes_to_frames(runtime, dpcm->pcm_buf_dma_ofs % dpcm->buffer_bytes);
934 snd_printddd("P%d pointer = 0x%04lx\n", substream->number, (unsigned long)ptr); 938 snd_printddd("%s pointer = 0x%04lx\n", name, (unsigned long)ptr);
935 return ptr; 939 return ptr;
936} 940}
937 941