From: David Henningsson <david.henningsson@canonical.com>
To: tiwai@suse.de, alsa-devel@alsa-project.org
Cc: David Henningsson <david.henningsson@canonical.com>
Subject: [PATCH 2/5] hda-emu: Add support for get/set converter channel count
Date: Tue, 21 Aug 2012 10:54:00 +0200 [thread overview]
Message-ID: <1345539243-8147-3-git-send-email-david.henningsson@canonical.com> (raw)
In-Reply-To: <1345539243-8147-1-git-send-email-david.henningsson@canonical.com>
This verb is used by the HDMI playback engine.
Signed-off-by: David Henningsson <david.henningsson@canonical.com>
---
hda-int.c | 15 +++++++++++++++
include/hda-types.h | 1 +
2 files changed, 16 insertions(+)
diff --git a/hda-int.c b/hda-int.c
index f4cbdcb..c25af56 100644
--- a/hda-int.c
+++ b/hda-int.c
@@ -786,6 +786,19 @@ static int get_gpio_sticky_mask(struct xhda_codec *codec,
return node->gpio_sticky;
}
+static int set_cvt_channel_count(struct xhda_codec *codec,
+ struct xhda_node *node, unsigned int cmd)
+{
+ node->cvt_channel_count = cmd & 0xff;
+ return 0;
+}
+
+static int get_cvt_channel_count(struct xhda_codec *codec,
+ struct xhda_node *node, unsigned int cmd)
+{
+ return node->cvt_channel_count;
+}
+
/*
* parameters
@@ -1025,6 +1038,7 @@ static struct xhda_verb_table verb_tbl[] = {
{ 0x71d, set_config_def_1, "set_config_def_1" },
{ 0x71e, set_config_def_2, "set_config_def_2" },
{ 0x71f, set_config_def_3, "set_config_def_3" },
+ { 0x72d, set_cvt_channel_count, "set_cvt_channel_count" },
{ 0x7ff, set_codec_reset, "set_codec_reset" },
{ 0xf00, get_parameters, "get_parameters" },
{ 0xf01, get_connect_sel, "get_connect_sel" },
@@ -1048,6 +1062,7 @@ static struct xhda_verb_table verb_tbl[] = {
{ 0xf1a, get_gpio_sticky_mask, "get_gpio_sticky_mask" },
{ 0xf1c, get_config_default, "get_config_default" },
{ 0xf20, get_ssid, "get_ssid" },
+ { 0xf2d, get_cvt_channel_count, "get_cvt_channel_count" },
{}
};
diff --git a/include/hda-types.h b/include/hda-types.h
index 2508726..3a06745 100644
--- a/include/hda-types.h
+++ b/include/hda-types.h
@@ -54,6 +54,7 @@ struct xhda_node {
unsigned char gpio_data, gpio_dir, gpio_mask;
unsigned char gpio_wake, gpio_unsol, gpio_sticky;
unsigned int coef_idx;
+ unsigned char cvt_channel_count;
struct xhda_coef_table *coef_tbl;
struct xhda_node *next;
};
--
1.7.9.5
next prev parent reply other threads:[~2012-08-21 8:54 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-08-21 8:53 [PATCH 0/5] hda-emu: Add playback/capture test to test suite David Henningsson
2012-08-21 8:53 ` [PATCH 1/5] hda-emu: Store pointers to pcm streams instead of their content David Henningsson
2012-08-21 8:54 ` David Henningsson [this message]
2012-08-21 8:54 ` [PATCH 3/5] hda-emu: Add CX20585 to modem whitelist David Henningsson
2012-08-21 8:54 ` [PATCH 4/5] hda-emu: Add playback/capture test to test suite David Henningsson
2012-08-21 8:54 ` [PATCH 5/5] hda-emu: improve test suite summary script David Henningsson
2012-08-21 9:01 ` [PATCH 0/5] hda-emu: Add playback/capture test to test suite Takashi Iwai
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1345539243-8147-3-git-send-email-david.henningsson@canonical.com \
--to=david.henningsson@canonical.com \
--cc=alsa-devel@alsa-project.org \
--cc=tiwai@suse.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).