mirror of
https://github.com/followmsi/android_kernel_google_msm.git
synced 2024-11-06 23:17:41 +00:00
Merge branch 'for-2.6.39' into for-2.6.40
This commit is contained in:
commit
20ed0938bf
2 changed files with 8 additions and 0 deletions
|
@ -380,6 +380,11 @@ static int sst_platform_pcm_hw_params(struct snd_pcm_substream *substream,
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static int sst_platform_pcm_hw_free(struct snd_pcm_substream *substream)
|
||||||
|
{
|
||||||
|
return snd_pcm_lib_free_pages(substream);
|
||||||
|
}
|
||||||
|
|
||||||
static struct snd_pcm_ops sst_platform_ops = {
|
static struct snd_pcm_ops sst_platform_ops = {
|
||||||
.open = sst_platform_open,
|
.open = sst_platform_open,
|
||||||
.close = sst_platform_close,
|
.close = sst_platform_close,
|
||||||
|
@ -388,6 +393,7 @@ static struct snd_pcm_ops sst_platform_ops = {
|
||||||
.trigger = sst_platform_pcm_trigger,
|
.trigger = sst_platform_pcm_trigger,
|
||||||
.pointer = sst_platform_pcm_pointer,
|
.pointer = sst_platform_pcm_pointer,
|
||||||
.hw_params = sst_platform_pcm_hw_params,
|
.hw_params = sst_platform_pcm_hw_params,
|
||||||
|
.hw_free = sst_platform_pcm_hw_free,
|
||||||
};
|
};
|
||||||
|
|
||||||
static void sst_pcm_free(struct snd_pcm *pcm)
|
static void sst_pcm_free(struct snd_pcm *pcm)
|
||||||
|
|
|
@ -3356,6 +3356,8 @@ int snd_soc_register_card(struct snd_soc_card *card)
|
||||||
if (!card->name || !card->dev)
|
if (!card->name || !card->dev)
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
|
|
||||||
|
dev_set_drvdata(card->dev, card);
|
||||||
|
|
||||||
snd_soc_initialize_card_lists(card);
|
snd_soc_initialize_card_lists(card);
|
||||||
|
|
||||||
soc_init_card_debugfs(card);
|
soc_init_card_debugfs(card);
|
||||||
|
|
Loading…
Reference in a new issue