[alsa-devel] intel8x0 - copy function

Takashi Iwai tiwai at suse.de
Fri Apr 25 11:11:09 CEST 2008


At Fri, 25 Apr 2008 13:24:21 +0530,
Harsha priya gupta wrote:
> 
> aplay works. But real player still gives me the error. What is the reason?

Normally apps open the PCM with name "default".  And, for intel8x0,
dmix is used for default PCM.  The dmix plugin requires mmap
explicitly.

You can write the following in ~/.asoundrc to override the default,

pcm.!default "hw:0"


Takashi

> 
> On Fri, Apr 25, 2008 at 12:34 PM, Takashi Iwai <tiwai at suse.de> wrote:
> 
>     At Fri, 25 Apr 2008 12:12:36 +0530,
>     Harsha priya gupta wrote:
>     >
>     > Hi,
>     >
>     > I am using Intel8x0 driver for my sound card.  During data transfer from
>     > user to driver, I am trying to collect the buffer. I have implemented
>     .copy
>     > function and also disabled the mmap.
>     >
>     > If I disable the mmap in .info structure, i get an error that the device
>     is
>     > in use. If i try getting the debug messages; It fails in
>     > snd_pcm_common_ioctl1 for  SNDRV_PCM_IOCTL_HW_REFINE.
>     >
>     > Can anyone please guide me on to the right path of implementing what I
>     want
>     > to do.
>    
>     Does the error occur even if you access via "hw:0", such as,
>            % aplay -Dhw:0 foo.wav
>    
>     ??  If yes, there is some incosistency between the hardware
>     configuration and the implementation...
> 
>     Takashi
> 
> --
> -Harsha
> 
> 


More information about the Alsa-devel mailing list