All of lore.kernel.org
 help / color / mirror / Atom feed
* How to Configure Appropriate runtime->hw in ALSA Driver
@ 2015-07-05  6:42 Azizul Hakim
  2015-07-05 17:20 ` Clemens Ladisch
  0 siblings, 1 reply; 2+ messages in thread
From: Azizul Hakim @ 2015-07-05  6:42 UTC (permalink / raw)
  To: alsa-devel

What is the best way to set the *runtime->hw* parameter in ALSA driver.
>From sample ALSA driver tutorial I understand we have to declare a
*structure snd_pcm_hardware*  where we define all sound parameters
like *STEREO/MONO,
RATES* etc. Now at run time we can play sound files of different
parameters. How ALSA behaves if the audio file parameters doesn't match
with the *structure_snd_pcm_hardware* parameters? So if we set MONO in our
structure, but play a audio file with STEREO data, does ALSA automatically
configure the data according to its structure or we're going to get some
kind of disruption?


If we want our driver to play any sound file, what should be the
appropriate *structure snd_pcm_hardware *parameters?

Thanks
-Azizul Hakim

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

end of thread, other threads:[~2015-07-05 17:21 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-07-05  6:42 How to Configure Appropriate runtime->hw in ALSA Driver Azizul Hakim
2015-07-05 17:20 ` Clemens Ladisch

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.