All of lore.kernel.org
 help / color / mirror / Atom feed
* ALSA dma_area not utilizing D-cahce
@ 2012-05-16  0:51 MASAO TAKAHASHI
  2012-05-16  5:38 ` Paul Mundt
                   ` (11 more replies)
  0 siblings, 12 replies; 13+ messages in thread
From: MASAO TAKAHASHI @ 2012-05-16  0:51 UTC (permalink / raw)
  To: linux-sh

Hi everybody. 
Please advice me to resolve my problem.
1.  My environment
    Hardware	Alpha-project MS104-SH4AG with SH7764
	kernel		sh-linux-2.6.29
2. My problem
	I am ussing a proprietary ALSA driver for SH7764 SSI.
	I have found runtime->dma_area address refers DMA area
	via D-cache.
	So, playback is too late after executing snd_pcm_writei().
	Until D-cache writeback is done, sound data stays in D-cache.
	I want to read and write from/to main memory 
	without D-cache.

3. My idea to solve this problem
	add some codes in xxx_prepare() routine as follows
	
	save_playback_area = runtime->dma_area;
	runtime->dma_area = P2SEGADDR(runtime->dma_area);

Is my idea right?

Best regards.

Masao Takahashi in Japan

---------- 

MASAO TAKAHASHI <masao-takahashi@kanno.co.jp>
KANNO WORKS CO., LTD. JAPAN
TEL 093-436-2330

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2012-05-21  3:50 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-05-16  0:51 ALSA dma_area not utilizing D-cahce MASAO TAKAHASHI
2012-05-16  5:38 ` Paul Mundt
2012-05-17  5:16 ` MASAO TAKAHASHI
2012-05-17  7:22 ` Paul Mundt
2012-05-17  7:51 ` MASAO TAKAHASHI
2012-05-17  8:03 ` Paul Mundt
2012-05-17  8:31 ` MASAO TAKAHASHI
2012-05-21  1:07 ` MASAO TAKAHASHI
2012-05-21  1:44 ` MASAO TAKAHASHI
2012-05-21  2:10 ` Paul Mundt
2012-05-21  2:40 ` MASAO TAKAHASHI
2012-05-21  3:21 ` Paul Mundt
2012-05-21  3:50 ` MASAO TAKAHASHI

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.